ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Main Area and Open Discussion > Living Room

Advice needed re: locking windows kernel in RAM

(1/2) > >>

kyrathaba:
Someone emailed me this, supposedly from a PC-Mag article issued months ago:

Windows willingly swaps its own code from memory to make room for your other programs. But since Windows code is the most often used when you run your system, swapping it can slow things down. You can save swap time by making Windows lock its own kernel in RAM, as long as you have enough memory (512MB).

Note that the Registry controls all swapping of the kernel, and any erroneous alteration in the Registry can make your PC inoperable. Use the program Regedit (usually found in your Windows or WinNT folder). Click on My Computer | Local Disk (C:) | Windows | Regedit.

Expand the listings to HKEY_LOCAL_MACHINE\ SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management in the left-hand half of the window. Highlight DisablePagingExecutive on the right-hand side. Then click on Edit | Modify and enter the value 1. Click on OK, close Regedit, and reboot your computer.
--- End quote ---

Safe/unsafe? Advisable/Inadvisable?

Ath:
Sounds like good advice......., about 10 15+ years ago.  :down:

Who doesn't have enough RAM to avoid these kinda mumbo-jumbo, these days?
And forcing the kernel into RAM on a low memory system, so it's even more busy swapping the currently active application in and out of memory, instead of some kernel code you're not using (much) at the moment?

40hz:
Sounds like good advice......., about 10 15+ years ago.  :down:
-Ath (March 18, 2013, 03:55 PM)
--- End quote ---

+1.

Yup. It's rarely a good idea to manually edit the registry. And when it comes to the above suggestion, it's definitely a bad idea. As Ath pointed out, the situation this hack attempts to 'fix' has long since been addressed by improvements made to Windows and the hardware it runs on.

kyrathaba:
I have plenty of RAM on my desktop PCs (6 and 8 Gb respectively), so my question was academic and your responses anticipated. This topic is kinda in the same category of " should I use a RAM disk?"

40hz:
There are times when a RAM disk still makes sense. Mostly for busy caching situations on a server - although even those situations are becoming less common now that programs that can benefit from such now handle it for you.

Generally speaking, unless there's a very specific and special requirement that can provably benefit from second guessing your OS, I've found it's best to just let system handle caching, swapping, and other memory management activities. Today's operating systems are quite sophisticated and adept at handling that sort of thing. Rarely will you be able to do it better tweaking those things by hand.

Just my :two: anyway.  8)

Navigation

[0] Message Index

[#] Next page

Go to full version