Sponsored Content
Operating Systems Solaris How to check CPU spike between certain priod of time Post 302317307 by uuontario on Monday 18th of May 2009 04:21:43 PM
Old 05-18-2009
How to check CPU spike between certain priod of time

Hi,

Does anyone know how to check which process has been used the most CPU between certain time period?

say I have noticed CPU spike happend between 1:00 to 1:30

now it is 3:00 o'clock already. Is there anyway to find out what process/PID use the most CPU then?

Thanks a lot
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

command for check CPU

Can someone tell me which command I should use to get the detail CPU info in one HP unix box, asuch as # of CPU, CPU Speed and CPU HW Support Thanks (2 Replies)
Discussion started by: abcde
2 Replies

2. Shell Programming and Scripting

how to check CPU consume time by unix script.

Hi, I searched for any answers to this query bu in vain. My question is , Is their any script or command to check how much CPU time is been taken by a script. thanks. (1 Reply)
Discussion started by: Rakesh Bhat
1 Replies

3. Solaris

Find any spike in CPU usage a hour ago

Folks, I need to find out from the system logs ( or elsewhere ) if the CPU utilization reached say 90% an hour ago from now. Is there a way out. (2 Replies)
Discussion started by: kavera
2 Replies

4. SCO

How to check CPU Utilization

Hi All, I want to check the CPU Utilization for my SCO UNIX machine. Please suggest some commands to do that. Thanks, Am (2 Replies)
Discussion started by: am_yadav
2 Replies

5. UNIX for Dummies Questions & Answers

Apache causing CPU to spike when POSTing

Hello all. I've built a SAMP server on Solaris 10 using Apache 2.2.9 and PHP 5.2.6 For the most part everything seems to be working except when I post form data, Apache causes the CPU to max out. Sometimes the script will complete about 40 seconds later. Other times I have to stop Apache to get... (4 Replies)
Discussion started by: RobertSubnet
4 Replies

6. Shell Programming and Scripting

Why CPU time is longer than Elasped time?

I thought a program's elapsed time, some program language call it real time, should be the time of a program from start to finish. And it should be equal or longer than CPU time. This is true for the most of the cases. However, I do see some of my programs CPU time is longer than Elapsed time. ... (1 Reply)
Discussion started by: visio2000
1 Replies

7. Solaris

Solaris 10 - script creating huge spike in Kernel CPU

I'm running on Solaris 10, and I have a script that's running on several machines. Basically, what it's doing is: * tail -f | grep one or more log files into a temp file * Every minute or so, copy that temp file to a second temp and zero the first * Sed through the 2nd temp to pull out a user... (2 Replies)
Discussion started by: Rorgg
2 Replies

8. Shell Programming and Scripting

what would a script include to find CPU's %system time high and user time high?

Hi , I am trying to :wall: my head while scripting ..I am really new to this stuff , never did it before :( . how to find cpu's system high time and user time high in a script?? thanks , help would be appreciated ! :) (9 Replies)
Discussion started by: sushwey
9 Replies

9. UNIX for Advanced & Expert Users

Cpu time

Hi Experts, If a thread running on CPU needs some data from RAM (from near or far RAM) it requests the data (this moment of time is t0) and gets it in moment of time in t1, and continues his work. Between t0 and t1, while data is transferring from RAM, the thread is goes out from CPU? Is the... (2 Replies)
Discussion started by: sant
2 Replies
CLOCK_GETCPUCLOCKID(P)					     POSIX Programmer's Manual					    CLOCK_GETCPUCLOCKID(P)

NAME
clock_getcpuclockid - access a process CPU-time clock (ADVANCED REALTIME) SYNOPSIS
#include <time.h> int clock_getcpuclockid(pid_t pid, clockid_t *clock_id); DESCRIPTION
The clock_getcpuclockid() function shall return the clock ID of the CPU-time clock of the process specified by pid. If the process described by pid exists and the calling process has permission, the clock ID of this clock shall be returned in clock_id. If pid is zero, the clock_getcpuclockid() function shall return the clock ID of the CPU-time clock of the process making the call, in clock_id. The conditions under which one process has permission to obtain the CPU-time clock ID of other processes are implementation-defined. RETURN VALUE
Upon successful completion, clock_getcpuclockid() shall return zero; otherwise, an error number shall be returned to indicate the error. ERRORS
The clock_getcpuclockid() function shall fail if: EPERM The requesting process does not have permission to access the CPU-time clock for the process. The clock_getcpuclockid() function may fail if: ESRCH No process can be found corresponding to the process specified by pid. The following sections are informative. EXAMPLES
None. APPLICATION USAGE
The clock_getcpuclockid() function is part of the Process CPU-Time Clocks option and need not be provided on all implementations. RATIONALE
None. FUTURE DIRECTIONS
None. SEE ALSO
clock_getres() , timer_create() , the Base Definitions volume of IEEE Std 1003.1-2001, <time.h> COPYRIGHT
Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1, 2003 Edition, Standard for Information Technol- ogy -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html . IEEE
/The Open Group 2003 CLOCK_GETCPUCLOCKID(P)
All times are GMT -4. The time now is 09:25 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy