How can I find memory & CUP usages also?

How can I find memory & CUP usages also?

Post by Segn » Wed, 02 Feb 1994 08:01:09

   Any idea?

   Thanks in advance



How can I find memory & CUP usages also?

Post by Emmanuel Ricr » Thu, 03 Feb 1994 00:55:42

If you are on a Sun, look at rstatd(8) and rstat(3).

Hope this helps.



1. How to find out the cpu usage, real & virtual memory usage ?

I am supposed to write a small application (agent) that reports the
cpu usage, real(physical) memory and virtual meomry usage of a host to
a system management application (ie the manager) via tcp/ip.

I have a few questions regarding working out the total cpu usage, the
total amount of physical and virtual memory being used by all
processes running on a workstation.

The first question is, I have learnt that the use of the kstat/kvm API
will give me the access to such parameters but I havent been able to
find enough information on this.  so If anyone can point me to the
right direction I will be very thankful. I have looked thru the books
that came with the OS but no luck there.

The second question, and probably a more fundamemtal one is that, from
what Ive heard from the SUN help desk, it isnt possible to work out
the total amount of physical memory used by all processses on a
system, even if I can figure out how much is being used by a given
process, since there is no way to find out how much memory is shared
between processes (e.g shared library). I was wondering if anyone from
this NG can confirm this.
If that is the case, that I guess I will have to make do with the sum
of the amounts of memory each process occupies, which will somehow be
larger than the actual amount of the physical memory being used.

Any help will be much appreciated, TIA.

2. what is the meaning of this linking error message?

3. CUPS failure: pstoraster can't find device cups

4. Pkzip v1.1 for SCO Unix

5. CUPS packaging: .cups not -cups

6. TCP/IP RPC on Solaris 2.4 and Sybase 10.0

7. Dual CUPs, share memory & near fault-tolerance

8. APM problem

9. How to find the memory usage of a running application?

10. How can I find out max memory usage of a process

11. How to find the actual memory usage of socket buffers

12. How to find memory usage of a process?

13. What function could I use to find the size of memory usage by the process?