Re: [zones-discuss] Difference between resource management attribbutes
There is a kstat. Look at the output of: $ kstat -c project_caps -n 'lockedmem*' -Steve L. On Wed, Oct 21, 2009 at 05:43:03AM -0700, Ketan wrote: > But there is one more thing if i set max-rss i can test it and see the task > under specified project does not exceeds the specified rss value but if i set > max-locked-memory to 1 gig how can i test that one ? > -- > This message posted from opensolaris.org > ___ > zones-discuss mailing list > zones-discuss@opensolaris.org ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] Difference between resource management attribbutes
But there is one more thing if i set max-rss i can test it and see the task under specified project does not exceeds the specified rss value but if i set max-locked-memory to 1 gig how can i test that one ? -- This message posted from opensolaris.org ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] Difference between resource management attribbutes
Thank you to both of you .. so i guess its good to use max-locked-memory. -- This message posted from opensolaris.org ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] Difference between resource management attribbutes
On Tue, Oct 20, 2009 at 1:20 PM, Ketan wrote: > Can anyone answer my questions > > 1. Whats the difference between project.max-locked-memory and max-rss. > And out these 2 which is the preferred way of limiting the physical memory in > a project or zone. RSS means "Resident Set Size" and can be considered to be the amount of RAM that the project's processes are using. Locked memory is the pages of RAM that have been locked - pages that cannot be paged out. > 2. How to restrict the swap memory in projects There is a swap-cap for zones. See resource_controls(5). ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] Difference between resource management attribbutes
On Tue, Oct 20, 2009 at 10:20:14AM -0700, Ketan wrote: > Can anyone answer my questions > > 1. Whats the difference between project.max-locked-memory and max-rss. > And out these 2 which is the preferred way of limiting the physical memory in > a project or zone. max-rss limits both pageable and locked physical memory used by projects, so it is an overall physical memory cap. max-locked-memory is useful in limiting applications which specifically lock physical memory. This is useful because if the project locks up to it's max-rss, there will be no memory left for it, and it will page non-stop. max-locked-memory can be set lower than max-rss to protect against this. -Steve L. > > 2. How to restrict the swap memory in projects There is no mechanism. swap limits are only on zones. > -- > This message posted from opensolaris.org > ___ > zones-discuss mailing list > zones-discuss@opensolaris.org ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] Difference between resource management attribbutes
Hi Ketan, Le 20 oct. 09 à 19:20, Ketan a écrit : Can anyone answer my questions 1. Whats the difference between project.max-locked-memory and max- rss. locked memory is page of memory which can't be swapped by kernel...like share-mem. And out these 2 which is the preferred way of limiting the physical memory in a project or zone. You can't...huh, the only way is to limit VM my use the swap max parameter. 2. How to restrict the swap memory in projects :) Use zone and zone.max-swap smime.p7s Description: S/MIME cryptographic signature ___ zones-discuss mailing list zones-discuss@opensolaris.org
[zones-discuss] Difference between resource management attribbutes
Can anyone answer my questions 1. Whats the difference between project.max-locked-memory and max-rss. And out these 2 which is the preferred way of limiting the physical memory in a project or zone. 2. How to restrict the swap memory in projects -- This message posted from opensolaris.org ___ zones-discuss mailing list zones-discuss@opensolaris.org