ps 與 svmon之間關係

wmlm發表於2013-01-08
試圖查詢二者資料上的關聯,但失敗了。[@more@]

問題一:下面兩個結果中 10289304程式有什麼聯絡?
[node1:root] ps gv |head -1; ps gv |sort -nr +6 |head -6
PID TTY STAT TIME PGIN SIZE RSS LIM TSIZ TRS %CPU %MEM COMMAND
5505052 - A 6:28 59 76240 150432 xx 65710 74212 0.0 4.0 /u01/1
7536882 - A 6:34 59 76240 150400 xx 65710 74168 0.0 4.0 /u01/1
17236064 - A 1:16 1 110696 138444 xx 59472 27748 0.1 3.0 /u01/1
11534552 - A 0:02 10 43232 137004 xx 162230 93984 0.0 3.0 ora_ar
13566074 - A 0:02 57 43240 136668 xx 162230 93984 0.0 3.0 ora_ar
10289304 - A 0:02 138 43168 136420 xx 162230 93984 0.0 3.0 ora_ar

[node1:root] ps v 10289304
PID TTY STAT TIME PGIN SIZE RSS LIM TSIZ TRS %CPU %MEM COMMAND
10289304 - A 0:02 138 43168 136420 xx 162230 93984 0.0 3.0 ora_ar

[node1:root] svmon -P 10289304
-------------------------------------------------------------------------------
Pid Command Inuse Pin Pgsp Virtual 64-bit Mthrd 16MB
10289304 oracle 179981 22512 4094 159345 Y N N

PageSize Inuse Pin Pgsp Virtual
s 4 KB 35245 0 3646 14369
m 64 KB 9046 1407 28 9061

Vsid Esid Type Description PSize Inuse Pin Pgsp Virtual
1068a99 70000002 work default shmat/mmap m 3636 0 0 3636
10415d3 70000001 work default shmat/mmap m 2688 0 0 2688
106ff39 10 clnt text data BSS heap, s 23496 0 - -
/dev/fslv00:335943
1054015 90000000 work shared library text m 1237 925 3 1237
10172e5 70000003 work default shmat/mmap m 808 0 0 808
101d764 11 work text data BSS heap sm 8626 0 172 8755
8002 0 work kernel segment m 508 479 25 523
100d720 70000000 work default shmat/mmap m 161 0 0 161
103336c 80020014 work USLA heap sm 1757 0 48 1805
105c017 90020014 work shared library s 1091 0 1334 1562
103306c 9001000a work shared library data sm 103 0 3 109
14005 9ffffffd work shared library sm 83 0 2072 2072
104c6f0 f00000002 work process private m 5 3 0 5
1027669 90000001 work shared library text m 3 0 0 3
1014a46 ffffffff work application stack sm 29 0 0 29
3000c 9ffffffe work shared library sm 22 0 17 23
104c193 9fffffff clnt USLA text,/dev/hd2:4218 s 13 0 - -
1059695 8fffffff work private load data s 11 0 0 11
1020bea - clnt /dev/fslv00:301607 s 10 0 - -
10417f3 8001000a work private load data sm 3 0 0 3
107f5df - clnt /dev/fslv00:337688 s 1 0 - -
10317ef - clnt /dev/fslv00:339800 s 0 0 - -
107b27e - clnt /dev/fslv00:339799 s 0 0 - -
10116a7 70000004 mmap maps 1 source(s) sm 0 0 - -
10246aa - clnt /dev/fslv00:342474 s 0 0 - -
[node1:root]


在第一個結果中,RSS=136420 這是什麼含義,與svmon中看到的結果有什麼聯絡?
先來看看對RSS一列的解釋:
RSS - (v flag) The real-memory (resident set) size of the process (in 1 KB units).
程式的常駐記憶體,它指的是哪一部分? 136420KB 與svmon中的結果有什麼聯絡?
什麼叫做resident set ?

SIZE=43168k
43168/4=10792 個4k大小的頁。 這10792在svmon Virtual 中分佈在哪裡?(像孩子的數學題:( )
work private load data 3
work shared library 2072
work shared library 1562
work default shmat/mmap 808
work default shmat/mmap 2688
work default shmat/mmap 3636
work shared library 23

clnt text data BSS heap,/dev/fslv00:335943 23496 * 4 對應 ps v 中的 TRS=93984

但是在RSS上 還是沒有頭緒.

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/271063/viewspace-1060049/,如需轉載,請註明出處,否則將追究法律責任。

相關文章