Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: process memory utilization
I posted a similar question recently and whilst I received some answers I
never did discover an exact way of matching oracle use of memory with unix
use of memory.
One issue is that when oracle releases memory the unix process does not
automatically do the same until the memory is required. Therefore it is
likely that there will always be a difference.
Tim Gorman pointed me to a script oramem.sh (www.evdbt.com/tools.htm) which
does what you are doing with a pmap function which is quite useful
The discussion was around 4/10/02 and the thread title was "How much memory
is an oracle shadow process using"
John
-----Original Message-----
Sent: 03 December 2002 11:29
To: Multiple recipients of list ORACLE-L
chao_ping,
It seems i am posting a too long question, so nobody is interested.
I post the answer to my second question, to check the memory utilization in linux operation system.
It is in /proc/spid/status file.
Regards
zhu chao
Eachnet DBA
86-21-32174588-667
chao_ping_at_vip.163.com
www.cnoug.org(Chinese Oracle User Group)
>Hi,dba friends:
> I am thinking of measure how much memory per connection used, from
the os viewpoint and oracle viewpoint. And this is my result from my
production server, and i have some questions below.
>
>
>23:56:28 SQL> select sum(value),sum(value)/count(distinct sid) average
from v$sesstat where statistic#=15; --uga
>
> SUM(VALUE) AVERAGE
>------------ ------------
> 69,098,528 145,777
>
>23:58:09 SQL>select sum(value),sum(value)/count(distinct sid),max(value)
from v$sesstat where statistic#=20 --pga
>
> SUM(VALUE) SUM(VALUE)/COUNT(DISTINCTSID) MAX(VALUE)
>------------ ----------------------------- ------------
> 265,290,648 559,684.911 7,510,184
>
> There is about my production server(oracle817+solaris7), and I also
used pmap to trace some process and it look like:
>oracle_at_main-db1$pmap 11443 #some process id i which is choosed randomly
via /usr/ucb/ps -aux.
>11443: oraclebiddb (LOCAL=NO)
>0000000100000000 29440K read/exec
/export/home/oracle/app/product/8.1.7/bin/oracle
>0000000101DBE000 464K read/write/exec
/export/home/oracle/app/product/8.1.7/bin/oracle
>0000000101E32000 1440K read/write/exec [ heap ]
>0000000380000000 5685720K read/write/exec/shared [ shmid=0x65 ]
>FFFFFFFF7D800000 16K read/exec /usr/lib/sparcv9/libmp.so.2
>FFFFFFFF7D902000 8K read/write/exec /usr/lib/sparcv9/libmp.so.2
>FFFFFFFF7DA00000 88K read/exec /usr/lib/sparcv9/libm.so.1
>FFFFFFFF7DB14000 16K read/write/exec /usr/lib/sparcv9/libm.so.1
>FFFFFFFF7DC00000 8K read/exec /usr/lib/sparcv9/libkstat.so.1
>FFFFFFFF7DD00000 8K read/write/exec /usr/lib/sparcv9/libkstat.so.1
>FFFFFFFF7DE00000 32K read/exec /usr/lib/sparcv9/librt.so.1
>FFFFFFFF7DF06000 8K read/write/exec /usr/lib/sparcv9/librt.so.1
>FFFFFFFF7E000000 24K read/exec /usr/lib/sparcv9/libaio.so.1
>FFFFFFFF7E104000 16K read/write/exec /usr/lib/sparcv9/libaio.so.1
>FFFFFFFF7E200000 704K read/exec /usr/lib/sparcv9/libc.so.1
>FFFFFFFF7E3AE000 64K read/write/exec /usr/lib/sparcv9/libc.so.1
>FFFFFFFF7E3BE000 8K read/write/exec [ anon ]
>FFFFFFFF7E400000 8K read/exec /usr/lib/sparcv9/libsched.so.1
>FFFFFFFF7E500000 8K read/write/exec /usr/lib/sparcv9/libsched.so.1
>FFFFFFFF7E600000 32K read/exec /usr/lib/sparcv9/libgen.so.1
>FFFFFFFF7E706000 8K read/write/exec /usr/lib/sparcv9/libgen.so.1
>FFFFFFFF7E800000 40K read/exec /usr/lib/sparcv9/libsocket.so.1
>FFFFFFFF7E908000 16K read/write/exec /usr/lib/sparcv9/libsocket.so.1
>FFFFFFFF7EA00000 624K read/exec /usr/lib/sparcv9/libnsl.so.1
>FFFFFFFF7EB9A000 64K read/write/exec /usr/lib/sparcv9/libnsl.so.1
>FFFFFFFF7EBAA000 32K read/write/exec [ anon ]
>FFFFFFFF7EC00000 3896K read/exec
/export/home/oracle/app/product/8.1.7/lib/libjox8.so
>FFFFFFFF7F0CC000 192K read/write/exec
/export/home/oracle/app/product/8.1.7/lib/libjox8.so
>FFFFFFFF7F0FC000 8K read/write/exec [ anon ]
>FFFFFFFF7F300000 40K read/exec
/export/home/oracle/app/product/8.1.7/lib64/libdsbtsh8.so
>FFFFFFFF7F408000 8K read/write/exec
/export/home/oracle/app/product/8.1.7/lib64/libdsbtsh8.so
>FFFFFFFF7F40A000 8K read/write/exec [ anon ]
>FFFFFFFF7F500000 8K read/exec
/export/home/oracle/app/product/8.1.7/lib64/libskgxp8.so
>FFFFFFFF7F600000 8K read/write/exec
/export/home/oracle/app/product/8.1.7/lib64/libskgxp8.so
>FFFFFFFF7F680000 128K read/exec /usr/lib/sparcv9/ld.so.1
>FFFFFFFF7F790000 16K read/exec
/usr/platform/sun4u/lib/sparcv9/libc_psr.so.1
>FFFFFFFF7F79E000 8K read/write/exec /usr/lib/sparcv9/ld.so.1
>FFFFFFFF7F7A0000 8K read/write/exec [ anon ]
>FFFFFFFF7F7B0000 8K read/write/exec [ anon ]
>FFFFFFFF7F7C0000 8K read/write/exec [ anon ]
>FFFFFFFF7F7D0000 8K read/write/exec/shared [ anon ]
>FFFFFFFF7F7E0000 8K read/write/exec [ anon ]
>FFFFFFFF7F7F0000 8K read/exec /usr/lib/sparcv9/libdl.so.1
>FFFFFFFF7FFEE000 72K read/write [ stack ]
> total 5723336K
>
>and i compared it with oracle statistics:
>00:11:59 SQL> @whoisit
>00:12:02 SQL> col machine format a30
>00:12:02 SQL> col program format a40
>00:12:02 SQL> set line 200
>00:12:02 SQL> select sid,serial#
,username,osuser,machine,program,process,to_char(logon_time,'yyyy/mm/dd
hh24:mi:ss')
>00:12:02 2 from v$session where paddr in(
>00:12:02 3 select addr from v$process where spid in(&spid));
>Enter value for spid: 11443
>old 3: select addr from v$process where spid in(&spid))
>new 3: select addr from v$process where spid in(11443))
>
> SID SERIAL# USERNAME OSUSER
MACHINE PROGRAM
------------------------------ ------------------------------17:51:38
> 447 27693 BIDDER domain2
appc ? @appc (TNS V1-V3) 15068 2002/11/20
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: chao_ping INET: chao_ping_at_vip.163.com Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: <John.Hallas_at_vodafone.co.uk INET: John.Hallas_at_vodafone.co.uk Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Tue Dec 03 2002 - 06:13:45 CST
![]() |
![]() |