Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.4.3-ac2 /Documentation/filesystems/ramfs.txt

Filename:/Documentation/filesystems/ramfs.txt
Lines Added:47
Lines Deleted:0
Also changed in: (Previous) 2.4.3-ac1  2.4.2-ac28  2.4.2-ac27  2.4.2-ac26  2.4.2-ac25  2.4.2-ac24 
(Following) 2.4.3-ac3  2.4.3-ac4  2.4.3-ac5  2.4.3-ac6  2.4.3-ac7  2.4.3-ac8 

Location
[  2.4.3-ac2
  [  Documentation
    [  filesystems
       o  ramfs.txt

Patch

diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla/Documentation/filesystems/ramfs.txt linux.ac/Documentat+
ion/filesystems/ramfs.txt
--- linux.vanilla/Documentation/filesystems/ramfs.txt   Thu Jan  1 01:00:00 1970
+++ linux.ac/Documentation/filesystems/ramfs.txt   Tue Apr  3 17:54:28 2001
@@ -0,0 +1,47 @@
+   ramfs - An automatically resizing memory based filesystem
+
+
+  Ramfs is a file system which keeps all files in RAM. It allows read
+  and write access. In contrast to RAM disks, which get allocated a
+  fixed amount of RAM, ramfs grows and shrinks to accommodate the
+  files it contains.
+
+  You can mount the ramfs with:
+      mount -t ramfs none /mnt/wherever
+
+  Then just create and use files. When the filesystem is unmounted, all
+  its contents are lost.
+
+  NOTE! This filesystem is probably most useful not as a real
+  filesystem, but as an example of how virtual filesystems can be
+  written.
+
+Resource limits:
+
+By default a ramfs will be limited to using half of (physical) memory
+for storing file contents, a bit over that when the metadata is
+included. The resource usage limits of ramfs can be controlled with
+the following mount options:
+
+   maxsize=NNN
+      Sets the maximum allowed memory usage of the
+filesystem to NNN kilobytes. This will be rounded down to a multiple
+of the page size. The default is half of physical memory. NB.  unlike
+most of the other limits, setting this to zero does *not* mean no
+limit, but will actually limit the size of the filesystem data to zero
+pages. There might be a use for this in some perverse situation.
+   
+   maxfilesize=NNN
+      Sets the maximum size of a single file on the
+filesystem to NNN kilobytes. This will be rounded down to a multiple
+of the page size. If NNN=0 there is no limit. The default is no limit.
+
+       maxdentries=NNN
+      Sets the maximum number of directory entries (hard
+links) on the filesystem to NNN. If NNN=0 there is no limit. By
+default this is set to maxsize/4.
+
+   maxinodes=NNN
+      Sets the maximum number of inodes (i.e. distinct
+files) on the filesystem to NNN. If NNN=0 there is no limit. The
+default is no limit (but there can never be more inodes than dentries).


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.