{"id":270,"date":"2017-09-06T22:24:07","date_gmt":"2017-09-06T21:24:07","guid":{"rendered":"http:\/\/pruszewicz.com\/wordpress\/?p=270"},"modified":"2017-09-06T22:31:24","modified_gmt":"2017-09-06T21:31:24","slug":"slow-graid-mirror-rebuild","status":"publish","type":"post","link":"http:\/\/pruszewicz.com\/wordpress\/slow-graid-mirror-rebuild\/","title":{"rendered":"slow graid mirror rebuild"},"content":{"rendered":"<p>Setting kern.geom.raid.idle_threshold to lower value increases speed of rebuilding graid mirror and transfer on ada1 disk<br \/>\n<a href=\"https:\/\/www.freebsd.org\/cgi\/man.cgi?graid(8)\">https:\/\/www.freebsd.org\/cgi\/man.cgi?graid(8)<\/a><\/p>\n<pre><code>root@thirdeye:\/usr\/ports # sysctl kern.geom.raid.idle_threshold=1000000\r\nkern.geom.raid.idle_threshold: 10000 -&gt; 1000000\r\nroot@thirdeye:\/usr\/ports # iostat 1 -1\r\n       tty            ada0             ada1             ada2             cpu\r\n tin  tout  KB\/t tps  MB\/s   KB\/t tps  MB\/s   KB\/t tps  MB\/s  us ni sy in id\r\n   0     3 59.55  18  1.06  114.09   7  <span style=\"color: #ff0000;\">0.80<\/span>   6.10   2  0.01   2  0  1  0 97\r\n   0   533 86.86  14  1.18  128.00   8  0.99   0.00   0  0.00   0  0  0  0 100\r\n   0   374 32.00   6  0.19   0.00   0  0.00   0.00   0  0.00   0  0  0  0 100\r\n   0   194 32.00   6  0.19   0.00   0  0.00   0.00   0  0.00   0  0  0  0 100\r\n   0   193 32.00   6  0.19   0.00   0  0.00   0.00   0  0.00   1  0  0  0 99\r\n   0   190 80.00  16  1.23  128.00   8  0.99   0.00   0  0.00   1  0  1  0 99\r\n   0   197 32.00   2  0.06   0.00   0  0.00   0.00   0  0.00   0  0  0  0 100\r\n   0   188 32.00   4  0.12   0.00   0  0.00   0.00   0  0.00   0  0  0  0 100\r\n   0   199 32.00   6  0.19   0.00   0  0.00   0.00   0  0.00   0  0  0  0 99\r\n   0   194 96.00  12  1.14  128.00   8  1.01   0.00   0  0.00   3  0  0  0 97\r\n   0   186 35.56   9  0.30   0.00   0  0.00   0.00   0  0.00   5  0  1  0 94\r\n   0   195 108.80  20  2.16  128.00  16  2.03   0.00   0  0.00   0  0  0  0 100\r\n   0   200 32.00   4  0.13   0.00   0  0.00   0.00   0  0.00   0  0  0  0 100\r\n^C   3   294 32.00   3  0.09   0.00   0  0.00   0.00   0  0.00   1  0  1  0 99\r\nroot@thirdeye:\/usr\/ports # sysctl kern.geom.raid.idle_threshold=10000\r\nkern.geom.raid.idle_threshold: 1000000 -&gt; 10000\r\nroot@thirdeye:\/usr\/ports # iostat 1 -1\r\n       tty            ada0             ada1             ada2             cpu\r\n tin  tout  KB\/t tps  MB\/s   KB\/t tps  MB\/s   KB\/t tps  MB\/s  us ni sy in id\r\n   0     3 59.57  18  1.07  114.09   7  0.80   6.10   2  0.01   2  0  1  0 97\r\n   0   536 126.54 478 59.02  127.74 473 <span style=\"color: #ff0000;\">58.95<\/span>   0.00   0  0.00   7  0  2  0 91\r\n   0   373 126.37 427 52.75  127.26 425 52.88   0.00   0  0.00  11  0  1  0 88\r\n   0   196 127.16 459 56.94  128.00 448 56.06   0.00   0  0.00   2  0  1  0 97\r\n   0   188 126.36 451 55.60  128.00 446 55.72   0.00   0  0.00   2  0  1  0 97\r\n   0   205 126.31 387 47.78  127.34 386 48.04   0.00   0  0.00   0  0  1  0 99\r\n   0   196 127.15 451 55.97  128.00 440 54.97   0.00   0  0.00   0  0  0  0 99\r\n   0   196 126.73 456 56.40  128.00 457 57.09   0.00   0  0.00   0  0  0  0 100\r\n   0   197 126.09 434 53.39  128.00 423 52.83   0.00   0  0.00   0  0  0  0 99\r\n   0   197 126.67 433 53.58  128.00 425 53.14   0.00   0  0.00   0  0  0  0 100\r\n   0   198 126.91 441 54.69  127.78 441 55.07   0.00   0  0.00   0  0  0  0 99\r\n   0   196 127.24 420 52.20  127.70 417 52.02   0.00   0  0.00   0  0  0  0 99\r\n   0   193 126.75 453 56.13  128.00 441 55.08   0.00   0  0.00   0  0  0  0 99\r\n   0   199 127.14 452 56.16  128.00 454 56.79   0.00   0  0.00   0  0  3  1 96\r\n   0   196 125.17 427 52.19  126.96 421 52.19   0.00   0  0.00   6  0  1  1 93\r\n   0   195 125.48 417 51.09  128.00 398 49.75   0.00   0  0.00  15  0  3  0 82\r\n   0   193 126.76 460 56.89  128.00 458 57.20   0.00   0  0.00   5  0  1  0 94\r\n   0   198 126.66 434 53.62  128.00 428 53.56   0.00   0  0.00   0  0  0  0 99\r\n   0   194 126.51 447 55.19  127.79 444 55.38   0.00   0  0.00   5  0  2  0 92\r\n   0   200 127.11 441 54.70  128.00 433 54.07   0.00   0  0.00   0  0  0  0 100\r\n   0   193 127.14 435 54.04  128.00 429 53.67   0.00   0  0.00   0  0  0  1 99\r\n^C   2   227 127.02 450 55.80  128.00 449 56.08   0.00   0  0.00   0  0  0  0 100\r\nroot@thirdeye:\/usr\/ports # graid status\r\n   Name    Status  Components\r\nraid\/r0  DEGRADED  ada0 (ACTIVE (ACTIVE))\r\n                   ada1 (ACTIVE (REBUILD 46%))\r\nraid\/r1   OPTIMAL  ada2 (ACTIVE (ACTIVE))\r\n                   ada3 (ACTIVE (ACTIVE))\r\n<\/code>\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Setting kern.geom.raid.idle_threshold to lower value increases speed of rebuilding graid mirror and transfer on ada1 disk https:\/\/www.freebsd.org\/cgi\/man.cgi?graid(8) root@thirdeye:\/usr\/ports # sysctl kern.geom.raid.idle_threshold=1000000 kern.geom.raid.idle_threshold: 10000 -&gt; 1000000 root@thirdeye:\/usr\/ports # iostat 1 -1 tty ada0 ada1 ada2 cpu tin tout KB\/t tps MB\/s &hellip; <a href=\"http:\/\/pruszewicz.com\/wordpress\/slow-graid-mirror-rebuild\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-270","post","type-post","status-publish","format-standard","hentry","category-freebsd"],"_links":{"self":[{"href":"http:\/\/pruszewicz.com\/wordpress\/wp-json\/wp\/v2\/posts\/270","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/pruszewicz.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/pruszewicz.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/pruszewicz.com\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/pruszewicz.com\/wordpress\/wp-json\/wp\/v2\/comments?post=270"}],"version-history":[{"count":6,"href":"http:\/\/pruszewicz.com\/wordpress\/wp-json\/wp\/v2\/posts\/270\/revisions"}],"predecessor-version":[{"id":276,"href":"http:\/\/pruszewicz.com\/wordpress\/wp-json\/wp\/v2\/posts\/270\/revisions\/276"}],"wp:attachment":[{"href":"http:\/\/pruszewicz.com\/wordpress\/wp-json\/wp\/v2\/media?parent=270"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/pruszewicz.com\/wordpress\/wp-json\/wp\/v2\/categories?post=270"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/pruszewicz.com\/wordpress\/wp-json\/wp\/v2\/tags?post=270"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}