{"id":2328,"date":"2016-07-28T17:12:09","date_gmt":"2016-07-28T21:12:09","guid":{"rendered":"https:\/\/www.globo.tech\/learning-center\/?p=2328"},"modified":"2016-09-30T17:36:18","modified_gmt":"2016-09-30T21:36:18","slug":"install-iotop-ubuntu-16","status":"publish","type":"post","link":"https:\/\/www.globo.tech\/learning-center\/install-iotop-ubuntu-16\/","title":{"rendered":"How to Install and Use Iotop on Ubuntu 16"},"content":{"rendered":"<p>Iotop is a top-like program with a focus on input\/output, or I\/O for short. It monitors what input or output is currently happening on your machine, helping you to quickly identify problematic issues of disk usage. Iotop is an open-source Python program licensed under the GNU General Public License.<\/p>\n<h2>Getting started<\/h2>\n<p>You&#8217;ll need the following to proceed with this guide:<br \/>\n\u2022 1 Node (<a href=\"https:\/\/www.globo.tech\/cloud-server-pricing\" target=\"_blank\">Cloud Server<\/a> or <a href=\"http:\/\/www.globo.tech\/dedicated-server-hosting\" target=\"_blank\">Dedicated Server<\/a>) running Ubuntu 16.<br \/>\n\u2022 Root access to the server<\/p>\n<h2>Tutorial<\/h2>\n<p>Installation is a simple process. The iotop utility is located in the offical repositories, so grab the package from there.<\/p>\n<p><code>apt-get update && apt-get install iotop<\/code><\/p>\n<p>Now you can simply run iotop and instantly see what&#8217;s happening with your system.<\/p>\n<p><code>iotop<\/code><\/p>\n<p>In this example, the server is idle. No issues here!<\/p>\n<p><a href=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2016\/07\/iotop.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2016\/07\/iotop.png\" alt=\"iotop\" width=\"1061\" height=\"543\" class=\"aligncenter size-full wp-image-2329\" \/><\/a><\/p>\n<p>The applications that use the most resources will appear at the top of the list. To judge how much bandwidth a program is using, compare its I\/O value with the total amount of disk read or write. You can also take a look at the SwapIn column, which indicates the amount of swap activity per process.<\/p>\n<p>You can run iotop with more precise commands, such as this one which tells it to only check disk global disk usage data.<\/p>\n<p><code class=\"gris\">root@iotop:~# iotop -btoqq --iter=1<br \/>\n17:53:54 Total DISK READ :       0.00 B\/s | Total DISK WRITE :       0.00 B\/s<br \/>\n17:53:54 Actual DISK READ:       0.00 B\/s | Actual DISK WRITE:       0.00 B\/s<\/code><\/p>\n<p>This will show you the global disk usage and any application that consumes disk bandwidth. However, iotop will only give you this report if no specific program is consuming a large amount of resources.<\/p>\n<p>When an application begins to have more disk activity, you will see the process appear in the output.<\/p>\n<p><code class=\"gris\">root@iotop:~# iotop -btoqq --iter=5<br \/>\n17:55:00 Total DISK READ :       0.00 B\/s | Total DISK WRITE :       0.00 B\/s<br \/>\n17:55:00 Actual DISK READ:       0.00 B\/s | Actual DISK WRITE:       0.00 B\/s<br \/>\n17:55:01 Total DISK READ :       0.00 B\/s | Total DISK WRITE :       0.00 B\/s<br \/>\n17:55:01 Actual DISK READ:       0.00 B\/s | Actual DISK WRITE:       0.00 B\/s<br \/>\n17:55:02 Total DISK READ :       0.00 B\/s | Total DISK WRITE :      98.57 K\/s<br \/>\n17:55:02 Actual DISK READ:       0.00 B\/s | Actual DISK WRITE:     220.79 K\/s<br \/>\n17:55:02   142 be\/3 root        0.00 B\/s   55.20 K\/s  0.00 %  0.20 % [jbd2\/sda3-8]<br \/>\n17:55:02 21522 be\/4 postfix     0.00 B\/s    3.94 K\/s  0.00 %  0.06 % cleanup -z -t unix -u -c<br \/>\n17:55:02 23849 be\/4 postfix     0.00 B\/s    0.00 B\/s  0.00 %  0.00 % local -t unix<br \/>\n17:55:02 31183 be\/4 mysql       0.00 B\/s   11.83 K\/s  0.00 %  0.00 % mysqld<br \/>\n17:55:02   470 be\/4 syslog      0.00 B\/s   19.71 K\/s  0.00 %  0.00 % rsyslogd [rs:main Q:Reg]<br \/>\n17:55:03 Total DISK READ :       0.00 B\/s | Total DISK WRITE :     772.34 K\/s<br \/>\n17:55:03 Actual DISK READ:       0.00 B\/s | Actual DISK WRITE:     985.80 K\/s<br \/>\n17:55:03 12082 be\/4 nagios      0.00 B\/s  461.85 K\/s  0.00 %  0.20 % nagios -d \/usr\/local\/nagios\/etc\/nagios.cfg<br \/>\n17:55:03   142 be\/3 root        0.00 B\/s  252.27 K\/s  0.00 %  0.05 % [jbd2\/sda3-8]<br \/>\n17:55:03 31215 be\/4 mysql       0.00 B\/s   58.22 K\/s  0.00 %  0.00 % mysqld<\/code><\/p>\n<p>Here&#8217;s another command that shows you only the top resource-hogging applications. It checks 5 iterations of the iotop instance and attempts to locate the top consumers.<\/p>\n<p><code class=\"gris\">root@iotop:~# iotop -botqqq --iter=5<br \/>\n17:59:50 24333 be\/4 root        0.00 B\/s    0.00 B\/s  0.00 %  0.48 % [kworker\/u4:2]<br \/>\n17:59:51 12082 be\/4 nagios      0.00 B\/s    3.91 K\/s  0.00 %  0.00 % nagios -d \/usr\/local\/nagios\/etc\/nagios.cfg<br \/>\n17:59:52   142 be\/3 root        0.00 B\/s   66.50 K\/s  0.00 %  0.31 % [jbd2\/sda3-8]<br \/>\n17:59:52 12082 be\/4 nagios      0.00 B\/s  465.48 K\/s  0.00 %  0.16 % nagios -d \/usr\/local\/nagios\/etc\/nagios.cfg<br \/>\n17:59:52  5604 be\/4 postfix     0.00 B\/s    3.91 K\/s  0.00 %  0.00 % tlsmgr -l -t unix -u -c<\/code><\/p>\n<p>You may wish to send iotop&#8217;s output to a logfile. Use the following command:<\/p>\n<p><code>crontab -e<\/code><\/p>\n<p>Once in your crontab configuration, add the line below. Make sure that you adjust it depending on your needs. For this task, we&#8217;ll log specific applications so that we can identify the top resource users over time using different parsing techniques on the logfiles.<\/p>\n<p><code>* * * * * root iotop -botqqq --iter=3 >> \/var\/log\/iotop<\/code><\/p>\n<p>Save your crontab file. After a minute or so, you should see the logs in \/var\/log\/iotop.<\/p>\n<h2>Conclusion<\/h2>\n<p>As you can see, Iotop is a versatile program that you can use in a number of ways to help keep your disk usage to an acceptable level. We highly recommend using it for systems where you&#8217;ve detected unexplained lags in performance. If this guide was helpful to you, kindly share it with others who may also be interested. <\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>Iotop is a top-like program with a focus on input\/output, or I\/O for short. It monitors what input or output is currently happening on your machine, helping you to quickly identify problematic issues of disk usage. Iotop is an open-source Python program licensed under the GNU General Public License. Getting started You&#8217;ll need the following<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[72],"tags":[],"class_list":["post-2328","post","type-post","status-publish","format-standard","hentry","category-monitoring"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Install and Use Iotop on Ubuntu 16 - Globo.Tech<\/title>\n<meta name=\"description\" content=\"This tutorial will show you how to install and use Iotop on your Ubuntu 16 server. Read now &amp; Start monitoring your server&#039;s resources.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.globo.tech\/learning-center\/install-iotop-ubuntu-16\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install and Use Iotop on Ubuntu 16 - Globo.Tech\" \/>\n<meta property=\"og:description\" content=\"This tutorial will show you how to install and use Iotop on your Ubuntu 16 server. Read now &amp; Start monitoring your server&#039;s resources.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.globo.tech\/learning-center\/install-iotop-ubuntu-16\/\" \/>\n<meta property=\"og:site_name\" content=\"Globo.Tech\" \/>\n<meta property=\"article:published_time\" content=\"2016-07-28T21:12:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2016-09-30T21:36:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2016\/07\/iotop.png\" \/>\n<meta name=\"author\" content=\"GloboTech Communications\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"GloboTech Communications\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.globo.tech\/learning-center\/install-iotop-ubuntu-16\/\",\"url\":\"https:\/\/www.globo.tech\/learning-center\/install-iotop-ubuntu-16\/\",\"name\":\"How to Install and Use Iotop on Ubuntu 16 - Globo.Tech\",\"isPartOf\":{\"@id\":\"https:\/\/www.globo.tech\/learning-center\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.globo.tech\/learning-center\/install-iotop-ubuntu-16\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.globo.tech\/learning-center\/install-iotop-ubuntu-16\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2016\/07\/iotop.png\",\"datePublished\":\"2016-07-28T21:12:09+00:00\",\"dateModified\":\"2016-09-30T21:36:18+00:00\",\"author\":{\"@id\":\"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87\"},\"description\":\"This tutorial will show you how to install and use Iotop on your Ubuntu 16 server. Read now & Start monitoring your server's resources.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.globo.tech\/learning-center\/install-iotop-ubuntu-16\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.globo.tech\/learning-center\/install-iotop-ubuntu-16\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.globo.tech\/learning-center\/install-iotop-ubuntu-16\/#primaryimage\",\"url\":\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2016\/07\/iotop.png\",\"contentUrl\":\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2016\/07\/iotop.png\",\"width\":1061,\"height\":543,\"caption\":\"iotop\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.globo.tech\/learning-center\/install-iotop-ubuntu-16\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.globo.tech\/learning-center\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install and Use Iotop on Ubuntu 16\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.globo.tech\/learning-center\/#website\",\"url\":\"https:\/\/www.globo.tech\/learning-center\/\",\"name\":\"Globo.Tech\",\"description\":\"Welcome to the Official Globo.Tech Learning Center\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.globo.tech\/learning-center\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87\",\"name\":\"GloboTech Communications\",\"sameAs\":[\"http:\/\/www.gtcomm.net\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install and Use Iotop on Ubuntu 16 - Globo.Tech","description":"This tutorial will show you how to install and use Iotop on your Ubuntu 16 server. Read now & Start monitoring your server's resources.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.globo.tech\/learning-center\/install-iotop-ubuntu-16\/","og_locale":"en_US","og_type":"article","og_title":"How to Install and Use Iotop on Ubuntu 16 - Globo.Tech","og_description":"This tutorial will show you how to install and use Iotop on your Ubuntu 16 server. Read now & Start monitoring your server's resources.","og_url":"https:\/\/www.globo.tech\/learning-center\/install-iotop-ubuntu-16\/","og_site_name":"Globo.Tech","article_published_time":"2016-07-28T21:12:09+00:00","article_modified_time":"2016-09-30T21:36:18+00:00","og_image":[{"url":"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2016\/07\/iotop.png","type":"","width":"","height":""}],"author":"GloboTech Communications","twitter_misc":{"Written by":"GloboTech Communications","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.globo.tech\/learning-center\/install-iotop-ubuntu-16\/","url":"https:\/\/www.globo.tech\/learning-center\/install-iotop-ubuntu-16\/","name":"How to Install and Use Iotop on Ubuntu 16 - Globo.Tech","isPartOf":{"@id":"https:\/\/www.globo.tech\/learning-center\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.globo.tech\/learning-center\/install-iotop-ubuntu-16\/#primaryimage"},"image":{"@id":"https:\/\/www.globo.tech\/learning-center\/install-iotop-ubuntu-16\/#primaryimage"},"thumbnailUrl":"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2016\/07\/iotop.png","datePublished":"2016-07-28T21:12:09+00:00","dateModified":"2016-09-30T21:36:18+00:00","author":{"@id":"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87"},"description":"This tutorial will show you how to install and use Iotop on your Ubuntu 16 server. Read now & Start monitoring your server's resources.","breadcrumb":{"@id":"https:\/\/www.globo.tech\/learning-center\/install-iotop-ubuntu-16\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.globo.tech\/learning-center\/install-iotop-ubuntu-16\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.globo.tech\/learning-center\/install-iotop-ubuntu-16\/#primaryimage","url":"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2016\/07\/iotop.png","contentUrl":"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2016\/07\/iotop.png","width":1061,"height":543,"caption":"iotop"},{"@type":"BreadcrumbList","@id":"https:\/\/www.globo.tech\/learning-center\/install-iotop-ubuntu-16\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.globo.tech\/learning-center\/"},{"@type":"ListItem","position":2,"name":"How to Install and Use Iotop on Ubuntu 16"}]},{"@type":"WebSite","@id":"https:\/\/www.globo.tech\/learning-center\/#website","url":"https:\/\/www.globo.tech\/learning-center\/","name":"Globo.Tech","description":"Welcome to the Official Globo.Tech Learning Center","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.globo.tech\/learning-center\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87","name":"GloboTech Communications","sameAs":["http:\/\/www.gtcomm.net"]}]}},"_links":{"self":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/2328","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/comments?post=2328"}],"version-history":[{"count":4,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/2328\/revisions"}],"predecessor-version":[{"id":2939,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/2328\/revisions\/2939"}],"wp:attachment":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/media?parent=2328"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/categories?post=2328"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/tags?post=2328"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}