Swap - forcing Swap

snpe snpe at snpe.co.yu
Fri Sep 30 04:59:24 UTC 2005


On Friday 30 September 2005 02:32 am, Vram wrote:
> On Fri, 2005-09-30 at 04:03 +0000, snpe wrote:
> > > 
> > > it depends. Imagine a large unused program (like a JVM with around
> > > 500mb) which you don't use always (think i2p anonymity proxy). You do
> > > not want that program to fill your RAM. This programs memory can be
> > > swapped out and the free memory used for cache.
> > >
> > why - if you have free memory , yet
> > 
> > > > You can't force usage of swap 
> > > 
> > > wrong: you can use some /proc/sys/vm parameters to do this.
> > > 
> > you can control (litle), but can't force system for swapping if system have free main memory
> 
> And how do we do this   with /proc/sys/xm  like the other guy said.??
> 
> Tell me please???
> 
Vram,
You can't do it too much for virtual memory system - linux is set good default
Main thing is that you have enough big swap (different partition and start disk etc)
and this set instalation program.

You can find more in kernel source in Documentation/sysctl/vm.txt
There are yet documentation on internet - search virtual memory and swapping

Virtual memory is probably the most complicated part of software engineering




More information about the ubuntu-users mailing list