Solved

rstatd output - explain?

Posted on 1997-04-19
2
263 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Do you have a plan for Continuity?

It's inevitable. People leave organizations creating a gap in your service. That's where Percona comes in.

See how Pepper.com relies on Percona to:
-Manage their database
-Guarantee data safety and protection
-Provide database expertise that is available for any situation

Question has a verified solution.

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

Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

615 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