Hello,
In the case of Hyper-V Manager, the VMRS file you mentioned is used for saving the runtime state of the virtual machine (similar to a hibernation file). This file is responsible for quickly starting or resuming the virtual machine.
The VMRS file is initially created with a larger size (4 GB in your case) to accommodate the entire state of the virtual machine, including its memory contents. When you stop the virtual machine, the contents of the memory are saved in this file, resulting in a large size. However, when the virtual machine is stopped, the file size decreases significantly (48 KB) because it only needs to retain essential information for resuming the virtual machine.
Regarding the location of the VMRS file, it is typically stored on the host machine's disk, specifically in the same directory as the virtual machine's configuration files. By default, this is usually on the system drive where Hyper-V is installed. So, it is likely that the VMRS file is written to your SSD.
Although the RAM usage of your host machine increases when you start the virtual machine, the VMRS file itself is stored on disk. The increased RAM usage is because the memory allocated to the virtual machine is reserved in the host's RAM, allowing the virtual machine to run efficiently.
It's worth noting that you can change the location of the VMRS file by modifying the virtual machine's settings in Hyper-V Manager. However, it's generally recommended to leave it in its default location for optimal performance.
If you have concerns about the impact on your SSD, it's important to ensure that your SSD is of good quality and properly configured for virtualization workloads. SSDs are designed to handle a significant number of read and write operations, including temporary files like the VMRS file used for virtual machine state. Monitoring your SSD's health using tools like SMART is a good practice to keep track of its condition.
I used AI provided by ChatGPT to formulate part of this response. I have verified that the information is accurate before sharing it with you.
Hope this resolves your Query !!
--If the reply is helpful, please Upvote and Accept it as an answer–