背景 库原内存16g,swap分区使用5g 很多(一半) 且全天有最多40的pagein的情况
现在
增加了8g的内存 慢慢操作系统又开始了cached 内存使用率又到了97左右 但是pagein的情况好转了
cat /proc/meminfo
MemTotal: 24671856 kB
MemFree: 194620 kB
MemAvailable: 15144684 kB
Buffers: 22476 kB
Cached: 19333968 kB
SwapCached: 37460 kB
Active: 13558856 kB
Inactive: 7676796 kB
Active(anon): 5615328 kB
Inactive(anon): 761492 kB
Active(file): 7943528 kB
Inactive(file): 6915304 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 5119996 kB
SwapFree: 4268696 kB
Dirty: 140 kB
Writeback: 0 kB
AnonPages: 1856048 kB
Mapped: 4571972 kB
Shmem: 4497612 kB
Slab: 540328 kB
SReclaimable: 367868 kB
SUnreclaim: 172460 kB
KernelStack: 14864 kB
PageTables: 2509520 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 17455924 kB
Committed_AS: 9959100 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 228324 kB
VmallocChunk: 34359310332 kB
HardwareCorrupted: 0 kB
AnonHugePages: 321536 kB
CmaTotal: 0 kB
CmaFree: 0 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 196480 kB
DirectMap2M: 15532032 kB
DirectMap1G: 11534336 k
free -m
total used free shared buffers cached
Mem: 24093 23714 379 4392 21 18870
-/+ buffers/cache: 4822 19271
Swap: 4999 831 4168
Last login: Sun Mar 17 12:59:53 2019
ps -eo 'pid,%mem,%cpu,rss,s,user,args,command' | grep oracle |wc -l
342
(1)现阶段大家对这个情况有什么建议吗?
(2)还有想请教一下 一下参数生产上 不停库执行时候有影响?
sysctl -w vm.vfs_cache_pressure=200
sysctl -w vm.swappiness=10