Javability (Java, Zaurus, Linux, Live) by Jean-Marc Autexier, Saarland/Germany
cat /dev/www | egrep 'Java|Linux|Zaurus|ITnews|Live' > blog

20.12.04 13:37 Windows: turn swap off to improve performance ( , , , )

After reading "The Roundup August 2004" and "KeepResident Eclipse plugin", I've decided to give it a try.

I have turned of swap on my Windows XP laptop.

And to my surprise, not only my Java applications are much faster, but the entire desktop is much more responsive. Eclipse is always available, it doesn't stuck for few seconds after it was minimized or in background.

As Keep resistant do it by calling Windows API (SetProcessWorkingSetSize() and VirtualLock()), it would be nice to have such functionality as library which you can call from your application. This way, you could add it to your application and are not dependent of swap memory configuration of the PC.

Update
Checking further, I found the following Swap file tweak: "Open the System Configuration Utility by typing msconfig.exe in the RUN command. There in your System.ini you have to add "ConservativeSwapfileUsage=1" under the 386enh section."
It tells Windows not to use any Swap File until there is really no more free RAM left.

I have turned on swap again and set ConservativeSwapfileUsage. Works fine so far (runs only since few minutes), Eclipse is available immediately after maximize.

posted by Jean-Marc Autexier | 0 comments | Permalink | Send to Friends | Google it!
Subscribe

Locations of visitors to this page
selected blogs
ressources
Security
Unsorted
Fun
Free&Open Software
archives
This is a personal web page. Things said here do not represent the position of my employer.
RSS icons by: FastIcon.com