{"id":1988,"date":"2023-10-02T07:18:45","date_gmt":"2024-09-23T06:19:02","guid":{"rendered":""},"modified":"2025-02-02T00:46:17","modified_gmt":"2025-02-01T23:46:17","slug":"how-to-install-and-use-iostat-on-debian-12","status":"publish","type":"post","link":"https:\/\/netcloud24.com\/knowledgebase\/how-to-install-and-use-iostat-on-debian-12\/","title":{"rendered":"Linux VPS &#038; VPS Windows Setup Guide | NetCloud24 and Use iostat on Debian 12"},"content":{"rendered":"<p>\u00a0<\/p>\n<\/p>\n<header>\n<h1>\u00a0<\/h1>\n<\/header>\n<section>\n<p><strong>iostat<\/strong> is a powerful tool for monitoring system input\/output (I\/O) statistics, which is useful for tracking the performance of hard drives, SSDs, and other storage devices. It is particularly useful for server administrators who need to analyze disk I\/O and CPU utilization on their servers. In this guide, we&#8217;ll show you how to install and use iostat on Debian 12, whether you&#8217;re running a local server or a <strong>VPS server<\/strong>.<\/p>\n<h2>Step 1: Update Your System<\/h2>\n<p>Before installing iostat, it&#8217;s important to ensure your Debian 12 system is up to date. Open your terminal and run the following command:<\/p>\n<pre><code>sudo apt update &amp;&amp; sudo apt upgrade -y<\/code><\/pre>\n<h2>Step 2: Install the sysstat Package<\/h2>\n<p>iostat is part of the <strong>sysstat<\/strong> package, which provides a collection of performance monitoring tools. To install sysstat on Debian 12, use the following command:<\/p>\n<pre><code>sudo apt install sysstat -y<\/code><\/pre>\n<p>Once the installation is complete, you can start using iostat to monitor your system&#8217;s I\/O performance.<\/p>\n<h2>Step 3: Enable sysstat<\/h2>\n<p>By default, sysstat is disabled. To enable it and allow it to collect performance data, you need to modify its configuration file:<\/p>\n<pre><code>sudo nano \/etc\/default\/sysstat<\/code><\/pre>\n<p>Look for the line that reads <code>ENABLED=\"false\"<\/code> and change it to:<\/p>\n<pre><code>ENABLED=\"true\"<\/code><\/pre>\n<p>Save the file and exit. Then, restart the sysstat service to apply the changes:<\/p>\n<pre><code>sudo systemctl restart sysstat<\/code><\/pre>\n<h2>Step 4: Using iostat<\/h2>\n<p>Now that iostat is installed, you can use it to monitor the I\/O performance of your system. To display basic I\/O statistics, run the following command:<\/p>\n<pre><code>iostat<\/code><\/pre>\n<p>This command will display key statistics such as:<\/p>\n<ul>\n<li><strong>tps:<\/strong> Transactions per second (I\/O operations per second).<\/li>\n<li><strong>kB_read\/s:<\/strong> Kilobytes read per second.<\/li>\n<li><strong>kB_wrtn\/s:<\/strong> Kilobytes written per second.<\/li>\n<li><strong>kB_read:<\/strong> Total kilobytes read.<\/li>\n<li><strong>kB_wrtn:<\/strong> Total kilobytes written.<\/li>\n<\/ul>\n<h2>Step 5: Monitor CPU Usage with iostat<\/h2>\n<p>In addition to monitoring disk I\/O, iostat can also provide CPU usage statistics. To display CPU usage along with disk I\/O, use the following command:<\/p>\n<pre><code>iostat -c<\/code><\/pre>\n<p>This will show you the percentage of CPU time spent on different tasks, including:<\/p>\n<ul>\n<li><strong>user:<\/strong> Time spent in user mode.<\/li>\n<li><strong>system:<\/strong> Time spent in system mode.<\/li>\n<li><strong>idle:<\/strong> Time the CPU was idle.<\/li>\n<\/ul>\n<h2>Step 6: Continuously Monitor I\/O Performance<\/h2>\n<p>If you want to monitor your system&#8217;s I\/O performance in real-time, you can run iostat in continuous mode by specifying an interval (in seconds) between reports. For example, to display statistics every 5 seconds, use:<\/p>\n<pre><code>iostat 5<\/code><\/pre>\n<p>This will continue to display I\/O statistics every 5 seconds until you stop the command (by pressing <code>Ctrl+C<\/code>).<\/p>\n<h2>Using iostat on a VPS Server<\/h2>\n<p>For those managing a <strong>VPS server<\/strong>, iostat is an invaluable tool for tracking the performance of your virtualized storage. By regularly monitoring I\/O performance, you can identify potential bottlenecks and optimize your server&#8217;s performance. Whether you&#8217;re hosting websites, databases, or applications on a <strong>VPS<\/strong>, iostat ensures you have detailed insights into how your resources are being used.<\/p>\n<h2>Looking for a Reliable VPS Solution?<\/h2>\n<p>If you&#8217;re looking for a high-performance <strong>VPS server<\/strong> that supports advanced monitoring tools like iostat, consider using . With <strong>Windows VPS<\/strong>, you can enjoy scalable, secure, and reliable VPS hosting, perfect for handling high-demand applications with detailed performance monitoring.<\/p>\n<footer>\n<p>For more VPS server solutions and guides, visit <a href=\"https:\/\/ie.netcloud24.com\" target=\"_blank\" rel=\"follow\">netcloud24.com<\/a>.<\/p>\n<\/footer>\n<\/section>\n<div class=\"post-author-box\" style=\"border-top:1px solid #ddd;margin-top:20px;padding-top:15px;\">\n<p><strong>Author:<\/strong> \u0141ukasz Bodziony<\/p>\n<p><strong>Website:<\/strong> <a href=\"https:\/\/ca.netcloud24.com\" target=\"_blank\" rel=\"dofollow\">Windows VPS<\/a><\/p>\n<p><em>\u0141ukasz Bodziony is the CEO and founder of <a href=\"https:\/\/netcloud24.com\" target=\"_blank\" rel=\"dofollow\">NETCLOUD24<\/a>, a global VPS hosting brand proudly originating from Poland. With extensive experience in cloud computing, virtualization, and server management, he delivers high-performance <strong>Windows VPS<\/strong> and <strong>Remote Desktop Services (RDS)<\/strong> solutions to clients across Europe, North America, and beyond.<\/em><\/p>\n<p><em>His expertise covers a wide range of technologies, including <strong>Microsoft Azure<\/strong>, <strong>Proxmox VE<\/strong>, <strong>Amazon Web Services (AWS)<\/strong>, and numerous other virtualization and cloud platforms.<\/em><\/p>\n<p><em>Beyond running his hosting business, \u0141ukasz also provides <strong>professional paid server configuration and optimization services<\/strong> for companies and individuals. Outside of work, he is dedicated to caring for his children and building a secure future for them.<\/em><\/p>\n<p><em>If you are interested in working with him or need expert assistance with your hosting, cloud environment, or server setup, feel free to reach out via <a href=\"https:\/\/ca.netcloud24.com\" target=\"_blank\" rel=\"dofollow\">Windows VPS<\/a>.<\/em><\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0 \u00a0 iostat is a powerful tool for monitoring system input\/output (I\/O) statistics, which is useful for tracking the performance of hard drives, SSDs, and other storage devices.\u2026<\/p>\n","protected":false},"author":1,"featured_media":3421,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[],"tags":[14,12,11,23,20,21,22,17,7,8,6,10,18,19,15,24,16,5,13,9],"class_list":["post-1988","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","tag-cheapvps","tag-cloudvps","tag-hostingvps","tag-rds","tag-rdscal","tag-remotedesktop","tag-remotedesktopvps","tag-servervps","tag-ukvps","tag-virtualserver","tag-vpshosting","tag-vpsserver","tag-vpssolutions","tag-vpswindows","tag-vpswithwindows","tag-windowsrds","tag-windowsserver","tag-windowsvps","tag-windowsvpshosting","tag-windowsvpsuk"],"jetpack_publicize_connections":[],"_links":{"self":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1988","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=1988"}],"version-history":[{"count":0,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1988\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/media\/3421"}],"wp:attachment":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=1988"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=1988"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=1988"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}