{"id":5634,"date":"2017-05-17T20:01:29","date_gmt":"2017-05-17T11:01:29","guid":{"rendered":"http:\/\/www.magtranetwork.com\/?p=5634"},"modified":"2017-06-22T11:56:32","modified_gmt":"2017-06-22T02:56:32","slug":"disk_speed_test","status":"publish","type":"post","link":"https:\/\/www.magtranetwork.com\/aws\/disk_speed_test.html","title":{"rendered":"Linux\u3001macOS\u306a\u3069\u306eUnix\u74b0\u5883\u3067\u30c7\u30a3\u30b9\u30af\u901f\u5ea6(\u8aad\u307f\u8fbc\u307f\u3001\u66f8\u304d\u8fbc\u307f)\u3092\u6e2c\u5b9a\u3059\u308b\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u7528\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8(\u30d0\u30c3\u30c1\u51e6\u7406\u30d7\u30ed\u30b0\u30e9\u30e0) \uff5eRHEL\u3001CentOS\u3001Fedora\u3001Ubuntu\u3001macOS\u3001Cygwin\u306a\u3069\u306b\u5bfe\u5fdc\u3057\u305f\u30c7\u30a3\u30b9\u30af\u30b9\u30d4\u30fc\u30c9\u30c6\u30b9\u30c8\u306e\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u30c4\u30fc\u30eb\uff5e"},"content":{"rendered":"

\u4ee5\u524d\u306e\u4e0b\u8a18\u306e\u8a18\u4e8b\u3067Linux\u3001macOS\u306a\u3069\u306eUnix\u74b0\u5883\u3067\u30b5\u30fc\u30d0\u3084\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u6027\u80fd\u3092\u8a55\u4fa1\u3059\u308b\u6307\u6a19\u306e\u4e00\u3064\u3067\u3042\u308bCPU\u306e\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u3092\u884c\u3046\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8(\u30d0\u30c3\u30c1\u51e6\u7406\u30d7\u30ed\u30b0\u30e9\u30e0)\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n

\u53c2\u8003\u8a18\u4e8b\uff1aLinux\u3001macOS\u306a\u3069\u306eUnix\u74b0\u5883\u3067CPU\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u30c4\u30fc\u30eb\u300cUnixBench\u300d\u3092\u5fc5\u8981\u30d1\u30c3\u30b1\u30fc\u30b8\u3054\u3068\u4e00\u62ec\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8(\u30d0\u30c3\u30c1\u51e6\u7406\u30d7\u30ed\u30b0\u30e9\u30e0) \uff5eRHEL\u3001CentOS\u3001Fedora\u3001Ubuntu\u3001macOS\u3001Cygwin\u306a\u3069\u306b\u5bfe\u5fdc\u3057\u305fCPU\u6027\u80fd\u8a55\u4fa1\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\uff5e<\/a><\/p>\n

\u4eca\u56de\u306fCPU\u306e\u4ed6\u306b\u91cd\u8981\u306a\u4f4d\u7f6e\u3065\u3051\u3067\u3042\u308b\u6027\u80fd\u8a55\u4fa1\u6307\u6a19\u306e\u4e00\u3064\u30c7\u30a3\u30b9\u30af\u30a2\u30af\u30bb\u30b9\u901f\u5ea6\u3092Linux\u306edd\u30b3\u30de\u30f3\u30c9\u3092\u7528\u3044\u3066\u8a08\u6e2c\u3059\u308b\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8(\u30d0\u30c3\u30c1\u51e6\u7406\u30d7\u30ed\u30b0\u30e9\u30e0)\u3092\u5099\u5fd8\u3068\u3057\u3066\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n

Linux\u3001macOS\u306a\u3069\u306eUnix\u74b0\u5883\u3067\u30c7\u30a3\u30b9\u30af\u901f\u5ea6(\u8aad\u307f\u8fbc\u307f\u3001\u66f8\u304d\u8fbc\u307f)\u3092\u6e2c\u5b9a\u3059\u308b\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u7528\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8(\u30d0\u30c3\u30c1\u51e6\u7406\u30d7\u30ed\u30b0\u30e9\u30e0) \uff5eRHEL\u3001CentOS\u3001Fedora\u3001Ubuntu\u3001macOS\u3001Cygwin\u306a\u3069\u306b\u5bfe\u5fdc\u3057\u305f\u30c7\u30a3\u30b9\u30af\u30b9\u30d4\u30fc\u30c9\u30c6\u30b9\u30c8\u306e\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u30c4\u30fc\u30eb\uff5e<\/h2>\n

\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8(\u30d0\u30c3\u30c1\u51e6\u7406\u30d7\u30ed\u30b0\u30e9\u30e0)\u306e\u57fa\u672c\u65b9\u91dd\u3068\u3057\u3066\u306fdd\u30b3\u30de\u30f3\u30c9\u306b\u3088\u308b\u66f8\u304d\u8fbc\u307f\u3001\u8aad\u307f\u8fbc\u307f\u3092\u884c\u3063\u3066\u305d\u306e\u969b\u306e\u30c7\u30a3\u30b9\u30af\u901f\u5ea6\u53ca\u3073\u8a08\u6e2c\u6642\u9593\u3092\u51fa\u529b\u3057\u307e\u3059\u3002<\/p>\n

dd\u30b3\u30de\u30f3\u30c9\u306f\u300coflag=direct\u300d\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u66f8\u304d\u8fbc\u307f\u6642\u3001\u300ciflag=direct\u300d\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u8aad\u307f\u8fbc\u307f\u6642\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u4f7f\u7528\u3057\u306a\u3044\u6307\u5b9a\u3092\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n

\u305d\u306e\u305f\u3081\u3001\u300c\u30ad\u30e3\u30c3\u30b7\u30e5\u7121\u3057\u306e\u66f8\u304d\u8fbc\u307f\u300d\u3001\u300c\u30ad\u30e3\u30c3\u30b7\u30e5\u7121\u3057\u306e\u8aad\u307f\u8fbc\u307f\u300d\u3001\u300c\u30ad\u30e3\u30c3\u30b7\u30e5\u6709\u308a\u306e\u66f8\u304d\u8fbc\u307f\u300d\u3001\u300c\u30ad\u30e3\u30c3\u30b7\u30e5\u6709\u308a\u306e\u8aad\u307f\u8fbc\u307f\u300d\u306e4\u30d1\u30bf\u30fc\u30f3\u3092\u8a08\u6e2c\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n

Linux\u3001macOS\u306a\u3069\u306eUnix\u74b0\u5883\u3067\u30c7\u30a3\u30b9\u30af\u901f\u5ea6(\u8aad\u307f\u8fbc\u307f\u3001\u66f8\u304d\u8fbc\u307f)\u3092\u6e2c\u5b9a\u3059\u308b\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u7528\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8(\u30d0\u30c3\u30c1\u51e6\u7406\u30d7\u30ed\u30b0\u30e9\u30e0)<\/h3>\n

\u5b9f\u88c5\u3057\u305f\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u306f\u5f15\u6570\u3067\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u306eMB\u5358\u4f4d\u306e\u5bb9\u91cf(bs=1M\u306b\u5bfe\u3059\u308bcount\u306e\u5024)\u3092\u6307\u5b9a\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059(\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u306f1024)\u3002<\/p>\n

\u300c\u30ad\u30e3\u30c3\u30b7\u30e5\u7121\u3057\u306e\u66f8\u304d\u8fbc\u307f\u300d\u3001\u300c\u30ad\u30e3\u30c3\u30b7\u30e5\u7121\u3057\u306e\u8aad\u307f\u8fbc\u307f\u300d\u306e\u30c6\u30b9\u30c8\u3092\u884c\u3063\u305f\u5f8c\u3001\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u3092\u524a\u9664\u3057\u3001\u518d\u5ea6\u300c\u30ad\u30e3\u30c3\u30b7\u30e5\u6709\u308a\u306e\u66f8\u304d\u8fbc\u307f\u300d\u3001\u300c\u30ad\u30e3\u30c3\u30b7\u30e5\u6709\u308a\u306e\u8aad\u307f\u8fbc\u307f\u300d\u306b\u3064\u3044\u3066\u8a08\u6e2c\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n

\r\nvim disk_speed_test.sh\r\n<\/pre>\n
\r\n#!\/bin\/bash\r\n\r\nCOUNT=$1\r\n\r\nif [ "${COUNT}" = "" ]; then\r\n  COUNT=1024\r\nfi\r\n\r\necho "Disk Writing Speed (No Cache)"\r\necho "time dd bs=1M count=${COUNT} if=\/dev\/zero of=\/tmp\/disktest oflag=direct"\r\ntime dd bs=1M count=${COUNT} if=\/dev\/zero of=\/tmp\/disktest oflag=direct\r\n\r\necho "Disk Reading Speed (No Cache)"\r\necho "time dd bs=1M count=${COUNT} if=\/tmp\/disktest of=\/dev\/null iflag=direct"\r\ntime dd bs=1M count=${COUNT} if=\/tmp\/disktest of=\/dev\/null iflag=direct\r\n\r\nrm -f \/tmp\/disktest\r\n\r\necho "Disk Writing Speed (Cached)"\r\necho "time dd bs=1M count=${COUNT} if=\/dev\/zero of=\/tmp\/disktest"\r\ntime dd bs=1M count=${COUNT} if=\/dev\/zero of=\/tmp\/disktest\r\n\r\necho "Disk Reading Speed (Cached)"\r\necho "time dd bs=1M count=${COUNT} if=\/tmp\/disktest of=\/dev\/null"\r\ntime dd bs=1M count=${COUNT} if=\/tmp\/disktest of=\/dev\/null\r\n\r\nrm -f \/tmp\/disktest\r\n<\/pre>\n

Linux\u3001macOS\u306a\u3069\u306eUnix\u74b0\u5883\u3067\u30c7\u30a3\u30b9\u30af\u30a2\u30af\u30bb\u30b9\u901f\u5ea6\u3092\u6e2c\u5b9a\u3059\u308b\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u7528\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8(\u30d0\u30c3\u30c1\u51e6\u7406\u30d7\u30ed\u30b0\u30e9\u30e0)\u306e\u5b9f\u884c\u4f8b<\/h3>\n

\u4f5c\u6210\u3057\u305f\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u5b9f\u884c\u4f8b\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n

\r\n[magtranetwork@localhost ~]# chmod 755 disk_speed_test.sh\r\n[magtranetwork@localhost ~]# .\/disk_speed_test.sh\r\nDisk Writing Speed (No Cache)\r\ntime dd bs=1M count=1024 if=\/dev\/zero of=\/tmp\/disktest oflag=direct\r\n1024+0 \u30ec\u30b3\u30fc\u30c9\u5165\u529b\r\n1024+0 \u30ec\u30b3\u30fc\u30c9\u51fa\u529b\r\n1073741824 \u30d0\u30a4\u30c8 (1.1 GB) \u30b3\u30d4\u30fc\u3055\u308c\u307e\u3057\u305f\u3001 4.22216 \u79d2\u3001 254 MB\/\u79d2\r\n\r\nreal    0m4.223s\r\nuser    0m0.003s\r\nsys     0m0.279s\r\nDisk Reading Speed (No Cache)\r\ntime dd bs=1M count=1024 if=\/tmp\/disktest of=\/dev\/null iflag=direct\r\n1024+0 \u30ec\u30b3\u30fc\u30c9\u5165\u529b\r\n1024+0 \u30ec\u30b3\u30fc\u30c9\u51fa\u529b\r\n1073741824 \u30d0\u30a4\u30c8 (1.1 GB) \u30b3\u30d4\u30fc\u3055\u308c\u307e\u3057\u305f\u3001 4.19186 \u79d2\u3001 256 MB\/\u79d2\r\n\r\nreal    0m4.193s\r\nuser    0m0.005s\r\nsys     0m0.099s\r\nDisk Writing Speed (Cached)\r\ntime dd bs=1M count=1024 if=\/dev\/zero of=\/tmp\/disktest\r\n1024+0 \u30ec\u30b3\u30fc\u30c9\u5165\u529b\r\n1024+0 \u30ec\u30b3\u30fc\u30c9\u51fa\u529b\r\n1073741824 \u30d0\u30a4\u30c8 (1.1 GB) \u30b3\u30d4\u30fc\u3055\u308c\u307e\u3057\u305f\u3001 0.714099 \u79d2\u3001 1.5 GB\/\u79d2\r\n\r\nreal    0m0.715s\r\nuser    0m0.003s\r\nsys     0m0.711s\r\nDisk Reading Speed (Cached)\r\ntime dd bs=1M count=1024 if=\/tmp\/disktest of=\/dev\/null\r\n1024+0 \u30ec\u30b3\u30fc\u30c9\u5165\u529b\r\n1024+0 \u30ec\u30b3\u30fc\u30c9\u51fa\u529b\r\n1073741824 \u30d0\u30a4\u30c8 (1.1 GB) \u30b3\u30d4\u30fc\u3055\u308c\u307e\u3057\u305f\u3001 0.199486 \u79d2\u3001 5.4 GB\/\u79d2\r\n\r\nreal    0m0.200s\r\nuser    0m0.000s\r\nsys     0m0.200s\r\n\r\n[magtranetwork@localhost ~]# .\/disk_speed_test.sh 2048\r\nDisk Writing Speed (No Cache)\r\ntime dd bs=1M count=2048 if=\/dev\/zero of=\/tmp\/disktest oflag=direct\r\n2048+0 \u30ec\u30b3\u30fc\u30c9\u5165\u529b\r\n2048+0 \u30ec\u30b3\u30fc\u30c9\u51fa\u529b\r\n2147483648 \u30d0\u30a4\u30c8 (2.1 GB) \u30b3\u30d4\u30fc\u3055\u308c\u307e\u3057\u305f\u3001 42.6873 \u79d2\u3001 50.3 MB\/\u79d2\r\n\r\nreal    0m42.688s\r\nuser    0m0.003s\r\nsys     0m0.618s\r\nDisk Reading Speed (No Cache)\r\ntime dd bs=1M count=2048 if=\/tmp\/disktest of=\/dev\/null iflag=direct\r\n2048+0 \u30ec\u30b3\u30fc\u30c9\u5165\u529b\r\n2048+0 \u30ec\u30b3\u30fc\u30c9\u51fa\u529b\r\n2147483648 \u30d0\u30a4\u30c8 (2.1 GB) \u30b3\u30d4\u30fc\u3055\u308c\u307e\u3057\u305f\u3001 42.6635 \u79d2\u3001 50.3 MB\/\u79d2\r\n\r\nreal    0m42.665s\r\nuser    0m0.004s\r\nsys     0m0.250s\r\nDisk Writing Speed (Cached)\r\ntime dd bs=1M count=2048 if=\/dev\/zero of=\/tmp\/disktest\r\n2048+0 \u30ec\u30b3\u30fc\u30c9\u5165\u529b\r\n2048+0 \u30ec\u30b3\u30fc\u30c9\u51fa\u529b\r\n2147483648 \u30d0\u30a4\u30c8 (2.1 GB) \u30b3\u30d4\u30fc\u3055\u308c\u307e\u3057\u305f\u3001 1.12603 \u79d2\u3001 1.9 GB\/\u79d2\r\n\r\nreal    0m1.127s\r\nuser    0m0.001s\r\nsys     0m1.127s\r\nDisk Reading Speed (Cached)\r\ntime dd bs=1M count=2048 if=\/tmp\/disktest of=\/dev\/null\r\n2048+0 \u30ec\u30b3\u30fc\u30c9\u5165\u529b\r\n2048+0 \u30ec\u30b3\u30fc\u30c9\u51fa\u529b\r\n2147483648 \u30d0\u30a4\u30c8 (2.1 GB) \u30b3\u30d4\u30fc\u3055\u308c\u307e\u3057\u305f\u3001 0.434828 \u79d2\u3001 4.9 GB\/\u79d2\r\n\r\nreal    0m0.436s\r\nuser    0m0.000s\r\nsys     0m0.435s\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"

\u4ee5\u524d\u306e\u4e0b\u8a18\u306e\u8a18\u4e8b\u3067Linux\u3001macOS\u306a\u3069\u306eUnix\u74b0\u5883\u3067\u30b5\u30fc\u30d0\u3084\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u6027\u80fd\u3092\u8a55\u4fa1\u3059\u308b\u6307\u6a19\u306e\u4e00\u3064\u3067\u3042\u308bCPU\u306e\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u3092\u884c\u3046\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8(\u30d0\u30c3\u30c1\u51e6\u7406\u30d7\u30ed\u30b0\u30e9\u30e0)\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002 \u53c2\u8003\u8a18\u4e8b\uff1aLinu […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[3,22,79,82],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/posts\/5634"}],"collection":[{"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/comments?post=5634"}],"version-history":[{"count":4,"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/posts\/5634\/revisions"}],"predecessor-version":[{"id":5756,"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/posts\/5634\/revisions\/5756"}],"wp:attachment":[{"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/media?parent=5634"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/categories?post=5634"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/tags?post=5634"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}