{"id":256,"date":"2013-02-06T14:48:07","date_gmt":"2013-02-06T14:48:07","guid":{"rendered":"http:\/\/www.buildingcubes.com\/?p=256"},"modified":"2013-02-06T14:48:07","modified_gmt":"2013-02-06T14:48:07","slug":"progress-bar-and-transfer-rate-in-cp-and-mv-command","status":"publish","type":"post","link":"https:\/\/www.voodoo.business\/blog\/2013\/02\/06\/progress-bar-and-transfer-rate-in-cp-and-mv-command\/","title":{"rendered":"Progress bar and transfer rate in CP and MV command"},"content":{"rendered":"<p>The lowdown<\/p>\n<p>Install iostat, then run (in a second command window) the command<\/p>\n<pre>iostat -k -x 2<\/p>\n<pre>\n<p>Change the 2 for any refresh rate, no matter the refresh rate, you will get the KBytes per seconed both read and write for both disks involved in the copy. You will also get the total copied for the period of time between refresh, so always take note of the (per second) sign in kB_read\/s and kB_wrtn\/s.<\/p>\n<p>To recap, kB_read\/s and kB_wrtn\/s are not affected by the interval you set, while kB_read\/s and kB_wrtn\/s. are affected (they are the result of multiplying the speed (\/s) by the interval you set<\/p>\n<p>The K stands for KiloBytes (the default is blocks), you can also use m for megabytes<br \/>\nthe X stands for Extended statistics (You probably dont need it for this particular purpose)<\/p>\n<p>We are doing the above because CP and MV do NOT provide means of monitoring transfer rate.<br \/>\nSome other solutions like pv and rsync do, but would you want to get into all of this every time you want to copy a file or folder ?<\/p>\n<p>Anyway, here is a rundown of all the ways that can allow you to monitor speed when you copy or move<\/p>\n<p>(I will come back to this in a bit.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The lowdown Install iostat, then run (in a second command window) the command iostat -k -x 2 Change the 2 for any refresh rate, no matter the refresh rate, you will get the KBytes per seconed both read and write for both disks involved in the copy. You will also get the total copied for [&hellip;]<\/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":[],"class_list":["post-256","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/256","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/comments?post=256"}],"version-history":[{"count":0,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/256\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/media?parent=256"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/categories?post=256"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/tags?post=256"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}