Output of "top" command
i can't understand the CPU usage in top command. even the man page does not describe the necessary options. here is what i have from the "top":
Cpu(s): 3.7%us, 1.0%sy, 0.0%ni, 95.3%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
how will i know which option represents the CPU in use and which represents free CPU ? (i mean the meanings of us, wa, id and sy )
also, what is the difference between VIRT, RES and SHR memories. which one represents RAM ?
us is processor time used by userspace processes, sy by kernel, ni by niced processes, id means idle, wa denotes waiting for I/O, hi and si are hard/soft interrupts.
Read "man top" for VIRT etc. descriptions.
Similar Messages
-
How to see rest of output of TOP command
launch Terminal
run the top command
how to view the rest of its output ?
yeah resizing the window helps. But it still wont show all.
Best to you !Use Applications -> Utilities -> Activity Monitor ?
The 'ps' command ?
top -l 100 # that is lowercase L - see "man top" -
Query on Linux 'top' command in Linux for oracle user
This is the output of 'top' command in one of my linux server hosting One Oracle instance with 600MB SGA and 400MB PGA. One one instance is up in this server.
top - 14:36:37 up 4:26, 3 users, load average: 0.05, 0.11, 0.28
Tasks: 124 total, 1 running, 123 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.2% us, 0.1% sy, 0.0% ni, 66.6% id, 33.1% wa, 0.0% hi, 0.0% si
Mem: 12299332k total, *2569836k* used, 9729496k free, 61288k buffers
Swap: 20972816k total, 0k used, 20972816k free, 2274852k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
6345 oracle 16 0 37132 1752 1172 S 0.0 0.0 0:00.08 sshd
6346 oracle 16 0 54004 1536 1208 S 0.0 0.0 0:00.02 bash
6423 oracle 16 0 45376 10m 6228 S 0.0 0.1 0:00.25 tnslsnr
6471 oracle 16 0 740m 17m 13m S 0.0 0.1 0:00.02 oracle
6473 oracle 16 0 739m 15m 12m S 0.0 0.1 0:00.01 oracle
6475 oracle 16 0 739m 32m 29m S 0.0 0.3 0:00.07 oracle
6477 oracle 16 0 742m 50m 44m S 0.0 0.4 0:00.27 oracle
6479 oracle 16 0 754m 23m 19m S 0.0 0.2 0:00.43 oracle
6481 oracle 16 0 739m 24m 20m S 0.0 0.2 0:00.61 oracle
6483 oracle 16 0 740m 88m 83m S 0.0 0.7 0:00.71 oracle
6485 oracle 16 0 739m 22m 19m S 0.0 0.2 0:00.01 oracle
6487 oracle 16 0 740m 30m 25m S 0.0 0.3 0:00.15 oracle
6489 oracle 16 0 741m 55m 48m S 0.0 0.5 0:00.29 oracle
6491 oracle 16 0 739m 24m 20m S 0.0 0.2 0:00.01 oracle
6493 oracle 16 0 739m 15m 11m S 0.0 0.1 0:00.01 oracle
6495 oracle 16 0 739m 14m 11m S 0.0 0.1 0:00.00 oracle
6622 oracle 16 0 739m 16m 13m S 0.0 0.1 0:00.00 oracle
6626 oracle 16 0 740m 79m 74m S 0.0 0.7 0:01.95 oracle
6636 oracle 16 0 740m 28m 23m S 0.0 0.2 0:00.06 oracle
6638 oracle 16 0 739m 16m 12m S 0.0 0.1 0:00.01 oracle
6846 oracle 16 0 739m 19m 16m S 0.0 0.2 0:00.02 oracle
6848 oracle 16 0 739m 24m 21m S 0.0 0.2 0:00.04 oracle
6850 oracle 16 0 739m 19m 16m S 0.0 0.2 0:00.02 oracle
6852 oracle 16 0 739m 19m 16m S 0.0 0.2 0:00.01 oracle
6854 oracle 16 0 739m 30m 26m S 0.0 0.3 0:00.12 oracle
6856 oracle 15 0 739m 28m 24m S 0.0 0.2 0:00.18 oracle
6858 oracle 15 0 740m 40m 35m S 0.0 0.3 0:06.39 oracle
6862 oracle 16 0 739m 32m 28m S 0.0 0.3 0:02.25 oracle
6864 oracle 16 0 739m 19m 16m S 0.0 0.2 0:00.02 oracle
6866 oracle 16 0 739m 19m 16m S 0.0 0.2 0:00.03 oracle
6868 oracle 16 0 739m 19m 16m S 0.0 0.2 0:00.02 oracle
7480 oracle 15 0 37264 1668 1092 S 0.0 0.0 0:00.15 sshd
7481 oracle 15 0 54004 1528 1196 S 0.0 0.0 0:00.05 bash
10333 oracle 16 0 739m 20m 16m S 0.0 0.2 0:00.00 oracle
10337 oracle 15 0 6168 1080 768 R 0.0 0.0 0:00.00 top
Total RAM as seen from top command is 12G.
*2569836* - Total RAM which is being used currently .
How can I see the total RAM used by all Oracle Processes running in this server. The server is Linux X86 64 Bit. Can I sum up the values under 'VIRT' column of 'top' command to see the total RAM used ?
Is there a way to see the total RAM and CPU used by Oracle from top ?
'VIRT' is the virtual memory - In what way is this related to the figure above, which is the physical memory (RAM) ?
Thanks in Advance
SSN
Edited by: SSNair on Oct 21, 2010 2:39 AMOracle used shared memory to implement the SGA, which constituted the largest memory consumption of the Oracle instance. The problem is that in many modern OS, including linux, it is hard to define the actual memory usage fo a software. This is because the memory used by a process is actually composed of shared (e.g., shared memory, shared library, executable code) and private (e.g., the heap, the stack) components. Utilities like top, ps, etc reports all memory visible by a process, disregarding whether it is shared or not. As a result, the total of VIRT etc will be inflated by the shared components. For a more accurate figure of memory usage, shared memory / library / code should be counted once.
Before 11g, Oracle used System V ipc, and the amount of memory allocated can be checked using ipcs. In 11g, Oracle switched to /dev/shm, use df to check the memory allocation. (Thanks user11150436)
The "Mem used" figure in top is the actual usage of the memory: shared memory and library are not multi-counted. However, Linux will always cache (read before actually requested) and buffer (write after signalling completion) disk I/O. Therefore, "Mem used" is almost always very close to the amount of physical memory. "Mem used" - "buffers" - "cached" reflects the memory actually used by the OS and all programs more accuately.
And you can use the pmap utility to check the memory map. Then you classify the sharable and unsharable memory usage to calculate a more accurate result suiting your need. You need OS knowledge to understand the output. -
Hi,
Can anybody describe the following TOP Command output...
==========================================
Tasks: 197 total, 1 running, 196 sleeping, 0 stopped, 0 zombie
Cpu(s): 12.0% us, 0.7% sy, 0.0% ni, 71.8% id, 15.5% wa, 0.0% hi, 0.0% si
Mem: 4147796k total, 4120904k used, 26892k free, 25708k buffers
Swap: 8191992k total, 160k used, 8191832k free, 3624432k cached
4615 root 16 0 54320 15m 5952 S 24 0.4 4:41.11 X
1915 oratest 16 0 923m 620m 485m S 20 15.3 17:09.41 oracle
1730 oratest 16 0 385m 64m 23m S 4 1.6 0:54.07 java
1912 oratest 15 0 23516 9.9m 5368 S 1 0.2 0:36.71 sqlplus
1726 oratest 16 0 385m 64m 23m S 1 1.6 0:03.35 java
1913 oratest 16 0 385m 64m 23m S 1 1.6 0:13.00 java
2135 oratest 16 0 2448 1028 760 R 1 0.0 0:00.13 top
1887 oratest 15 0 689m 23m 21m D 0 0.6 0:20.74 oracle
1 root 16 0 3468 592 504 S 0 0.0 0:01.06 init
2 root RT 0 0 0 0 S 0 0.0 0:00.04 migration/0
3 root 34 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/0
4 root RT 0 0 0 0 S 0 0.0 0:00.03 migration/1
5 root 34 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/1
6 root RT 0 0 0 0 S 0 0.0 0:00.04 migration/2
7 root 34 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/2
8 root RT 0 0 0 0 S 0 0.0 0:00.03 migration/3
9 root 34 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/3
10 root 5 -10 0 0 0 S 0 0.0 0:00.00 events/0
11 root 5 -10 0 0 0 S 0 0.0 0:00.00 events/1
12 root 5 -10 0 0 0 S 0 0.0 0:00.00 events/2
13 root 5 -10 0 0 0 S 0 0.0 0:00.00 events/3
14 root 5 -10 0 0 0 S 0 0.0 0:00.00 khelper
15 root 15 -10 0 0 0 S 0 0.0 0:00.00 kacpid
================================================
Why it is showing the Memory Free is 26 MB only...
Only one Database is running on this Machine SGA is around 600MB only.....
Why it is showing 26 MB Free of memory ....Can anybody please describe the TOP Command output.....Hi, this doest look too good... " Swap: 8191992k total, 160k used"
this means you'r using some of you'r swap, "25708k buffers" and not becouse of you'r buffers.
try using ps -ef or top ( and sort by memory by hitting "m" ) and search for the process that uses you'r memory. -
Solaris 10 - top command show only half memory
I have 64Gb of RAM but top Solaris only use 32Gb
Output from "prtdiag" command:
==== Memory Device Sockets ================================
Type Status Set Device Locator Bank Locator
Unknown in use 1 DIMM 1A
Unknown in use 3 DIMM 2C
Unknown in use 5 DIMM 3E
Unknown in use 7 DIMM 4G
Unknown in use 1 DIMM 5A
Unknown in use 3 DIMM 6C
Unknown in use 5 DIMM 7E
Unknown in use 7 DIMM 8G
Unknown in use 2 DIMM 9B
Unknown in use 4 DIMM 10D
Unknown in use 6 DIMM 11F
Unknown in use 8 DIMM 12H
Unknown in use 2 DIMM 13B
Unknown in use 4 DIMM 14D
Unknown in use 6 DIMM 15F
Unknown in use 8 DIMM 16H
Output from "hpasmcli" command:
DIMM Configuration
Board Dimm Is Form Memory Memory Memory
Number Number Present Factor Type Size Speed Status
0 1 Yes 0x00f 0x014 4096MB 667MHz Ok
0 2 Yes 0x00f 0x014 4096MB 667MHz Ok
0 3 Yes 0x00f 0x014 4096MB 667MHz Ok
0 4 Yes 0x00f 0x014 4096MB 667MHz Ok
0 5 Yes 0x00f 0x014 4096MB 667MHz Ok
0 6 Yes 0x00f 0x014 4096MB 667MHz Ok
0 7 Yes 0x00f 0x014 4096MB 667MHz Ok
0 8 Yes 0x00f 0x014 4096MB 667MHz Ok
0 9 Yes 0x00f 0x014 4096MB 667MHz Ok
0 10 Yes 0x00f 0x014 4096MB 667MHz Ok
0 11 Yes 0x00f 0x014 4096MB 667MHz Ok
0 12 Yes 0x00f 0x014 4096MB 667MHz Ok
0 13 Yes 0x00f 0x014 4096MB 667MHz Ok
0 14 Yes 0x00f 0x014 4096MB 667MHz Ok
0 15 Yes 0x00f 0x014 4096MB 667MHz Ok
0 16 Yes 0x00f 0x014 4096MB 667MHz Ok
Total Memory: 65536 MB
:/> top
last pid: 27427; load avg: 0.21, 0.30, 0.28; up 106+11:48:10 15:47:39
147 processes: 145 sleeping, 1 zombie, 1 on cpu
CPU states: 99.5% idle, 0.1% user, 0.4% kernel, 0.0% iowait, 0.0% swap
Memory: 32G phys mem, 14G free mem, 102G total swap, 102G free swap
:/> top -v
top: version 3.6.1
:/> echo ::memstat | mdb -k
Page Summary Pages MB %Tot
Kernel 631483 2466 8%
Anon 3233838 12632 39%
Exec and libs 31475 122 0%
Page cache 690598 2697 8%
Free (cachelist) 2873644 11225 34%
Free (freelist) 924686 3612 11%
Total 8385724 32756
Physical 8176848 31940
Solaris 10 10/08 s10x_u6wos_07b X86
Copyright 2008 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 27 October 2008I ran top on a system running Solaris 10 10/09 and the top results match prtconf's memory results.
See below.
load averages: 4.63, 4.77, 4.80 08:41:19
2188 processes:2099 sleeping, 11 zombie, 73 stopped, 5 on cpu
CPU states: % idle, % user, % kernel, % iowait, % swap
Memory: 96G real, 51G free, 36G swap in use, 91G swap free
% prtconf -v | grep Mem
Memory size: 98304 Megabytes
% top -v
top: version 3.5beta9
% cat /etc/release
Solaris 10 10/09 s10s_u8wos_08a SPARC
Copyright 2009 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 16 September 2009
I ran top version 3.8beta1 on a Solaris 11 system and it matches phys memory size as well.
Confirm that you don't have a /etc/system setting that is constraining phys memory and that
prtconf is reporting total amount as well.
Thanks, Cindy -
How to find memory taken by a process using top command
I wanted to know how to find the memory taken by a process using top command. The output of the top command is as follows as an example:
Mem: 13333364k total, 13238904k used, 94460k free, 623640k buffers
Swap: 25165816k total, 112k used, 25165704k free, 4572904k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
16514 applmgr 25 0 2197m 1.7g 10m S 0.3 13.0 15:20.67 java
30692 crestelo 22 0 2901m 1.4g 9284 S 0.0 11.0 3:03.68 java
30431 crestelo 25 0 2043m 1.4g 161m S 50.9 11.0 79:02.73 java
30869 crestelo 25 0 2860m 1.2g 9292 S 0.0 9.6 7:11.18 java
16655 applmgr 23 0 1934m 1.1g 10m S 0.3 8.9 2:17.49 java
16319 crestelo 19 0 1541m 299m 44m S 0.0 2.3 2:52.11 java
I hope, my question is clear as to how to find the memory taken by a process using top command.
Please revert with the reply to my query.
RegardsHave you tried "man top" to see the documentation for the top command?
How about the following: http://lmgtfy.com/?q=show+memory+with+top+command
The 5th column (VIRT) shows the amount of RAM + swap
The 6th column (RES) shows RAM
The 7th column (SHR) shows memory shared between processes -
How to find memory taken by Oracle processes using top command
I wanted to know how to find the memory taken by Oracle processes using top command. The output of the top command is as follows as an example:
Mem: 16436072k total, 16215708k used, 220364k free, 395128k buffers
Swap: 25165816k total, 1168288k used, 23997528k free, 13366520k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
27281 oraprod 15 0 6705m 1.3g 1.3g S 0.0 8.6 61:44.71 oracle
27383 oraprod 15 0 6702m 1.2g 1.2g S 0.0 7.7 2:22.75 oracle
5199 oraprod 16 0 6745m 1.1g 1.0g S 0.0 6.8 2:51.23 oracle
The different Oracle processes could be Oracle database, Oracle listener, Oracle enterprise manager etc.
I hope, my question is clear as to how to find the memory taken by a process using top command.
Please revert with the reply to my query.
Regardsa short and correct answer would be: you can't.
As oracle uses a fair amount of shared memory, and that shared memory is attached to most of the oracle processes, the same memory appears a number of times.
you should rephrase your question / what is it you want to achieve?
you can ask oracle how much memory is assigned to it, v$sga, v$sgastat, v$process (for PGA). moreover, you as DBA are the one who configured that.
you can look at major an minor faults per process to see what is causing the paging (if you have any).
you can also look at the /proc/pid/statm pseudofilesystem for your oracle pids. -
Horrenduos output from top.
Hello,
We are running Oracle 10.2.0.3 on prod. The db server (host) is being used by oracle processes like hell most of the times.
Assume that ORACLE_SID is "SID"
SGA is set to 5G, and PGA to 4G.
Server is running in DEDICATED_SERVER_MODE.
PROCESSES=2000;SESSIONS=2200;SHARED_CURSORS=1500
Here I post the two outputs of the top command, taken in a time period of 15 minutes.
*1. *
top - 11:16:57 up 8 days, 22:36, 2 users, load average: 33.26, 28.43, 24.22
Tasks: 510 total, 3 running, 507 sleeping, 0 stopped, 0 zombie
Cpu0 : 14.3% us, 1.0% sy, 0.0% ni, 0.2% id, 84.3% wa, 0.0% hi, 0.2% si
Cpu1 : 20.6% us, 1.6% sy, 0.0% ni, 5.1% id, 72.4% wa, 0.2% hi, 0.2% si
Cpu2 : 12.0% us, 1.2% sy, 0.0% ni, 2.6% id, 84.1% wa, 0.0% hi, 0.2% si
Cpu3 : 30.1% us, 2.0% sy, 0.0% ni, 4.3% id, 63.4% wa, 0.0% hi, 0.2% si
Cpu4 : 15.3% us, 2.9% sy, 0.0% ni, 1.8% id, 79.6% wa, 0.2% hi, 0.2% si
Cpu5 : 8.0% us, 1.6% sy, 0.0% ni, 3.3% id, 86.7% wa, 0.0% hi, 0.4% si
Cpu6 : 17.1% us, 2.0% sy, 0.0% ni, 5.9% id, 74.9% wa, 0.0% hi, 0.2% si
Cpu7 : 17.5% us, 1.4% sy, 0.0% ni, 4.7% id, 76.2% wa, 0.0% hi, 0.2% si
Cpu8 : 18.7% us, 1.4% sy, 0.0% ni, 3.7% id, 76.0% wa, 0.2% hi, 0.0% si
Cpu9 : 23.5% us, 2.9% sy, 0.0% ni, 8.4% id, 64.5% wa, 0.0% hi, 0.6% si
Cpu10 : 14.7% us, 1.6% sy, 0.0% ni, 5.1% id, 78.4% wa, 0.0% hi, 0.2% si
Cpu11 : 12.0% us, 2.0% sy, 0.0% ni, 1.8% id, 84.1% wa, 0.0% hi, 0.2% si
Mem: 24386076k total, 21804516k used, 2581560k free, 55448k buffers
Swap: 18874360k total, 291704k used, 18582656k free, 15216096k cached
PID USER PR NI %CPU TIME+ %MEM VIRT RES SHR S COMMAND
17924 oracle 16 0 33 0:01.64 1.0 6143m 227m 221m S oracleSID (LOCAL=NO)
17762 oracle 16 0 27 0:01.85 1.7 6143m 394m 388m S oracleSID (LOCAL=NO)
17920 oracle 16 0 23 0:01.76 1.2 6142m 284m 278m S oracleSID (LOCAL=NO)
17942 oracle 15 0 22 0:02.25 1.5 6145m 365m 357m D oracleSID (LOCAL=NO)
17764 oracle 16 0 12 0:03.10 1.6 6142m 382m 376m S oracleSID (LOCAL=NO)
17946 oracle 16 0 12 0:03.60 1.9 6142m 443m 437m S oracleSID (LOCAL=NO)
14264 oracle 15 0 10 0:53.34 6.3 6163m 1.5g 1.4g R oracleSID (LOCAL=NO)
18008 oracle 16 0 9 0:00.86 0.4 6151m 91m 78m S oracleSID (LOCAL=NO)
17926 oracle 16 0 9 0:02.50 1.6 6142m 390m 384m D oracleSID (LOCAL=NO)
17850 oracle 16 0 8 0:01.21 1.1 6143m 251m 244m S oracleSID (LOCAL=NO)
14254 oracle 15 0 7 0:32.82 6.7 6163m 1.6g 1.5g D oracleSID (LOCAL=NO)
17922 oracle 15 0 7 0:01.53 1.1 6145m 251m 243m D oracleSID (LOCAL=NO)
18002 oracle 17 0 6 0:00.21 0.4 6142m 85m 80m S oracleSID (LOCAL=NO)
13106 oracle 16 0 4 1:07.98 8.1 6163m 1.9g 1.9g D oracleSID (LOCAL=NO)
13994 oracle 15 0 4 1:02.04 7.1 6151m 1.7g 1.6g D oracleSID (LOCAL=NO)
17938 oracle 16 0 4 0:00.23 0.3 6143m 79m 73m R oracleSID (LOCAL=NO)
17852 oracle 16 0 4 0:05.65 1.6 6151m 375m 364m S oracleSID (LOCAL=NO)
12797 oracle 15 0 2 0:27.51 5.4 6251m 1.3g 1.2g D oracleSID (LOCAL=NO)
14268 oracle 15 0 2 0:54.30 7.3 6151m 1.7g 1.7g S oracleSID (LOCAL=NO)
10813 oracle 15 0 2 0:59.97 8.0 6235m 1.9g 1.8g D oracleSID (LOCAL=NO)
15488 oracle 15 0 2 0:20.58 4.2 6142m 994m 988m D oracleSID (LOCAL=NO)
17846 oracle 16 0 2 0:01.47 1.3 6151m 320m 308m S oracleSID (LOCAL=NO)
17590 oracle 15 0 2 0:01.68 1.4 6142m 340m 334m D oracleSID (LOCAL=NO)
18006 oracle 18 0 2 0:00.30 0.6 6143m 139m 132m D oracleSID (LOCAL=NO)
15243 oracle 15 0 1 0:11.22 5.0 6142m 1.2g 1.1g D oracleSID (LOCAL=NO)
17469 oracle 16 0 1 0:09.07 3.5 6147m 827m 818m S oracleSID (LOCAL=NO)
10556 oracle 15 0 1 0:54.02 8.2 6187m 1.9g 1.9g D oracleSID (LOCAL=NO)*2. *
top - 11:46:49 up 8 days, 23:06, 3 users, load average: 219.93, 165.37, 105.53
Tasks: 1772 total, 99 running, 1673 sleeping, 0 stopped, 0 zombie
Cpu(s): 53.6% us, 35.3% sy, 0.0% ni, 0.7% id, 10.2% wa, 0.1% hi, 0.2% si
Mem: 24386076k total, 24343428k used, 42648k free, 2476k buffers
Swap: 18874360k total, 2439932k used, 16434428k free, 4579352k cached
PID USER PR NI %CPU TIME+ %MEM VIRT RES SHR S COMMAND
88 root 20 0 54 13:39.86 0.0 0 0 0 R kswapd2
21503 oracle 25 0 45 0:11.43 3.4 6141m 802m 796m R oracle
20507 oracle 16 0 28 0:05.56 3.2 6142m 758m 756m S oracle
22653 oracle 16 0 21 0:01.37 0.9 6145m 209m 201m D oracle
20641 oracle 16 0 13 0:07.70 3.5 6142m 834m 828m S oracle
20575 oracle 16 0 10 0:07.92 3.3 6144m 790m 787m S oracle
20661 oracle 15 0 8 0:07.55 3.7 6147m 886m 875m D oracle
20597 oracle 15 0 8 0:07.70 3.1 6145m 726m 722m D oracle
21108 oracle 15 0 7 0:07.42 3.6 6145m 855m 847m D oracle
12002 oracle 15 0 6 0:58.91 7.8 6163m 1.8g 1.8g D oracle
20184 oracle 15 0 6 0:08.33 2.5 6145m 588m 580m D oracle
23620 oracle 15 0 4 10:16.86 0.7 6142m 175m 170m S oracle
23965 oracle 15 0 4 0:03.42 1.4 6145m 321m 314m D oracle
20747 oracle 16 0 3 0:12.58 3.5 6142m 835m 830m S oracle
22748 oracle 15 0 3 0:09.85 1.6 6142m 385m 379m D oracle
23608 oracle 15 0 3 2:36.86 0.3 6141m 72m 68m S oracle
21144 oracle 16 0 3 0:05.70 3.3 6142m 775m 769m R oracle
20290 oracle 15 0 3 0:05.63 2.7 6143m 633m 627m D oracle
24838 oracle 17 0 3 0:06.06 0.0 3372 2100 828 R top
21152 oracle 16 0 2 0:05.76 3.2 6142m 758m 753m S oracle
23195 oracle 18 0 2 0:02.42 1.0 6145m 242m 233m D oracle
13128 oracle 15 0 2 0:44.61 6.7 6155m 1.6g 1.6g D oracle
21328 oracle 16 0 2 0:03.76 2.6 6142m 622m 616m D oracle
21452 oracle 15 0 2 0:05.09 3.2 6142m 759m 753m S oracle
22762 oracle 15 0 2 0:09.04 2.5 6147m 590m 580m D oracle
23426 oracle 18 0 2 0:10.34 0.3 6147m 77m 67m D oracle
17852 oracle 15 0 2 0:21.62 6.0 6147m 1.4g 1.4g S oracle
21236 oracle 15 0 2 0:04.04 2.5 6142m 606m 601m D oracle
21320 oracle 15 0 2 0:07.79 3.0 6141m 710m 705m S oracle
21556 oracle 15 0 2 0:07.08 3.3 6144m 791m 785m S oracle
21565 oracle 15 0 2 0:05.64 3.2 6145m 770m 761m D oracle
21785 oracle 15 0 2 0:06.85 3.5 6142m 827m 821m S oracle
22734 oracle 16 0 2 0:04.03 1.9 6142m 462m 456m S oracle
22917 oracle 16 0 2 0:05.54 2.1 6141m 491m 490m S oracle
23033 oracle 15 0 2 0:03.26 2.0 6141m 476m 471m S oracle
23065 oracle 16 0 2 0:05.70 2.2 6142m 535m 530m S oracle
23107 oracle 15 0 2 0:06.66 2.2 6142m 527m 523m S oracle
23145 oracle 15 0 2 0:04.69 2.2 6141m 533m 529m S oracle
Please find in the output above, this information about memory
Mem: 24386076k total, 21804516k used, 2581560k free, 55448k buffers
Mem: 24386076k total, 24343428k used, 42648k free, 2476k buffers
From this we can understand that whole of RAM (24G) is occupied.
Also, the swap memory is currently set to 18G, which is inadiquate, and recommended value being 2*RAM.
Nevertheless, we can note from the above output that not even 50% of swap is being used.
Swap: 18874360k total, 291704k used, 18582656k free, 15216096k cached
Swap: 18874360k total, 2439932k used, 16434428k free, 4579352k cached
_when I issue a sar -B to look at the page swap-in - swap-out statistics,_ below is the output...
oracle@ LIVE $ sar -B
Linux 2.6.9-67.EL (dbserver) 08/07/2009
12:00:01 AM pgpgin/s pgpgout/s fault/s majflt/s
12:10:01 AM 34214.02 219.92 0.00 0.25
12:20:01 AM 1541.90 149.04 0.00 0.14
12:30:01 AM 239.14 84.37 0.00 0.06
12:40:01 AM 394.51 101.49 0.00 0.18
12:50:01 AM 240.18 85.75 0.00 0.06
01:00:01 AM 4488.40 78.24 0.00 0.05
01:10:01 AM 14981.73 75.12 0.00 0.01
01:20:01 AM 11968.05 72.61 0.00 0.01
01:30:01 AM 12024.09 77.68 0.00 0.09
01:40:01 AM 11604.29 90.95 0.00 0.04
01:50:01 AM 7893.51 70.89 0.00 0.07
02:00:01 AM 13023.44 511.56 0.00 0.26
02:10:01 AM 13653.04 622.65 0.00 2.21
02:20:01 AM 5193.70 1445.15 0.00 3.56
02:30:01 AM 290.89 70.36 0.00 0.51
02:40:01 AM 1809.92 69.11 0.00 2.27
02:50:01 AM 3528.53 65.65 0.00 4.27
03:00:01 AM 269.15 62.39 0.00 0.32
03:10:01 AM 333.97 69.48 0.00 0.50
03:20:01 AM 200.89 60.15 0.00 0.17
03:30:01 AM 242.82 62.09 0.00 0.25
03:40:01 AM 402.22 74.02 0.00 0.90
03:40:01 AM pgpgin/s pgpgout/s fault/s majflt/s
03:50:01 AM 260.14 68.57 0.00 0.44
04:00:01 AM 213.76 63.69 0.00 0.49
04:10:01 AM 362.30 83.63 0.00 0.63
04:20:01 AM 210.44 61.14 0.00 0.14
04:30:01 AM 190.25 60.83 0.00 0.20
04:40:01 AM 365.54 66.88 0.00 0.03
04:50:01 AM 226.78 59.52 0.00 0.11
05:00:01 AM 226.93 60.40 0.00 0.05
05:10:01 AM 212.83 69.12 0.00 0.19
05:20:01 AM 215.33 60.71 0.00 0.49
05:30:01 AM 912.79 59.17 0.00 0.28
05:40:01 AM 370.07 66.11 0.00 0.48
05:50:01 AM 1833.67 63.88 0.00 0.53
06:00:01 AM 219.66 65.23 0.00 0.15
06:10:01 AM 4620.59 69.09 0.00 0.48
06:20:01 AM 2414.83 65.40 0.00 0.79
06:30:01 AM 757.35 71.67 0.00 0.91
06:40:01 AM 1887.52 78.31 0.00 1.18
06:50:01 AM 1252.43 71.35 0.00 1.22
07:00:01 AM 4480.48 156.01 0.00 3.01
07:10:01 AM 2142.40 92.94 0.00 1.97
07:20:01 AM 613.23 79.77 0.00 1.16
07:20:01 AM pgpgin/s pgpgout/s fault/s majflt/s
07:30:01 AM 636.39 83.06 0.00 0.87
07:40:01 AM 1397.53 83.89 0.00 0.83
07:50:01 AM 1610.68 71.90 0.00 0.85
08:00:01 AM 1098.05 75.91 0.00 0.93
08:10:01 AM 1467.69 85.98 0.00 0.62
08:20:01 AM 243.62 77.07 0.00 0.66
08:30:01 AM 3715.55 78.32 0.00 0.77
08:40:01 AM 4349.47 92.54 0.00 0.53
08:50:01 AM 7316.11 93.53 0.00 0.67
09:00:01 AM 5744.32 90.40 0.00 0.61
09:10:01 AM 6985.40 120.99 0.00 0.84
09:20:01 AM 5637.85 112.27 0.00 0.64
09:30:01 AM 3055.56 160.45 0.00 0.78
09:40:01 AM 3999.53 145.28 0.00 0.71
09:50:01 AM 1362.71 496.15 0.00 0.72
10:00:01 AM 4084.31 156.43 0.00 0.92
10:10:01 AM 3285.42 201.31 0.00 0.65
10:20:01 AM 14973.06 137.45 0.00 0.65
10:30:01 AM 16025.03 147.66 0.00 0.49
10:40:01 AM 14166.79 162.84 0.00 0.49
10:50:02 AM 13530.12 978.20 0.00 0.66
11:00:02 AM 13750.83 622.40 0.00 0.43
11:00:02 AM pgpgin/s pgpgout/s fault/s majflt/s
11:10:01 AM 14438.37 764.58 0.00 0.42
11:20:01 AM 14811.98 435.83 0.00 0.52
11:30:01 AM 14656.98 734.49 0.00 1.28
11:40:06 AM 11659.16 1771.47 0.00 8.09
11:50:22 AM 9384.74 4075.21 0.00 73.56
12:00:01 PM 4935.84 306.69 0.00 127.56
Average: 5014.06 253.98 0.00 3.55You can notice that the pgpgin/s is at *14 thousand per second*.
Is this not a dangerous situation??
Can someone help me decode all this stuff and understand what's wrong???
Thanks,
Aswin.ice_cold_aswin wrote:
So how do I reduce this thrashing? I do not see trashing.. as despite the number of virtual pages being high, the system does not seem to show the swap daemons taking strain. This is a sizable server running lots of processes - thus there will be a corresponding increase in swapping activity.
There is no "+ideal swap count+" for a system (except perhaps zero, but that is unrealistic). So swapping 17,000 pages per second is neither good or bad - one has to look beyond that number alone.
But, using SHARED_SERVER mode is not possible in our system as of now, coz we run both OLTP and REALLY BIG OLAP queries on the same database. We are thinking of having a separate reporting server, and it might take more time to get implemented.It should not be that difficult IMO. You configure the TNS connection strings of the clients accordingly. An OLTP client requests a shared server. An OLAP client requests a dedicated server.
And this is the proper way to address scalability - consciously designing and deploying a system to scale. To attempt to address scalability as an after through by throwing more memory at it, more CPUs, bigger network pipes and so on.. that is essentially moving the performance wall some metres further away and then running even faster into it.
>
A lot of physical process images do translate into a largish memory footprint.but how can processes consume more memory than what they are supposed to? When the PGA_AGGREGATE_TARGET is set to 4G, all the (oracle Server Process) processes together should consume no more than 4G, correct?From the [Oracle® Database Reference|http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/initparams157.htm] guide:
>
PGA_AGGREGATE_TARGET specifies the target aggregate PGA memory available to all server processes attached to the instance.
Setting PGA_AGGREGATE_TARGET to a nonzero value has the effect of automatically setting the WORKAREA_SIZE_POLICY parameter to AUTO. This means that SQL working areas used by memory-intensive SQL operators (such as sort, group-by, hash-join, bitmap merge, and bitmap create) will be automatically sized. A nonzero value for this parameter is the default since, unless you specify otherwise, Oracle sets it to 20% of the SGA or 10 MB, whichever is greater.
Setting PGA_AGGREGATE_TARGET to 0 automatically sets the WORKAREA_SIZE_POLICY parameter to MANUAL. This means that SQL workareas are sized using the AREASIZE parameters.
Oracle attempts to keep the amount of private memory below the target specified by this parameter by adapting the size of the work areas to private memory. When increasing the value of this parameter, you indirectly increase the memory allotted to work areas. Consequently, more memory-intensive operations are able to run fully in memory and less will work their way over to disk.
When setting this parameter, you should examine the total memory on your system that is available to the Oracle instance and subtract the SGA. You can assign the remaining memory to PGA_AGGREGATE_TARGET.
>
Always refer to the manuals when in doubt. :-)
You can find from the top command above, each of oracleSID (Server Process) is occupying 6000m (6G) of VIRTual memory. Virtual memory is not an indication of the actual physical memory footprint of a process as that usually includes shared memory to. You want to see what the actual size of that process image is in the kernel... unfortunately the standard ps command on Unix/Linux is a bit ambiguous in this regard. -
How to find the contents of proc from top command
I had a doubt related to how to find the contents of a procedure or the statements from the PID displayed in top command if it can be done from TOAD or
sqlplus. If we can find out the details from top like:-
21211 oracle 16 0 3228 1012 764 R 0 0.0 0:07.68 top
1 root 16 0 1732 552 472 S 0 0.0 0:01.29 init
say, what is the process with PID 21211 and 1 are doing?
I hope, my question is clear.
Please, help in solving the doubt.
regardsJoin v$process, v$session, and v$sql
SQL> ed
Zapisano file afiedt.buf
1 SELECT p.pid, s.sid, s.serial#, sq.sql_text
2 FROM v$session s,
3 v$process p,
4 v$sql sq
5 WHERE s.paddr = p.addr
6* AND sq.address = s.sql_address
SQL> /
PID SID SERIAL# SQL_TEXT
37 128 2 BEGIN EMD_NOTIFICATION.QUEUE_READY(:1, :
2, :3); END;
19 149 4566 SELECT p.pid, s.sid, s.serial#, sq.sql_t
ext FROM v$session s, v$process p,
v$sql sq WHERE s.paddr = p.addr
AND sq.address = s.sql_address
SQL>Edited by: Łukasz Mastalerz on Feb 12, 2009 1:27 PM -
hi friends,
when i run Top command in Linux from java by using Runtime.getRuntime.exec(), it is giving the following error---
top: tcgetattr() failed : Invalid Argument
While this command is working properly from shell.when i run Top command in Linux from java by using
Runtime.getRuntime.exec(), it is giving the following
error---
top: tcgetattr() failed : Invalid Argument
command is working properly from shell.top needs a terminal to run; it's a silly and ugly little program. When you
fire up a process using the exec() method you don't have a terminal
environment for the process. Try to run 'ps' instead.
kind regards,
Jos -
Problem with output string to command
hey i have no idea why this aint working
its a simple output string to command.
what it is supposed to do is make a new directory given by the input string
e.g. mkdir /home/luke/dep
thanks for the help
//methods input save files
saveFile = JOptionPane.showInputDialog("Save Files To : ");
//method command for saving files
//Stream to write file
FileOutputStream fout;
try { Process myProcess = Runtime.getRuntime().exec("mkdir" + saveFile );
InputStreamReader myIStreamReader = new InputStreamReader(myProcess.getInputStream());
fout = new FileOutputStream ("file.txt");
while ((ch = myIStreamReader.read()) != -1) { new PrintStream(fout).print((char)ch); } }
catch (IOException anIOException) { System.out.println(anIOException); }What you fail to understand is that "aint working" and "Problem with output string to command" tells us absolutely squat about what your problem is. This is the same as saying to the doctor "I'm sick" and expecting him to cure you. As mentioned by Enceph you need to provide details. Do you get error messages? If so post the entire error and indicate the line of code it occurs on. Do you get incorrect output? Then post what output you get, what output you expect. The more effort you put into your question the more effort others will put in their replies. So until you can manage to execute a little common sense then the only responses you will get will be flames. Now is your tiny little brain able to comprehend that?
-
0% idle time of cpu states from top command in oracle 8i /solaris 5.9
Hi,
for long time idle time is 0% in top command :
database version:oracle 8.1.7.4.0
operating system : sun solaris 5.9
load averages: 9.32, 5.78, 6.13 15:22:13
404 processes: 387 sleeping, 13 running, 4 on cpu
CPU states: 0.0% idle, 78.2% user, 21.8% kernel, 0.0% iowait, 0.0% swap
Memory: 16G real, 7535M free, 5842M swap in use, 9965M swap free
PID USERNAME THR PRI NICE SIZE RES STATE TIME CPU COMMAND
6928 oracle 11 20 0 0K 0K run 2:20 12.62% oracle
23518 oracle 21 31 0 0K 0K run 24:37 11.69% oracle
9664 oracle 20 30 0 0K 0K run 12:41 10.83% oracle
15764 oracle 12 21 0 0K 0K run 2:18 10.28% oracle
9214 oracle 19 21 0 0K 0K run 5:52 8.58% oracle
13734 oracle 173 21 0 0K 0K cpu/3 311:23 6.11% oracle
19271 oracle 1 59 0 0K 0K cpu/0 726:20 4.45% oracle
10436 oracle 1 59 0 0K 0K sleep 81:41 4.39% oracle
22400 oracle 11 59 0 0K 0K sleep 3:22 4.35% oracle
9297 oracle 20 59 0 0K 0K cpu/2 7:39 3.66% oracle
22175 oracle 19 59 0 0K 0K sleep 6:55 3.41% oracle
9494 oracle 1 30 0 0K 0K run 0:02 2.99% oracle
10719 oracle 1 59 0 0K 0K sleep 132:48 1.55% oracle
210 oracle 1 59 0 0K 0K sleep 86:56 1.04% oracle
22084 oracle 24 59 0 0K 0K sleep 2:50 0.92% oracle
and sometime load average goes to 25-30 and cpu states is 0% idle in that load so how i can tune my database:
Regards
PrakashHi,
here 0% idle, 0% iowait
one of the query explain plan i am posting over here:
Operation Object Name Rows Bytes Cost TQ In/Out PStart PStop
SELECT STATEMENT Hint=CHOOSE 77 K 11800
COUNT STOPKEY
VIEW 77 K 32 M 11800
SORT UNIQUE STOPKEY 77 K 10 M 8384
HASH JOIN OUTER 77 K 10 M 4968
HASH JOIN 77 K 9 M 4477
HASH JOIN 54 K 2 M 3071
TABLE ACCESS FULL GA_INSTANCE 10 140 1
HASH JOIN 75 K 2 M 3069
HASH JOIN 75 K 1 M 2351
INDEX FAST FULL SCAN CUST_ACCT_ADDR_PK 75 K 960 K 282
TABLE ACCESS FULL ADDRESS 199 K 1 M 1960
TABLE ACCESS FULL CUST_ACCT 112 K 1 M 593
TABLE ACCESS FULL IQARA_CNR_ACT_LOG 89 K 6 M 1150
TABLE ACCESS FULL NI_STATIC_IP_ADDR 21 K 317 K 60
Reagrds
Prakash -
Can anyone guide me how to install TOP command in solaris 10, 64bit OS?
thankstop is not a native Solaris command but the Solaris 10 3.5.1 top package is available for SPARC & X86 on:
http://sunfreeware.com/
It may also be on one of your numerous Solaris 10 CD's. Which one? I haven't a clue. -
Does "top" command work in Solaris?
Does "top" command work in solaris?
# uname -a
SunOS rac1 5.10 Generic_120012-14 i86pc i386 i86pc
# top
top: not found
Edited by: user11936985 on Aug 29, 2011 8:44 AMTop has two sections, the summary information at the top of the screen which gives load averages, process counts, etc. and a bottom section which lists the "top processes". The prstat command standard report is similar to the bottom section of top. So if that is what you need, then prstat is an adequate substitute. It doesn't report the information in top's summary section. On the other hand, prstat is actually a much more powerful tool than top, especially is you use some of the other options. For example, "prstat -a" gives you the "top process" report plus a summary report of usage by user. If you use "prstat -J" you get a top process report with a summary by project and "prstat -Z" gives a top process report with a summary by zone. You can use options like -v or -m to get more information on each process in the "top process" section. There are other options mentioned in the manual page.
Top works and works well on Solaris. You can get a copy form sunfreeware and probably other sources as well. It doesn't come from Oracle with Solaris 10 (but does come with Solaris 11). If you're a Linux shop you might want it because it is familiar. However, you may want to look at prstat as well because it can provide some useful information that top does not. -
Hi all,
I am trying to save the output of a command so I can read it and decide weather it completed successfully or not. I am having trouble running the command though. It's working but the switches aren't.
$Servers = Get-Content Servers.txt | Sort-Object
ForEach ( $Server in $Servers ) {
& PsExec.exe \\$Server 'C:\Program Files (x86)\progfolder\program.exe' option -t=$Duration -e=$email -c=$Comment -q=110
When ran it complains I am not specifying any options/switches. Ideas?
Thanks.Psexec can be very finicky with optional switches for the command you are trying to run through it.
Try this and let me know if it works:
$Servers = Get-Content Servers.txt | Sort-Object
ForEach ( $Server in $Servers ) {
& PsExec.exe \\$Server 'C:\Program Files (x86)\progfolder\program.exe' 'option -t=$Duration -e=$email -c=$Comment -q=110'
Boe Prox
Blog |
Twitter
PoshWSUS |
PoshPAIG | PoshChat |
PoshEventUI
PowerShell Deep Dives Book
Maybe you are looking for
-
How to control the call to a data control using portlet parameter
hi, i'm using a web service data control on my portlet application. I'd like to know if there's a way where in the data control will not be called when the portlet is loaded,unless the portlet parameter is specified. thanks in advance! Rian
-
CS2/W8 - Could not initialize photoshop because the file is locked
I just upgraded to Windows 8 64 bit last night. I had been running Cs2 just fine on Windows 7 64 bit for a few years now. In fact I used it last week. Now after the upgrade is complete, I get this error message when I try to launch CS2: Could no
-
itunes account recognize new ipod as a different ipod, help
-
Alternate Address for the same Vendor Code.
Hi, Can we maintain Alternate address for the same vendor code, if yes how can we maintain that? Plz. explain me.
-
Hi Guys , i would like to know which is the more trendy (or useful , easy to learn ) methodology for abap projects right now , im asking this because I m learning more of abap objects but i want learn also a little bit of design I always program w