Sponsored Content
Full Discussion: Understanding top in HP-UX
Operating Systems HP-UX Understanding top in HP-UX Post 302539484 by joey41 on Monday 18th of July 2011 01:21:41 AM
Old 07-18-2011
Understanding top in HP-UX

Understanding top and swapinfo command HP-UX

Hi!I am new to HP-UX having used Linux for several years.When I want to check server performance,I use the top and swapinfo command.In Linux,the results of top were quite easy to understand as it would clearly state the amount of free and used physical and virtual memory.For HP-UX,I am not so sure.If I check the top result below

Code:
$ top
System: aw1bdvrs                                      Mon Jul 18 08:03:51 2011
Load averages: 0.04, 0.05, 0.06
516 processes: 472 sleeping, 44 running
Cpu states:
CPU   LOAD   USER   NICE    SYS   IDLE  BLOCK  SWAIT   INTR   SSYS
 0    0.03   7.5%   0.0%   1.0%  91.5%   0.0%   0.0%   0.0%   0.0%
 2    0.04   1.0%   0.0%   3.2%  95.8%   0.0%   0.0%   0.0%   0.0%
 4    0.05   7.1%   0.0%   4.6%  88.3%   0.0%   0.0%   0.0%   0.0%
 6    0.02   0.0%   0.0%   0.0% 100.0%   0.0%   0.0%   0.0%   0.0%
 8    0.07   2.0%   0.0%   2.8%  95.2%   0.0%   0.0%   0.0%   0.0%
10    0.04   2.8%   0.0%   1.0%  96.2%   0.0%   0.0%   0.0%   0.0%
12    0.04   4.8%   0.0%   1.4%  93.8%   0.0%   0.0%   0.0%   0.0%
14    0.07   6.3%   0.0%   1.0%  92.7%   0.0%   0.0%   0.0%   0.0%
---   ----  -----  -----  -----  -----  -----  -----  -----  -----
avg   0.04   4.0%   0.0%   1.8%  94.2%   0.0%   0.0%   0.0%   0.0%

System Page Size: 4Kbytes
Memory: 13282568K (1729912K) real, 57718252K (5759048K) virtual, 23845192K free
 Page# 1/104                                                                  

CPU TTY  PID USERNAME PRI NI   SIZE    RES STATE    TIME %WCPU  %CPU COMMAND
 2   ? 27474 oracle   154 20 52451M  8192K sleep    1:20  9.71  9.69 ora_j001_pr
14   ? 27495 oracle   154 20 52453M  8636K sleep    1:19  8.17  8.16 ora_j004_pr
 4   ? 27482 oracle   154 20 52457M  9020K sleep    1:18  6.90  6.89 ora_j002_p74


What does

Memory: 13282568K (1729912K) real mean-the value 13282568K and 1729912K represents what part s of physical memory?
Also
57718252K (5759048K) virtual repsesents what values

And does
23845192K free represent the amount of free physical memory?

I would like to know from the above figures,which values represents value of free and used physical and virtual memory?

Also,please explain to me the various values of swapinfo shown below

Code:
$ swapinfo
             Kb      Kb      Kb   PCT  START/      Kb
TYPE      AVAIL    USED    FREE   USED   LIMIT RESERVE  PRI  NAME
dev     8388608    7964 8380644      0%       0       -    1  /dev/vg00/lvol2
dev     16777216    8196 16769020    0%       0       -    1  /dev/vg00/swap
dev     25165824    7824 25158000    0%       0       -    1  /dev/vg00/swap2
dev     20971520    7324 20964196    0%       0       -    1  /dev/vg00/swap1
reserve       - 57816448 -57816448
memory  63661264 10465664 53195600   16%

Thanks.

Last edited by pludi; 07-18-2011 at 04:55 AM..
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How Can I Have Top Display The Top 20 Processes??

how can i do that in a script withough havin the script halt at the section where the top command is located. am writign a script that will send me the out put of unx commands if the load average of a machine goes beyond the recommended number. top -n 20 i want to save this output to a file... (1 Reply)
Discussion started by: TRUEST
1 Replies

2. AIX

Top command in AIX 4.2 (no topas, no nmon, no top)?

Is there a 'top' command equivalent in AIX 4.2 ? I already checked and I do not see the following ones anywhere: top nmon topas (1 Reply)
Discussion started by: Browser_ice
1 Replies

3. AIX

Need a list of top 10 CPU using processes (also top 10 memory hogs, separately)

Okay, I am trying to come up with a multi-platform script to report top ten CPU and memory hog processes, which will be run by our enterprise monitoring application as an auto-action item when the CPU and Memory utilization gets reported as higher than a certain threshold I use top on other... (5 Replies)
Discussion started by: thenomad
5 Replies

4. Shell Programming and Scripting

need help understanding mv

I just started shell coding and I'm a bit confused on how 'mv' works can someone explain to me how it works and if i did this correctly. Thanks. echo "Enter Name of the first file:" read file1 #echo $file1 if ; then echo "Sorry, file does not exist." exit 1 ... (16 Replies)
Discussion started by: taiL
16 Replies

5. Shell Programming and Scripting

Understanding the output of TOP

ok, so I have a script im running on a linux box that uses "egrep" a lot. now, when i run this script, i check the TOP to see how much system resource it is using. the "top" command gives the following output: last pid: 25384; load avg: 1.06, 1.04, 0.76; up 351+06:30:24 ... (0 Replies)
Discussion started by: SkySmart
0 Replies

6. UNIX for Dummies Questions & Answers

understanding {%/*}/

Hi Gurus: I am trying to understand the following line of code.I did enough of googling to understand but no luck.Please help me understand the follow chunk of code: X=$0 MOD=${X%/*}/env.ksh X is the current script from which I am trying to execute. Say if X=test.ksh $MOD is echoing :... (3 Replies)
Discussion started by: vemana
3 Replies

7. HP-UX

Understanding "top" command

Hi all, I need a clarification about the top command in HP-UX. If I run: top -s300 I see the screen refresh every 5 minutes. From the "man top" I understand that the values displayed every 5 minutes are instantaneous, not average on the previous 5 minutes. Is this interpretation correct? ... (3 Replies)
Discussion started by: Evan
3 Replies

8. Shell Programming and Scripting

Need your help in understanding this

Hi, I found this in a script and I would like to know how this works Code is here: # var1=PART1_PART2 # var2=${var1##*_} # echo $var2 PART2 I'm wondering how ##* makes the Shell to understand to pick up the last value from the given. (2 Replies)
Discussion started by: sathyaonnuix
2 Replies

9. Red Hat

Understanding cpu consumption with TOP

Hi please see attached picture of the TOP command. the "java" process seem to consume 700% of cpu is that mean that he uses 100% of every 7 cpu cores? thanks (2 Replies)
Discussion started by: guy3145
2 Replies
focus(n)						       Tk Built-In Commands							  focus(n)

__________________________________________________________________________________________________________________________________________________

NAME
focus - Manage the input focus SYNOPSIS
focus focus window focus option ?arg arg ...? _________________________________________________________________ DESCRIPTION
The focus command is used to manage the Tk input focus. At any given time, one window on each display is designated as the focus window; any key press or key release events for the display are sent to that window. It is normally up to the window manager to redirect the focus among the top-level windows of a display. For example, some window managers automatically set the input focus to a top-level window when- ever the mouse enters it; others redirect the input focus only when the user clicks on a window. Usually the window manager will set the focus only to top-level windows, leaving it up to the application to redirect the focus among the children of the top-level. Tk remembers one focus window for each top-level (the most recent descendant of that top-level to receive the focus); when the window man- ager gives the focus to a top-level, Tk automatically redirects it to the remembered window. Within a top-level Tk uses an explicit focus model by default. Moving the mouse within a top-level does not normally change the focus; the focus changes only when a widget decides explicitly to claim the focus (e.g., because of a button click), or when the user types a key such as Tab that moves the focus. The Tcl procedure tk_focusFollowsMouse may be invoked to create an implicit focus model: it reconfigures Tk so that the focus is set to a window whenever the mouse enters it. The Tcl procedures tk_focusNext and tk_focusPrev implement a focus order among the windows of a top- level; they are used in the default bindings for Tab and Shift-Tab, among other things. The focus command can take any of the following forms: focus Returns the path name of the focus window on the display containing the application's main window, or an empty string if no window in this application has the focus on that display. Note: it is better to specify the display explicitly using -displayof (see below) so that the code will work in applications using multiple displays. focus window If the application currently has the input focus on window's display, this command resets the input focus for window's display to window and returns an empty string. If the application doesn't currently have the input focus on window's display, window will be remembered as the focus for its top-level; the next time the focus arrives at the top-level, Tk will redirect it to window. If window is an empty string then the command does nothing. focus -displayof window Returns the name of the focus window on the display containing window. If the focus window for window's display isn't in this application, the return value is an empty string. focus -force window Sets the focus of window's display to window, even if the application doesn't currently have the input focus for the display. This command should be used sparingly, if at all. In normal usage, an application should not claim the focus for itself; instead, it should wait for the window manager to give it the focus. If window is an empty string then the command does nothing. focus -lastfor window Returns the name of the most recent window to have the input focus among all the windows in the same top-level as window. If no window in that top-level has ever had the input focus, or if the most recent focus window has been deleted, then the name of the top-level is returned. The return value is the window that will receive the input focus the next time the window manager gives the focus to the top-level. QUIRKS
When an internal window receives the input focus, Tk doesn't actually set the X focus to that window; as far as X is concerned, the focus will stay on the top-level window containing the window with the focus. However, Tk generates FocusIn and FocusOut events just as if the X focus were on the internal window. This approach gets around a number of problems that would occur if the X focus were actually moved; the fact that the X focus is on the top-level is invisible unless you use C code to query the X server directly. KEYWORDS
events, focus, keyboard, top-level, window manager Tk 4.0 focus(n)
All times are GMT -4. The time now is 04:28 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy