On Wednesday 05 September 2012 10:02:49 Philip Webb wrote: > 120905 Neil Bothwick wrote: > > On Tue, 4 Sep 2012 20:42:56 -0400, Philip Webb wrote: > >> What is the best line for /etc/fstab ? The only example I have is : > >> 'tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0' > >> > >> This doesn't seem to limit the size in any way. > > > > 'man mount' explains it all ... > > Well, it outlines it (smile). > > > ... but the option you want is size, which defaults to 50 % . > > That looks ok : I assume that's the maximum, > ie it doesn't take up that much memory unless it's needed.
The kernel only uses as much tmpfs as it needs at any given time. If it needs more than has been specified, it starts rolling less active parts out to swap. So if you don't have a lot of memory, you can still specify more tmpfs than you have RAM and everything will just work. The only reason I specify a large tmpfs is to be able to compile Libre Office. At other times it just isn't used. -- Rgds Peter

