Force Windows to use pagefile

569 Views Asked by At

I would like to know if there is a way to instruct Windows to utilize a portion of the pagefile on demand. Like an API or something. I'm currently working on a monitoring system with a function to check the amount of pagefile being used. There are test machines that aren't busy so their pagefile isn't being used aggressively. I need a way to spike the pagefile usage for my automated tests.

Thank you in advance.

1

There are 1 best solutions below

1
Kirhgoph On

Pagefile is usually used when there is not enough free RAM available. So in order to create a spike in pagefile usage open something heavy like a browser with 100 tabs or so on.