上一篇: 網(wǎng)站建設(shè)中心:設(shè)置頁(yè)面標(biāo)題和編碼屬性的界面
下一篇: 平臺(tái)網(wǎng)站建設(shè)網(wǎng)站:以人為本的設(shè)計(jì)是一種設(shè)計(jì)理念
三網(wǎng)合一網(wǎng)站建設(shè)公司:VSZ和RSS
其中“-b”和“.I”指定的都已經(jīng)是Linux可接受的最小值,以獲取盡可能大的mnodes。
又比如,采用tmpfs的緩存盤(pán)mnodes不足的時(shí)候,沒(méi)法用reiserfs來(lái)掛載內(nèi)存,但是
可以單獨(dú)指定讓tmpfs本身也放開(kāi)這個(gè)mnodes的限制。
在Linux源碼文檔中,對(duì)tmpfs的mnodes有如下描述。
nr_inodes: The maximum number of modes for this instance. The default
is half of the number of your physical RAM pages, or (on a
machine with highmem) the number of lowmem RAM pages,
whichever is the lower. .
These parameters accept a suffix k, m or g for kilo, mega and giga and
can be changed on remount. The size parameter also accepts a suffix%to limit
this tmpfs instance t.that percentage of your physical RAM:
the default, when neither size nor nr blocks is specified, is size=50%
if nr inodes=0, mnodes will not be limited.
所以,我們只要在mount的時(shí)候指定nr mnodes參數(shù)為0,就可以不受mnodes限制了,
$ mount -t tmpfs -o s;ize=2000M,mode=777,n:c_inodes-0 tmpfs /tmpfs
$ df -ilgrep tmpfs
tmpfs :0~0' . '.0 . - /tmpfs
1.2.4 ps
ps命令也有多種用法。最常見(jiàn)的是ps auxfww,其輸出如下。
這樣,能以樹(shù)的形式顯示進(jìn)程間的父子關(guān)系,又能比pstree命令多出CPU和MEM等
其他性能數(shù)據(jù)。
在這里,需要注意的是VSZ和RSS兩列。
⑦ VSZ(Virtual Memory Size):指進(jìn)程可以占用的內(nèi)存地址空間的大小。
@RSS(Resident Set Size):指進(jìn)程實(shí)際占用的內(nèi)存地址空間的大小。
但是要注意:RSS中包括了共享庫(kù)占用的內(nèi)存大小,比如“libc”等。我們可以通過(guò)
pmap命令看到進(jìn)程調(diào)用的各種庫(kù)占用的內(nèi)存如下。