{"id":2316,"date":"2012-02-16T15:33:40","date_gmt":"2012-02-16T13:33:40","guid":{"rendered":"http:\/\/skeletor.org.ua\/?p=2316"},"modified":"2013-09-19T10:49:01","modified_gmt":"2013-09-19T07:49:01","slug":"2316","status":"publish","type":"post","link":"https:\/\/skeletor.org.ua\/?p=2316","title":{"rendered":"\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0435 \u0436\u0435\u043b\u0435\u0437\u043e: \u043f\u0430\u043c\u044f\u0442\u044c, \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440, swap"},"content":{"rendered":"<p>\u041a\u0430\u043a \u0431\u044b\u0441\u0442\u0440\u043e \u0443\u0437\u043d\u0430\u0442\u044c \u0447\u0442\u043e \u0443 \u0432\u0430\u0441 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u043e\u0434\u0440\u0443\u0447\u043d\u044b\u0445 \u0441\u0440\u0435\u0434\u0441\u0442\u0432?<\/p>\n<p>\u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0434\u043b\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u0441\u0438\u0441\u0442\u0435\u043c: <strong>Linux, FreeBSD\/OpenBSD, Solaris<\/strong><\/p>\n<p><!--more--><\/p>\n<h1><strong><span style=\"color: #0000ff;\">\u041f\u0430\u043c\u044f\u0442\u044c<\/span><\/strong><\/h1>\n<p><em><strong><span style=\"color: #ff6600;\">&#8211; Linux<\/span><\/strong><\/em><\/p>\n<p><code>$free<br \/>\n$cat \/proc\/meminfo<\/code><\/p>\n<p><em><strong><span style=\"color: #ff6600;\">&#8211; FreeBSD<\/span><\/strong><\/em><\/p>\n<p><code>$sysctl -n hw.physmem<br \/>\n$egrep 'real memory|avail memory' \/var\/run\/dmesg.boot<\/code><\/p>\n<p><strong><em><span style=\"color: #ff6600;\">&#8211; OpenBSD<\/span><\/em><\/strong><\/p>\n<p><code>$sysctl -n hw.physmem<br \/>\n$egrep 'real mem|avail mem' \/var\/run\/dmesg.boot<\/code><\/p>\n<p><em><strong><span style=\"color: #ff6600;\">&#8211; Solaris<\/span><\/strong><\/em><\/p>\n<p><code>$\/usr\/sbin\/prtconf | grep Memory<br \/>\n$top -d1 | grep \"total swap\"<br \/>\n# echo ::memstat | mdb -k<br \/>\n$kstat -n system_pages | nawk 'BEGIN{ \"\/usr\/bin\/pagesize\" | getline pgsize ; } \/physmem\/ { print \"Physical memory = \" $2 * pgsize\/1073741824 \"Gb\"}'<\/code><\/p>\n<h1><strong><span style=\"color: #0000ff;\">\u041f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440<\/span><\/strong><\/h1>\n<p><em><strong><span style=\"color: #ff6600;\">&#8211; Linux<\/span><\/strong><\/em><\/p>\n<p><code>$cat \/proc\/cpuinfo<\/code><\/p>\n<p><em><strong><span style=\"color: #ff6600;\">&#8211; FreeBSD<\/span><\/strong><\/em><\/p>\n<p><code>$sysctl -a | egrep -i 'hw.model|hw.ncpu'<br \/>\n$grep -i cpu \/var\/run\/dmesg.boot<\/code><\/p>\n<p><strong><em><span style=\"color: #ff6600;\">&#8211; OpenBSD<\/span><\/em><\/strong><\/p>\n<p><code>$sysctl -a | egrep -i 'hw.model|hw.ncpu'<br \/>\n$grep -i cpu \/var\/run\/dmesg.boot<\/code><\/p>\n<p><em><strong><span style=\"color: #ff6600;\">&#8211; Solaris<\/span><\/strong><\/em><\/p>\n<p><code>$prtdiag<br \/>\n$psrinfo -v<br \/>\n$kstat -m cpu_info<\/code><\/p>\n<h1><strong><span style=\"color: #0000ff;\">Swap<\/span><\/strong><\/h1>\n<p><em><strong><span style=\"color: #ff6600;\">&#8211; Linux<\/span><\/strong><\/em><\/p>\n<p><code>$free<\/code><\/p>\n<p><em><strong><span style=\"color: #ff6600;\">&#8211; FreeBSD<\/span><\/strong><\/em><\/p>\n<p><code>$swapinfo<br \/>\n$pstat -T<\/code><\/p>\n<p><em><strong><span style=\"color: #ff6600;\">&#8211; OpenBSD<\/span><\/strong><\/em><\/p>\n<p><code>$swapctl -l<\/code><\/p>\n<p><em><strong><span style=\"color: #ff6600;\">&#8211; Solaris<\/span><\/strong><\/em><\/p>\n<p><code>$top -d1 | grep \"total swap\"<br \/>\n$swap -s<br \/>\n# df -kh swap<br \/>\n# zfs get volsize rpool\/swap<br \/>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041a\u0430\u043a \u0431\u044b\u0441\u0442\u0440\u043e \u0443\u0437\u043d\u0430\u0442\u044c \u0447\u0442\u043e \u0443 \u0432\u0430\u0441 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u043e\u0434\u0440\u0443\u0447\u043d\u044b\u0445 \u0441\u0440\u0435\u0434\u0441\u0442\u0432? \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0434\u043b\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u0441\u0438\u0441\u0442\u0435\u043c: Linux, FreeBSD\/OpenBSD, Solaris<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,5,25,24],"tags":[],"class_list":["post-2316","post","type-post","status-publish","format-standard","hentry","category-freebsd","category-linux","category-openbsd","category-solaris"],"_links":{"self":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/2316","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2316"}],"version-history":[{"count":13,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/2316\/revisions"}],"predecessor-version":[{"id":3789,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/2316\/revisions\/3789"}],"wp:attachment":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2316"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2316"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2316"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}