I'm not sure if the above means anything to the experienced AIX users on here. but the second definition seems suggest the sum of all CPU usages of all process can be used somehow.
I'm trying to monitor the CPU usage of a process and output that value to a file or variable. I know topas or nmon can tell me this in interactive mode but what I need is topas-looking output that allows me to write to a file after a discrete interval. Unlike nmon data collection to a file on top... (5 Replies)
Hi,
I have a shell script. But, upon execution of the same, the cpu usage is sometimes getting 100 % (checked executing top command).
At that point of time, my process hangs, doesn't run anymore. I need to kill it manually.
My concern is, is there any default method, by which I can check... (1 Reply)
I don't know when the process will start and end, I need write a script to trace it's cpu/memory usage when it is runing. How to write this script? (2 Replies)
Hi guys,
I am currently writing a JAVA script to monitor certain unix processes through JConsole.
Upon having lots of trouble with runtime.exec, i decided to bypass the top/ps command call and just get the information straight from /proc/*pid*/whatever.
Now i can pull back any... (0 Replies)
Hi,
I have a multihomed system HP-UX with two NIC cards having IP address 10.9.0.13 & 10.9.0.45
I have two weblogic servers running one listening on "10.9.0.13" and the other on "10.9.0.45"
Given a PID how is it possible to extract the IP Address that the weblogic server is using and... (1 Reply)
Hi,
I will be creating a process myself and I want to know the average CPU and RAM used by the process over the lifetime of the process. I see that there are various tools available(pidstat) for doing , I was wondering if it possible to do it in a single command while creation.
Thanks in... (3 Replies)
hi,
We have two LPARs, both have same capacity and believe same configuration. ulimit settings for oracle user is unlimited for both LPARs. Installed oracle databases with same configurations on both LPARs, both databases sync every second so volume is same. Both LPARs/databases have identical... (10 Replies)
Discussion started by: baladelaware73
10 Replies
LEARN ABOUT FREEBSD
clock_getcpuclockid
CLOCK_GETCPUCLOCKID(3) BSD Library Functions Manual CLOCK_GETCPUCLOCKID(3)NAME
clock_getcpuclockid -- access a process CPU-time clock
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <time.h>
int
clock_getcpuclockid(pid_t pid, clockid_t *clock_id);
DESCRIPTION
The clock_getcpuclockid() returns 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 will be returned in clock_id.
If pid is zero, the clock_getcpuclockid() function returns the clock ID of the CPU-time clock of the process making the call, in clock_id.
RETURN VALUES
Upon successful completion, clock_getcpuclockid() returns zero; otherwise, an error number is returned to indicate the error.
ERRORS
The clock_getcpuclockid() function will fail if:
[EPERM] The requesting process does not have permission to access the CPU-time clock for the process.
[ESRCH] No process can be found corresponding to the process specified by pid.
SEE ALSO clock_gettime(2)STANDARDS
The clock_getcpuclockid() function conform to IEEE Std 1003.1-2001 (``POSIX.1'').
HISTORY
The clock_getcpuclockid() function first appeared in FreeBSD 10.0.
AUTHORS
David Xu <davidxu@FreeBSD.org>
BSD August 21, 2012 BSD