
25 Jan
2007
25 Jan
'07
02:46
I never thought Linux was so breakable. We're moving mount points into RAM for performance ( /var/log /var/run /var/lock etc. ). Tmpfs or ramfs can stop disk thrashing and speedup a system. (Flash USB needs it even more, to minimize writes.)
Example fstab,
http://www.debian-administration.org/articles/179
But....brittle /etc/init.d scripts fail without having their private subdirectories persist across boots, in certain places like /var/log and /var/run.
If you write or test init.d scripts, please test with tmpfs and ramfs - do not assume pre-existence of application directories.
(P.S. Ubuntu Dapper btw already defaults to tmpfs for such directories, though not /var/log. Dapper uses old style init, Edgy/Feisty have something new.)
M