??????????????У????????????????????????????????????????????????о???????????????????????о????С???????????????????????й???????????????????????????????????proc???????????????з???????????????????????С????????????й????????????????λ??Ρ?

????Linux?????????????????????????????e??????????????????????Щ?????????????????????????????治???????????????????????????cache??棬????????á?

??????????????????

?????????proc???μ?meminfo?????????????????????????????п???????????=memfree+buffers+cached????memfree????????????????д?????pdflush??????cached??buffered????д?????洢???????????????湩???????????????????????????cache??棺

echo 3 > /proc/sys/vm/drop_caches

??????????????μ???????????????????????п?????????????????29M????棬?????????????Щ??涼????????????

# cat /proc/meminfo

MemTotal:        68956 kB
MemFree:         18632 kB
Buffers:          4096 kB
Cached:          17260 kB
SwapCached:          0 kB
Active:          21304 kB
Inactive:        19248 kB
SwapTotal:           0 kB
SwapFree:            0 kB
Dirty:               0 kB
Writeback:           0 kB
AnonPages:       19216 kB
Mapped:           2472 kB
Slab:             6900 kB
SReclaimable:      924 kB
SUnreclaim:       5976 kB
PageTables:        460 kB
NFS_Unstable:        0 kB
Bounce:              0 kB
CommitLimit:     62060 kB
Committed_AS:    28864 kB
VmallocTotal:   442368 kB
VmallocUsed:     46984 kB
VmallocChunk:   393212 kB

??????????????????????

??????32λ???????У???????????4G???????????????0~3GB???????????????????????????????????????????????3~4GB??linux????????????е?????????????????????????/proc/{pid}/???????????????????????????????????????????????????????????????????

??????????????????????????????????????????????????????????????????????????????????????????????????

????1????????????????Σ??????γ??text?Ρ?

????2??????????????Σ?????洢????????????????????????????

????3???洢???????????????????????

????4???????????????????????????????

????5??????mmap????????????????е?????