{"id":4120,"date":"2023-02-08T15:39:30","date_gmt":"2023-02-08T10:09:30","guid":{"rendered":"https:\/\/trysiteprice.com\/blog\/?p=4120"},"modified":"2023-02-08T15:39:30","modified_gmt":"2023-02-08T10:09:30","slug":"4-linux-commands-to-view-page-faults-statistics","status":"publish","type":"post","link":"https:\/\/trysiteprice.com\/blog\/4-linux-commands-to-view-page-faults-statistics\/","title":{"rendered":"4 Linux Commands To View Page Faults Statistics"},"content":{"rendered":"<p>Here are four Linux commands to view page fault statistics:<\/p>\n<ol>\n<li><code>vmstat<\/code> &#8211; This is a versatile command that provides information on system resource utilization, including page faults. The <code>vmstat<\/code> command reports the number of page faults in the &#8220;faults&#8221; column.<\/li>\n<\/ol>\n<div class=\"bg-black mb-4 rounded-md\">\n<div class=\"flex items-center relative text-gray-200 bg-gray-800 px-4 py-2 text-xs font-sans\"><\/div>\n<div class=\"p-4 overflow-y-auto\"><code class=\"!whitespace-pre hljs language-css\">vmstat<br \/>\nprocs ---------<span class=\"hljs-attr\">--memory----------<\/span> -<span class=\"hljs-attr\">--swap--<\/span> ---<span class=\"hljs-attr\">--io----<\/span> -system-- ----<span class=\"hljs-attr\">--cpu-----<\/span><br \/>\n r  <span class=\"hljs-selector-tag\">b<\/span>   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st<br \/>\n <span class=\"hljs-number\">1<\/span>  <span class=\"hljs-number\">0<\/span>      <span class=\"hljs-number\">0<\/span> <span class=\"hljs-number\">356428<\/span>  <span class=\"hljs-number\">76048<\/span> <span class=\"hljs-number\">573456<\/span>    <span class=\"hljs-number\">0<\/span>    <span class=\"hljs-number\">0<\/span>     <span class=\"hljs-number\">3<\/span>    <span class=\"hljs-number\">55<\/span>    <span class=\"hljs-number\">2<\/span>    <span class=\"hljs-number\">4<\/span>  <span class=\"hljs-number\">1<\/span>  <span class=\"hljs-number\">0<\/span> <span class=\"hljs-number\">99<\/span>  <span class=\"hljs-number\">0<\/span>  <span class=\"hljs-number\">0<\/span><br \/>\n<\/code><\/div>\n<\/div>\n<p>In this example, the <code>si<\/code> and <code>so<\/code> columns indicate the number of pages swapped in and out, respectively. The &#8220;faults&#8221; value is the sum of <code>si<\/code> and <code>so<\/code>.<\/p>\n<ol start=\"2\">\n<li><code>\/proc\/meminfo<\/code> &#8211; This is a special file in the <code>\/proc<\/code> file system that contains information about the system&#8217;s memory usage. You can use the <code>grep<\/code> command to display the page fault statistics:<\/li>\n<\/ol>\n<div class=\"bg-black mb-4 rounded-md\">\n<div class=\"flex items-center relative text-gray-200 bg-gray-800 px-4 py-2 text-xs font-sans\"><\/div>\n<div class=\"p-4 overflow-y-auto\"><code class=\"!whitespace-pre hljs language-bash\">grep -E <span class=\"hljs-string\">'^(Page.*Faults)'<\/span> \/proc\/meminfo<br \/>\nPage Faults: 9907<br \/>\n<\/code><\/div>\n<\/div>\n<p>In this example, the &#8220;Page Faults&#8221; value indicates the number of page faults that have occurred.<\/p>\n<ol start=\"3\">\n<li><code>sar<\/code> &#8211; This command provides system utilization information and can be used to display page fault statistics. To view page fault statistics with <code>sar<\/code>, you need to install the <code>sysstat<\/code> package.<\/li>\n<\/ol>\n<div class=\"bg-black mb-4 rounded-md\">\n<div class=\"flex items-center relative text-gray-200 bg-gray-800 px-4 py-2 text-xs font-sans\"><\/div>\n<div class=\"p-4 overflow-y-auto\"><code class=\"!whitespace-pre hljs language-bash\">sar -B<br \/>\nLinux 4.18.0-193.19.1.el8_2.x86_64 (server)  08\/02\/2023  _x86_64_    (4 CPU)<\/p>\n<p>05:34:01 PM       pgpgin\/s      pgpgout\/s         fault\/s  majflt\/s  pgfree\/s pgscank\/s pgscand\/s pgsteal\/s    %vmeff<br \/>\n05:34:02 PM       0.00        45.00        0.00        0.00        0.00        0.00        0.00        0.00<br \/>\n05:34:03 PM       0.00        0.00        0.00        0.00        0.00        0.00        0.00        0.00<br \/>\n05:34:04 PM       0.00        0.00        0.00        0.00        0.00        0.00        0.00        0.00<\/p>\n<p>Average:          0.00        22.50        0.00        0.00        0.00        0.00        0.00        0.00<br \/>\n<\/code><\/div>\n<\/div>\n<p>In this example, the &#8220;fault\/s&#8221; column indicates the number of page faults per second.<\/p>\n<ol start=\"4\">\n<li><code>mpstat<\/code> &#8211; This command provides information on processor and system activity, including page fault statistics.<\/li>\n<\/ol>\n<div class=\"bg-black mb-4 rounded-md\">\n<div class=\"flex items-center relative text-gray-200 bg-gray-800 px-4 py-2 text-xs font-sans\"><\/div>\n<div class=\"p-4 overflow-y-auto\"><code class=\"!whitespace-pre hljs language-perl\">mpstat<br \/>\nLinux <span class=\"hljs-number\">4.18<\/span>.<span class=\"hljs-number\">0<\/span>-<span class=\"hljs-number\">193.19<\/span>.<span class=\"hljs-number\">1<\/span>.el8_2.x86_64 (server)  08\/<span class=\"hljs-number\">02<\/span>\/<span class=\"hljs-number\">2023<\/span>  _x86_64<span class=\"hljs-number\">_<\/span>    (<span class=\"hljs-number\">4<\/span> CPU)<\/p>\n<p><span class=\"hljs-number\">05<\/span>:<span class=\"hljs-number\">38<\/span>:<span class=\"hljs-number\">01<\/span> PM  CPU    %usr   %nice    %sys %iowait    %irq   %soft  %steal  %guest  %gnice   %idle<br \/>\n<span class=\"hljs-number\">05<\/span>:<span class=\"hljs-number\">38<\/span>:<span class=\"hljs-number\">02<\/span> PM <\/code><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Here are four Linux commands to view page fault statistics: vmstat &#8211; This is a versatile command that provides information on system resource utilization, including page faults. The vmstat command reports the number of page faults in the &#8220;faults&#8221; column. vmstat procs &#8212;&#8212;&#8212;&#8211;memory&#8212;&#8212;&#8212;- &#8212;swap&#8211; &#8212;&#8211;io&#8212;- -system&#8211; &#8212;&#8212;cpu&#8212;&#8211; r b swpd free buff cache si so &#8230; <a title=\"4 Linux Commands To View Page Faults Statistics\" class=\"read-more\" href=\"https:\/\/trysiteprice.com\/blog\/4-linux-commands-to-view-page-faults-statistics\/\" aria-label=\"Read more about 4 Linux Commands To View Page Faults Statistics\">Read more<\/a><\/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-4120","post","type-post","status-publish","format-standard","hentry","category-best-tutorial"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>4 Linux Commands To View Page Faults Statistics - TrySitePrice<\/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:\/\/trysiteprice.com\/blog\/4-linux-commands-to-view-page-faults-statistics\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"4 Linux Commands To View Page Faults Statistics - TrySitePrice\" \/>\n<meta property=\"og:description\" content=\"Here are four Linux commands to view page fault statistics: vmstat &#8211; This is a versatile command that provides information on system resource utilization, including page faults. The vmstat command reports the number of page faults in the &#8220;faults&#8221; column. vmstat procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu----- r b swpd free buff cache si so ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/trysiteprice.com\/blog\/4-linux-commands-to-view-page-faults-statistics\/\" \/>\n<meta property=\"og:site_name\" content=\"TrySitePrice\" \/>\n<meta property=\"article:published_time\" content=\"2023-02-08T10:09:30+00:00\" \/>\n<meta name=\"author\" content=\"Rahul Sahu\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/trysiteprice.com\/blog\/4-linux-commands-to-view-page-faults-statistics\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/trysiteprice.com\/blog\/4-linux-commands-to-view-page-faults-statistics\/\"},\"author\":{\"name\":\"Rahul Sahu\",\"@id\":\"https:\/\/trysiteprice.com\/blog\/#\/schema\/person\/358e04eeea4281deacad2f30c58e67f4\"},\"headline\":\"4 Linux Commands To View Page Faults Statistics\",\"datePublished\":\"2023-02-08T10:09:30+00:00\",\"dateModified\":\"2023-02-08T10:09:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/trysiteprice.com\/blog\/4-linux-commands-to-view-page-faults-statistics\/\"},\"wordCount\":171,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/trysiteprice.com\/blog\/#organization\"},\"articleSection\":[\"Best\/Tutorial\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/trysiteprice.com\/blog\/4-linux-commands-to-view-page-faults-statistics\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/trysiteprice.com\/blog\/4-linux-commands-to-view-page-faults-statistics\/\",\"url\":\"https:\/\/trysiteprice.com\/blog\/4-linux-commands-to-view-page-faults-statistics\/\",\"name\":\"4 Linux Commands To View Page Faults Statistics - TrySitePrice\",\"isPartOf\":{\"@id\":\"https:\/\/trysiteprice.com\/blog\/#website\"},\"datePublished\":\"2023-02-08T10:09:30+00:00\",\"dateModified\":\"2023-02-08T10:09:30+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/trysiteprice.com\/blog\/4-linux-commands-to-view-page-faults-statistics\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/trysiteprice.com\/blog\/4-linux-commands-to-view-page-faults-statistics\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/trysiteprice.com\/blog\/4-linux-commands-to-view-page-faults-statistics\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/trysiteprice.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"4 Linux Commands To View Page Faults Statistics\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/trysiteprice.com\/blog\/#website\",\"url\":\"https:\/\/trysiteprice.com\/blog\/\",\"name\":\"TrySitePrice\",\"description\":\"Free Website Value Calculator Tool\",\"publisher\":{\"@id\":\"https:\/\/trysiteprice.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/trysiteprice.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/trysiteprice.com\/blog\/#organization\",\"name\":\"TrySitePrice\",\"url\":\"https:\/\/trysiteprice.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/trysiteprice.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/trysiteprice.com\/blog\/wp-content\/uploads\/2021\/12\/cropped-trysiteprice-logo.png\",\"contentUrl\":\"https:\/\/trysiteprice.com\/blog\/wp-content\/uploads\/2021\/12\/cropped-trysiteprice-logo.png\",\"width\":395,\"height\":268,\"caption\":\"TrySitePrice\"},\"image\":{\"@id\":\"https:\/\/trysiteprice.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/trysiteprice.com\/blog\/#\/schema\/person\/358e04eeea4281deacad2f30c58e67f4\",\"name\":\"Rahul Sahu\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/trysiteprice.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/51f0f95f7b95665f62baed2211572165?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/51f0f95f7b95665f62baed2211572165?s=96&d=mm&r=g\",\"caption\":\"Rahul Sahu\"},\"sameAs\":[\"https:\/\/trysiteprice.com\/blog\"],\"url\":\"https:\/\/trysiteprice.com\/blog\/author\/rsahu4242_trysiteprice\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"4 Linux Commands To View Page Faults Statistics - TrySitePrice","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:\/\/trysiteprice.com\/blog\/4-linux-commands-to-view-page-faults-statistics\/","og_locale":"en_US","og_type":"article","og_title":"4 Linux Commands To View Page Faults Statistics - TrySitePrice","og_description":"Here are four Linux commands to view page fault statistics: vmstat &#8211; This is a versatile command that provides information on system resource utilization, including page faults. The vmstat command reports the number of page faults in the &#8220;faults&#8221; column. vmstat procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu----- r b swpd free buff cache si so ... Read more","og_url":"https:\/\/trysiteprice.com\/blog\/4-linux-commands-to-view-page-faults-statistics\/","og_site_name":"TrySitePrice","article_published_time":"2023-02-08T10:09:30+00:00","author":"Rahul Sahu","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/trysiteprice.com\/blog\/4-linux-commands-to-view-page-faults-statistics\/#article","isPartOf":{"@id":"https:\/\/trysiteprice.com\/blog\/4-linux-commands-to-view-page-faults-statistics\/"},"author":{"name":"Rahul Sahu","@id":"https:\/\/trysiteprice.com\/blog\/#\/schema\/person\/358e04eeea4281deacad2f30c58e67f4"},"headline":"4 Linux Commands To View Page Faults Statistics","datePublished":"2023-02-08T10:09:30+00:00","dateModified":"2023-02-08T10:09:30+00:00","mainEntityOfPage":{"@id":"https:\/\/trysiteprice.com\/blog\/4-linux-commands-to-view-page-faults-statistics\/"},"wordCount":171,"commentCount":0,"publisher":{"@id":"https:\/\/trysiteprice.com\/blog\/#organization"},"articleSection":["Best\/Tutorial"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/trysiteprice.com\/blog\/4-linux-commands-to-view-page-faults-statistics\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/trysiteprice.com\/blog\/4-linux-commands-to-view-page-faults-statistics\/","url":"https:\/\/trysiteprice.com\/blog\/4-linux-commands-to-view-page-faults-statistics\/","name":"4 Linux Commands To View Page Faults Statistics - TrySitePrice","isPartOf":{"@id":"https:\/\/trysiteprice.com\/blog\/#website"},"datePublished":"2023-02-08T10:09:30+00:00","dateModified":"2023-02-08T10:09:30+00:00","breadcrumb":{"@id":"https:\/\/trysiteprice.com\/blog\/4-linux-commands-to-view-page-faults-statistics\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/trysiteprice.com\/blog\/4-linux-commands-to-view-page-faults-statistics\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/trysiteprice.com\/blog\/4-linux-commands-to-view-page-faults-statistics\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/trysiteprice.com\/blog\/"},{"@type":"ListItem","position":2,"name":"4 Linux Commands To View Page Faults Statistics"}]},{"@type":"WebSite","@id":"https:\/\/trysiteprice.com\/blog\/#website","url":"https:\/\/trysiteprice.com\/blog\/","name":"TrySitePrice","description":"Free Website Value Calculator Tool","publisher":{"@id":"https:\/\/trysiteprice.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/trysiteprice.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/trysiteprice.com\/blog\/#organization","name":"TrySitePrice","url":"https:\/\/trysiteprice.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/trysiteprice.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/trysiteprice.com\/blog\/wp-content\/uploads\/2021\/12\/cropped-trysiteprice-logo.png","contentUrl":"https:\/\/trysiteprice.com\/blog\/wp-content\/uploads\/2021\/12\/cropped-trysiteprice-logo.png","width":395,"height":268,"caption":"TrySitePrice"},"image":{"@id":"https:\/\/trysiteprice.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/trysiteprice.com\/blog\/#\/schema\/person\/358e04eeea4281deacad2f30c58e67f4","name":"Rahul Sahu","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/trysiteprice.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/51f0f95f7b95665f62baed2211572165?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/51f0f95f7b95665f62baed2211572165?s=96&d=mm&r=g","caption":"Rahul Sahu"},"sameAs":["https:\/\/trysiteprice.com\/blog"],"url":"https:\/\/trysiteprice.com\/blog\/author\/rsahu4242_trysiteprice\/"}]}},"_links":{"self":[{"href":"https:\/\/trysiteprice.com\/blog\/wp-json\/wp\/v2\/posts\/4120","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/trysiteprice.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/trysiteprice.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/trysiteprice.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/trysiteprice.com\/blog\/wp-json\/wp\/v2\/comments?post=4120"}],"version-history":[{"count":1,"href":"https:\/\/trysiteprice.com\/blog\/wp-json\/wp\/v2\/posts\/4120\/revisions"}],"predecessor-version":[{"id":4121,"href":"https:\/\/trysiteprice.com\/blog\/wp-json\/wp\/v2\/posts\/4120\/revisions\/4121"}],"wp:attachment":[{"href":"https:\/\/trysiteprice.com\/blog\/wp-json\/wp\/v2\/media?parent=4120"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/trysiteprice.com\/blog\/wp-json\/wp\/v2\/categories?post=4120"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/trysiteprice.com\/blog\/wp-json\/wp\/v2\/tags?post=4120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}