{"id":19,"date":"2012-03-06T12:59:46","date_gmt":"2012-03-06T08:59:46","guid":{"rendered":"http:\/\/pavlenko.net\/antony\/?p=19"},"modified":"2020-05-07T00:53:59","modified_gmt":"2020-05-06T20:53:59","slug":"resource-controls-and-zones","status":"publish","type":"post","link":"http:\/\/pavlenko.net\/antony\/2012\/03\/06\/resource-controls-and-zones\/","title":{"rendered":"resource controls and zones"},"content":{"rendered":"<p>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.<br \/>\nSo how can we get real amount of used swap or lwps? And not only from global zone.<br \/>\nkstat can help.<br \/>\nThere 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.<\/p>\n<p>To list oll used resource controls :<\/p>\n<pre>\r\nkstat -p caps:::usage\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/pavlenko.net\/antony\/wp-json\/wp\/v2\/posts\/19"}],"collection":[{"href":"http:\/\/pavlenko.net\/antony\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/pavlenko.net\/antony\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/pavlenko.net\/antony\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/pavlenko.net\/antony\/wp-json\/wp\/v2\/comments?post=19"}],"version-history":[{"count":2,"href":"http:\/\/pavlenko.net\/antony\/wp-json\/wp\/v2\/posts\/19\/revisions"}],"predecessor-version":[{"id":52,"href":"http:\/\/pavlenko.net\/antony\/wp-json\/wp\/v2\/posts\/19\/revisions\/52"}],"wp:attachment":[{"href":"http:\/\/pavlenko.net\/antony\/wp-json\/wp\/v2\/media?parent=19"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/pavlenko.net\/antony\/wp-json\/wp\/v2\/categories?post=19"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/pavlenko.net\/antony\/wp-json\/wp\/v2\/tags?post=19"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}