{"id":119,"date":"2015-03-21T08:07:00","date_gmt":"2015-03-21T13:07:00","guid":{"rendered":"http:\/\/onebyte.org\/blog\/?p=119"},"modified":"2021-03-21T08:09:38","modified_gmt":"2021-03-21T13:09:38","slug":"aix-5-3-performance-diagnostics","status":"publish","type":"post","link":"https:\/\/www.onebyte.org\/blog\/2015\/03\/21\/aix-5-3-performance-diagnostics\/","title":{"rendered":"AIX 5.3 Performance Diagnostics"},"content":{"rendered":"<p>This is a list of useful AIX commands do diagnose performance issues with the host.<\/p>\n<p>TOPAS<\/p>\n<p>VMSTAT<\/p>\n<p>svmon -G<\/p>\n<p>GUIDE for filesystems<\/p>\n<p>NMON script and analyzing<\/p>\n<div align=\"center\">\n<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" bgcolor=\"#C0C0C0\">\n<tbody>\n<tr>\n<td valign=\"top\" width=\"52%\">\n<ul>\n<li><a class=\"navLink\" href=\"#filemon\">filemon<\/a> &#8211; Performance statistics for files, logical\/physical volumes and virtual memory segments<\/li>\n<li><a class=\"navLink\" href=\"#fileplace\">fileplace<\/a> &#8211; Placement of a file&#8217;s blocks within a file system<\/li>\n<li><a class=\"navLink\" href=\"#lsps\">lsps<\/a> &#8211; Statistics about paging space<\/li>\n<li><a class=\"navLink\" href=\"#pagesize\">pagesize<\/a> &#8211; Displays system page size<\/li>\n<li><a class=\"navLink\" href=\"#lsattr\">lsattr<\/a> &#8211; Lists attributes associated with a device<\/li>\n<li><a class=\"navLink\" href=\"#pstat\">pstat<\/a> &#8211; Statistics about system attributes<\/li>\n<li><a class=\"navLink\" href=\"#ipcs\">ipcs<\/a> &#8211; Status of interprocess communication facilities<\/li>\n<li><a class=\"navLink\" href=\"#ps\">ps<\/a> &#8211; Display status of current processes<\/li>\n<li><a class=\"navLink\" href=\"#iostat\">iostat<\/a> &#8211; Statistics for ttys, disks and cpu<\/li>\n<li><a class=\"navLink\" href=\"#svmon\">svmon<\/a> &#8211; Captures a snapshot of the current contents of both real and virtual memory<\/li>\n<li><a class=\"navLink\" href=\"#tprof\">tprof<\/a> &#8211; Detailed profile of CPU usage by an application<\/li>\n<li><a class=\"navLink\" href=\"#vmstat\">vmstat<\/a> &#8211; Statistics about virtual memory and cpu\/hard disk usage<\/li>\n<li><a class=\"navLink\" href=\"#sar\">sar<\/a> &#8211; System Activity Recorder<\/li>\n<li><a class=\"navLink\" href=\"#nfsstat\">nfsstat<\/a> &#8211; Displays information about NFS and RPC calls<\/li>\n<li><a class=\"navLink\" href=\"#netpmon\">netpmon<\/a> &#8211; Performance statistics for CPU usage, network device-driver I\/O, socket calls, and NF<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p><a id=\"filemon\" name=\"filemon\"><\/a><span class=\"supportsubtitle\">filemon<\/span><\/p>\n<p>Performance statistics for files, logical\/physical volumes and virtual memory segments.<\/p>\n<table border=\"1\" width=\"100%\" cellspacing=\"0\" cellpadding=\"2\">\n<tbody>\n<tr align=\"center\" valign=\"top\">\n<td bgcolor=\"#000000\" width=\"34%\"><b><span style=\"color: #ffffff;\">Examples<\/span><\/b><\/td>\n<td bgcolor=\"#000000\" width=\"66%\"><b><span style=\"color: #ffffff;\">What it does<\/span><\/b><\/td>\n<\/tr>\n<tr valign=\"top\">\n<td width=\"34%\"><strong><span style=\"color: #006600;\">filemon -o \/tmp\/filemon.log -O all<\/span><\/strong><\/td>\n<td width=\"66%\">Monitor activity at all file system levels and write the results to the file named \/tmp\/filemon.log<\/td>\n<\/tr>\n<tr valign=\"top\">\n<td width=\"34%\"><strong><span style=\"color: #006600;\">trcstop<\/span><\/strong><\/td>\n<td width=\"66%\">The <b>trcstop<\/b> command will terminate the trace initiated by the <b>filemon<\/b>command.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><a id=\"fileplace\" name=\"fileplace\"><\/a><span class=\"supportsubtitle\">fileplace<\/span><\/p>\n<p>Reports the placement of a file&#8217;s blocks within a file system. Used to examine and assess the efficiency of a file&#8217;s placement on disk.<\/p>\n<p><i>Example:<\/i><b> <span style=\"color: #006600;\">fileplace -pv \/unix<\/span><\/b><\/p>\n<hr \/>\n<p><a id=\"netpmon\" name=\"netpmon\"><\/a><span class=\"supportsubtitle\">netpmon<\/span><\/p>\n<p>Performance statistics for CPU usage, network device-driver I\/O, socket calls, and NFS I\/O. For CPU usage, it estimates how much of this usage is due to network-related activities.<\/p>\n<p><i>Example:<\/i><\/p>\n<ol>\n<li><b><span style=\"color: #006600;\">netpmon -o \/tmp\/netpmon.log -O all<\/span><\/b><\/li>\n<li><span style=\"color: #006600;\"><b>trcstop<\/b><\/span><b><br \/>\n<\/b>The <b>trcstop<\/b> command will terminate the trace initiated by the <b>netpmon<\/b> command.<\/li>\n<\/ol>\n<hr \/>\n<p><a id=\"lsps\" name=\"lsps\"><\/a><span class=\"supportsubtitle\">lsps<\/span><\/p>\n<p>Report statistics about paging space.<\/p>\n<p><i>Example:<\/i><b> <span style=\"color: #006600;\">lsps -a<\/span><\/b><\/p>\n<hr \/>\n<p><a id=\"iostat\" name=\"iostat\"><\/a><span class=\"supportsubtitle\">iostat<\/span><\/p>\n<p>Report statistics for ttys, disks and cpu<\/p>\n<table border=\"1\" width=\"100%\" cellspacing=\"0\" cellpadding=\"2\">\n<tbody>\n<tr align=\"center\" valign=\"top\">\n<td bgcolor=\"#000000\"><b><span style=\"color: #ffffff;\">Examples<\/span><\/b><\/td>\n<td bgcolor=\"#000000\"><b><span style=\"color: #ffffff;\">What it does<\/span><\/b><\/td>\n<\/tr>\n<tr valign=\"top\">\n<td><strong><span style=\"color: #006600;\">iostat -d hdisk0 hdisk1 5<\/span><\/strong><\/td>\n<td>Will monitor disk activity only for physical volumes hdisk0 1<\/td>\n<\/tr>\n<tr valign=\"top\">\n<td><b><span style=\"color: #006600;\">iostat -t 5<\/span><\/b><\/td>\n<td>Will monitor terminal activity only and display tty statistics every 5 seconds<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<p><a id=\"ipcs\" name=\"ipcs\"><\/a><span class=\"supportsubtitle\">ipcs<\/span><\/p>\n<p>Status of interprocess communication facilities. This is a kernel attribute that cannot be modified.<\/p>\n<hr \/>\n<p><a id=\"lsattr\" name=\"lsattr\"><\/a><span class=\"supportsubtitle\">lsattr<\/span><\/p>\n<p>Lists attributes associated with a device.<\/p>\n<p><span class=\"RedText\">NOTE: maxmbuf sets the limit of the memory governed by the IPC and network buffering capability.<\/span><\/p>\n<table border=\"1\" width=\"100%\" cellspacing=\"0\" cellpadding=\"2\">\n<tbody>\n<tr align=\"center\" valign=\"top\">\n<td bgcolor=\"#000000\" width=\"41%\"><b><span style=\"color: #ffffff;\">Examples<\/span><\/b><\/td>\n<td bgcolor=\"#000000\" width=\"59%\"><b><span style=\"color: #ffffff;\">What it does<\/span><\/b><\/td>\n<\/tr>\n<tr valign=\"top\">\n<td width=\"41%\"><b><span style=\"color: #006600;\">lsattr -l sys0 -E<\/span><\/b><\/td>\n<td width=\"59%\">Entries marked &#8216;True&#8217; are attributes that can be configured<\/td>\n<\/tr>\n<tr valign=\"top\">\n<td width=\"41%\"><b><span style=\"color: #006600;\">lsattr -l sys0 -a maxpout=9 -a minpout=6<\/span><\/b><\/td>\n<td width=\"59%\">Changes the HIGH\/LOW water marks for pending write I\/Os per file.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<p><a id=\"nfsstat\" name=\"nfsstat\"><\/a><span class=\"supportsubtitle\">nfsstat<\/span><\/p>\n<p>Display information about NFS and RPC calls<\/p>\n<table border=\"1\" width=\"100%\" cellspacing=\"0\" cellpadding=\"2\">\n<tbody>\n<tr align=\"center\" valign=\"top\">\n<td bgcolor=\"#000000\" width=\"14%\"><b><span style=\"color: #ffffff;\">Examples<\/span><\/b><\/td>\n<td bgcolor=\"#000000\" width=\"86%\"><b><span style=\"color: #ffffff;\">What it does<\/span><\/b><\/td>\n<\/tr>\n<tr valign=\"top\">\n<td width=\"14%\"><strong><span style=\"color: #006600;\">nfsstat<\/span><\/strong><\/td>\n<td width=\"86%\">Displays statistics about NFS and RPC calls<\/td>\n<\/tr>\n<tr valign=\"top\">\n<td width=\"14%\"><b><span style=\"color: #006600;\">nfsstat -zcsr<\/span><\/b><\/td>\n<td width=\"86%\">Initializes statistics (to ZERO) for client (-c), server (-s), and rpc (-r) calls.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<p><a id=\"pagesize\" name=\"pagesize\"><\/a><span class=\"supportsubtitle\">pagesize<\/span><\/p>\n<p>Display system page size<\/p>\n<hr \/>\n<p><a id=\"ps\" name=\"ps\"><\/a><span class=\"supportsubtitle\">ps<\/span><\/p>\n<p>Display status of current processes. This command is useful for determining if runaway processes are excessively utilizing the CPU or memory.<\/p>\n<p>For example, if a machine was just rebooted and appears to be running slowly, use this command to see if there are any getty processes running wild, using excessive CPU time.<\/p>\n<ul>\n<li>Getty&#8217;s should never be using more than 0% of measured CPU time as reported by the output of the command<b><span style=\"color: #006600;\">ps avg<\/span><\/b>.<\/li>\n<li>If this is not the case, suspect noise on that line.<\/li>\n<li>A login state of PDELAY for that port may resolve that problem.<\/li>\n<\/ul>\n<ul>\n<li>STAT column\n<ul>\n<li>R means RUNNING process<\/li>\n<li>S means SLEEPING process<\/li>\n<li>Z means ZOMBIE process<\/li>\n<\/ul>\n<\/li>\n<li>RSS represents how much memory (in 1k bytes) process is using.<\/li>\n<li>SIZE represents how much paging space (in 1k bytes) process is using.<\/li>\n<li>CPU represents how much cpu time a process is using<\/li>\n<li>MEM represents a percentage of remaining memory a process is using<\/li>\n<\/ul>\n<table border=\"1\" width=\"100%\" cellspacing=\"0\" cellpadding=\"2\">\n<tbody>\n<tr align=\"center\" valign=\"top\">\n<td bgcolor=\"#000000\" width=\"15%\"><b><span style=\"color: #ffffff;\">Examples<\/span><\/b><\/td>\n<td bgcolor=\"#000000\" width=\"85%\"><b><span style=\"color: #ffffff;\">What it does<\/span><\/b><\/td>\n<\/tr>\n<tr valign=\"top\">\n<td width=\"15%\"><b><span style=\"color: #006600;\">ps avg<\/span><\/b><\/td>\n<td width=\"85%\"><strong>a<\/strong> displays information about all processes. <strong>v<\/strong> displays fields: PGIN,SIZE,RSS,LIM,TSIZE,TRS,%CPU,%MEM<\/td>\n<\/tr>\n<tr valign=\"top\">\n<td width=\"15%\"><b><span style=\"color: #006600;\">ps -ft tty2\/0<\/span><\/b><\/td>\n<td width=\"85%\">Lists all the processes running on port tty2\/0<\/td>\n<\/tr>\n<tr valign=\"top\">\n<td width=\"15%\"><b><span style=\"color: #006600;\">ps -furoger<\/span><\/b><\/td>\n<td width=\"85%\">Lists all the processes running under the user roger<\/td>\n<\/tr>\n<tr valign=\"top\">\n<td width=\"15%\"><b><span style=\"color: #006600;\">ps -e<\/span><\/b><\/td>\n<td width=\"85%\">Display the environment as well as the command<\/td>\n<\/tr>\n<tr valign=\"top\">\n<td width=\"15%\"><b><span style=\"color: #006600;\">ps -ef<\/span><\/b><\/td>\n<td width=\"85%\">Full listing of all processes in the system. <span class=\"RedText\">If the &#8216;C&#8217; field (means processor utilization) has a large value, this means that that process is a CPU intensive task.<\/span><\/td>\n<\/tr>\n<tr valign=\"top\">\n<td width=\"15%\"><b><span style=\"color: #006600;\">ps -t &#8211;<\/span><\/b><\/td>\n<td width=\"85%\">Lists processes not associated with a terminal<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<p><a id=\"pstat\" name=\"pstat\"><\/a><span class=\"supportsubtitle\">pstat<\/span><\/p>\n<p>Statistics about system attributes. This utility is useful to determine how much paging is in use.<span class=\"RedText\"> If the amount of paging space is less than the amount of real memory in the system, it&#8217;s possible the system will run out of paging space before real memory.<\/span> This is because AIX performs early allocation of page space. When a page is referenced, real memory and paging space blocks are allocated. If there are less paging space blocks then real memory pages, paging space will be exhaused before all of real memory is consumed.<\/p>\n<table border=\"1\" width=\"100%\" cellspacing=\"0\" cellpadding=\"2\">\n<tbody>\n<tr align=\"center\" valign=\"top\">\n<td bgcolor=\"#000000\" width=\"12%\"><b><span style=\"color: #ffffff;\">Examples<\/span><\/b><\/td>\n<td bgcolor=\"#000000\" width=\"88%\"><b><span style=\"color: #ffffff;\">What it does<\/span><\/b><\/td>\n<\/tr>\n<tr valign=\"top\">\n<td width=\"12%\"><b><span style=\"color: #006600;\">pstat -s<\/span><\/b><\/td>\n<td width=\"88%\">Displays paging space statistics<\/td>\n<\/tr>\n<tr valign=\"top\">\n<td width=\"12%\"><b><span style=\"color: #006600;\">pstat -T<\/span><\/b><\/td>\n<td width=\"88%\">Displays system variables<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<p><a id=\"sar\" name=\"sar\"><\/a><span class=\"supportsubtitle\">sar<\/span><\/p>\n<p>System Activity Recorder utility found on all UNIX systems that monitors various system functions like<\/p>\n<ul>\n<li>cpu<\/li>\n<li>hard disk<\/li>\n<li>terminal IO<\/li>\n<li>number of files open<\/li>\n<li>processes running<\/li>\n<\/ul>\n<p>Use cron to execute sar at specific times based on workload, and the sa1 and sa2 scripts to maintain a report history of system usage.<\/p>\n<table border=\"1\" width=\"100%\" cellspacing=\"0\" cellpadding=\"2\">\n<tbody>\n<tr align=\"center\" valign=\"top\">\n<td bgcolor=\"#000000\" width=\"52%\"><b><span style=\"color: #ffffff;\">Examples<\/span><\/b><\/td>\n<td bgcolor=\"#000000\" width=\"48%\"><b><span style=\"color: #ffffff;\">What it does<\/span><\/b><\/td>\n<\/tr>\n<tr valign=\"top\">\n<td width=\"52%\"><b><span style=\"color: #006600;\">nohup sar -A -o \/tmp\/SAR.STATS 60 600 &gt; \/dev\/null &amp;<\/span><\/b><\/td>\n<td width=\"48%\">Collect all the statistics that sar monitors at 60 second intervals for a 10 hour period. Also redirects console output to null device<\/td>\n<\/tr>\n<tr valign=\"top\">\n<td width=\"52%\"><b><span style=\"color: #006600;\">sar -u 5 10<\/span><\/b><\/td>\n<td width=\"48%\">Interactively run the sar command and review CPU utlization every 10 seconds for 5 interations.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<p><a id=\"svmon\" name=\"svmon\"><\/a><span class=\"supportsubtitle\">svmon<\/span><\/p>\n<p>Virtual memory monitor that captures a snapshot of the current contents of both real and virtual memory, and summarizes the contents. Useful for determining which processes are using the most memory.<\/p>\n<hr \/>\n<p><a id=\"tprof\" name=\"tprof\"><\/a><span class=\"supportsubtitle\">tprof<\/span><\/p>\n<p>Detailed profile of CPU usage by an application. Provides an estimate of CPU usage for each routine in a profile. Useful to determine where an application maybe CPU bound.<\/p>\n<hr \/>\n<p><a id=\"vmstat\" name=\"vmstat\"><\/a><span class=\"supportsubtitle\">vmstat<\/span><\/p>\n<p>Statistics about virtual memory and cpu\/hard disk usage.<\/p>\n<p><i>Example:<\/i><b> <span style=\"color: #006600;\">vmstat hdisk0 hdisk1 5<\/span> (<\/b>Display various statistics every 5 seconds)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a list of useful AIX commands do diagnose performance issues with the host. TOPAS VMSTAT svmon -G GUIDE for filesystems NMON script and analyzing filemon &#8211; Performance statistics for files, logical\/physical volumes and virtual memory segments fileplace &#8211; Placement of a file&#8217;s blocks within a file system lsps [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":97,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","footnotes":""},"categories":[3,2,4],"tags":[9],"class_list":["post-119","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-server","category-unix","tag-aix"],"uagb_featured_image_src":{"full":["https:\/\/www.onebyte.org\/blog\/wp-content\/uploads\/2015\/07\/aix_nix.png",921,311,false],"thumbnail":["https:\/\/www.onebyte.org\/blog\/wp-content\/uploads\/2015\/07\/aix_nix-150x150.png",150,150,true],"medium":["https:\/\/www.onebyte.org\/blog\/wp-content\/uploads\/2015\/07\/aix_nix-300x101.png",300,101,true],"medium_large":["https:\/\/www.onebyte.org\/blog\/wp-content\/uploads\/2015\/07\/aix_nix.png",768,259,false],"large":["https:\/\/www.onebyte.org\/blog\/wp-content\/uploads\/2015\/07\/aix_nix.png",921,311,false],"1536x1536":["https:\/\/www.onebyte.org\/blog\/wp-content\/uploads\/2015\/07\/aix_nix.png",921,311,false],"2048x2048":["https:\/\/www.onebyte.org\/blog\/wp-content\/uploads\/2015\/07\/aix_nix.png",921,311,false],"post-thumbnail":["https:\/\/www.onebyte.org\/blog\/wp-content\/uploads\/2015\/07\/aix_nix.png",921,311,false],"modality-logo":["https:\/\/www.onebyte.org\/blog\/wp-content\/uploads\/2015\/07\/aix_nix.png",237,80,false]},"uagb_author_info":{"display_name":"Mr-Moo","author_link":"https:\/\/www.onebyte.org\/blog\/author\/ahess\/"},"uagb_comment_info":0,"uagb_excerpt":"This is a list of useful AIX commands do diagnose performance issues with the host. TOPAS VMSTAT svmon -G GUIDE for filesystems NMON script and analyzing filemon &#8211; Performance statistics for files, logical\/physical volumes and virtual memory segments fileplace &#8211; Placement of a file&#8217;s blocks within a file system lsps [&hellip;]","_links":{"self":[{"href":"https:\/\/www.onebyte.org\/blog\/wp-json\/wp\/v2\/posts\/119","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.onebyte.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.onebyte.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.onebyte.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.onebyte.org\/blog\/wp-json\/wp\/v2\/comments?post=119"}],"version-history":[{"count":1,"href":"https:\/\/www.onebyte.org\/blog\/wp-json\/wp\/v2\/posts\/119\/revisions"}],"predecessor-version":[{"id":506,"href":"https:\/\/www.onebyte.org\/blog\/wp-json\/wp\/v2\/posts\/119\/revisions\/506"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.onebyte.org\/blog\/wp-json\/wp\/v2\/media\/97"}],"wp:attachment":[{"href":"https:\/\/www.onebyte.org\/blog\/wp-json\/wp\/v2\/media?parent=119"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.onebyte.org\/blog\/wp-json\/wp\/v2\/categories?post=119"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.onebyte.org\/blog\/wp-json\/wp\/v2\/tags?post=119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}