You Didn't get it i guess?
Usama Munir Dar, April 30, 2001 - 3:12 am UTC
Hi Tom, i don't think u get it, the guy was asking that the background processes ar cummulativly taking 300 megs..not as indviduals? and besides in Solaris the background processes are not shown as part of Sga..they are identified as seperate unlike NT. what do u say?
Great response
Joel, April 30, 2001 - 1:45 pm UTC
Tom,
Good response and good followup. Actually, I found your response to the comment very insightful.
Thanks for the great explanation.
Reader
A reader, May 09, 2002 - 5:42 pm UTC
Tom,
On 8.1.6 system, I did a "ps -efl" and for smon
alone the RSS part of the memory is 9*16k(pagesize) = 144K
On a 8.1.7 system for smon RSS part is 1374*16k = 21 M
Is the RSS part of the processes function of any usage ?
I thought it should be almost constant for a given
version of the database on a given platform
Thanks
May 09, 2002 - 7:56 pm UTC
show me the 816 vs 817 output. Not that I don't believe you -- but I don't ;)
ps reports the shared memory segment. use PMAP, not ps.
Reader
A reader, May 10, 2002 - 6:32 am UTC
Tom,
Sorry, I compared the wrong listings. The values of
8.1.6 and 8.1.7 are almost the same. Still 21 M is
bit on the high side, I expected from 1.5 to 2 M
If RSS include shared memory from SGA (DB_BLOCK_BUFFERS
and SHARED_POOL), what is a formuala to estimate how
much of SGA will show up in RSS. Also does memory
pressure has effect on inflating the value
as well
Thanks
May 10, 2002 - 6:50 am UTC
PMAP PMAP PMAP PMAP PMAP
there is *no* formula
PMAP PMAP PMAP PMAP PMAP
just use it.
Reader
A reader, May 10, 2002 - 7:39 am UTC
Tom,
Not that I do not want to use "pmap", I like to
understand the effect of usage and memory presure on
"ps -efl" results.
From ixora site
"
The RSS (resident set size) shown by ps is not a valid indication of PGA size. It includes the SGA (db_block_buffers & shared_pool_size) and is sensitive to memory pressure on the system as well as to PGA size.
"
May 10, 2002 - 7:47 am UTC
ps is useless in this respect.
use pmap. It is a matter of having to use it if you want anything meaningful. Period.
I basically say the same exact thing as Steve Adams did there.
Reader
A reader, May 13, 2002 - 12:22 pm UTC
SQL*Plus: Release 8.1.6.0.0 - Production on Mon May 13 09:46:59 2002
(c) Copyright 1999 Oracle Corporation. All rights reserved.
Connected to:
Oracle8i Enterprise Edition Release 8.1.6.0.0 - Production
JServer Release 8.1.6.0.0 - Production
SQL> sho sga
Total System Global Area 109445748 bytes
Fixed Size 103028 bytes
Variable Size 34533376 bytes
Database Buffers 73728000 bytes
Redo Buffers 1081344 bytes
SQL> !/etc/whodo
Mon May 13 09:47:25 2002
cindy
ttyq0 oracle8 9:45
pts/0 18860397 0:00 csh
pts/0 18852790 0:00 sh
pts/0 18654984 0:00 sqlplus
pts/0 18224126 0:00 csh
pts/0 18807234 0:00 whodo
? 18835160 0:00 oracle
SQL> !ps -efl|grep 18654984
0 S oracle8 18835160 18654984 0 20 20 * 10621:804 1e0dd520 09:46:59 ? 0:00 oracleTEST (DESCRIPTION=(LOCAL=Y
0 S oracle8 18654984 18852790 0 20 20 * 1186:489 485af798 09:46:58 pts/0 0:00 sqlplus internal
0 S oracle8 18884159 18812778 0 20 20 * 111:52 ee58d20 09:47:49 pts/0 0:00 grep 18654984
0 S oracle8 18812778 18654984 0 20 20 * 38:29 5a6798b8 09:47:49 pts/0 0:00 /bin/csh -c ps -efl|grep 18654984
Comment test1:
--------------
Here the SGA = 109,445,748 bytes
The new session shows RSS = 804
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> !vi $ORACLE_HOME/dbs/initTEST.ora
#db_block_buffers = 9000
db_block_buffers = 900
SQL> startup
ORACLE instance started.
Total System Global Area 41009780 bytes
Fixed Size 103028 bytes
Variable Size 32452608 bytes
Database Buffers 7372800 bytes
Redo Buffers 1081344 bytes
Database mounted.
Database opened.
SQL> exit
Disconnected from Oracle8i Enterprise Edition Release 8.1.6.0.0 - Production
JServer Release 8.1.6.0.0 - Production
$ sql
SQL*Plus: Release 8.1.6.0.0 - Production on Mon May 13 09:51:50 2002
(c) Copyright 1999 Oracle Corporation. All rights reserved.
Connected to:
Oracle8i Enterprise Edition Release 8.1.6.0.0 - Production
JServer Release 8.1.6.0.0 - Production
SQL> !/etc/whodo
Mon May 13 09:51:57 2002
cindy
ttyq0 oracle8 9:45
pts/0 18860397 0:00 csh
pts/0 18852790 0:00 sh
pts/0 18851864 0:00 sqlplus
pts/0 18850756 0:00 csh
pts/0 18740862 0:00 whodo
? 18842492 0:00 oracle
SQL> !ps -efl|grep 18851864
0 S oracle8 18842492 18851864 0 20 20 * 6531:844 5266720 09:51:50 ? 0:00 oracleTEST (DESCRIPTION=(LOCAL=Y
0 S oracle8 18851864 18852790 0 20 20 * 1186:483 485af798 09:51:50 pts/0 0:00 sqlplus internal
0 S oracle8 18844740 18851864 0 20 20 * 38:29 c1a58b8 09:52:09 pts/0 0:00 /bin/csh -c ps -efl|grep 18851864
0 S oracle8 18823671 18844740 0 20 20 * 111:52 8fcdc20 09:52:09 pts/0 0:00 grep 18851864
SQL>
comment test2:
--------------
In this case SGA = 41,009,780 bytes
The new session started RSS = 844
The new session shows an increase in RSS when there is a change in SGA. This is waht I wanted to
know how Oracle quantifies it
Thanks
May 13, 2002 - 2:08 pm UTC
*we don't quantify it*
You are using ps for things beyond it's ability.
I'll say it only once more -- PMAP.
Don't know how else to say it.
Your test takes the SGA from 109,445,748 to 41,009,780, the memory pressures are different -- hence the OS won't page out as much of a process as it did before, hence the resident set size is allowed to be bigger then before.
However -- we, Oracle, have nothing, zero, zippo to do with this -- it is 100% the OS. Pmap is the tool you want. ps isn't very useful in this regards.
PMAP equivalent in HP-UX 11i.
Sankar, January 03, 2004 - 3:45 am UTC
I tried PMAP in HP-UX 11i. It is not there. What is the equivalent one? Any help?
January 03, 2004 - 9:16 am UTC
sorry, not an HP/UX user (never seem to get that backspace key working right in my telnet sessions on that os), maybe someone out there is tho and will follow up.
PMAP equivalent in Linux? Thanks.
Reader, January 03, 2004 - 12:05 pm UTC
January 03, 2004 - 12:31 pm UTC
PMAP equivalent in AIX5L?
A reader, January 20, 2005 - 7:02 pm UTC
Tom,
Do you know the equivalent command for a pmap on AIX5L.
Thanks
January 20, 2005 - 7:47 pm UTC
google
pmap aix
i saw lots of hits, i don't use aix.