[Grml] Limit tmpfs RAM across mount points
Michael Prokop
mika at grml.org
Thu Jan 18 13:55:49 CET 2007
* Mark <27e3kk302 at 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/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.mur.at/pipermail/grml/attachments/20070118/2e3d070f/attachment-0002.pgp
More information about the Grml
mailing list