|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
如果您觉得本篇CentOSLinux教程讲得好,请记得点击右边漂浮的分享程序,把好文章分享给你的小伙伴们!起首,内存在被利用是被分为地区的
32位体系:zone_DMA
·zone_NORMAL(一般内存地区16M)
·zone_RESRVED(用于洼地址内存空间896M)
·zone_HIGHMEM(洼地址内存空间)
64位体系:
·zone_DMA(16G)
·zone_DMA32(4G)
·zone_normal(年夜于4G)
内存年夜页:
HugePage:年夜页面,在rhel6x64位体系上不仅撑持年夜页面并且撑持利用通明年夜页
THP:通明年夜页,复杂来说就是对匿名内存的利用,不必要用户的介入主动在面前利用年夜页面来办理匿名内存段
匿名内存页:RSS-内存段=匿名页
它撑持两种内存巨细:
CentOS6.4x86_64:
单个页面巨细可到达1G,在TB级的内存利用上一般无效
小于TB级的内存,2M对照罕见的
varnish是完成能够撑持在内存中供应缓存的,而varnish听说跟通明年夜页是不兼容的,而通明年夜页一般情形下是体系在面前利用的,既然不兼容则必要将通明年夜页的功效封闭
检察内存年夜页相干信息
[root@node3~]#cat/proc/zoneinfo
Node0,zoneDMA#显现出是不是利用通明年夜页
pagesfree3936
min83
low103
high124
scanned0
spanned4095
present3837
nr_free_pages3936
nr_inactive_anon0
nr_active_anon0
nr_inactive_file0
nr_active_file0
nr_unevictable0
nr_mlock0
nr_anon_pages0
nr_mapped0
nr_file_pages0
nr_dirty0
nr_writeback0
nr_slab_reclaimable0
nr_slab_unreclaimable0
nr_page_table_pages0
nr_kernel_stack0
nr_unstable0
nr_bounce0
nr_vmscan_write0
nr_writeback_temp0
nr_isolated_anon0
nr_isolated_file0
nr_shmem0
numa_hit1
numa_miss0
numa_foreign0
numa_interleave0
numa_local1
numa_other0
nr_anon_transparent_hugepages0#匿名的通明矩形页有0个,0申明没有利用
protection:(0,2004,2004,2004)
pagesets
cpu:0
count:0
high:0
batch:1
vmstatsthreshold:6
cpu:1
count:0
high:0
batch:1
vmstatsthreshold:6
cpu:2
count:0
high:0
batch:1
vmstatsthreshold:6
cpu:3
count:0
high:0
batch:1
vmstatsthreshold:6
all_unreclaimable:0
prev_priority:12
start_pfn:1
inactive_ratio:1
#以下是32位体系相干信息
Node0,zoneDMA32
pagesfree219541
min11180
low13975
high16770
scanned0
spanned520189
present513077
nr_free_pages219541
nr_inactive_anon2190
nr_active_anon77259
nr_inactive_file64767
nr_active_file70570
nr_unevictable0
nr_mlock0
nr_anon_pages27601
nr_mapped6761
nr_file_pages137536
nr_dirty5
nr_writeback0
nr_slab_reclaimable24374
nr_slab_unreclaimable7081
nr_page_table_pages3912
nr_kernel_stack172
nr_unstable0
nr_bounce0
nr_vmscan_write0
nr_writeback_temp0
nr_isolated_anon0
nr_isolated_file0
nr_shmem2200
numa_hit40788326
numa_miss0
numa_foreign0
numa_interleave15094
numa_local40788326
numa_other0
nr_anon_transparent_hugepages97#主动启动通明年夜页,而一个页面的小小为2MB
protection:(0,0,0,0)
pagesets
cpu:0
count:127
high:186
batch:31
vmstatsthreshold:30
cpu:1
count:87
high:186
batch:31
vmstatsthreshold:30
cpu:2
count:50
high:186
batch:31
vmstatsthreshold:30
cpu:3
count:148
high:186
batch:31
vmstatsthreshold:30
all_unreclaimable:0
prev_priority:12
start_pfn:4096
inactive_ratio:3
一个页面巨细为2M,以上没有显现页面巨细,以是我们要来检察别的一个文件
[root@node3~]#cat/proc/meminfo
MemTotal:1922112kB
MemFree:893856kB
Buffers:77136kB
Cached:473116kB
SwapCached:0kB
Active:591384kB
Inactive:267860kB
Active(anon):309040kB
Inactive(anon):8760kB
Active(file):282344kB
Inactive(file):259100kB
Unevictable:0kB
Mlocked:0kB
SwapTotal:2097144kB
SwapFree:2097144kB
Dirty:104kB
Writeback:0kB
AnonPages:308996kB
Mapped:27052kB
Shmem:8800kB
Slab:125692kB
SReclaimable:97508kB
SUnreclaim:28184kB
KernelStack:1376kB
PageTables:15616kB
NFS_Unstable:0kB
Bounce:0kB
WritebackTmp:0kB
CommitLimit:3058200kB
Committed_AS:1085080kB
VmallocTotal:34359738367kB
VmallocUsed:12468kB
VmallocChunk:34359720976kB
HardwareCorrupted:0kB |
|