linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* How to controll Buffers to be dilligently reclaimed?
@ 2015-02-13  0:52 Cheng Rk
  2015-02-13  7:34 ` Konstantin Khlebnikov
  0 siblings, 1 reply; 8+ messages in thread
From: Cheng Rk @ 2015-02-13  0:52 UTC (permalink / raw)
  To: linux-mm



Hi,

I have a system that application is doing a loop on top of block device,
(which I think is stupid,)
as more and more memory goes into Buffers, then applications started
to get -ENOMEM or be oom-killed later (depends on vm.overcommit_memory setting)


In this case, if I do a manual reclaim (echo 3 > /proc/sys/vm/drop_caches)
I see 90+% of the Buffers is reclaimable, but why it's not reclaimed
to fullfill applications' memory allocation request?



-bash-4.2$ sudo losetup -a
/dev/loop0: [0005]:16512 (/dev/dm-2)
-bash-4.2$ free -m
                     total          used         free      shared       buffers     cached
Mem:             48094        46081         2012              40           40324   2085
-/+ buffers/cache:             3671        44422
Swap:             8191                5         8186


I've tried sysctl mm.vfs_cache_pressure=10000 but that seems working to Cached
memory, I wonder is there another sysctl for reclaming Buffers?


Thanks,

- Derek

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-02-20 20:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-13  0:52 How to controll Buffers to be dilligently reclaimed? Cheng Rk
2015-02-13  7:34 ` Konstantin Khlebnikov
2015-02-13  9:52   ` Cheng Rk
2015-02-13 18:07     ` Cheng Rk
2015-02-18 14:23     ` Michal Hocko
2015-02-18 19:44       ` Cheng Rk
2015-02-19  9:46         ` Michal Hocko
2015-02-20 20:33           ` Cheng Rk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox