Solved

rstatd output - explain?

Posted on 1997-04-19
2
258 Views
Last Modified: 2013-12-26
rstatd returns certain information about the system when queried via RPC calls. Perfmeter (on Suns) displays ten parameters (cpu, disk, swap, context, etc.) rstatd, however, returns four values for CPU and four for disk, which are wildly different. Anybody know what each of these values means, and how to scale the values returned to a fixed scale? I'm trying to write (extend) a Java applet I wrote so that it can be used as a quick reference to system performance, and I don't know how to deal with these values.
0
Comment
Question by:schampeo
2 Comments
 

Author Comment

by:schampeo
ID: 1292609
<URL:http://www.hesketh.com/schampeo/Faces/> is the previous Java applet, if anyone wants to check it out. The idea is that a face will be more easily and more quickly recognizable - buggy eyes for lots of swapping, frowning for lots of disk activity.
0
 

Accepted Solution

by:
garee earned 200 total points
ID: 1292610
The four time values returned by rstatd cp_time[CPUSTATES] are
the times for each of the valid cpu states, as normally found
in <sys/dk.h>:

#define      CP_USER            0
#define      CP_NICE            1
#define      CP_SYS            2
#define      CP_IDLE            3

This information can be used to paint some pretty good pictures
about cpu utilization.  Some systems (such as those from Convex)
which have multiple CPU's will average the total of all CPU's,
while others will just give overall totals and require you to
divide by cpu count manually, which can be hard if you are truly
running remotely.

If you need details of the meanings of the states post a followup.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question