Reputation: 21
I typically use about 5GB of RAM on my workstation at work. I normally have to run a few instances of matlab at a time, each running simulink simulations. These use a total of about 4-6GB RAM. When these are active, windows dumps memory in RAM to the page file to free space for matlab.
The problem is when the simulations are over, 2-3GB stays in the page file and slows the systems DRAMATICALLY. This computer has AWFUL disk read and write performance.
Is there a way I can move the paged memory back over to ram to avoid this performance hit?
Right now I am required to restart my computer when I am done running the simulations to speed it up again.
I have 8GB RAM with a 12GB page file.
Upvotes: 0
Views: 135
Reputation: 5449
Check out
Is it possible to unpage all memory in Windows?
The answer given by @KerrekSB seems to include some code for doing it. But the long and short of it is that you need to walk the list of processes, then walk the list of memory allocations for those processes, reading as you go.
Upvotes: 1