{"id":445,"date":"2014-03-23T17:47:41","date_gmt":"2014-03-23T08:47:41","guid":{"rendered":"http:\/\/tech.akat.info\/?p=445"},"modified":"2015-09-20T01:36:43","modified_gmt":"2015-09-19T16:36:43","slug":"%e8%b2%a0%e8%8d%b7%e8%a8%88%e6%b8%ac%e3%83%84%e3%83%bc%e3%83%ab","status":"publish","type":"post","link":"https:\/\/tech.akat.info\/?p=445","title":{"rendered":"\u8ca0\u8377\u8a08\u6e2c\u30c4\u30fc\u30eb"},"content":{"rendered":"<h2>ps<\/h2>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nroot@akat:\/home\/akat# ps afxu\r\nUSER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND\r\n# %CPU:CPU\u4f7f\u7528\u7387\r\n# %MEM:\u7269\u7406\u30e1\u30e2\u30ea\u4f7f\u7528\u7387\r\n# VSZ:\u4eee\u60f3\u30e1\u30e2\u30ea\u30b5\u30a4\u30ba\r\n# RSS:\u7269\u7406\u30e1\u30e2\u30ea\u30b5\u30a4\u30ba\r\n# TIME:CPU\u5229\u7528\u6642\u9593\r\nroot         2  0.0  0.0      0     0 ?        S    Mar09   0:00 &#x5B;kthreadd]\r\nroot         3  0.0  0.0      0     0 ?        S    Mar09   0:16  \\_ &#x5B;ksoftirqd\/0]\r\nroot         5  0.0  0.0      0     0 ?        S    Mar09   0:00  \\_ &#x5B;kworker\/u:0]\r\nroot         6  0.0  0.0      0     0 ?        S    Mar09   0:02  \\_ &#x5B;migration\/0]\r\nroot         7  0.0  0.0      0     0 ?        S    Mar09   0:15  \\_ &#x5B;watchdog\/0]\r\nroot         8  0.0  0.0      0     0 ?        S    Mar09   0:01  \\_ &#x5B;migration\/1]\r\nroot        10  0.0  0.0      0     0 ?        S    Mar09   0:08  \\_ &#x5B;ksoftirqd\/1]\r\nroot        12  0.0  0.0      0     0 ?        S    Mar09   0:15  \\_ &#x5B;watchdog\/1]\r\nroot        13  0.0  0.0      0     0 ?        S&lt;   Mar09   0:00  \\_ &#x5B;cpuset]\r\nroot        14  0.0  0.0      0     0 ?        S&lt;   Mar09   0:00  \\_ &#x5B;khelper]\r\nroot        15  0.0  0.0      0     0 ?        S    Mar09   0:00  \\_ &#x5B;kdevtmpfs]\r\nroot        16  0.0  0.0      0     0 ?        S&lt;   Mar09   0:00  \\_ &#x5B;netns]\r\nroot        17  0.0  0.0      0     0 ?        S    Mar09   0:03  \\_ &#x5B;kworker\/u:1]\r\nroot        18  0.0  0.0      0     0 ?        S    Mar09   0:14  \\_ &#x5B;sync_supers]\r\nroot        19  0.0  0.0      0     0 ?        S    Mar09   0:00  \\_ &#x5B;bdi-default]\r\nroot        20  0.0  0.0      0     0 ?        S&lt;   Mar09   0:00  \\_ &#x5B;kintegrityd]\r\nroot        21  0.0  0.0      0     0 ?        S&lt;   Mar09   0:00  \\_ &#x5B;kblockd]\r\nroot        22  0.0  0.0      0     0 ?        S&lt;   Mar09   0:00  \\_ &#x5B;ata_sff]\r\nroot        23  0.0  0.0      0     0 ?        S    Mar09   0:00  \\_ &#x5B;khubd]\r\nroot        24  0.0  0.0      0     0 ?        S&lt;   Mar09   0:00  \\_ &#x5B;md]\r\nroot        26  0.0  0.0      0     0 ?        S    Mar09   0:01  \\_ &#x5B;khungtaskd]\r\nroot        27  0.0  0.0      0     0 ?        S    Mar09   0:06  \\_ &#x5B;kswapd0]\r\nroot        28  0.0  0.0      0     0 ?        SN   Mar09   0:00  \\_ &#x5B;ksmd]\r\nroot        29  0.0  0.0      0     0 ?        SN   Mar09   0:00  \\_ &#x5B;khugepaged]\r\nroot        30  0.0  0.0      0     0 ?        S    Mar09   0:00  \\_ &#x5B;fsnotify_mark]\r\n\r\nroot@akat:\/home\/akat# ps aux -L \r\nUSER       PID   LWP %CPU NLWP %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND\r\nroot         1     1  0.0    1  0.0  10648   688 ?        Ss    5\u670809   1:52 init &#x5B;2]\r\nroot         2     2  0.0    1  0.0      0     0 ?        S     5\u670809   0:00 &#x5B;kthreadd]\r\nroot         3     3  0.0    1  0.0      0     0 ?        S     5\u670809   5:49 &#x5B;ksoftirqd\/0]\r\nroot         5     5  0.0    1  0.0      0     0 ?        S     5\u670809   0:00 &#x5B;kworker\/u:0]\r\nroot         6     6  0.0    1  0.0      0     0 ?        S     5\u670809   0:01 &#x5B;migration\/0]\r\nroot     24378 24378  0.0    1  0.1  11848  1524 ?        S     6\u670830   0:00 \/bin\/bash \/usr\/bin\/mysqld_safe\r\nmysql    24592 24592  0.0   26  9.2 935680 95016 ?        Sl    6\u670830   0:00 \/usr\/sbin\/mysqld --basedir=\/usr --datadir=\/var\/lib\/mysql --plugin-dir=\/usr\/lib\/mysql\/plugin --user=mysql --log-error=\/var\/lib\/mysql\/w\r\nww27032ue.err --pid-file=\/var\/run\/mysqld\/mysqld.pid --socket=\/var\/run\/mysqld\/mysqld.sock --port=3306\r\nmysql    24592 24594  0.0   26  9.2 935680 95016 ?        Sl    6\u670830   5:10 \/usr\/sbin\/mysqld --basedir=\/usr --datadir=\/var\/lib\/mysql --plugin-dir=\/usr\/lib\/mysql\/plugin --user=mysql --log-error=\/var\/lib\/mysql\/w\r\nww27032ue.err --pid-file=\/var\/run\/mysqld\/mysqld.pid --socket=\/var\/run\/mysqld\/mysqld.sock --port=3306\r\nmysql    24592 24595  0.0   26  9.2 935680 95016 ?        Sl    6\u670830   4:56 \/usr\/sbin\/mysqld --basedir=\/usr --datadir=\/var\/lib\/mysql --plugin-dir=\/usr\/lib\/mysql\/plugin --user=mysql --log-error=\/var\/lib\/mysql\/w\r\nww27032ue.err --pid-file=\/var\/run\/mysqld\/mysqld.pid --socket=\/var\/run\/mysqld\/mysqld.sock --port=3306\r\nmysql    24592 24596  0.0   26  9.2 935680 95016 ?        Sl    6\u670830   4:47 \/usr\/sbin\/mysqld --basedir=\/usr --datadir=\/var\/lib\/mysql --plugin-dir=\/usr\/lib\/mysql\/plugin --user=mysql --log-error=\/var\/lib\/mysql\/w\r\nww27032ue.err --pid-file=\/var\/run\/mysqld\/mysqld.pid --socket=\/var\/run\/mysqld\/mysqld.sock --port=3306\r\nmysql    24592 24597  0.0   26  9.2 935680 95016 ?        Sl    6\u670830   5:00 \/usr\/sbin\/mysqld --basedir=\/usr --datadir=\/var\/lib\/mysql --plugin-dir=\/usr\/lib\/mysql\/plugin --user=mysql --log-error=\/var\/lib\/mysql\/w\r\nww27032ue.err --pid-file=\/var\/run\/mysqld\/mysqld.pid --socket=\/var\/run\/mysqld\/mysqld.sock --port=3306\r\nmysql    24592 24598  0.0   26  9.2 935680 95016 ?        Sl    6\u670830   4:51 \/usr\/sbin\/mysqld --basedir=\/usr --datadir=\/var\/lib\/mysql --plugin-dir=\/usr\/lib\/mysql\/plugin --user=mysql --log-error=\/var\/lib\/mysql\/w\r\nww27032ue.err --pid-file=\/var\/run\/mysqld\/mysqld.pid --socket=\/var\/run\/mysqld\/mysqld.sock --port=3306\r\n\r\nroot@akat:\/home\/akat# ps -elf -L\r\n# PID:\u30d7\u30ed\u30bb\u30b9ID\r\n# LWP:\u8efd\u91cf\u30d7\u30ed\u30bb\u30b9(\u30b9\u30ec\u30c3\u30c9)\r\n# NLWP(Number of LWPs):\u30b9\u30ec\u30c3\u30c9\u672c\u6570\r\n# TIME:CPU\u4f7f\u7528\u6642\u9593\r\nF S UID        PID  PPID   LWP  C NLWP PRI  NI ADDR SZ WCHAN  STIME TTY          TIME CMD\r\n4 S root         1     0     1  0    1  80   0 -  2661 -       2013 ?        00:03:08 init &#x5B;2]\r\n1 S root         2     0     2  0    1  80   0 -     0 -       2013 ?        00:00:00 &#x5B;kthreadd]\r\n1 S root         3     2     3  0    1  80   0 -     0 -       2013 ?        00:06:30 &#x5B;ksoftirqd\/0]\r\n1 S root         5     2     5  0    1  80   0 -     0 -       2013 ?        00:00:00 &#x5B;kworker\/u:0]\r\n1 S root         6     2     6  0    1 -40   - -     0 -       2013 ?        00:00:01 &#x5B;migration\/0]\r\n5 S root         7     2     7  0    1 -40   - -     0 -       2013 ?        00:01:05 &#x5B;watchdog\/0]\r\n1 S root         8     2     8  0    1 -40   - -     0 -       2013 ?        00:00:01 &#x5B;migration\/1]\r\n4 S mongodb   1531     1  1531  0    9  80   0 - 133798 -      2\u670816 ?      01:20:26 \/usr\/bin\/mongod --unixSocketPrefix=\/var\/run\/mongodb --config \/etc\/mongodb\r\n1 S mongodb   1531     1  1533  0    9  80   0 - 133798 -      2\u670816 ?      00:00:00 \/usr\/bin\/mongod --unixSocketPrefix=\/var\/run\/mongodb --config \/etc\/mongodb\r\n1 S mongodb   1531     1  1534  0    9  80   0 - 133798 -      2\u670816 ?      00:00:07 \/usr\/bin\/mongod --unixSocketPrefix=\/var\/run\/mongodb --config \/etc\/mongodb\r\n1 S mongodb   1531     1  1535  0    9  80   0 - 133798 -      2\u670816 ?      00:00:00 \/usr\/bin\/mongod --unixSocketPrefix=\/var\/run\/mongodb --config \/etc\/mongodb\r\n1 S mongodb   1531     1  1536  0    9  80   0 - 133798 -      2\u670816 ?      00:43:25 \/usr\/bin\/mongod --unixSocketPrefix=\/var\/run\/mongodb --config \/etc\/mongodb\r\n1 S mongodb   1531     1  1537  0    9  80   0 - 133798 -      2\u670816 ?      00:00:21 \/usr\/bin\/mongod --unixSocketPrefix=\/var\/run\/mongodb --config \/etc\/mongodb\r\n1 S mongodb   1531     1  1538  0    9  80   0 - 133798 -      2\u670816 ?      00:00:29 \/usr\/bin\/mongod --unixSocketPrefix=\/var\/run\/mongodb --config \/etc\/mongodb\r\n1 S mongodb   1531     1  1539  0    9  80   0 - 133798 -      2\u670816 ?      00:00:01 \/usr\/bin\/mongod --unixSocketPrefix=\/var\/run\/mongodb --config \/etc\/mongodb\r\n1 S mongodb   1531     1  1540  0    9  80   0 - 133798 -      2\u670816 ?      01:15:33 \/usr\/bin\/mongod --unixSocketPrefix=\/var\/run\/mongodb --config \/etc\/mongodb\r\n<\/pre>\n<h2>dstat<\/h2>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nroot@hostname:\/home\/shimizu# aptitude install dstat\r\nroot@hostname:\/home\/shimizu# dstat -Tclmdrns # CPU\u3084\u30e1\u30e2\u30ea\u3001\u30c7\u30a3\u30b9\u30af\u60c5\u5831\u3092\u4e00\u7b87\u6240\u3067\u78ba\u8a8d\u53ef\u80fd\r\n--epoch--- ----total-cpu-usage---- ---load-avg--- ------memory-usage----- -dsk\/total- --io\/total- -net\/total- ----swap---\r\n  epoch   |usr sys idl wai hiq siq| 1m   5m  15m | used  buff  cach  free| read  writ| read  writ| recv  send| used  free\r\n1406543963|  0   0 100   0   0   0|   0 0.01 0.05| 194M 13.6M  212M  583M|1160B 5067B|0.08  0.38 |   0     0 | 130M 1752M\r\n1406543964|  0   0 100   0   0   0|   0 0.01 0.05| 194M 13.6M  212M  583M|   0     0 |   0     0 |1042B  106B| 130M 1752M\r\n1406543967|  0   0  99   0   0   0|   0 0.01 0.05| 194M 13.6M  212M  583M|   0     0 |   0     0 |1162B  506B| 130M 1752M\r\n1406543968|  0   1 100   0   0   0|   0 0.01 0.05| 194M 13.6M  212M  583M|   0     0 |   0     0 |1162B  506B| 130M 1752M\r\n\r\nroot@hostname:\/home\/shimizu# dstat --output output.csv -Tclmdrns # CSV\u51fa\u529b\u3082\u53ef\u80fd\r\n--epoch--- ----total-cpu-usage---- ---load-avg--- ------memory-usage----- -dsk\/total- --io\/total- -net\/total- ----swap---\r\n  epoch   |usr sys idl wai hiq siq| 1m   5m  15m | used  buff  cach  free| read  writ| read  writ| recv  send| used  free\r\n1406544001|  0   0 100   0   0   0|   0 0.01 0.05| 194M 13.6M  212M  583M|1160B 5067B|0.08  0.38 |   0     0 | 130M 1752M\r\n1406544002|  0   0 100   0   0   0|   0 0.01 0.05| 194M 13.6M  212M  583M|   0     0 |   0     0 |1504B  106B| 130M 1752M\r\n1406544003|  0   0 100   0   0   0|   0 0.01 0.05| 194M 13.6M  212M  583M|   0     0 |   0     0 |1162B 1290B| 130M 1752M\r\n\r\n<\/pre>\n<pre class=\"brush: plain; title: mysql\u306e\u72b6\u614b\u3082\u53d6\u5f97\u53ef\u80fd; notranslate\" title=\"mysql\u306e\u72b6\u614b\u3082\u53d6\u5f97\u53ef\u80fd\">\r\nroot@hostname:\/home\/shimizu# which mysql # mysql\u30b3\u30de\u30f3\u30c9\u304c\/usr\/bin\/mysql\u306b\u306a\u3044\u3068\u30c0\u30e1\u3089\u3057\u3044\r\n\/usr\/bin\/mysql\r\nroot@hostname:\/home\/shimizu# export DSTAT_MYSQL='-uroot -pTc90lm9drn -h127.0.0.1'\r\nroot@hostname:\/home\/shimizu# env | grep &quot;DSTAT_MYSQL&quot;\r\nDSTAT_MYSQL=-uroot -pTc90lm9drn -h127.0.0.1\r\nroot@hostname:\/home\/shimizu# dstat -T --innodb-io --innodb-buffer --innodb-ops # innodb\u60c5\u5831\u3092\u8868\u793a\r\n--epoch--- innodb-io-o innodb-pool ---innodb-ops--\r\n  epoch   |rea wri syn|crt rea wri|ins upd del rea\r\n1406542570|  0   0   0|  0 0.0 0.0|  0   0   0   0\r\n1406542571|  0   0   0|  0   0   0|  0   0   0   0\r\n1406542572|  0   0   0|  0   0   0|  0   0   0   0\r\n1406542573|  0   0   0|  0   0   0|  0   0   0   0\r\n1406542574|  0   0   0|  0   0   0|  0   0   0   0\r\n1406542575|  0   0   0|  0   0   0|  0   0   0   0\r\n# ---innodb-ops-- : show innodb operations counters\r\n# --innodb-io : show innodb I\/O stats\r\n# --innodb-buffer : show innodb buffer stats\r\n\r\nroot@hostname:\/home\/shimizu# aptitude install python-mysqldb\r\nroot@hostname:\/home\/shimizu# export DSTAT_MYSQL_USER=root\r\nroot@hostname:\/home\/shimizu# export DSTAT_MYSQL_PWD=Tc90lm9drn\r\nroot@hostname:\/home\/shimizu# export DSTAT_MYSQL_HOST='127.0.0.1'\r\nroot@hostname:\/home\/shimizu# dstat -T --mysql5-cmds --mysql5-io --mysql5-keys # mysql5\u60c5\u5831\u8868\u793a\r\n--epoch--- ------mysql5-cmds------ -mysql5-io- ---mysql5-key-status----\r\n  epoch   | sel   ins   upd   del | recv  sent|used read writ rreq wreq\r\n1406543060|    0     0     0     0|0.00  0.02 |  0    0    0    0    0\r\n1406543061|   70     0     0     0|13.9k  143k|  0    0    0    0    0\r\n1406543062|   70     0     0     0|14.1k  144k|  0    0    0    0    0\r\n1406543063|   70     0     0     0|14.3k  145k|  0    0    0    0    0\r\n<\/pre>\n<h2>htop<\/h2>\n<p>top\u30b3\u30de\u30f3\u30c9\u306e\u6a5f\u80fd\u5f37\u5316\u7248<\/p>\n<pre class=\"brush: plain; title: \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5; notranslate\" title=\"\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\">\r\nroot@hostname:\/home\/admin# aptitude install htop strace\r\n\u4ee5\u4e0b\u306e\u65b0\u898f\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059:\r\n  htop strace\r\n<\/pre>\n<p>htop\u5b9f\u884c\u7d50\u679c<br \/>\n<a href=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2014\/03\/2014-09-05_010310.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2014\/03\/2014-09-05_010310.png\" alt=\"2014-09-05_010310\" width=\"979\" height=\"409\" class=\"alignnone size-full wp-image-885\" \/><\/a><\/p>\n<p>[F5]\u3067\u30c4\u30ea\u30fc\u8868\u793a<br \/>\n<a href=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2014\/03\/2014-09-04_120357.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2014\/03\/2014-09-04_120357.png\" alt=\"2014-09-04_120357\" width=\"1317\" height=\"488\" class=\"alignnone size-full wp-image-884\" \/><\/a><\/p>\n<p>[F6]\u3067\u30bd\u30fc\u30c8\u53ef\u80fd<br \/>\n<a href=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2014\/03\/2014-09-05_005613.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2014\/03\/2014-09-05_005613.png\" alt=\"2014-09-05_005613\" width=\"974\" height=\"514\" class=\"alignnone size-full wp-image-887\" \/><\/a><\/p>\n<p>[s]\u3067strace\u306e\u8868\u793a<br \/>\n<a href=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2014\/03\/2014-09-05_010042.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2014\/03\/2014-09-05_010042.png\" alt=\"2014-09-05_010042\" width=\"976\" height=\"367\" class=\"alignnone size-full wp-image-888\" \/><\/a><\/p>\n<p>[k]\u3067\u30b7\u30b0\u30ca\u30eb\u3092\u9001\u308b\u3053\u3068\u304c\u53ef\u80fd<br \/>\n<a href=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2014\/03\/2014-09-05_010635.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2014\/03\/2014-09-05_010635.png\" alt=\"2014-09-05_010635\" width=\"970\" height=\"490\" class=\"alignnone size-full wp-image-890\" \/><\/a><\/p>\n<h2>iftop<\/h2>\n<p>\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u91cf\u3092\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u76e3\u8996\u3059\u308b\u30c4\u30fc\u30eb<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nroot@hostname:\/home\/admin# aptitude install iftop\r\n\u4ee5\u4e0b\u306e\u65b0\u898f\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059:\r\n  iftop\r\n\u66f4\u65b0: 0 \u500b\u3001\u65b0\u898f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb: 1 \u500b\u3001\u524a\u9664: 0 \u500b\u3001\u4fdd\u7559: 0 \u500b\u3002\r\n\r\nroot@hostname:\/home\/admin#  iftop -i eth0\r\n                              195kb                         391kb                         586kb                         781kb                     977kb\r\nmqqqqqqqqqqqqqqqqqqqqqqqqqqqqqvqqqqqqqqqqqqqqqqqqqqqqqqqqqqqvqqqqqqqqqqqqqqqqqqqqqqqqqqqqqvqqqqqqqqqqqqqqqqqqqqqqqqqqqqqvqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq\r\nip-172-31-3-201.ap-northeast-1.compute.internal               =&gt; 8.3.3.1.ap.yournet.ne.jp                                       26.1kb  11.0kb  4.10kb\r\n                                                              &lt;=                                                                3.77kb  1.64kb   808b\r\nip-172-31-3-201.ap-northeast-1.compute.internal               =&gt; 17.xrfuwuqi.com                                                   0b      0b   14.8kb\r\n                                                              &lt;=                                                                   0b      0b    939b\r\nip-172-31-3-201.ap-northeast-1.compute.internal               =&gt; akismet.com                                                       0b      0b   1.39kb\r\n                                                              &lt;=                                                                   0b      0b    119b\r\nip-172-31-3-201.ap-northeast-1.compute.internal               =&gt; ip-172-31-0-2.ap-northeast-1.compute.internal                     0b      0b     44b\r\n                                                              &lt;=                                                                   0b      0b     74b\r\n\r\n\r\nqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq\r\nTX:             cum:    107kB   peak:    153kb                                                                         rates:   26.1kb  11.0kb  20.4kb\r\nRX:                    11.0kB           15.5kb                                                                                  3.77kb  1.64kb  1.89kb\r\nTOTAL:                  118kB            162kb                                                                                  29.8kb  12.7kb  22.3kb\r\n\r\n### \u4f7f\u7528\u4f8b ###\r\nroot@hostname:\/home\/admin# iftop -i eth0 -f &quot;dst port 80&quot; # HTTP\u901a\u4fe1\u3060\u3051\u306e\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092\u78ba\u8a8d\u3059\u308b\r\nroot@hostname:\/home\/admin# iftop -i eth0 -nPN # -n:\u30db\u30b9\u30c8\u540d\u3092\u89e3\u6c7a\u3057\u306a\u3044\u3001-P:\u30dd\u30fc\u30c8\u756a\u53f7\u3082\u8868\u793a\u3001-N:\u30dd\u30fc\u30c8\u756a\u53f7\u304b\u3089\u30b5\u30fc\u30d3\u30b9\u540d\u3078\u5909\u63db\u3057\u306a\u3044\r\n<\/pre>\n<p>TX:\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u306e\u9001\u4fe1\u91cf<br \/>\nRX:\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u306e\u53d7\u4fe1\u6599<br \/>\ncum:iftop\u3092\u8d77\u52d5\u3057\u3066\u304b\u3089\u306e\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u7dcf\u91cf(\u4e0a\u308a\u3001\u4e0b\u308a\u5225)<br \/>\nTOTAL:iftop\u3092\u8d77\u52d5\u3057\u3066\u304b\u3089\u306e\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u7dcf\u91cf<br \/>\npeak:\u77ac\u9593\u306b\u767a\u751f\u3057\u305f\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u306e\u6700\u5927\u91cf<br \/>\nrates:\u5e73\u5747\u5024\u3002\u5de6\u304b\u3089\u6700\u8fd1\u306e2\u79d2\u3001\u6700\u8fd1\u306e10\u79d2\u3001\u6700\u8fd1\u306e40\u79d2\u306e\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u91cf\u306e\u5e73\u5747\u5024<\/p>\n<h2>free<\/h2>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nroot@hostname:\/home\/shimizu# free\r\ntotal used free shared buffers cached\r\nMem: 8199468 8123924 75544 0 142620 2629156\r\n-\/+ buffers\/cache: 5352148 2847320\r\nSwap: 6538232 129024 6409208\r\n# swap\u306b\u306f\u307f\u51fa\u3057\u3066\u3044\u305f\u3068\u3057\u3066\u3082\u3001\u305d\u308c\u3060\u3051\u3067\u306f \u30e1\u30e2\u30ea\u4e0d\u8db3\u306e\u8a3c\u62e0\u306b\u306f\u306a\u3089\u306a\u3044\r\n# \u3042\u307e\u308a\u4f7f\u308f\u306a\u3044\u30b3\uff0d\u30c9\u3092\u8ffd\u3044\u51fa\u3057\u3066 cache \u3068 buffre \u306b\u8ee2\u7528\u3059\u308b\u305f\u3081\r\n# swap\u3092\u5229\u7528\u3057\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u306fvmstat\u306a\u3069\u3067\u78ba\u8a8d\u53ef\u80fd\r\n<\/pre>\n<h2>sar<\/h2>\n<p>sysstat\u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u4ed8\u5c5e\u3057\u3066\u304a\u308a\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068sadc\u3068\u3044\u3046\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u81ea\u52d5\u3067\u30ab\u30fc\u30cd\u30eb\u304b\u3089\u30ec\u30dd\u30fc\u30c8\u3092\u53d6\u5f97\u3059\u308b<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nroot@akat:\/home\/akat# sar -P ALL\r\n\u5e73\u5747\u5024:      CPU     %user     %nice   %system   %iowait    %steal     %idle\r\n\u5e73\u5747\u5024:      all      4.90      0.02      1.16      0.15      0.00     93.77\r\n\u5e73\u5747\u5024:        0      7.36      0.04      1.42      0.25      0.00     90.93\r\n\u5e73\u5747\u5024:        1      2.45      0.00      0.89      0.06      0.00     96.60\r\n<\/pre>\n<h2>vmstat<\/h2>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nroot@akat:\/home\/akat# vmstat 1 5 # 1\u79d2\u6bce\u306b5\u56de\r\n# io:bi \u30d6\u30ed\u30c3\u30af\u30c7\u30d0\u30a4\u30b9\u304b\u3089\u53d7\u3051\u53d6\u3063\u305f\u30d6\u30ed\u30c3\u30af(blocks\/s)\r\n# io:bo \u30d6\u30ed\u30c3\u30af\u30c7\u30d0\u30a4\u30b9\u306b\u9001\u3089\u308c\u305f\u30d6\u30ed\u30c3\u30af(blocks\/s)\r\nprocs -----------memory---------- ---swap-- -----io---- -system-- ----cpu----\r\n r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa\r\n 0  0  41460 236444 117120 366144    0    0     1     4   12    6  2  1 98  0\r\n 0  0  41460 236436 117120 366168    0    0     0     0   53   98  0  0 99  0\r\n 0  0  41460 236436 117120 366168    0    0     0     0   51   89  0  0 100  0\r\n 1  0  41460 215356 117120 366168    0    0     0     0  325  121 39 11 50  0\r\n 1  0  41460 223076 117120 366168    0    0     0     0  351  197 41  8 51  0\r\n\r\nroot@hostname:\/home\/shimizu# tune2fs -l \/dev\/xvda | grep &quot;Block size&quot;\r\nBlock size: 4096\r\n# \u30d6\u30ed\u30c3\u30af\u30b5\u30a4\u30ba\u304c4KB\u3001\u3064\u307e\u308aio=1\u3060\u30684KB\/s\r\n\r\nroot@hostname:\/home\/shimizu# aptitude install hdparm\r\nroot@hostname:\/home\/shimizu# hdparm -t \/dev\/xvda # -T\u30aa\u30d7\u30b7\u30e7\u30f3\u3060\u3068\u3001Linux\u306e\u30c7\u30a3\u30b9\u30af\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u5229\u7528\u3059\u308b\r\n\r\n\/dev\/xvda:\r\n Timing buffered disk reads:  66 MB in  3.42 seconds =  19.30 MB\/sec\r\n\r\n# read\u901f\u5ea6\u306fhdparm\u3067\u8a08\u6e2c\u3067\u304d\u300120MB\/s\u53ef\u80fd\u3067\u3042\u308b\u305f\u3081\u4f59\u88d5\u3067\u3042\u308b\u3053\u3068\u304c\u308f\u304b\u308b\r\n\r\nroot@hostname2:\/home\/shimizu# vmstat -p \/dev\/sdb1 # \u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\r\nsdb1          reads   read sectors  writes    requested writes\r\n               13023    1079802       6993     837048\r\n\r\n# reads: \u3053\u306e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u306b\u767a\u884c\u3055\u308c\u305f\u8aad\u307f\u8fbc\u307f\u306e\u7dcf\u6570\r\n# read sectors: \u3053\u306e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u304b\u3089\u8aad\u307f\u8fbc\u307e\u308c\u305f\u7dcf\u30bb\u30af\u30bf\u6570\r\n# writes : \u3053\u306e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u306b\u767a\u884c\u3055\u308c\u305f\u66f8\u304d\u51fa\u3057\u306e\u7dcf\u6570\r\n# requested writes: \u3053\u306e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u3078\u306e\u66f8\u304d\u51fa\u3057\u8981\u6c42\u306e\u7dcf\u6570\r\n<\/pre>\n<h2>iotop<\/h2>\n<p>I\/O\u306e\u72b6\u614b\u3092\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u3067\u78ba\u8a8d\u3067\u304d\u308b<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nroot@hostname:\/home\/admin# aptitude install iotop\r\nroot@hostname:\/home\/admin# iotop\r\nTotal DISK READ:       0.00 B\/s | Total DISK WRITE:       0.00 B\/s\r\n  TID  PRIO  USER     DISK READ  DISK WRITE  SWAPIN     IO&gt;    COMMAND\r\n13760 be\/4 mysql       0.00 B\/s   73.28 K\/s  0.00 %  5.18 % mysqld --basedir=\/usr --datadir=\/var\/lib\/mysql --plugin-dir=\/usr\/lib\/my~r\/run\/mysqld\/mysqld.pid --socket=\/var\/run\/mysqld\/mysqld.sock --port=3306\r\n11201 be\/3 www-data    3.86 K\/s    0.00 B\/s  0.00 %  1.86 % php-fpm: pool www\r\n11200 be\/3 www-data    3.86 K\/s    0.00 B\/s  0.00 %  1.62 % php-fpm: pool www\r\n11242 be\/4 www-data    0.00 B\/s    7.71 K\/s  0.00 %  0.00 % nginx: worker process\r\n    1 be\/4 root        0.00 B\/s    0.00 B\/s  0.00 %  0.00 % init &#x5B;2]\r\n    2 be\/4 root        0.00 B\/s    0.00 B\/s  0.00 %  0.00 % &#x5B;kthreadd]\r\n    3 be\/4 root        0.00 B\/s    0.00 B\/s  0.00 %  0.00 % &#x5B;ksoftirqd\/0]\r\n    4 be\/4 root        0.00 B\/s    0.00 B\/s  0.00 %  0.00 % &#x5B;kworker\/0:0]\r\n    5 be\/4 root        0.00 B\/s    0.00 B\/s  0.00 %  0.00 % &#x5B;kworker\/u:0]\r\n    6 rt\/4 root        0.00 B\/s    0.00 B\/s  0.00 %  0.00 % &#x5B;migration\/0]\r\n    7 rt\/4 root        0.00 B\/s    0.00 B\/s  0.00 %  0.00 % &#x5B;watchdog\/0]\r\n    8 be\/0 root        0.00 B\/s    0.00 B\/s  0.00 %  0.00 % &#x5B;cpuset]\r\n    9 be\/0 root        0.00 B\/s    0.00 B\/s  0.00 %  0.00 % &#x5B;khelper]\r\n<\/pre>\n<p>\u8868\u793a\u4e2d\u306b\u2190\u2192\u3067\u30bd\u30fc\u30c8\u9805\u76ee\u3092\u9078\u629e\u53ef\u80fd<br \/>\n-o: \u30c7\u30a3\u30b9\u30afI\/O\u3092\u767a\u751f\u3055\u305b\u305f\u30d7\u30ed\u30bb\u30b9\u3060\u3051\u8868\u793a<br \/>\n-b: \u30c7\u30a3\u30b9\u30afI\/O\u3092\u6642\u7cfb\u5217\u306b\u8868\u793a<br \/>\n-d: \u8868\u793a\u3059\u308b\u9593\u9694(\u79d2)\u30021\u79d2\u672a\u6e80\u306e\u6307\u5b9a\u53ef\u80fd<br \/>\n-t: \u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u3068\u4e00\u7dd2\u306b\u30c7\u30a3\u30b9\u30afI\/O\u3092\u8868\u793a<\/p>\n<h2>iostat<\/h2>\n<p>\u3069\u306e\u30c7\u30a3\u30b9\u30af\u30c7\u30d0\u30a4\u30b9\u304c\u30dc\u30c8\u30eb\u30cd\u30c3\u30af\u3068\u306a\u3063\u3066\u3044\u308b\u304b\u3092\u8abf\u67fb\u3059\u308b<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nroot@hostname:\/home\/shimizu# iostat 1 2 # \u76e3\u8996\u611f\u899a \u76e3\u8996\u56de\u6570\r\nLinux 3.2.0-4-amd64 (hostname)   2014\u5e7408\u670803\u65e5  _x86_64_        (1 CPU)\r\n\r\navg-cpu:  %user   %nice %system %iowait  %steal   %idle\r\n           0.30    0.00    0.02    0.05    0.02   99.60\r\n\r\nDevice:            tps    kB_read\/s    kB_wrtn\/s    kB_read    kB_wrtn\r\nxvda              0.34         0.33         4.70    1195941   17262316\r\n\r\navg-cpu:  %user   %nice %system %iowait  %steal   %idle\r\n           0.00    0.00    0.00    3.00    0.00   97.00\r\n\r\nDevice:            tps    kB_read\/s    kB_wrtn\/s    kB_read    kB_wrtn\r\nxvda              2.00        12.00         0.00         12          0\r\n\r\n\r\nroot@hostname:\/home\/shimizu# cat \/etc\/mtab # \u73fe\u5728\u30de\u30a6\u30f3\u30c8\u3057\u3066\u3044\u308b\u30c7\u30a3\u30b9\u30af\u60c5\u5831\u3092\u8868\u793a\r\nrootfs \/ rootfs rw 0 0\r\nsysfs \/sys sysfs rw,nosuid,nodev,noexec,relatime 0 0\r\nproc \/proc proc rw,nosuid,nodev,noexec,relatime 0 0\r\nudev \/dev devtmpfs rw,relatime,size=10240k,nr_inodes=72449,mode=755 0 0\r\ndevpts \/dev\/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0\r\ntmpfs \/run tmpfs rw,nosuid,noexec,relatime,size=61108k,mode=755 0 0\r\n\/dev\/xvda \/ ext4 rw,relatime,user_xattr,barrier=1,data=ordered 0 0\r\ntmpfs \/run\/lock tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k 0 0\r\ntmpfs \/run\/shm tmpfs rw,nosuid,nodev,noexec,relatime,size=122200k 0 0\r\n\r\nroot@hostname:\/home\/shimizu# iostat -x # \u62e1\u5f35\u60c5\u5831\u3082\u8868\u793a\r\nLinux 3.2.0-4-amd64 (hostname)   2014\u5e7408\u670803\u65e5  _x86_64_        (1 CPU)\r\n\r\navg-cpu:  %user   %nice %system %iowait  %steal   %idle\r\n           0.30    0.00    0.02    0.05    0.02   99.60\r\n\r\nDevice:         rrqm\/s   wrqm\/s     r\/s     w\/s    rkB\/s    wkB\/s avgrq-sz avgqu-sz   await r_await w_await  svctm  %util\r\nxvda              0.00     0.15    0.02    0.32     0.33     4.70    29.82     0.01   15.64    8.25   16.06   1.75   0.06\r\n<\/pre>\n<h2>pidstat<\/h2>\n<p>\u30d7\u30ed\u30bb\u30b9\u5358\u4f4d\u306e\u30ea\u30bd\u30fc\u30b9\u4f7f\u7528\u91cf\u3092\u8abf\u3079\u308b<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nroot@hostname:\/home\/shimizu# pidstat -p 9654 1 3 -t # 1\u79d2\u9593\u9694\u30673\u56de\u8868\u793a\u3059\u308b\u3002-t:\u30b9\u30ec\u30c3\u30c9\u60c5\u5831\u3082\u8868\u793a\u3059\u308b\r\nLinux 3.2.0-4-amd64 (hostname)        2014\u5e7406\u670813\u65e5  _x86_64_        (2 CPU)\r\n\r\n00\u664249\u520618\u79d2      TGID       TID    %usr %system  %guest    %CPU   CPU  Command\r\n00\u664249\u520619\u79d2      9654         -    0.00    0.00    0.00    0.00     1  nginx\r\n00\u664249\u520619\u79d2         -      9654    0.00    0.00    0.00    0.00     1  |__nginx\r\n\r\n00\u664249\u520619\u79d2      TGID       TID    %usr %system  %guest    %CPU   CPU  Command\r\n00\u664249\u520620\u79d2      9654         -    0.00    0.00    0.00    0.00     1  nginx\r\n00\u664249\u520620\u79d2         -      9654    0.00    0.00    0.00    0.00     1  |__nginx\r\n\r\n00\u664249\u520620\u79d2      TGID       TID    %usr %system  %guest    %CPU   CPU  Command\r\n00\u664249\u520621\u79d2      9654         -    0.00    0.00    0.00    0.00     1  nginx\r\n00\u664249\u520621\u79d2         -      9654    0.00    0.00    0.00    0.00     1  |__nginx\r\n\r\n\u5e73\u5747\u5024:       TGID       TID    %usr %system  %guest    %CPU   CPU  Command\r\n\u5e73\u5747\u5024:       9654         -    0.00    0.00    0.00    0.00     -  nginx\r\n\u5e73\u5747\u5024:          -      9654    0.00    0.00    0.00    0.00     -  |__nginx\r\n<\/pre>\n<h2>slabtop<\/h2>\n<p>\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u306b\u30ab\u30fc\u30cd\u30eb slab \u30ad\u30e3\u30c3\u30b7\u30e5\u60c5\u5831\u3092\u8868\u793a\u3059\u308b<br \/>\n\u30ab\u30fc\u30cd\u30eb\u306f\u3001\u30e1\u30e2\u30ea\u306e\u5229\u7528\u52b9\u7387\u3092\u9ad8\u3081\u308b\u305f\u3081\u306b\u3001\u30ab\u30fc\u30cd\u30eb\u7a7a\u9593\u5185\u306e\u3055\u307e\u3056\u307e\u306a\u30e1\u30e2\u30ea\u8cc7\u6e90\u3092\u3001\u8cc7\u6e90\u3054\u3068\u306b\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u3059\u308b\u4ed5\u7d44\u307f\u304c\u3042\u308b<br \/>\n\u3053\u308c\u3092\u300c\u30b9\u30e9\u30d6\u30ad\u30e3\u30c3\u30b7\u30e5\u300d\u3068\u547c\u3076<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nroot@hostname:\/home\/shimizu# slabtop\r\n Active \/ Total Objects (% used)    : 225233 \/ 262764 (85.7%)\r\n Active \/ Total Slabs (% used)      : 17262 \/ 17262 (100.0%)\r\n Active \/ Total Caches (% used)     : 112 \/ 247 (45.3%)\r\n Active \/ Total Size (% used)       : 55015.65K \/ 63163.77K (87.1%)\r\n Minimum \/ Average \/ Maximum Object : 0.02K \/ 0.24K \/ 4096.00K\r\n\r\n  OBJS ACTIVE  USE OBJ SIZE  SLABS OBJ\/SLAB CACHE SIZE NAME\r\n124357 106273  85%    0.10K   3361       37     13444K buffer_head\r\n 31928  27028  84%    0.85K   7982        4     31928K ext4_inode_cache\r\n 28960  28960 100%    0.19K   1448       20      5792K dentry\r\n  9639   9618  99%    0.14K    357       27      1428K sysfs_dir_cache\r\n<\/pre>\n<h2>ipcs<\/h2>\n<p>\u30d7\u30ed\u30bb\u30b9\u9593\u901a\u4fe1\u6a5f\u80fd\u306e\u72b6\u6cc1\u3092\u5831\u544a\u3057\u307e\u3059<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nroot@hostname:\/home\/shimizu# ipcs\r\n------ Shared Memory Segments --------\r\nkey        shmid      owner      perms      bytes      nattch     status\r\n0x6c0104cc 3342336    zabbix     600        117192     6\r\n0x0101098b 3178497    root       600        1200712    4\r\n\r\n------ Semaphore Arrays --------\r\nkey        semid      owner      perms      nsems\r\n0x7a0104cc 3801088    zabbix     600        12\r\n0x00000000 3604481    www-data   600        1\r\n0x00000000 3637250    www-data   600        1\r\n\r\n------ Message Queues --------\r\nkey        msqid      owner      perms      used-bytes   messages\r\n<\/pre>\n<p>\u30bb\u30de\u30d5\u30a9\u306e\u4f7f\u7528\u72b6\u6cc1\u3092\u78ba\u8a8d\u53ef\u80fd<br \/>\n\u30bb\u30de\u30d5\u30a9\u306f\u3001\u8cc7\u6e90\u306e\u500b\u6570\u3092\u7ba1\u7406\u3059\u308b\u30ab\u30a6\u30f3\u30bf\uff08\u6574\u6570\u5024\uff09\u3067\u3042\u308a\u3001\u3053\u308c\u306b\u3088\u3063\u3066\u8cc7\u6e90\u306e\u6392\u4ed6\u7684\u5236\u5fa1\u3092\u5b9f\u73fe\u3057\u3066\u3044\u308b<br \/>\n\u5171\u6709\u30e1\u30e2\u30ea\u30fc\u306a\u3069\u306e\u30c1\u30a7\u30c3\u30af\u3059\u308b\u5834\u5408\u306b\u5229\u7528\u3059\u308b<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nroot@hostname:\/home\/shimizu# ipcs -s\r\n------ Semaphore Arrays --------\r\nkey        semid      owner      perms      nsems\r\n0x7a0104cc 3801088    zabbix     600        12\r\n0x00000000 3604481    www-data   600        1\r\n0x00000000 3637250    www-data   600        1\r\n<\/pre>\n<h2>fio<\/h2>\n<p>Fusion-io\u793e\u63a8\u5968\u306e\u30c6\u30b9\u30c8\u30c4\u30fc\u30eb<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nroot@hostname:\/boot# aptitude install fio\r\n\u4ee5\u4e0b\u306e\u65b0\u898f\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059:\r\n  fio libibverbs1{a} librdmacm1{a}\r\n\r\nroot@hostname:\/usr\/local\/src# fio -rw=randwrite -bs=16k -size=100m -iodepth=32 -directory=\/tmp -direct=1 -invalidate=1 -runtime=300 -numjobs=8 -name=iotest -ioengine=libaio -group_reporting\r\n# direct: \u30c0\u30a4\u30ec\u30af\u30c8\u8ee2\u9001\u3059\u308b\u304b\u3069\u3046\u304b\r\n# rw:\u8aad\u307f\u66f8\u304d\u306e\u30bf\u30a4\u30d7\u3001read\u30fbwrite\u30fbrandread\u30fbrandwrite\u30fbreadwrite\u30fbrandrw\u304c\u3042\u308b\r\n# bs: \u8aad\u307f\u66f8\u304d\u306e\u5358\u4f4d(\u30d6\u30ed\u30c3\u30af\u30b5\u30a4\u30ba)\r\n# size: \u30d5\u30a1\u30a4\u30ebI\/O\u306e\u30c8\u30fc\u30bf\u30eb\u30b5\u30a4\u30ba\r\n# iodepth: \u3069\u308c\u4f4d\u4e26\u884c\u3057\u3066\u975e\u540c\u671f\u8aad\u307f\u66f8\u304d\u3092\u884c\u3046\u304b\r\n# directory: IO\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u306e\u5bfe\u8c61\r\n# numjobs: \u4e26\u5217\u51e6\u7406\u3055\u305b\u308bjob\u6570\r\n# direct: \u30c0\u30a4\u30ec\u30af\u30c8\u8ee2\u9001\u3059\u308b\u304b\u3069\u3046\u304b\u30011\u3060\u3068non-bufferd (O_DIRECT)\u3001\u901a\u5e38\u306f1\u306b\u3059\u308b\r\n# invalidate: \u30d0\u30c3\u30d5\u30a1\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u7121\u52b9\u5316\r\n# runtime: \u30c6\u30b9\u30c8\u306e\u5b9f\u884c\u6642\u9593\u306e\u4e0a\u9650\r\n# ioengine: \u5229\u7528\u3059\u308bIO\u30a8\u30f3\u30b8\u30f3\r\n# group_reporting: \u30ec\u30dd\u30fc\u30c8\u3092job\u3054\u3068\u3067\u306f\u306a\u304f\u30b0\u30eb\u30fc\u30d7\u5358\u4f4d\u3067\u51fa\u529b\r\n# name: job\u958b\u59cb\u306b\u5fc5\u8981\u306ajob\u540d\u3001\u30c6\u30b9\u30c8\u3084\u7d50\u679c\u306b\u306f\u5f71\u97ff\u3057\u306a\u3044\r\n\r\niotest: (g=0): rw=randrw, bs=16K-16K\/16K-16K, ioengine=libaio, iodepth=32\r\n...\r\niotest: (g=0): rw=randrw, bs=16K-16K\/16K-16K, ioengine=libaio, iodepth=32\r\n2.0.8\r\nStarting 8 processes\r\nJobs: 1 (f=1): &#x5B;______m_] &#x5B;100.0% done] &#x5B;8784K\/8688K \/s] &#x5B;549 \/543  iops] &#x5B;eta 00m:00s]\r\niotest: (groupid=0, jobs=8): err= 0: pid=26122\r\n  read : io=408240KB, bw=2453.1KB\/s, iops=153 , runt=166361msec # \u5e73\u5747\u306e\u5e2f\u57df\u5e45(bandwidth)\r\n    slat (usec): min=9 , max=3480.9K, avg=16822.74, stdev=147536.37 \r\n    clat (usec): min=2 , max=9040.2K, avg=657244.35, stdev=1035805.88 # \u51e6\u7406\u5b8c\u4e86\u307e\u3067\u306b\u8981\u3057\u305f\u30ec\u30a4\u30c6\u30f3\u30b7(completion latency-\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u9001\u4fe1\u304b\u3089\u305d\u306e\u51e6\u7406\u7d42\u4e86\u307e\u3067\u306b\u8981\u3057\u305f\u9045\u5ef6\u6642\u9593)\r\n     lat (usec): min=14 , max=9040.3K, avg=674068.49, stdev=1059305.72\r\n    clat percentiles (usec):\r\n     |  1.00th=&#x5B;    3],  5.00th=&#x5B; 9920], 10.00th=&#x5B;45312], 20.00th=&#x5B;78336],\r\n     | 30.00th=&#x5B;111104], 40.00th=&#x5B;162816], 50.00th=&#x5B;264192], 60.00th=&#x5B;325632],\r\n     | 70.00th=&#x5B;440320], 80.00th=&#x5B;970752], 90.00th=&#x5B;1925120], 95.00th=&#x5B;2965504],\r\n     | 99.00th=&#x5B;5079040], 99.50th=&#x5B;5603328], 99.90th=&#x5B;6520832], 99.95th=&#x5B;7110656],\r\n     | 99.99th=&#x5B;8978432]\r\n    bw (KB\/s)  : min=    4, max= 4672, per=21.42%, avg=525.41, stdev=665.78 # \u5e2f\u57df\u5e45\u306e\u60c5\u5831: \u6700\u5c0f\u3001\u6700\u5927\u3001\u5e73\u5747\u3001\u6a19\u6e96\u504f\u5dee\r\n  write: io=410960KB, bw=2470.3KB\/s, iops=154 , runt=166361msec\r\n    slat (usec): min=11 , max=3992.7K, avg=21581.54, stdev=180320.03\r\n    clat (msec): min=1 , max=14091 , avg=892.15, stdev=1530.94\r\n     lat (msec): min=1 , max=14091 , avg=913.74, stdev=1561.92\r\n    clat percentiles (msec):\r\n     |  1.00th=&#x5B;    5],  5.00th=&#x5B;   28], 10.00th=&#x5B;   59], 20.00th=&#x5B;   90],\r\n     | 30.00th=&#x5B;  125], 40.00th=&#x5B;  178], 50.00th=&#x5B;  281], 60.00th=&#x5B;  351],\r\n     | 70.00th=&#x5B;  486], 80.00th=&#x5B; 1205], 90.00th=&#x5B; 2769], 95.00th=&#x5B; 4555],\r\n     | 99.00th=&#x5B; 7177], 99.50th=&#x5B; 8094], 99.90th=&#x5B;10159], 99.95th=&#x5B;10683],\r\n     | 99.99th=&#x5B;13304]\r\n    bw (KB\/s)  : min=    5, max= 4800, per=23.22%, avg=573.61, stdev=680.71\r\n    lat (usec) : 4=0.61%, 10=0.01%, 20=0.01%, 50=0.07%, 100=0.10%\r\n    lat (usec) : 250=0.18%, 500=0.12%, 750=0.04%, 1000=0.01%\r\n    lat (msec) : 2=0.13%, 4=0.71%, 10=1.72%, 20=1.85%, 50=3.89%\r\n    lat (msec) : 100=15.74%, 250=21.72%, 500=24.71%, 750=3.90%, 1000=3.38% # IO\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u9001\u51fa\u304b\u3089\u305d\u306e\u5fdc\u7b54\u304c\u8fd4\u3055\u308c\u308b\u307e\u3067\u306e\u6642\u9593\u306f251ms\u3068500ms\u306e\u9593\u304c\u5168\u4f53\u306e24.71%\r\n    lat (msec) : 2000=9.01%, &gt;=2000=12.09%\r\n  cpu          : usr=0.07%, sys=0.27%, ctx=12055, majf=0, minf=180 # IO\u8ca0\u8377\u304cCPU\u306b\u53ca\u307c\u3059\u5f71\u97ff\u304c\u793a\u3055\u308c\u3066\u304a\u308a\u3001\u3053\u3053\u3067\u5f97\u3089\u308c\u308b\u60c5\u5831\u306fIO\u5074\u306e\u901f\u5ea6\u306b\u6bd4\u3057\u3066\u30d7\u30ed\u30bb\u30c3\u30b5\u5074\u304c\u4f4e\u901f\u3059\u304e\u306a\u3044\u304b\u3092\u5224\u5b9a\u3059\u308b\r\n  IO depths    : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.2%, 32=99.5%, &gt;=64=0.0% # 17\u304b\u308932\u500b\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u975e\u540c\u671fIO\u30ad\u30e5\u30fc\u306b\u7f6e\u304b\u308c\u3066\u3044\u305f\u6642\u9593\u304c\u5168\u4f53\u306e99.5%\r\n     submit    : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, &gt;=64=0.0%\r\n     complete  : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.1%, 64=0.0%, &gt;=64=0.0%\r\n     issued    : total=r=25515\/w=25685\/d=0, short=r=0\/w=0\/d=0\r\n\r\nRun status group 0 (all jobs):\r\n   READ: io=408240KB, aggrb=2453KB\/s, minb=2453KB\/s, maxb=2453KB\/s, mint=166361msec, maxt=166361msec # \u7dcf\u5408\u5e2f\u57df\u5e45(aggrb\uff1aaggregate bandwidth)\r\n  WRITE: io=410960KB, aggrb=2470KB\/s, minb=2470KB\/s, maxb=2470KB\/s, mint=166361msec, maxt=166361msec\r\n\r\nDisk stats (read\/write):\r\n  xvda: ios=26273\/26437, merge=84\/4917, ticks=12592488\/13075484, in_queue=25688264, util=100.00%\r\n\r\nroot@hostname:\/home\/admin# cd \/usr\/local\/src\r\nroot@hostname:\/usr\/local\/src# wget http:\/\/www.winkey.jp\/downloads\/visit.php\/fio-crystaldiskmark -O crystaldiskmark.fio  # CrystalDiskMark\u3068\u540c\u3058\u8a08\u6e2c\u304c\u53ef\u80fd\r\nroot@hostname:\/usr\/local\/src# fio crystaldiskmark.fio -o fio.txt\r\n...\r\n<\/pre>\n<p>\u300cwrite_iolog\u300d\u304a\u3088\u3073\u300cread_iolog\u300d\u306f\u3001\u9001\u4fe1\u3057\u305f\u3059\u3079\u3066\u306eIO\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u95a2\u3059\u308b\u30ed\u30b0\u306e\u66f8\u304d\u8fbc\u307f\u304a\u3088\u3073\u8aad\u307f\u51fa\u3057\u3092fio\u306b\u884c\u308f\u305b\u308b\u305f\u3081\u306e\u6307<br \/>\n\u4f55\u3089\u304b\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304b\u3089IO\u30a2\u30af\u30bb\u30b9\u30d1\u30bf\u30fc\u30f3\u306e\u60c5\u5831\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u3066\u3001fio\u306b\u89e3\u6790\u3055\u305b\u308b\u3068\u3044\u3046\u64cd\u4f5c\u3082\u3001\u3053\u308c\u3089iolog\u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u3088\u3063\u3066\u53ef\u80fd\u3089\u3057\u3044\u304c\u3001\u305d\u306e\u3046\u3061\u3084\u3063\u3066\u307f\u308b\u3002\u3002<\/p>\n<h2>QD32\u3068\u306f<\/h2>\n<p>NCQ\u6a5f\u80fd\u306eQueue Depth(\u30ad\u30e5\u30fc\u30c7\u30d7\u30b9)\u309232\u500b\u306b\u3059\u308b\u3053\u3068<br \/>\nNCQ\u6a5f\u80fd\u306b\u3064\u3044\u3066\u3001\u30b3\u30de\u30f3\u30c9\u3092\u4e00\u901a\u308a\u5148\u306bHDD\u306b\u77e5\u3089\u305b\u3066\u3057\u307e\u3044\u3001HDD\u81ea\u8eab\u306b\u6700\u3082\u5408\u7406\u7684\u306a\u9806\u756a\u3067\u30b3\u30de\u30f3\u30c9\u3092\u51e6\u7406\u3055\u305b\u308b\u3053\u3068<br \/>\n\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3092\u53d7\u3051\u53d6\u308c\u308b\u6570\u3092\u300cQueue Depth(\u30ad\u30e5\u30fc\u30c7\u30d7\u30b9)\u300d\u3068\u547c\u3073\u3001\u591a\u3044\u307b\u3046\u304c\u52b9\u7387\u7684\u306b\u51e6\u7406\u3067\u304d\u308b<\/p>\n<h1>\u53c2\u8003<\/h1>\n<p>http:\/\/www.winkey.jp\/article.php\/20110310142828679<br \/>\nhttp:\/\/sourceforge.jp\/magazine\/08\/05\/22\/0127246<br \/>\niftop\u306e\u5229\u7528\u65b9\u6cd5<br \/>\nhttp:\/\/www.ahref.org\/tech\/server\/server-tips\/801.html<br \/>\nUnix command > iotop\u30b3\u30de\u30f3\u30c9<br \/>\nhttp:\/\/sweng.web.fc2.com\/ja\/program\/shellscript\/iotop.html<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ps root@akat:\/home\/akat# ps afxu USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND # %CPU:CPU\u4f7f\u7528\u7387 # %MEM:\u7269 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[8],"tags":[],"_links":{"self":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/445"}],"collection":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=445"}],"version-history":[{"count":16,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/445\/revisions"}],"predecessor-version":[{"id":2251,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/445\/revisions\/2251"}],"wp:attachment":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=445"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=445"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=445"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}