Sponsored Content
Top Forums Shell Programming and Scripting Finding total Percentage CPU usage Post 302417631 by methyl on Friday 30th of April 2010 07:24:27 AM
Old 04-30-2010
What hardware?
Which Operating System?
Which shell?
 

10 More Discussions You Might Find Interesting

1. HP-UX

How to determine cpu&memory percentage usage per user

Using HP-UX v11 Need to monitor cpu and memory usage, total for system and separately for each user in command-line mode. Found out next ways to monitor total cpu usage under hp-ux: 1) vmstat, also shows free memory 2) sar -M ps -eo user,pcpu - does not work, means 'user-defined format'... (4 Replies)
Discussion started by: hp-ux-user
4 Replies

2. UNIX for Advanced & Expert Users

Finding CPU usage by a Unix Process

Hi, I am designing a load balancer for an application. I am trying to find out the CPU usage by a specifc Unix process (PID is known). I guess I can use ps command to find that. can somebody help me in finding what exact command I should use to find? It is on AIX 5.3. Regards Asutosh (2 Replies)
Discussion started by: asutoshch
2 Replies

3. Shell Programming and Scripting

Help with bash script - Need to get CPU usage as a percentage

I'm writing a bash script to log some selections from a sensors output (core temp, mb temp, etc.) and I would also like to have the current cpu usage as a percentage. I have no idea how to go about getting it in a form that a bash script can use. For example, I would simply look in the output of... (3 Replies)
Discussion started by: graysky
3 Replies

4. UNIX for Dummies Questions & Answers

HOWTO - Total memory and CPU usage ... without top?

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

5. UNIX for Dummies Questions & Answers

Total cpu usage in percent(%)

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

6. UNIX for Dummies Questions & Answers

Is total CPU usage for sar %user+%system+%iowait?

Hi all Can anyone advise/confirm whether total CPU usage when running sar is %user+%system+%iowait or is it %user+%system only? I want to confirm whether I am having a CPU-bound problem or not. This is a single-CPU VMware machine. $ sar 5 20 Linux 2.6.18-238.5.1.el5... (7 Replies)
Discussion started by: newbie_01
7 Replies

7. Linux

How to calculate total CPU usage from SAR report?

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

8. UNIX for Advanced & Expert Users

Finding out total memory usage

Hi, I have a server box with 16GB ram in it, within the server box there are 3 VMs running with a total allocation of 9GB. if I add up all the numbers under memory info using vmstat I get 15.8GB so I can say it adds up to 16Gb... Is there a way to see from the command line how much memory... (2 Replies)
Discussion started by: speedhunt3r
2 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. Solaris

Capture PRSTAT based on CPU usage percentage

Hi, Recently i have write a simple script to capture CPU high usage based on prstat but i found out that it did capture correctly. I need to capture the rows that contains CPU usage more than 3%. Below line which i thought will capture CPU usage based CPU column in prstat(9th parameter) which is... (3 Replies)
Discussion started by: tharmendran
3 Replies
XtPopdown(3Xt)							     MIT X11R4							    XtPopdown(3Xt)

Name
       XtPopdown, XtCallbackPopdown, MenuPopdown - unmap a pop-up

Syntax
       void XtPopdown(popup_shell)
	  Widget popup_shell;

       void XtCallbackPopdown(w, client_data, call_data)
	  Widget w;
	  XtPointer client_data;
	  XtPointer call_data;

       void MenuPopdown(shell_name)
	  String shell_name;

Arguments
       call_data Specifies the callback data, which is not used by this procedure.

       client_data
		 Specifies a pointer to the structure.

       popup_shell
		 Specifies the widget shell to pop down.

       shell_name
		 Specifies the name of the widget shell to pop down.

       w	 Specifies the widget.

Description
       The function performs the following:

       o    Calls to ensure popup_shell is a subclass of

       o    Checks that popup_shell is currently popped_up; otherwise, it generates an error.

       o    Unmaps popup_shell's window.

       o    If popup_shell's grab_kind is either or it calls

       o    Sets pop-up shell's popped_up field to

       o    Calls the callback procedures on the shell's popdown_callback list.

       The function casts the client data parameter to an pointer:

       typedef struct {
	 Widget shell_widget;
	 Widget enable_widget;
       } XtPopdownIDRec, *XtPopdownID;
       The shell_widget is the pop-up shell to pop down, and the enable_widget is the widget that was used to pop it up.

       calls with the specified shell_widget and then calls to resensitize the enable_widget.

       If a shell name is not given, calls with the widget for which the translation is specified.  If a shell_name is specified in the transla-
       tion table, tries to find the shell by looking up the widget tree starting at the parent of the widget in which it is invoked.  If it finds
       a shell with the specified name in the pop-up children of that parent, it pops down the shell; otherwise, it moves up the parent chain as
       needed.	If gets to the application top-level shell widget and cannot find a matching shell, it generates an error.

See Also
       XtCreatePopupShell(3Xt), XtPopup(3Xt)
       X Window System Toolkit: The Complete Programmer's Guide and Specification, Paul J. Asente and Ralph Swick
       X Window System: The Complete Reference, Second Edition, Robert W. Scheifler and James Gettys

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