01-06-2011
CPU Utilisation Report on Solaris 10
Hi all,
I'm using Solaris 10 and have an occasional problem where a process that runs near to midnight each day, takes anywhere between 30 seconds and over two minutes to complete. I suspect that the CPU is highly utilised during the times where it takes a long time to complete, but I need a way of generating a CPU report during the times that the process runs each day.
I can use "top" to view the current CPU utilisation, but how can I generate a report to view the utilisation over a period of time?
I have no installed applications that can do this, and only the native interface to use.
Regards, Wynford
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
We have a Sun Sparc System which has multiple CPUs (4 Nos.). I need a command/program that can be used to monitor the % utilization per CPU. (2 Replies)
Discussion started by: saood
2 Replies
2. Linux
Hi All,
Kindly help me in optimizing the server as it displays a great amount of CPU & MEM being utilised when the mysql process executes.
Below are the stats ---
--------------------------------------------------------------------------
# top
15:51:57 up 23:22, 5 users, load average:... (1 Reply)
Discussion started by: gautamatul82
1 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I want to check the CPU and Memory Utilisation in the whole machine (not for a single process). Can someone send me a ready made script which captures all information in a log every 5min??
Thanks,
Ajith (0 Replies)
Discussion started by: Ajith Praveen
0 Replies
4. Shell Programming and Scripting
Hi all,
I am a newbie to whole shell scripting thing. I deal with computational studies and a lot of softwares which run on linux. At times, I have to schedule my jobs after some process has started. In these case, I have to use at command to schedule my job.
However, I would like to know if... (0 Replies)
Discussion started by: johnsmithgr8
0 Replies
5. AIX
Hi,
I collect statistics with nmon. I'm very suprised about % wait of processor.
Number Of Processors: 4
Processor Clock Speed: 4204 MHz
Do U have an idea about % wait ?
│ 0----------25-----------50----------75----------100 ... (1 Reply)
Discussion started by: tagger
1 Replies
6. AIX
Hi,
We need to monitor one process over time to see at which exact point it starts to consume to much memory and CPU (to correlate this with some other events).
I am a newbie in AIX, so please could you tell me which command will give a snapshot of the current state of a process so that I... (1 Reply)
Discussion started by: yallow
1 Replies
7. UNIX for Dummies Questions & Answers
Hi ,
I need to find the average percentage of CPU utilisised by a particular process through a shell script. Suppose if a process is running for 6 hours i need to get average CPU utilised by it.
Could you please assist me.
Thanks, (0 Replies)
Discussion started by: praviper
0 Replies
8. Solaris
Hi,
Can anyone tell me how to get the CPU utilisation for past 1 day in Solaris.
Below is the version i m using
SunOS ss1qeb 5.10 Generic_138889-03 i86pc i386 i86pc
thanks in advance (2 Replies)
Discussion started by: ali560045
2 Replies
9. Shell Programming and Scripting
Hi,
I want to write one script that sent mail when CPU utilisation is more then 70%. i used topas but problem is it will show output only when we press ctrl +c.
Please let me know if there is some other command that will give cpu utilisation which i can use in shell script.
Thanks (3 Replies)
Discussion started by: ranvijaidba
3 Replies
10. AIX
Hi,
I need a command to check overall cpu utilisation
TIA (3 Replies)
Discussion started by: sumanthupar
3 Replies
times(2) System Calls Manual times(2)
NAME
times - get process and child process times
SYNOPSIS
DESCRIPTION
fills the structure pointed to by buffer with time-accounting information. The structure defined in is as follows:
struct tms {
clock_t tms_utime; /* user time */
clock_t tms_stime; /* system time */"
clock_t tms_cutime; /* user time, children */
clock_t tms_cstime; /* system time, children */
};
This information comes from the calling process and each of its terminated child processes for which it has executed a or The times are in
units of 1/seconds, where is processor dependent. The value of can be queried using the function (see sysconf(2)).
is the CPU time used while executing instructions in the user space of the calling process.
is the CPU time used by the system on behalf of the calling process.
is the sum of the and of the child processes.
is the sum of the and of the child processes.
RETURN VALUE
Upon successful completion, returns the elapsed real time, in units of 1/of a second, since an arbitrary point in the past (such as system
start-up time). This point does not change from one invocation of to another. If fails, (clock_t) -1 is returned and is set to indicate
the error.
Remarks
has a granularity of one tick. Processes which run less than one tick may not register any value.
ERRORS
fails if buffer points to an illegal address. The reliable detection of this error is implementation dependent.
WARNINGS
Not all CPU time expended by system processes on behalf of a user process is counted in the system CPU time for that process.
SEE ALSO
time(1), exec(2), fork(2), gettimeofday(2), sysconf(2), time(2), wait(2).
STANDARDS CONFORMANCE
times(2)