10 More Discussions You Might Find Interesting
1. HP-UX
Hi Experts,
We encountered problem in one of the production system where some processes were taking higher CPU and after some time it came back to normal..
From system prespective, is there any way to check why processes took more cpu during that particular period. (16 Replies)
Discussion started by: sai_2507
16 Replies
2. AIX
Hi Guys,
I am a newbie on the forum. This is my first post, so first of all I would like to introduce myself.
I am a SAS Analyst programmer working for an Health Insurance client. SAS is installed on a 16 CPU AIX Server with partitions running with shared processor. I have couple of... (2 Replies)
Discussion started by: saurabhiim2003
2 Replies
3. Programming
Hi all,
I'm using python and psutil a library to get system informations like cpu usage (percent) for a given process.
My question is if I have the value in % of the cpu usage how I could get the cpu usage in cycle number I mean not in percent?
Thanks a lot
D. (5 Replies)
Discussion started by: Dedalus
5 Replies
4. AIX
How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage? (3 Replies)
Discussion started by: laknar
3 Replies
5. Solaris
Hello Friends,
On one of my Solaris 10 box, CPU usage shows 100% using "sar", "vmstat". However, it has 4 CPUs and prstat and glance are not showing enough processes to justify high CPU utilization.
=========================================================================
$ prstat -a
... (4 Replies)
Discussion started by: mahive
4 Replies
6. Solaris
Hi,
I want to monitor the current cpu usage, monitor usage , disk I/o and network utlization for solaris using SNMP.
I want the oids for above tasks.
can you please tell me that
Thank you (2 Replies)
Discussion started by: S_venkatesh
2 Replies
7. HP-UX
how can I find cpu usage memory usage swap usage and
I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times
my final destination is monitor process
logical volume usage above X % and number of Logical voluage above
can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies
8. Programming
Hi all,
When I have a below while loop in my code (This observation is same for C and Perl)
i= 0;
while(1)
{
i++;
}
for above the CPU uses goes beyond 49% on hp-ux machine, why cpu usage increase at this level for just a simple while loop?
and if I have a single print statement... (2 Replies)
Discussion started by: zing_foru
2 Replies
9. Programming
Please tell me solaris functions/api for getting following information
1- Function that tells how much memory used by current process
2- Function that tells how much memory used by all running processes
3- Function that tells how much CPU is used by current process
4- Function that tells how... (1 Reply)
Discussion started by: mansoorulhaq
1 Replies
10. Programming
how can i monitor usages of CPU, Memory, Hard disk etc. under SUN Solaries
through a c program or java program
i want to store that data into database so i can show it graphically
thanks in advance (2 Replies)
Discussion started by: Gajanad Bihani
2 Replies
MPSTAT(1) Linux User's Manual MPSTAT(1)
NAME
mpstat - Report processors related statistics.
SYNOPSIS
mpstat [ -P { cpu | ALL } ] [ -V ] [ interval [ count ] ]
DESCRIPTION
The mpstat command writes to standard output activities for each available processor, processor 0 being the first one. Global average
activities among all processors are also reported. The mpstat command can be used both on SMP and UP machines, but in the latter, only
global average activities will be printed.
The interval parameter specifies the amount of time in seconds between each report. A value of 0 indicates that processors statistics are
to be reported for the time since system startup (boot). The count parameter can be specified in conjunction with the interval parameter
if this one is not set to zero. The value of count determines the number of reports generated at interval seconds apart. If the interval
parameter is specified without the count parameter, the mpstat command generates reports continuously.
REPORTS
The report generated by the mpstat command has the following format:
CPU
Processor number. The keyword all indicates that statistics are calculated as averages among all processors.
%user
Show the percentage of CPU utilization that occurred while executing at the user level (application).
%nice
Show the percentage of CPU utilization that occurred while executing at the user level with nice priority.
%system
Show the percentage of CPU utilization that occurred while executing at the system level (kernel).
%idle
Show the percentage of time that the CPU or CPUs were idle.
intr/s
Show the total number of interrupts received per second by the CPU or CPUs.
OPTIONS
-P cpu | ALL
Indicate the processor number for which statistics are to be reported. cpu is the processor number. Note that processor 0 is the
first processor. The ALL keyword indicates that statistics are to be reported for all processors.
-V Print version number and usage then exit.
ENVIRONMENT
The mpstat command takes into account the following environment variable:
S_TIME_FORMAT
If this variable exists and its value is ISO then the current locale will be ignored when printing the date in the report header.
The mpstat command will use the ISO format (YYYY-MM-DD) instead.
EXAMPLES
mpstat 2 5
Display five reports of global statistics among all processors at two second intervals.
mpstat -P ALL 2 5
Display five reports of statistics for all processors at two second intervals.
BUGS
/proc filesystem must be mounted for the mpstat command to work.
Only a few activities are supplied by the Linux kernel for each processor.
FILES
/proc contains various files with system statistics.
AUTHOR
Sebastien Godard <sebastien.godard@wanadoo.fr>
SEE ALSO
sar(1), sadc(8), sa1(8), sa2(8), iostat(1), vmstat(8)
http://perso.wanadoo.fr/sebastien.godard/
Linux MAY 2000 MPSTAT(1)