Sponsored Content
Operating Systems BSD How to find the usage of Individual cpu core in FreeBsd server? Post 302438802 by botao on Tuesday 20th of July 2010 10:45:11 PM
Old 07-20-2010
top and sar

top can give you that;

but you can install 'bsdsar' as well - and use `sar' to get that info ;

good luck, and success !

alexandre botao
<< botao {dot} org >>
 

10 More Discussions You Might Find Interesting

1. Programming

To find CPU Usage

I am programatically trying to find CPU usage for a particular process. I am writing a C program for this. I am not sure if my approach is good at all. I first of all find the PID using getpid() method. Then I call top -f <filename> and then parse to reach the PID row. I then try to read the 10th... (3 Replies)
Discussion started by: asutoshch
3 Replies

2. 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

3. UNIX for Dummies Questions & Answers

How check the overall CPU usage of the unix server

Hi All, Can anyone help me.. I want to know the command to check the overall CPU usage of the server. Note: I don't want the CPU usge of each and every process. I just want to know thw aggregate CPU utilization of the server. (2 Replies)
Discussion started by: Selva_Kumar
2 Replies

4. HP-UX

how can I find cpu usage memory usage swap usage and logical volume usage

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

5. AIX

How to monitor the IBM AIX server for I/O usage,memory usage,CPU usage,network..?

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

6. Red Hat

How do we extract CPU usage in server?

We are using linux OS. I want to extract the CPU usage on specific time for last one week. The information i need is, date, CPU, %user , %nice , %system , %iowait, %idle Is there anyway, i can pull these info... Any help is highly appreciated. (4 Replies)
Discussion started by: govindts
4 Replies

7. Shell Programming and Scripting

Identify CPU usage on the Linux server

We are using linux server. We have below script running on the crontab and it send the alert if the cpu usage is above 90%. My question is, the below script tells the CPU usage for one CPU or all CPU in the server? sar 1 1 | sed '$!d' | awk '{printf("%d", $8)}' > $SAR_LOG Please let me... (4 Replies)
Discussion started by: govindts
4 Replies

8. UNIX for Dummies Questions & Answers

Cpu usage of UNIX server

I want to know the total cpu usage(in %ge)of unix server like windows (NOTE :-not each process cpu usage) Its urgent...plzzzz help me.... (1 Reply)
Discussion started by: rohit kataria
1 Replies

9. Solaris

Total CPU usage on a server

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

10. UNIX for Advanced & Expert Users

Server showing high Sys% CPU usage

Hi Fellas, Not sure how I can dig in even further but we notice that one of our DB servers is showing high Sys% CPU usage even though when I execute the following command : I can see that postgres is the only one using the CPU. So if anyone can advise me what would be the best way to... (3 Replies)
Discussion started by: arizah
3 Replies
vtimes(3)						     Library Functions Manual							 vtimes(3)

Name
       vtimes - get information about resource utilization

Syntax
       vtimes(par_vm, ch_vm)
       struct vtimes *par_vm, *ch_vm;

Description
       This facility has been superseded by

       The  routine  returns accounting information for the current process and for the terminated child processes of the current process.  Either
       par_vm or ch_vm or both may be 0, in which case only the information for the pointers which are non-zero is returned.

       After the call, each buffer contains information as defined by the contents of the include file /usr/include/sys/vtimes.h:
       struct vtimes {
	    int     vm_utime;		    /* user time (*HZ) */
	    int  vm_stime;	/* system time (*HZ) */
	    /* divide next two by utime+stime to get averages */
	    unsigned vm_idsrss;      /* integral of d+s rss */
	    unsigned vm_ixrss;	     /* integral of text rss */
	    int  vm_maxrss;	     /* maximum rss */
	    int  vm_majflt;	     /* major page faults */
	    int  vm_minflt;	     /* minor page faults */
	    int  vm_nswap;	/* number of swaps */
	    int  vm_inblk;	/* block reads */
	    int  vm_oublk;	/* block writes */
       };
       The vm_utime and vm_stime fields give the user and system time respectively in 60ths of a second (or 50ths if that is the frequency of wall
       current	in your locality.) The vm_idrss and vm_ixrss measure memory usage.  They are computed by integrating the number of memory pages in
       use each over cpu time.	They are reported as though computed discretely, adding the current memory usage (in 512 byte pages) each time the
       clock  ticks.   If  a  process  used 5 core pages over 1 cpu-second for its data and stack, then vm_idsrss would have the value 5*60, where
       vm_utime+vm_stime would be the 60. The vm_idsrss integrates data and stack segment usage, while vm_ixrss  integrates  text  segment  usage.
       The vm_maxrss reports the maximum instantaneous sum of the text+data+stack core-resident page count.

       The  vm_majflt  field  gives the number of page faults which resulted in disk activity; the vm_minflt field gives the number of page faults
       incurred in simulation of reference bits; vm_nswap is the number of swaps which occurred.  The number of file  system  input/output  events
       are  reported  in vm_inblk and vm_oublk These numbers account only for real I/O.  Data supplied by the caching mechanism is charged only to
       the first process to read or write the data.

See Also
       wait3(2), time(3)

																	 vtimes(3)
All times are GMT -4. The time now is 02:54 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy