0
My computer has 8gb of physical memory. I'm running some memory intensive processes that quickly eat up that 8gb. When the physical memory runs out, it starts using the virtual memory and I see pagefile.sys quickly shoot up to several GB in size. The free space on my main hard drive is low and I can't afford to buy a new one at this time. Because of this, I have to set my virtual memory on drive C: to around 1gb. My solution was to use my 32gb sandisk flash drive to hold another pagefile.sys. I changed my virtual ram settings to include my flash drive, with an initial size of 16gb and a maximum size to around 29gb, then restarted my computer.
I wrote a small python script to use up all available memory. It uses up what's left of the 8gb of physical memory, taps into the main drive's 1gb of virtual memory, then crashes. The flash drive remains untouched. I used dir /a g:\pagefile.sys
to see if it even made a paging file on the drive, and it has not. I'm at a loss and google searches have not been helpful.
Is there a hidden step I'm missing? My goal is to be able to run my processes, which will take up easily 10-15gb of ram. Speed is not a primary concern here, just stability.
I am using windows 7 home premium 64 bit. The flash drive is a 32gb sandisk cruiser formatted to ntfs.
even if you get it to sort of work this method will be too slow... use the flashdrive to free up space on your hard drive so that you can use that. – Tyson – 2014-10-02T02:41:46.487
This could be only a "temporary" solution. Depending on your application, VM can involve a lot of write activity which could burn through the flash drive's service life. – fixer1234 – 2014-10-02T03:23:48.973
The process crashing has to do with per-process limits and nothing to do with system limits. – David Schwartz – 2014-10-02T05:10:27.117