{"id":475,"date":"2018-06-30T00:14:28","date_gmt":"2018-06-29T17:14:28","guid":{"rendered":"https:\/\/lagonet.vn\/?p=475"},"modified":"2018-06-30T00:14:28","modified_gmt":"2018-06-29T17:14:28","slug":"huong-dan-cach-tinh-iops","status":"publish","type":"post","link":"https:\/\/kb.lagonet.vn\/?p=475","title":{"rendered":"H\u01af\u1edaNG D\u1eaaN C\u00c1CH T\u00cdNH IOPS"},"content":{"rendered":"<p>IOPS l\u00e0 vi\u1ebft t\u1eaft c\u1ee7a Input\/Output Per Second c\u00e1i n\u00e0y t\u00ednh cho file nh\u1ecf khi n\u1ea1p h\u1ec7 th\u1ed1ng (kh\u1edfi \u0111\u1ed9ng) windows, mac os,&#8230;system load to\u00e0n c\u00e1c file nh\u1ecf ~4kb &#8211; 1MB ho\u1eb7c copy m\u1ed9t th\u01b0 m\u1ee5c game n\u00e0o \u0111\u00f3 -&gt; IOPS c\u00e0ng cao th\u00ec t\u1ed1c \u0111\u1ed9 kh\u1edfi \u0111\u1ed9ng m\u00e1y t\u00ednh s\u1ebd c\u00e0ng nhanh.<br \/>\nV\u00ed d\u1ee5: 4k \u0111\u01b0\u1ee3c 50000IOPS &#8211;&gt; read\/write = 50000*4k=200000K\/s~ 200MB\/s t\u1ee9c l\u00e0 c\u00e1i SSD n\u00e0y n\u00f3 copy \u0111\u01b0\u1ee3c t\u1edbi 200 MB\/s c\u00e1c file nh\u1ecf nh\u01b0 4k tr\u00ean 1 gi\u00e2y.<br \/>\nTrong s\u1ed1 c\u00e1c con b\u1ea1n l\u1ef1a ch\u1ecdn th\u00ec theo m\u00ecnh n\u00ean ch\u1ecdn Vertex 4 m\u00e0 kh\u00f4ng c\u1ea7n \u0111\u1eafn \u0111o.<\/p>\n<p>Gi\u1ea3 s\u1eed h\u1ec7 th\u1ed1ng l\u01b0u tr\u1eef c\u1ee7a b\u1ea1n s\u1eed d\u1ee5ng \u1ed5 SAS 15k<\/p>\n<p>Dung l\u01b0\u1ee3ng m\u1ed7i \u1ed5 l\u00e0 900Gb.<\/p>\n<p>T\u1ec9 l\u1ec7 Read\/Write t\u01b0\u01a1ng \u1ee9ng: 7:3<\/p>\n<p>C\u1ea5u h\u00ecnh RAID 10<\/p>\n<p>IOPS per Disk l\u00e0 176<\/p>\n<p>*Y\u00eau c\u1ea7u \u0111\u1eb7t ra l\u00e0 IOPS th\u1ef1c ph\u1ea3i tr\u00ean 1000<\/p>\n<p>L\u00fac n\u00e0y, h\u1ec7 th\u1ed1ng c\u1ee7a b\u1ea1n ch\u1ec9 c\u1ea7n 8 c\u1ee9ng l\u00e0 \u0111\u1ee7, s\u1ed1 IOPS c\u1ee7a h\u1ec7 th\u1ed1ng l\u00fac n\u00e0y l\u00e0 1200.<\/p>\n<table border=\"1\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td><strong>RAID Level<\/strong><\/td>\n<td><strong>Capacity<\/strong><\/td>\n<td><strong>IOPS<\/strong><\/td>\n<\/tr>\n<tr>\n<td>RAID 10<\/td>\n<td>3,215 GB<\/td>\n<td>1200<\/td>\n<\/tr>\n<tr>\n<td>RAID 6<\/td>\n<td>4,822 GB<\/td>\n<td>624<\/td>\n<\/tr>\n<tr>\n<td>RAID 5<\/td>\n<td>5,626 GB<\/td>\n<td>821<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>C\u00f2n n\u1ebfu ch\u00fang ta mu\u1ed1n t\u1ec9 l\u1ec7 Read\/Write l\u00e0 3:7 th\u00ec sao? C\u00f9ng c\u00e1c \u0111i\u1ec1u ki\u1ec7n nh\u01b0 tr\u00ean, v\u1edbi 8 \u1ed5 HDD th\u00ec s\u1ed1 IOPS ch\u1ec9 l\u00e0 918, n\u1ebfu 9 \u1ed5 th\u00ec IOPS s\u1ebd l\u00e0 1032, c\u00f2n 11 \u1ed5 th\u00ec s\u1ebd l\u00e0 1262.<\/p>\n<p>Ch\u00fang ta c\u0169ng c\u00f3 th\u1ec3 th\u1ea5y l\u00e0 khi c\u1ea5u h\u00ecnh c\u00e1c RAID level kh\u00e1c nhau, IOPS v\u00e0 capacity thay \u0111\u1ed5i \u0111\u00e1ng k\u1ec3: IOPS cao th\u00ec capacity s\u1ebd b\u1ecb gi\u1ea3m xu\u1ed1ng, v\u00e0 ng\u01b0\u1ee3c l\u1ea1i. L\u00fd do l\u00e0 v\u00ec t\u1eebng RAID level c\u00f3 s\u1ef1 kh\u00e1c bi\u1ec7t v\u1ec1 s\u1ed1 l\u01b0\u1ee3ng \u1ed5 c\u1ee9ng t\u1ed1i thi\u1ec3u (Raid Penalty). V\u00ec th\u1ebf, \u0111\u1ec3 setup 1 h\u1ec7 th\u1ed1ng s\u00e1t v\u1edbi nhu c\u1ea7u, Sys Admin c\u1ea7n ph\u1ea3i x\u00e1c \u0111\u1ecbnh r\u00f5 \u01b0u ti\u00ean h\u1ec7 th\u1ed1ng c\u1ee7a m\u00ecnh l\u00e0 g\u00ec: \u1ee8ng d\u1ee5ng ch\u1ea1y nhanh? M\u1ee9c \u0111\u1ed9 b\u1ea3o m\u1eadt? dung l\u01b0\u1ee3ng l\u01b0u tr\u1eef?<\/p>\n<p>B\u1ea3ng y\u00eau c\u1ea7u RAID Penalty \u2013 l\u00e0 s\u1ed1 l\u01b0\u1ee3ng \u1ed5 c\u1ee9ng t\u1ed1i thi\u1ec3u t\u01b0\u01a1ng \u1ee9ng v\u1edbi m\u1ed7i RAID level<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.ntccloud.com\/wp-content\/uploads\/2017\/05\/p1.png\" alt=\"\" width=\"553\" height=\"231\" \/><\/p>\n<p>C\u00e1c c\u00f4ng th\u1ee9c t\u00ednh trong b\u00e0i:<\/p>\n<p><em>T\u1ed5ng IOPS = IOPS per Disk * S\u1ed1 \u1ed5 c\u1ee9ng<\/em><\/p>\n<p><em>IOPS th\u1ef1c = (T\u1ed5ng IOPS * Write%)\/(Raid Penalty) + (T\u1ed5ng IOPS * Read %)<\/em><\/p>\n<p><em>S\u1ed1 \u1ed5 c\u1ee9ng = ((Read IOPS) + (Write IOPS*Raid Penalty))\/ IOPS per Disk<\/em><\/p>\n<p>B\u1ea3ng IOPS t\u01b0\u01a1ng \u1ee9ng v\u1edbi t\u1eebng lo\u1ea1i \u1ed5 c\u1ee9ng<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.ntccloud.com\/wp-content\/uploads\/2017\/05\/penaty.png\" alt=\"\" width=\"527\" height=\"197\" \/><\/p>\n<p>C\u00f2n IOPS tr\u00ean SSD th\u00ec sao? N\u1ebfu b\u1ea1n \u0111\u00e3 mu\u1ed1n s\u1eed d\u1ee5ng SSD enterprise, th\u00ec IOPS l\u00fac n\u00e0y \u2026 cao v\u1eddi v\u1ee3i. Tu\u1ef3 theo model SSD m\u00e0 c\u00f3 th\u1ec3 l\u00ean h\u00e0ng ng\u00e0n (Intel X25-E ~ 8600 IOPS) ho\u1eb7c ch\u1ee5c ng\u00e0n (OCZ Vertex 4 ~ 120,000 IOPS) ho\u1eb7c th\u1eadm ch\u00ed l\u00e0 h\u00e0ng tri\u1ec7u n\u1ebfu d\u00f9ng \u1ed5 NVMe.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>IOPS l\u00e0 vi\u1ebft t\u1eaft c\u1ee7a Input\/Output Per Second c\u00e1i n\u00e0y t\u00ednh cho file nh\u1ecf khi n\u1ea1p h\u1ec7 th\u1ed1ng (kh\u1edfi \u0111\u1ed9ng) [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[24,8],"tags":[59,71,80,81,82,83,112,131],"class_list":["post-475","post","type-post","status-publish","format-standard","hentry","category-storage","category-system","tag-disk-iops-calculator","tag-how-to-calculate-iops-for-an-application","tag-iops-calculator-emc","tag-iops-calculator-spreadsheet","tag-iops-calculator-tool","tag-iops-per-tb","tag-ssd-iops","tag-what-is-iops-in-aws"],"_links":{"self":[{"href":"https:\/\/kb.lagonet.vn\/index.php?rest_route=\/wp\/v2\/posts\/475","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kb.lagonet.vn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kb.lagonet.vn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kb.lagonet.vn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.lagonet.vn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=475"}],"version-history":[{"count":0,"href":"https:\/\/kb.lagonet.vn\/index.php?rest_route=\/wp\/v2\/posts\/475\/revisions"}],"wp:attachment":[{"href":"https:\/\/kb.lagonet.vn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=475"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kb.lagonet.vn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=475"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kb.lagonet.vn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=475"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}