Swap limits how much of the systems total memory (ram + disk) can be reserved. When this limit is hit, allocations, such as malloc, will fail. Physical memory limits resident memory. When this limit is hit, the zone will page pages in memory to disk swap.
In general, your example config is only useful if the zone uses a lot of physical memory, but does not reserve as much swap. An example is an application which maps a large on-disk file into memory. No swap is needed for the file, (because the file can be paged back to the a filesystem), but a large amount of physical memory may be needed to pull the file into RAM. Such applications are rare, so your example config is not often used. Your basically right is saying that this config does not make any sense in most cases. -Steve L. On Fri, Feb 20, 2009 at 08:36:20PM +0100, Alexander Skwar wrote: > Hi! > > On Fri, Feb 20, 2009 at 17:50, Asif Iqbal <vad...@gmail.com> wrote: > > > capped-memory: > > physical: 1G > > [swap: 512M] > > A question regarding this setting - does that setting really make > sense? I suppose he tries to achieve that the zone as a max. > uses 1G of real memory and no more than 512M of Swap. > > But does it really do that? > > Or is he rather limiting the amount of allocable mem to 512M? > > Alexander > -- > [ Soc. => http://twitter.com/alexs77 | http://www.plurk.com/alexs77 ] > [ Mehr => http://zyb.com/alexws77 ] > [ Chat => Jabber: alexw...@jabber80.com | Google Talk: a.sk...@gmail.com ] > [ Mehr => MSN: alexw...@live.de | Yahoo!: askwar | ICQ: 350677419 ] > _______________________________________________ > zones-discuss mailing list > firstname.lastname@example.org _______________________________________________ zones-discuss mailing list email@example.com