Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to know how to change "memory priority" of a process. I need a utility that changes the memory priority of the process. Certain ram intensive programs can still make my important programs freeze up by sending them to the page file. I need to stop this, and I need to be able to select the EXACT priority of any program. Additionally I am using windows vista.

For reference, I googled, found nothing. Please note that this is not "process priority" or cpu priority. Anyone know of a free tool which does this?

share|improve this question
up vote 1 down vote accepted

As far as I know there is no way to make sure a process stays in memory on Windows. There is a Win32 API called VirtualAlloc() that will allocate memory in such a way that the memory manager won't try to push it to disk. This have to be coded into the application and can not be set by any program as far as I know. You will probably have much better results by increasing the amount of ram in your computer.

share|improve this answer
This answer is correct. I will add that the use of VirtualAlloc to allocate nonpageable virtual memory is a particular option on VirtualAlloc; its use is quite rare, it is somewhat awkward to use, and there are severe restrictions on how such virtual memory can be used by the process. It applies not at all to code, stacks, or heaps, for example. So it doesn't get used much. – Jamie Hanrahan Aug 30 '15 at 2:04

In Windows the MM will only page-out pages that are not being accessed for some time, also when "Context switch" happens your code will stop running.

It sounds like you either need to write your code in the kernel in High IRQL and access only none paged memory which is a very bad idea, or change the target OS to a real time OS.

share|improve this answer

Your Answer


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.