"Tony Sceats" <[EMAIL PROTECTED]> writes:

>> However, where *do* you specify /var/run? I've never run into this
>> before.
>
> do you mean where do you specify the size? You would do this when you
> partition the disk, usually done at OS install time, and sometimes the
> installers will recommend some settings for you

Ah, now this all depends.  If /var/run was a normal disk filesystem
under Ubuntu you would be correct.  It isn't, though:

] mount | grep /var/run
varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)

Note 'type tmpfs' there?  tmpfs is a swap backed ramdisk, essentially,
and like /var/lock is put there by Ubuntu to ensure that these
directories are cleaned at reboot without having to fuss about deleting
files or read-only filesystems.

> imho, 2Gb is either way too big or too small depending on what the computer
> does.. try 'du -hs /var/run/*' to see what else is happening there - for me
> it's usually less than 1Mb, but sometimes spools (eg, mail spools) will be
> put there which will increase it a lot, 

The mail spool lives under /var, but not under /var/run.  The FHS, in
fact, carefully defines the purpose of /var/run -- and that does not
include being scratch space for large processes.

Y'all should file a bug report indicating that Mondo should use /tmp or
/var/tmp to build big scratch files.

> but then this is usually configurable and may well end up needing a
> lot more than 2Gb.. 

Not in /var/run; pid files are tensy. ;)

Regards,
        Daniel
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to