So I'm planning on eventually going to 2 GB (mobo max) RAM from 1 GB, and I want to disable kernel paging once I do, because I've heard it can give a performance boost (and that I believe). Any reason not to do it or any general thoughts about it?

Edit: for clarification, this is not disabling general RAM paging. This is disabling having kernel memory paged (or at least parts of it, as Charlls noted).

link|improve this question

It would be nice if you were more specific about what setting you're planning to change. – bk1e Sep 15 '09 at 7:20
feedback

5 Answers

up vote 3 down vote accepted

Any reason not to do it or any general thoughts about it?

If you do this you have to live with the fact that you have moved the a large portion of the Kernel to RAM. At first this this is good. You avoid Paging of the Kernel and the system may experience an increase in performance on those kernel related tasks.

But what if your applications use a lot of RAM? 2GB is no longer a large amount of RAM by any standards these days. Even if the executable is small, it may allocate large amounts of RAM during execution that extend well beyond its physical size on disk (practically all software does this). So, with less RAM available because the Kernel is taking some of it away, you will be experiencing this time paging of your applications. That is, you have a more responsive system to kernel related tasks and a less responsive system to daily application usage.

Since your computer usage pattern, I predict, is based mostly around application usage, you may instead feel a decrease in general performance.

At 2GB of RAM I don't advise you to do this. Kernel size varies. But Windows XP Kernel is around 200Mb in size and Windows Vista is a little over 300(?). Windows 7 may boast an even larger Kernel. This I say from memory only, from what I seem to remember being their memory dumps. You will be taking away a considerable large chunk of memory. memory that will force many of your memory hungry applications to page. And... if you want paging to happen, don't let it happen with memory hungry applications.

link|improve this answer
Also a great insight, thanks. I'm running XP Home, and I have a single core proc, so maybe I should just leave things were they are - Firefox is enough of a whale already – Nathaniel Sep 15 '09 at 4:13
2  
A typical kernel memory dump contains far less than 200 MB of code. Most of it is data: pool allocations, thread stacks, page tables, etc. support.microsoft.com/kb/Q184419 only discusses disabling paging of kernel code, not kernel data. And not all drivers contain a lot of paged code anyway. The amount of RAM that this wastes should be significantly smaller than 200 MB. – bk1e Sep 15 '09 at 7:19
When working with Windows XP on my laptop, and obviously having cleaned up almost all startup applications and unnecessary stuff, after boot I had 14 processes running and 70 MiB total of virtual memory in use. First thing I'd run then was Putty's Pageant :) – tzot Jan 5 '10 at 1:04
Do you have any references for this 200MB for XP and 300MB for Vista? Doesn't sound right to me either. – Scott Bilas Feb 10 '10 at 8:57
feedback

It should be noted that this setting effects only a small portion of the kernel. Windows will only page this out if the memory is needed for other purposes. A portion of the kernel can never be paged under any circumstances while others will remain pageable. If you have a reasonable amount of RAM (512MB or more) this setting is unlikely to do anything. Also, what Task Manager shows as “Paged” is really means pageable. How much is actually paged out at any given time is impossible to tell. Windows simply does not make this information available outside the system.

link|improve this answer
Ah, good insight, thanks. Some tweaks really do need debunking so it's nice when people come along with real info and show what's really going on. – Nathaniel Sep 15 '09 at 3:59
feedback

I think the decision to do this should be based on how much system memory you have and also what applications you typically run. As I type this my 8Gb Windows 7 (64-bit) system has the following stats:

Total 8125Mb Cached 2618Mb Available 6485Mb Free 4200Mb

(If those numbers don't quite add up it's because they are changing while I type).

Kernel Memory Paged 278Mb Nonpaged 59Mb

It seems to me very much that I could only stand to BENEFIT from using that whopping 4200Mb of RAM doing absolutely nothing (not even in use in a cache) by caching just 278Mb of kernel.

In practice I'll have to see how it turns out as I haven't tried it. I'm guessing the parts of the kernel that are paged are probably not used all that frequently (hence the reason they are paged) and the chances of running a big app that wants to use the memory may be higher than the chances I'll do something that needs to access those areas of the kernel. It would be interesting to hear some experiences from users with 8Gb or more RAM on the effect of disabling the paging of Kernel memory.

link|improve this answer
feedback

but the thing is, disabling kernal paging might have a big impact on performance if your on a 3-4GB RAM system...me my self i do notice a big improvement when running Adobe applications :D

link|improve this answer
feedback

You should read this article to have a comprehension about why not turn off kernal paging :) Understanding the windows pagefile

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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