{"id":14055,"date":"2024-07-17T10:37:33","date_gmt":"2024-07-17T05:07:33","guid":{"rendered":"https:\/\/utho.com\/blog\/?p=14055"},"modified":"2026-03-13T10:19:14","modified_gmt":"2026-03-13T04:49:14","slug":"what-is-iostat-command-and-how-to-use-it","status":"publish","type":"post","link":"https:\/\/utho.com\/blog\/what-is-iostat-command-and-how-to-use-it\/","title":{"rendered":"What is IOSTAT command and how to use it"},"content":{"rendered":"<figure>\n<p>![What is IOSTAT command and how to use it](images\/iostat-1.png)<figcaption>\n<p>What is IOSTAT command and how to use it<\/p>\n<\/figcaption><\/figure>\n<pre><code>Description:<\/code><\/pre>\n<p>In this tutorial, we will learn what the IOSTAT command and how to use it. With the iostat command, you can see how busy your system&#8217;s input\/output devices are by comparing the amount of time they are active to their average transfer rates.<br \/>\nThe iostat command makes reports that can be used to change how the system is set up so that the input\/output load is more evenly spread across the physical discs.<\/p>\n<\/p>\n<h2><strong>How to install iostat command in Linux<\/strong><\/h2>\n<pre><code>Prerequisites: To install the iostat command you must be either super user or a normal user with SUDO privileges. <\/code><\/pre>\n<p>The iostat command does not come pre-installed with Linux distributions, but it is part of the default package. This means that the package manager of the Linux distribution can be used to install it.<\/p>\n<p>In Fedora\/ Redhat\/ Centos:<\/p>\n<pre><code> # yum install sysstat -y <\/code><\/pre>\n<p>In Ubuntu\/ Debian:<\/p>\n<pre><code> # apt install sysstat -y <\/code><\/pre>\n<h2><strong>How to use IOSTAT command:<\/strong><\/h2>\n<p>To generate the default or basic report using iostat, you can simply type iostat in your terminal and hit enter<\/p>\n<pre><code># iostat <\/code><\/pre>\n<figure>\n<p>![output of iostat comand](images\/Screenshot-from-2022-08-25-08-50-47.png)<figcaption>\n<p>output of iostat comand<\/p>\n<\/figcaption><\/figure>\n<p>The iostat command makes reports that are divided into two sections: the CPU Utilization report and the Device Utilization report.<\/p>\n<p><strong>CPU Utilization report:<\/strong> The CPU Utilization Report shows how well the CPU is working based on different parameters. Here&#8217;s what these parameters mean:<\/p>\n<ul>\n<li>\n<p>%user: CPU utilization in percentage that was used while running user processes.<\/p>\n<\/li>\n<li>\n<p>%nice: CPU utilization in percentage that was used while running user processes with nice priorities.<\/p>\n<\/li>\n<li>\n<p>%system: CPU Utilization in percentage that was used while running kernel.<\/p>\n<\/li>\n<li>\n<p>%iowait: Show the percentage of time that the CPU or CPUs were idle during which the system had an outstanding disk I\/O request.<\/p>\n<\/li>\n<li>\n<p>%steal: Show the percentage of time spent in involuntary wait by the virtual CPU or CPUs while the hypervisor was servicing another virtual processor.<\/p>\n<\/li>\n<li>%idle: Show the percentage of time that the CPU or CPUs were idle and the system did not have an outstanding disk I\/O request.<\/li>\n<\/ul>\n<p><strong>Disk Utilization Report:<\/strong><\/p>\n<p>The Device Utilization Report is the second report that is made by the iostat command. The device report gives information about statistics for each physical device or partition. On the command line, you can enter statistics to be shown for block devices and partitions.<br \/>\nIf you don&#8217;t enter a device or partition, statistics are shown for every device the system uses, as long as the kernel keeps statistics for it.<\/p>\n<p>In this report too, it show the report on different parameters. Here&#8217;s what these parameters mean:<\/p>\n<ul>\n<li>\n<p>Device: This column gives the <a href=\"https:\/\/utho.com\/docs\/tutorial\/how-to-increase-and-decrease-the-lvm-size\/\">device (or partition)<\/a> name as listed in the \/dev directory.<\/p>\n<\/li>\n<li>\n<p>tps: The number of transfers per second that were sent to the device. If tps is high, it means the processor is working hard.<\/p>\n<\/li>\n<li>\n<p>KB_read\/s: Indicate the amount of data read from the device<\/p>\n<\/li>\n<li>\n<p>kB_wrtn\/s: Indicate the amount of data written to the device<\/p>\n<\/li>\n<li>\n<p>kB_dscd\/s: It displays the rate of data discarded by the CPU per second<\/p>\n<\/li>\n<li>\n<p>kB_read: It displays the amount the data read<\/p>\n<\/li>\n<li>\n<p>kB_wrtn: It displays the amount the data written<\/p>\n<\/li>\n<li>KB_dscd: It display the amount the data discarded<\/li>\n<\/ul>\n<p>You can find the other useful paramethers you can find in the output related to iostat command.<\/p>\n<ul>\n<li>\n<p>rps: Indicates the number of read transfers per second.<\/p>\n<\/li>\n<li>Krps: here, K represent is kilo which means 1000. So it defines as above but of value of 1000.<\/li>\n<\/ul>\n<p>To display the report only for <a href=\"https:\/\/en.wikipedia.org\/wiki\/CPU_time#:~:text=The%20CPU%20usage%20is%20used,has%20entered%20an%20infinite%20loop.\">CPU Utilization<\/a>:<\/p>\n<pre><code># iostat -c <\/code><\/pre>\n<p>To display the report only for Disk Utilization:<\/p>\n<pre><code># iostat -d <\/code><\/pre>\n<p>To display a continuous device report at two-second intervals.<\/p>\n<pre><code># iostat -d 2<\/code><\/pre>\n<p>If you want to generate n reports in a given time, use the below format to execute the command<\/p>\n<pre><code>iostat interval-time numbers_of_time<\/code><\/pre>\n<p>For example, to generate 6 report for every 2 seconds, but for only devices<\/p>\n<pre><code># iostat -d 2 6 <\/code><\/pre>\n<p>To generate a report for a specific device.<\/p>\n<pre><code># iostat sda # or any other device<\/code><\/pre>\n<p>To generate a report for a specific device with all its partition.<\/p>\n<pre><code># iostat -p sda # or any other device<\/code><\/pre>\n<figure>\n<p>![](images\/Screenshot-from-2022-08-26-09-20-35.png)<figcaption>\n<p>output some advance<\/p>\n<\/figcaption><\/figure>\n<p>In conclusion, you have learned that what is IOSTAT command and how to use it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>![What is IOSTAT command and how to use it](images\/iostat-1.png) What is IOSTAT command and how to use it Description: In this tutorial, we will learn what the IOSTAT command and how to use it. With the iostat command, you can see how busy your system&#8217;s input\/output devices are by comparing the amount of time they [&hellip;]<\/p>\n","protected":false},"author":17,"featured_media":15236,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-14055","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>What is IOSTAT command and how to use it - Utho<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/utho.com\/blog\/what-is-iostat-command-and-how-to-use-it\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What is IOSTAT command and how to use it - Utho\" \/>\n<meta property=\"og:description\" content=\"![What is IOSTAT command and how to use it](images\/iostat-1.png) What is IOSTAT command and how to use it Description: In this tutorial, we will learn what the IOSTAT command and how to use it. With the iostat command, you can see how busy your system&#8217;s input\/output devices are by comparing the amount of time they [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/utho.com\/blog\/what-is-iostat-command-and-how-to-use-it\/\" \/>\n<meta property=\"og:site_name\" content=\"Utho\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/uthocloud\" \/>\n<meta property=\"article:published_time\" content=\"2024-07-17T05:07:33+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-03-13T04:49:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/utho.com\/blog\/wp-content\/uploads\/What-is-IOSTAT-command-and-how-to-use-it.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"556\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Lalit Mohan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@uthocloud\" \/>\n<meta name=\"twitter:site\" content=\"@uthocloud\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Lalit Mohan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/utho.com\/blog\/what-is-iostat-command-and-how-to-use-it\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/utho.com\/blog\/what-is-iostat-command-and-how-to-use-it\/\"},\"author\":{\"name\":\"Lalit Mohan\",\"@id\":\"https:\/\/utho.com\/blog\/#\/schema\/person\/9693d39f082d6340710c7cf966bee5f9\"},\"headline\":\"What is IOSTAT command and how to use it\",\"datePublished\":\"2024-07-17T05:07:33+00:00\",\"dateModified\":\"2026-03-13T04:49:14+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/utho.com\/blog\/what-is-iostat-command-and-how-to-use-it\/\"},\"wordCount\":687,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/utho.com\/blog\/#organization\"},\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/utho.com\/blog\/what-is-iostat-command-and-how-to-use-it\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/utho.com\/blog\/what-is-iostat-command-and-how-to-use-it\/\",\"url\":\"https:\/\/utho.com\/blog\/what-is-iostat-command-and-how-to-use-it\/\",\"name\":\"What is IOSTAT command and how to use it - Utho\",\"isPartOf\":{\"@id\":\"https:\/\/utho.com\/blog\/#website\"},\"datePublished\":\"2024-07-17T05:07:33+00:00\",\"dateModified\":\"2026-03-13T04:49:14+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/utho.com\/blog\/what-is-iostat-command-and-how-to-use-it\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/utho.com\/blog\/what-is-iostat-command-and-how-to-use-it\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/utho.com\/blog\/what-is-iostat-command-and-how-to-use-it\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/utho.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"What is IOSTAT command and how to use it\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/utho.com\/blog\/#website\",\"url\":\"https:\/\/utho.com\/blog\/\",\"name\":\"Utho\",\"description\":\"Tutorials Guides for Linux, Windows and Developers\",\"publisher\":{\"@id\":\"https:\/\/utho.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/utho.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/utho.com\/blog\/#organization\",\"name\":\"Utho\",\"url\":\"https:\/\/utho.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/utho.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/utho.com\/blog\/wp-content\/uploads\/utho_logo_blue.png\",\"contentUrl\":\"https:\/\/utho.com\/blog\/wp-content\/uploads\/utho_logo_blue.png\",\"width\":1147,\"height\":446,\"caption\":\"Utho\"},\"image\":{\"@id\":\"https:\/\/utho.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/uthocloud\",\"https:\/\/twitter.com\/uthocloud\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/utho.com\/blog\/#\/schema\/person\/9693d39f082d6340710c7cf966bee5f9\",\"name\":\"Lalit Mohan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/utho.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/808c9eceb3b37b0dcce8c3f12dcd5328d077cf84f385b065b75185476a71857b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/808c9eceb3b37b0dcce8c3f12dcd5328d077cf84f385b065b75185476a71857b?s=96&d=mm&r=g\",\"caption\":\"Lalit Mohan\"},\"url\":\"https:\/\/utho.com\/blog\/author\/lalitmohan\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What is IOSTAT command and how to use it - Utho","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:\/\/utho.com\/blog\/what-is-iostat-command-and-how-to-use-it\/","og_locale":"en_US","og_type":"article","og_title":"What is IOSTAT command and how to use it - Utho","og_description":"![What is IOSTAT command and how to use it](images\/iostat-1.png) What is IOSTAT command and how to use it Description: In this tutorial, we will learn what the IOSTAT command and how to use it. With the iostat command, you can see how busy your system&#8217;s input\/output devices are by comparing the amount of time they [&hellip;]","og_url":"https:\/\/utho.com\/blog\/what-is-iostat-command-and-how-to-use-it\/","og_site_name":"Utho","article_publisher":"https:\/\/www.facebook.com\/uthocloud","article_published_time":"2024-07-17T05:07:33+00:00","article_modified_time":"2026-03-13T04:49:14+00:00","og_image":[{"width":1024,"height":556,"url":"https:\/\/utho.com\/blog\/wp-content\/uploads\/What-is-IOSTAT-command-and-how-to-use-it.jpg","type":"image\/jpeg"}],"author":"Lalit Mohan","twitter_card":"summary_large_image","twitter_creator":"@uthocloud","twitter_site":"@uthocloud","twitter_misc":{"Written by":"Lalit Mohan","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/utho.com\/blog\/what-is-iostat-command-and-how-to-use-it\/#article","isPartOf":{"@id":"https:\/\/utho.com\/blog\/what-is-iostat-command-and-how-to-use-it\/"},"author":{"name":"Lalit Mohan","@id":"https:\/\/utho.com\/blog\/#\/schema\/person\/9693d39f082d6340710c7cf966bee5f9"},"headline":"What is IOSTAT command and how to use it","datePublished":"2024-07-17T05:07:33+00:00","dateModified":"2026-03-13T04:49:14+00:00","mainEntityOfPage":{"@id":"https:\/\/utho.com\/blog\/what-is-iostat-command-and-how-to-use-it\/"},"wordCount":687,"commentCount":0,"publisher":{"@id":"https:\/\/utho.com\/blog\/#organization"},"articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/utho.com\/blog\/what-is-iostat-command-and-how-to-use-it\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/utho.com\/blog\/what-is-iostat-command-and-how-to-use-it\/","url":"https:\/\/utho.com\/blog\/what-is-iostat-command-and-how-to-use-it\/","name":"What is IOSTAT command and how to use it - Utho","isPartOf":{"@id":"https:\/\/utho.com\/blog\/#website"},"datePublished":"2024-07-17T05:07:33+00:00","dateModified":"2026-03-13T04:49:14+00:00","breadcrumb":{"@id":"https:\/\/utho.com\/blog\/what-is-iostat-command-and-how-to-use-it\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/utho.com\/blog\/what-is-iostat-command-and-how-to-use-it\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/utho.com\/blog\/what-is-iostat-command-and-how-to-use-it\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/utho.com\/blog\/"},{"@type":"ListItem","position":2,"name":"What is IOSTAT command and how to use it"}]},{"@type":"WebSite","@id":"https:\/\/utho.com\/blog\/#website","url":"https:\/\/utho.com\/blog\/","name":"Utho","description":"Tutorials Guides for Linux, Windows and Developers","publisher":{"@id":"https:\/\/utho.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/utho.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/utho.com\/blog\/#organization","name":"Utho","url":"https:\/\/utho.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/utho.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/utho.com\/blog\/wp-content\/uploads\/utho_logo_blue.png","contentUrl":"https:\/\/utho.com\/blog\/wp-content\/uploads\/utho_logo_blue.png","width":1147,"height":446,"caption":"Utho"},"image":{"@id":"https:\/\/utho.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/uthocloud","https:\/\/twitter.com\/uthocloud"]},{"@type":"Person","@id":"https:\/\/utho.com\/blog\/#\/schema\/person\/9693d39f082d6340710c7cf966bee5f9","name":"Lalit Mohan","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/utho.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/808c9eceb3b37b0dcce8c3f12dcd5328d077cf84f385b065b75185476a71857b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/808c9eceb3b37b0dcce8c3f12dcd5328d077cf84f385b065b75185476a71857b?s=96&d=mm&r=g","caption":"Lalit Mohan"},"url":"https:\/\/utho.com\/blog\/author\/lalitmohan\/"}]}},"_links":{"self":[{"href":"https:\/\/utho.com\/blog\/wp-json\/wp\/v2\/posts\/14055","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/utho.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/utho.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/utho.com\/blog\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/utho.com\/blog\/wp-json\/wp\/v2\/comments?post=14055"}],"version-history":[{"count":1,"href":"https:\/\/utho.com\/blog\/wp-json\/wp\/v2\/posts\/14055\/revisions"}],"predecessor-version":[{"id":14056,"href":"https:\/\/utho.com\/blog\/wp-json\/wp\/v2\/posts\/14055\/revisions\/14056"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/utho.com\/blog\/wp-json\/wp\/v2\/media\/15236"}],"wp:attachment":[{"href":"https:\/\/utho.com\/blog\/wp-json\/wp\/v2\/media?parent=14055"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/utho.com\/blog\/wp-json\/wp\/v2\/categories?post=14055"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/utho.com\/blog\/wp-json\/wp\/v2\/tags?post=14055"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}