Nowadays Solaris Zones and resource control became more and more popular. But when you use it output of usual Solaris commands became confusing. For example if you use zone.max-swap rctl swap -l in and other tools in Zone will return info about swap for global zone, without of any restrictions. The same for nlwps resource control and others.
So how can we get real amount of used swap or lwps? And not only from global zone.
kstat can help.
There is zone_caps class in kstat, so kstat -c zone_caps -n swapresv_zone_1 will show all info about zone.max-swap for zone, with id 1.
To list oll used resource controls :
kstat -p caps:::usage