Web access to the GIT repository - GIT access to the repository
ramfs-limit : Enforces usage limits on RAMFS to protect system resources
David Gibson proposed a patch for 2.4-ac to prevent RAMFS from using all system
memory. It has recently been ported to 2.4.32.
|
Initial date: | 2003/12/06 |
Last update: | 2006/01/16 |
Description: | Enforces usage limits on RAMFS to protect system resources |
Author(s): | David Gibson |
Contributor(s): | Ingo Oeser, Willy Tarreau |
Conflicts with: | nothing known |
See also: | strict-overcommit |
Abstract: | David Gibson proposed a patch for 2.4-ac to prevent RAMFS from using all system
memory. It has recently been ported to 2.4.32.
|
|
Notes
The patch features the maxfilesize, maxsize (size),
nr_inodes, maxinodes, and maxdentries mount options.
The default FS size is half of physical memory.
|
Contents
- Initial patch - David Gibson - 2002/07/09
This is the original patch for 2.4.19-rc1-ac2 from David Gibson. A memory
leak was identified in an earlier version of this patch, and which is fixed
by Ingo Oeser's patch below.
Local link : patch-2.4.19-rc1-ac2-ramfs-limits
- Fix for memory leak bug - Ingo Oeser - 2001/02/02
This patch fixes a memory leak encountered with an earlier version of the
patch above. However, the patches are so old that it's not certain whether
it is still needed, so it is only provided here as a reference.
Local link : patch-2.4-ac-ramfs-limit-fix-ingo-oeser
External link : http://www.ussg.iu.edu/hypermail/linux/kernel/0102.0/0367.html
- Port to recent 2.4-vanilla - Willy Tarreau - 2006/01/16
This is a port of the patch to recent 2.4-vanilla running aa-VM. By default, it
limits the FS size to 25% of the system memory, making it possible to mount
up to 2-3 FS under safe conditions without any option. It also provides the ability
to specify memory size in percentage. Many crash tests have been performed under
memory pressure with sparse files, mmaped files, etc... and it now seems rock solid.
Local link : 2.4.32-ramfs-limits-5
Local link : 2.4.32-ramfs-limits-5.doc (doc)
- Browse local directory
Local link : ramfs-limit
|
(C) Willy Tarreau - 2008-06-01