10 More Discussions You Might Find Interesting
1. Solaris
hi, i am using solaris server. I want to find the total CPU usage on a server. Top command will give that result, but here that command is not working. So anyone can help me to find the total CPU usage. (2 Replies)
Discussion started by: Arasu123
2 Replies
2. Linux
Hi,
I want to calculate the total cpu usage from the sar report. Say for example,
Linux 2.6.24-21-generic (blade10) 09/10/2012
04:54:36 PM CPU %user %nice %system %iowait %steal %idle
04:54:37 PM all 0.00 0.00 0.00 0.00 ... (1 Reply)
Discussion started by: rohitmd
1 Replies
3. Linux
Hi All,
Yesterday my Linux server went panic and even a small command took a lot of time to run.
When i monitored pl find the below output
Cpu(s): 0.1%us, 98.4%sy, 0.0%ni, 1.5%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
the time spent on kernel mode is 98 % and also idle time is around 1.5 %...... (4 Replies)
Discussion started by: jegaraman
4 Replies
4. UNIX for Dummies Questions & Answers
How to determine the total percentage cpu usage of a server having 4 cpu cores(quad core)? (3 Replies)
Discussion started by: proactiveaditya
3 Replies
5. Ubuntu
I am running a Dell PE R815 with 4 x AMD 12 core CPUs with 128GB of RAM and a RAID 5 array of 6 SAS disks. This is an HPC application and is definitely CPU bound, however once I run 16 of these processes (thus pinning 16 cores) the work performed slows down dramatically, to maybe 5 or 10% of what... (2 Replies)
Discussion started by: mowmentous
2 Replies
6. UNIX for Dummies Questions & Answers
Hi all,
Is it possible to get total memory usage and free memory usage without top? By Googling I found for total memory usage, use vmstat, for CPU, use mpstat, for disk I/O use iostat, is this correct? Will using sar gives the same result as ALL of these three (3) commands?
What about if I... (2 Replies)
Discussion started by: newbie_01
2 Replies
7. Shell Programming and Scripting
Hi,
How can I find total CPU usage in percentage? e.g. if my system has 8 CPUs and I want to list total usage for all of them, is it possible through a command?
I have tried some of the commands like top, mpstat, sar. The output of those commands has to be manipulated to derive the percentage... (14 Replies)
Discussion started by: jal_capri
14 Replies
8. 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
9. Shell Programming and Scripting
Hi,
When running top on linux redhat machine , i see that i have 16gb of memory
in my machine and about 14.5gb of memory are in use:
Mem: 16395780k total, 14970960k used, 1424820k free, 370264k buffers
Swap: 4192956k total, 25824k used, 4167132k free, 12029400k cached
How can i... (3 Replies)
Discussion started by: yoavbe
3 Replies
10. HP-UX
Hello everybody,
How can we proceed to measure the CPU used par a user on unix HPUX ?
there some commands or tools ?
Thank you in advance. (4 Replies)
Discussion started by: mlaiti
4 Replies
timex(1) User Commands timex(1)
NAME
timex - time a command; report process data and system activity
SYNOPSIS
timex [-o] [ -p [-fhkmrt]] [-s] command
DESCRIPTION
The given command is executed; the elapsed time, user time and system time spent in execution are reported in seconds. Optionally, process
accounting data for the command and all its children can be listed or summarized, and total system activity during the execution interval
can be reported.
The output of timex is written on standard error.
OPTIONS
The following options are supported:
-o Report the total number of blocks read or written and total characters transferred by command and all its children. This option
works only if the process accounting software is installed.
-p List process accounting records for command and all its children. This option works only if the process accounting software is
installed. Suboptions f, h, k, m, r, and t modify the data items reported. The options are as follows:
-f Print the fork(2)/ exec(2) flag and system exit status columns in the output.
-h Instead of mean memory size, show the fraction of total available CPU time consumed by the process during its execution.
This ``hog factor'' is computed as (total CPU time)/(elapsed time).
-k Instead of memory size, show total kcore-minutes.
-m Show mean core size (the default).
-r Show CPU factor (user time/(system-time + user-time)).
-t Show separate system and user CPU times. The number of blocks read or written and the number of characters transferred
are always reported.
-s Report total system activity (not just that due to command) that occurred during the execution interval of command. All the data
items listed in sar(1) are reported.
EXAMPLES
Example 1: Examples of timex.
A simple example:
example% timex -ops sleep 60
A terminal session of arbitrary complexity can be measured by timing a sub-shell:
example% timex -opskmt sh
session commands
EOT
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWaccu |
+-----------------------------+-----------------------------+
SEE ALSO
sar(1), time(1), exec(2), fork(2), times(2), attributes( 5)
NOTES
Process records associated with command are selected from the accounting file /var/adm/pacct by inference, since process genealogy is not
available. Background processes having the same user ID, terminal ID, and execution time window will be spuriously included.
SunOS 5.10 14 Sep 1992 timex(1)