Solved

rstatd output - explain?

Posted on 1997-04-19
2
253 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Tab names are off by one 5 54
VBA "SendKeys" Syntax for Multiple Keystrokes 7 108
JQuery serialize and unserialize 8 77
"Black Box" Testing of Control System Software 2 48
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

813 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now