简体   繁体   中英

Force Windows to use pagefile

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM