
18 Jan
2007
18 Jan
'07
13:55
* Mark 27e3kk302@sneakemail.com [20070117 23:15]:
What is the preferred grml way to limit total tmpfs RAM usage across all mount points. By default tmpfs takes 50% of RAM before swapout. We want a lower threshold of 20% RAM. With fstab syntax it's possible to limit one mount at a time, but is that the best one can do?
[...]
Yes.
Where is the 50% limit set, for example.
,---- [ $KERNELSOURCE/mm/shmem.c ] | if (!(sb->s_flags & MS_NOUSER)) { | blocks = totalram_pages / 2; `----
regards, -mika-
--
You like grml? Help us! http://grml.org/donations/
Already on the grml-user-map? http://www.frappr.com/grmlusers
The Grml Planet http://planet.grml.org/
Grml Solutions http://solutions.grml.org/