{"id":2325,"date":"2013-02-23T08:49:46","date_gmt":"2013-02-22T23:49:46","guid":{"rendered":"http:\/\/blog.isnext.net\/issy\/?p=2325"},"modified":"2013-02-23T08:52:09","modified_gmt":"2013-02-22T23:52:09","slug":"centos5-x%e3%81%a7dstat%e3%81%ae-top-io%e3%82%aa%e3%83%97%e3%82%b7%e3%83%a7%e3%83%b3%e3%82%92%e4%bd%bf%e3%81%86","status":"publish","type":"post","link":"https:\/\/blog.isnext.net\/issy\/archives\/2325","title":{"rendered":"CentOS5.x\u3067dstat\u306e&#8211;top-io\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u3046"},"content":{"rendered":"<p><strong>\u25a0CentOS5.x\u3067dstat\u306e&#8211;top-io\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u3046<\/strong><br \/>\nCentOS5.x\u3067\u6975\u77ed\u6642\u9593\u3067\u3082I\/O\u8ca0\u8377\u3092\u4e0a\u3052\u3066\u3044\u308b\u30d7\u30ed\u30bb\u30b9\u3092\u7279\u5b9a\u3059\u308b\u65b9\u6cd5\u3068\u3057\u3066dstat\u3092\u4f7f\u3046\u3053\u3068\u3067\u305d\u308c\u304c\u53ef\u80fd\u3067\u3059\u3002\u3057\u304b\u3057dstat\u306e&#8211;top-io\u30aa\u30d7\u30b7\u30e7\u30f3\u306fketnel2.6.20\u4ee5\u4e0a\u304c\u5fc5\u8981\u3067\u3001CentOS5.x\u6a19\u6e96\u306ekernel2.6.18\u3067\u306f\u5229\u7528\u3067\u304d\u307e\u305b\u3093\u3002\u305d\u3053\u3067CentOS5.x\u3067\u3082\u305d\u308c\u3092\u5229\u7528\u3059\u308b\u65b9\u6cd5\u3092\u8abf\u3079\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>dstat<br \/>\n<a href=\"http:\/\/dag.wieers.com\/home-made\/dstat\/dstat.1.html\">http:\/\/dag.wieers.com\/home-made\/dstat\/dstat.1.html<\/a><\/p>\n<p>\u4eca\u56de\u306fELrepo\u3068\u3044\u3046\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u30893.0\u7cfb\u306ekernel\u3092\u5c0e\u5165\u3057\u307e\u3059\u3002<br \/>\nELrepo\u306fCentOS\/RedHat\u7528\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3067\u3001\u65e2\u5b58\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u30d1\u30c3\u30b1\u30fc\u30b8\u7fa4\u3068\u6574\u5408\u6027\u304c\u3042\u308a\u307e\u3059\u3002kernel\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3057\u3066\u3082\u65e2\u5b58\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u304c\u52dd\u624b\u306b\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u3055\u308c\u308b\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>[code]# rpm -ivh http:\/\/elrepo.org\/elrepo-release-5-4.el5.elrepo.noarch.rpm<br \/>\n# vi \/etc\/yum.repos.d\/elrepo.repo<\/p>\n<p>[elrepo-kernel]<br \/>\nname=ELRepo.org Community Enterprise Linux Kernel Repository &#8211; el5<br \/>\nbaseurl=http:\/\/elrepo.org\/linux\/kernel\/el5\/$basearch\/<br \/>\nmirrorlist=http:\/\/elrepo.org\/mirrors-elrepo-kernel.el5<br \/>\nenabled=1<br \/>\ngpgcheck=1<br \/>\ngpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-elrepo.org<br \/>\nprotect=0<\/p>\n<p># yum update<br \/>\n# yum install kernel-lt kernel-lt-devel<br \/>\n[\/code]<\/p>\n<p>kernel3.0\u3067\u8d77\u52d5\u3059\u308b\u3068udev\u306e\u8d77\u52d5\u6642\u306b\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u51fa\u308b\u306e\u3067\u4ee5\u4e0b\u3092\u4fee\u6b63\u3002<br \/>\n[code]<br \/>\n# vi \/etc\/udev\/rules.d\/05-udev-early.rules<br \/>\nACTION==&#8221;add&#8221;, SUBSYSTEM==&#8221;scsi&#8221;, WAIT_FOR_SYSFS=&#8221;ioerr_cnt&#8221;<br \/>\n\u3000\u2193<br \/>\n#ACTION==&#8221;add&#8221;, SUBSYSTEM==&#8221;scsi&#8221;, WAIT_FOR_SYSFS=&#8221;ioerr_cnt&#8221;<\/p>\n<p>\u203biscsi\u304c\u4f7f\u308f\u308c\u3066\u3044\u306a\u3044\u3053\u3068\u3002iscsi\u3092\u6709\u52b9\u306e\u307e\u307e\u4f7f\u3046\u5834\u5408\u306f\u4ee5\u4e0b\u3002<br \/>\nACTION==&#8221;add&#8221;, SUBSYSTEM==&#8221;scsi&#8221;, KERNEL==&#8221;[0-9]*:[0-9]*&#8221;, WAIT_FOR_SYSFS=&#8221;ioerr_cnt&#8221;<\/p>\n<p># reboot<br \/>\n[\/code]<\/p>\n<p>\u8d77\u52d5\u753b\u9762\u30673.0kernel\u9078\u629e\u3001\u8d77\u52d5\u5f8c\u306b\u8d77\u52d5kernel\u3092\u78ba\u8a8d\u3059\u308b\u3002<br \/>\n[code]<br \/>\n# uname -r<br \/>\n3.0.66-1.el5.elrepo\u3000\u3092\u78ba\u8a8d<br \/>\n[\/code]<\/p>\n<p>\u3053\u308c\u3067dstat\u306e\u30d5\u30eb\u6a5f\u80fd\u304c\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\ndstat\u306f\u6700\u65b0\u7248\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br \/>\n[code]<br \/>\n# wget http:\/\/dag.wieers.com\/home-made\/dstat\/dstat-0.7.2.tar.bz2<br \/>\n# tar jxvf dstat-0.7.2.tar.bz2<br \/>\n# cd dstat-0.7.2<br \/>\n# .\/dstat -alt &#8211;top-io &#8211;top-bio &#8211;top-cpu &#8211;top-cputime &#8211;top-cputime-avg &#8211;top-mem<br \/>\n[\/code]<\/p>\n<p>\u5404\u30c7\u30a3\u30b9\u30af\u3084\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u5358\u4f4d\u3067\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092\u53d6\u5f97\u3059\u308b\u5834\u5408<br \/>\n[code]# .\/dstat -cdnlt -N eth0,eth1,total -D sda1,sda2,sda3,total &#8211;top-io &#8211;top-bio &#8211;top-cpu &#8211;top-cputime &#8211;top-cputime-avg &#8211;top-mem[\/code]<\/p>\n<p>\u30d5\u30a1\u30a4\u30eb\u306b\u66f8\u304f\u5834\u5408\u306f\uff12\u3064\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>CSV\u7528\u306e\u30ab\u30f3\u30de\u533a\u5207\u308a\uff08\u753b\u9762\u3082\u8868\u793a\uff09<br \/>\n[code]# .\/dstat -cdnlt -N eth0,eth1,total -D sda1,sda2,sda3,total &#8211;top-io &#8211;top-bio &#8211;top-cpu &#8211;top-cputime &#8211;top-cputime-avg &#8211;top-mem -o filename[\/code]<\/p>\n<p>terminal\u753b\u9762\u306e\u51fa\u529b\u3092\u305d\u306e\u307e\u307e\u4fdd\u5b58\uff08\u753b\u9762\u8868\u793a\u7121\uff09<br \/>\n[code]# .\/dstat -cdnlt -N eth0,eth1,total -D sda1,sda2,sda3,total &#8211;top-io &#8211;top-bio &#8211;top-cpu &#8211;top-cputime &#8211;top-cputime-avg &#8211;top-mem > filename[\/code]<\/p>\n<p>\u3053\u308c\u306b\u3088\u3063\u30661\u79d2\u3054\u3068\u306b\u30b5\u30fc\u30d0\u306e\u52d5\u4f5c\u72b6\u6cc1\u3068\u305d\u306e\u6642\u306b\u6700\u3082\u6d3b\u52d5\u3057\u3066\u3044\u308b\u30d7\u30ed\u30bb\u30b9\u3068\u305d\u306e\u5bfe\u8c61\u3092\u3044\u304f\u3064\u304b\u306e\u6307\u6a19\u3067\u30ed\u30b0\u306b\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u25a0CentOS5.x\u3067dstat\u306e&#8211;top-io\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u3046 CentOS5.x\u3067\u6975\u77ed\u6642\u9593\u3067\u3082I\/O\u8ca0\u8377\u3092\u4e0a\u3052\u3066\u3044\u308b\u30d7\u30ed\u30bb\u30b9\u3092\u7279\u5b9a\u3059\u308b\u65b9\u6cd5\u3068\u3057\u3066dstat\u3092\u4f7f\u3046\u3053\u3068\u3067\u305d\u308c\u304c\u53ef\u80fd\u3067\u3059\u3002\u3057\u304b\u3057dstat\u306e&#038;# &hellip; <a href=\"https:\/\/blog.isnext.net\/issy\/archives\/2325\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;CentOS5.x\u3067dstat\u306e&#8211;top-io\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u3046&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[20,186,64],"class_list":["post-2325","post","type-post","status-publish","format-standard","hentry","category-linux","tag-centos","tag-dstat","tag-tips"],"_links":{"self":[{"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/posts\/2325","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/comments?post=2325"}],"version-history":[{"count":3,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/posts\/2325\/revisions"}],"predecessor-version":[{"id":2328,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/posts\/2325\/revisions\/2328"}],"wp:attachment":[{"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/media?parent=2325"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/categories?post=2325"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/tags?post=2325"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}