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.