[zones-discuss] monitor number of lwp in zone

2012-04-26 Thread Christian Meier
Dear List, with the solaris resource control feature you are able to set the max number of LWP for a zone e.g bash-3.00# prctl -n zone.max-lwps -i zone v0136 zone: 20: v0136 NAMEPRIVILEGE VALUEFLAG ACTION RECIPIENT zone.max-lwps privileged

Re: [zones-discuss] monitor number of lwp in zone

2012-04-26 Thread Hung-Sheng Tsao (LaoTsao 老曹) Ph. D.
try this link http://hub.opensolaris.org/bin/view/Project+zonestat/files?viewer=attachmentslanguage=en On 4/26/2012 11:33 AM, Christian Meier wrote: Dear List, with the solaris resource control feature you are able to set the max number of LWP for a zone e.g bash-3.00# prctl -n

Re: [zones-discuss] monitor number of lwp in zone

2012-04-26 Thread Mike Gerdts
On 04/26/12 10:33, Christian Meier wrote: Dear List, with the solaris resource control feature you are able to set the max number of LWP for a zone e.g bash-3.00# prctl -n zone.max-lwps -i zone v0136 zone: 20: v0136 NAMEPRIVILEGE VALUEFLAG ACTION RECIPIENT zone.max-lwps

Re: [zones-discuss] monitor number of lwp in zone

2012-04-26 Thread Christian Meier
thank you for the link. really nice tool, but the number of LWP's I can't get with it root@g0081:/tmp# ./zonestat.pl -l 2 |Pool-|---CPU-|Memory| |---|--Size---|Pset---|---RAM---|---Shm---|---Lkd---|---VM---| Zonename| IT| Max|

Re: [zones-discuss] monitor number of lwp in zone

2012-04-26 Thread Hung-sheng Tsao
You can always improve it Sent from my iPhone On Apr 26, 2012, at 12:21 PM, Christian Meier meierc...@gmail.com wrote: thank you for the link. really nice tool, but the number of LWP's I can't get with it root@g0081:/tmp# ./zonestat.pl -l 2

Re: [zones-discuss] monitor number of lwp in zone

2012-04-26 Thread Christian Meier
Hello Mike with sed,grep and awk possible: /usr/bin/prstat -LZ -n 1,10 1 1 | sed '1,3d' | grep -v Total 0 216 111M 139M 6.8% 0:09:05 0.1% global 20 100 40M 23M 1.1% 0:00:32 0.0% v0136 Potential improvements on that are: $ ps -Leo zone | sort | uniq -c |