Re: [zones-discuss] Capped-Memory - swap physical? (was: Failing to NFS mount on non-global zone)

2009-02-23 Thread Bernd Schemmer
Hi,

So if we want a to configure a Zone with 4 GB physical memory and max 2 
GB swap the values have to be

capped-memory:
physical: 4G
[swap: 6G]


Is that correct?

I just reread the documentation about swap and from that it's not clear 
to me that swap in the zone configuration is used that way

regards

Bernd
-- 
This message posted from opensolaris.org
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] Capped-Memory - swap physical? (was: Failing to NFS mount on non-global zone)

2009-02-23 Thread Steve Lawrence
Your config is basically what you want.  The zone will be able to reserve
up to 6gb of memory, 4 of which may reside in physical memory.  The 4gb of
ram is not reserved for the zone, so the zone could get less RAM due to
global memory pressure, and use more than 2gb of disk swap.  For instance,
the zone could get 3 gb of ram and 3gb of disk swap (for a total of 6gb of
virtual memory).

-Steve L.

On Mon, Feb 23, 2009 at 09:06:13PM +0100, Bernd Schemmer wrote:
 Hi,
 
 So if we want a to configure a Zone with 4 GB physical memory and max 2 
 GB swap the values have to be
 
 apped-memory:
physical: 4G
[swap: 6G]
 
 
 Is that correct?
 
 I just reread the documentation about swap and from that it's not clear 
 to me that swap in the zone configuration is used that way
 
 regards
 
 Bernd
 
 
 Steve Lawrence wrote:
 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
 zones-discuss@opensolaris.org
 
 ___
 zones-discuss mailing list
 zones-discuss@opensolaris.org
 
   
 
 
 -- 
 Bernd Schemmer, Frankfurt am Main, Germany
 http://home.arcor.de/bnsmb/index.html
 
 M s temprano que tarde el mundo cambiar .
Fidel Castro
 
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] Update Grants, Merge BrandZ and Zones Communities

2009-02-23 Thread Dan Price
On Tue 10 Feb 2009 at 05:44PM, Steve Lawrence wrote:
 I vote +1 to all nominations, upgrades, and additions.
 
 Much thanks to Dan for tackling this.

Sorry, I was busy and didn't have time to work on this.

I believe we've reached the required votes, and I will forward
to the OGB the results of this process.

-dp

-- 
Daniel Price, Solaris Kernel Engineeringhttp://blogs.sun.com/dp
___
zones-discuss mailing list
zones-discuss@opensolaris.org