- 论坛徽章:
- 0
|
文章精彩,在这里我为大家提供一个具体的数据参考:
在分析os内存占用中,我们常用kmeminfo来检查,其中动态内存分配部分中,由于缺省的vxfs_ninode开辟的较大arena区域列表:
OS JFS version arena/bucket*
11.11 3.5 vx_icache_arena
11.11 3.3 M_TEMP
11.00 32-bit 3.1 bucket[10]
11.00 64-bit 3.1 bucket[11]
11.00 32-bit/64-bit 3.3 bucket[10]
那么default的vxfs_ninode是什么,
核心参数vx_ninode的配置举例:
11.11 system with 8GB of memory, vx_ninode is defaulted to 256,000
11.0 system 8GB of memory, vx_ninode is defaulted to 144,000
如何获得当前值的大小呢?
配置?# echo \"vxfs_ninode/D\" | adb -k /stand/vmunix /dev/mem
当前使用?
# echo \"vx_cur_inodes/D\" | adb -k /stand/vmunix /dev/mem
kmeminfo举例(系统缺省的vx_ninode):
Kernel TEXT pages not requested in crashconf
Will use an artificial mapping from a.out TEXT pages
kmeminfo (4.15)
unix: /stand/vmunix 11.11 64bit PA2.0
core: /dev/kmem live
link: Sat Apr 1 05:07:58 EAT 2006
boot: Sat Apr 1 05:45:33 2006
dump: Wed Aug 16 15:41:51 2006
----------------------------------------------------------------------
Pfdat processing:
Scanning 4069388 pfdat entries (be patient) ...
----------------------------------------------------------------------
Physical memory usage summary (in page/byte/percent):
Physmem = 4190208 16.0g 100% Physical memory
Freemem = 167355 653.7m 4% Free physical memory
Used = 4022853 15.3g 96% Used physical memory
System = 758342 2.9g 18% By kernel:
text = 2408 9.4m 0% text
data = 424 1.7m 0% data
bss = 17693 69.1m 0% bss
Static = 216344 845.1m 5% for text/static data
Dynamic = 324168 1.2g 8% for dynamic data
Bufcache = 209510 818.4m 5% for buffer cache
Eqmem = 78 312.0k 0% for equiv. mapped memory
SCmem = 8242 32.2m 0% for critical memory
User = 3267374 12.5g 78% By user processes:
Uarea = 10316 40.3m 0% for thread uareas
Disowned = 8 32.0k 0% Disowned pages
----------------------------------------------------------------------
Kernel dynamic memory usage (in page/byte/percent):
Physmem = 4190208 16.0g 100% Physical memory
Freemem = 167355 653.7m 4% Free memory
Used = 4022853 15.3g 96% Used memory
Dynamic = 324168 1.2g 8% Kernel dynamic memory
Arenas = 283014 1.1g 7% Kernel arenas
M_TEMP = 131764 514.7m 3%
M_IOSYS = 40535 158.3m 1%
VFD_BT_NODE = 22578 88.2m 1%
ALLOCB_MBLK_LM = 12548 49.0m 0%
M_SPINLOCK = 10952 42.8m 0%
LVM_PBUF = 7641 29.8m 0%
M_SWAP = 7274 28.4m 0%
M_NFS_GEN = 6380 24.9m 0%
KMEM_ALLOC = 6109 23.9m 0%
ALLOCB_MBLK_DA = 5385 21.0m 0%
M_REG = 5371 21.0m 0%
M_PREG = 5140 20.1m 0%
M_LVM = 2570 10.0m 0%
M_KTHREAD = 2063 8.1m 0%
ALLOCB_MBLK_SM = 1521 5.9m 0%
Other = 15183 59.3m 0% Other arenas...
Kalloc = 41063 160.4m 1% kalloc()
SuperPagePool = 65 260.0k 0% Kernel superpage cache
BufcacheBufs = 28976 113.2m 1% Buffer cache bufs
BufcacheHash = 10240 40.0m 0% Buffer cache hash heads
Other = 1782 7.0m 0% Other...
Eqalloc = 91 364.0k 0% eqalloc()
M_TEMP = 131764 514.7m 3% [/COLOR] Physmem = 4190208 16.0g 100% Physical memory [/COLOR] |
|