[Pkg-sysvinit-devel] Bug#483643: Bug#483643: problem with tmpfs

Petter Reinholdtsen pere at hungry.com
Tue Jan 20 13:45:15 UTC 2009


> I can't find any information about the way tmpfs_size is calculated,
> but on two boxes, it is the half of system memory.

The kernel uses half the memory by default.  A different size can be
specified at mount time.

> The problem is that on one I get /lib/init/rw and /dev/shm sized to
> 1.8 Gbytes and the other sized to 500 Mbytes, which seems to be very
> very much just to keep a few Kbytes.

The capasity of a tmpfs is not the amount memory used by it.  The
memory used by a tmpfs is the amount stored on the file system.  So
neither 1.8 GB nor 600 MB is "used" to keep the few kilobytes.  Only
the few kilobytes is spent.

Happy hacking,
-- 
Petter Reinholdtsen





More information about the Pkg-sysvinit-devel mailing list