Technical article 117424

How can I analyze "on-the-spot" performance data with SarCheck?

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4OpenServer 5.0.5OpenServer 5.0.6OpenServer 5.0.7

Written · Last revised

Problem

I have downloaded, installed, and successfully run the SarCheck utility according to the available software and documentation from Aptitune Software at

http://www.sarcheck.com
However, I notice that the instructions only discuss how to
analyze daily or historical sar data and reports.  I need to
address a performance issue that is occurring right now, and
want SarCheck to analyze performance data at short sampling
intervals, and to generate results immediately, based on this
"on-the-spot" activity.

Is there any way to use SarCheck to perform "on-the-spot" analysis?

Solution

Yes.  The SarCheck utility allows you to specify a sar data
file of your choice for analysis.  The key to doing on-the-spot
analysis is to generate a sar data file at the time during which
performance data must be sampled, with the "sar -o" command.
The following example illustrates the procedure:

1. At the time the problem occurs and you wish to sample data at, say, 10 second intervals, for 300 seconds, run the command:

sar -o /tmp/sa_now 10 30
which will generate a full set of sar data (as though the
"-A" option were specified) each 10 seconds for 30 iterations,
and save the results into the sar data file /tmp/sa_now.  Note
that this is a binary "sa" file rather than a plain text
"sar" report file.
2. When the above command completes, run SarCheck.  You will see
   a menu similar to the following:
 Analyze what?       d  sar data (sa files)
                     r  a sar report (sar files)
                     c  Concatenate existing sar reports
                     *  accept all defaults
                     x  exit SarCheck
(keyword = DR, default = d):
Choose the default 'd' option.

3. You will next see a query similar to the following, with the default choice being the sar data file for the current day:

Based on user-definable defaults, data from 08:00 to 17:00 will be analyzed. Enter the name of the sar data file that you wish to analyze:

sa06  sa07  sa08  sa09  sa10  sa11  sa12  sa13  sa14  sa15
(default = sa14):
Instead of selecting any of the data files displayed, enter
"/tmp/sa_now".

4. Select the subsequent options of your choosing, such as page breaks, screen output vs output file, etc., and SarCheck should complete its report.

NOTES:    Depending on the sampling interval chosen in step 1) above, you
          may see a warning similar to the following in the SarCheck report:
WARNING: The average sampling interval was 0.17 minutes.  The sar
utility should not be used to sample data this frequently due to the
load this places on the system, and the fact that peak statistics lose
their significance when the sampling interval is this short.  Typically,
sar is used to sample system activity at 5 to 60 minute intervals.
One can generally ignore this warning.
Beginning in version 3.71 for OpenServer 5 and version 4.0.0c for
UnixWare 7 and Open UNIX 8, SarCheck provides an additional
feature for collecting and analyzing output from the ps(C)/ps(1)
utility.  Instructions for the configuration and use of this
tool, which is automatically installed during the SarCheck
installation, are contained in the SarCheck online manual.
However, getting this feature to work consistently in an
on-the-spot fashion as illustrated above requires configuration
and usage of the feature that goes beyond the scope of this
document.  Although you may be prompted whether to include
ps data in the SarCheck report, you can generally _not_ expect
the report to include a ps-based analysis which is consistent
with the time period and sampling intervals chosen for your
on-the-spot analysis.  This is not a flaw in SarCheck, but
simply goes beyond that for which the ps feature is intended.

See also

ta114622, "How do I install and run SarCheck?"

From the Xinuos technical article database, record 117424. Reproduced with permission. The original is at www.sco.com/ta/117424, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.