Solved

rstatd output - explain?

Posted on 1997-04-19
2
241 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
Comment Utility
<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
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

744 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

16 Experts available now in Live!

Get 1:1 Help Now