tmpfs size recommendations

John Rudd jrudd at UCSC.EDU
Thu Jul 24 19:52:44 IST 2003

Marco Obaid wrote:
> Hi,
> Below is Julian's response to similar question:
> Quoting Julian Field <mailscanner at ECS.SOTON.AC.UK>:
> > Use tmpfs and not ramfs and you don't need to worry about it, the OS will
> > expand and contract it dynamically for you.
> > mount -t tmpfs tmpfs /var/spool/MailScanner/incoming
> > (but obviously put the relevant info into your /etc/fstab so it gets
> > mounted at boot-time).

Though, it's a good idea to put a ceiling on the tmpfs (Solaris lets you
do that, don't know about other OSes), in case some runaway process
starts dumping stuff into that tmpfs (which will then affect your memory
footprint for general processing).  So, I think the question becomes
"what's a good tmpfs ceiling?"

More information about the MailScanner mailing list