Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

rstatd output - explain?

Posted on 1997-04-19
2
Medium Priority
?
265 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 400 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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Suggested Courses

972 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