Why would you want to? Swap memory is literally thousands of times slower than RAM. If you have enough physical RAM, nothing will swap in or out, and the effect would be the same as turning swapping off, minus a small overhead for the address-translation hardware.
Swapping is intended for when you don't have enough physical RAM, where the disk drive can substitute for RAM at an expense in speed, but in order to actually use this extra "memory", the data must be paged into physical RAM.
An IDE is no substitute for an Intelligent Developer.
Joined: Jul 10, 2008
Thanks for reply, i have 4GB Physical RAM and 8 GB SWAP Memory installed on server running jboss application. when i execute the "top" or "free -m" command i found that system has very less physical memory free (15 MB) and swap memory utilization showing 0 percent. when i execute top command to find out which process is taking maximum memory i found that only jboss is taking 30% memory so which process is utilizing remaining memory and why top command can not show that process? When i restart the server and execute top / free -m command it show exact utilization of memory.
Way back when, I used to be a mainframe jockey. In the early 1980's, a "good" ration of RAM to paging storage was 1-to-8. Ever since about Linux 2.6, the recommended RAM-to-paging ratio has been 1-to-2.
Part of this is because Linux is more interactive than the old batch-heavy mainframe stuff, but part is also in how Linux uses VM.
And part, I'm sure, is because RAM is so cheap these days!