Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I use process hacker to clear out a few gigs of ram before loading large files such as 2GB stack traces so that everything does not freeze up for an hour as stuff gets swapped back and forth. However process hacker only empties about 200mb at a time.

Are there any programs or windows APIs that lets me empty a few gigs of modified memory to the pagefile at a time?

share|improve this question
add comment

2 Answers

The process hacker author provides the source code. Look into the sourcecode and you can find that memlists.c provides what you want:

command = MemoryFlushModifiedList;
status = NtSetSystemInformation( SystemMemoryListInformation, &command, sizeof(SYSTEM_MEMORY_LIST_COMMAND) );

Code a simple C CLI tool which runs this command.

share|improve this answer
add comment

RAMMap has an empty modified page list option.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.