Re: mounting tmpfs (and sysfs) defaultly in sarge?
GOTO Masanori <email@example.com> writes:
> Tmpfs in Linux kernel 2.4, is formally known as shmfs (posix shared
> memory filesystem). It's useful for memory-based filesystem like
> Solaris tmpfs. However, if we support new Posix IPC like shm_open(3),
> shm_unlink(3), to make debian posix compliant (and like other
> distros), it should be mounted on /dev/shm. In the past there were
> some discussed, ex:
> So I propose:
> - /dev/MAKEDEV should have /dev/shm in "std" entry.
> - /etc/fstab should mount /dev/shm (tmpfs) in default.
Please make sure that when this is added, you do default to a sensible
size option. For example:
none /dev/shm tmpfs defaults,size=500M 0 0
If you don't specify a default limit, any user can kill the system by
creating a huge file in there. It's much nicer to get ENOSPC than a
kernel panic. The installer could pick a sensible limit based on, for
example, 20% of the combined core+swap size.
Printing on GNU/Linux? http://gimp-print.sourceforge.net/
GPG Public Key: 0x25BFB848. Please sign and encrypt your mail.