About memory cache of Linux
Posted
by
cheneydeng
on Super User
See other posts from Super User
or by cheneydeng
Published on 2012-09-28T07:05:12Z
Indexed on
2012/09/28
9:40 UTC
Read the original article
Hit count: 194
I'm running a python script to do some statistics and the actually memory which used is low,about 10%.And no other process cost more memory.However,when i use free -m
and it shows that almost 95% memory has been used.The point is that my script should do a lot of read from files,so i wonder if there's any mechanism of Linux memory cache that caused the problem?echo 1 >> /proc/sys/vm/drop_caches
works,but it seems manually.How can i reduce the memory cost and doesn't make a bad effect on reading files?
© Super User or respective owner