[1767] in athena10

home help back first fref pref prev next nref lref last post

Re: tmp-cleaner for Linerva

daemon@ATHENA.MIT.EDU (Nelson Elhage)
Wed Mar 18 16:55:13 2009

Date: Wed, 18 Mar 2009 16:52:43 -0400
From: Nelson Elhage <nelhage@MIT.EDU>
To: Greg Price <price@mit.edu>
Cc: linerva@mit.edu
Message-ID: <20090318205243.GP5764@mit.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20090317232645.GT25963@mit.edu>

Lacking a definite better plan, I say we set up the (Deb)Athena tmp
cleaner. If we need something more aggressive, we can move to
tmpreaper or something that doesn't necessarily respect logged-in
status. But the Athena cleaner is something people are used to and we
know works reasonably well in comparable environments.

I'll hold off on doing so until I get at least one ack from another
maintainer.

- Nelson

On Tue, Mar 17, 2009 at 07:26:45PM -0400, Greg Price wrote:
> We should install a tmp-cleaner on Linerva.  Today we nearly hit 50G.
> 
>    linerva / tmp / andersk  17:41  (Anders Kaseorg)
>        Filesystem           1K-blocks      Used Available Use% Mounted on
>        /dev/mapper/linerva-tmp
>                              51606140  47324116   1660968  97% /tmp
>    linerva / tmp / price  18:01  (Gregory N. Price)
>        # find /tmp -maxdepth 1 -size +1G -atime 3
>    
>        finds seven files.  None of the owners are logged in.  I'm going to
>        remove them with /bin/saferm (like debathena-tmp-cleaner uses.)
>        Then we can deal non-urgently.
>    linerva / tmp / price  18:01  (Gregory N. Price)
>        (pausing for objections...)
>    linerva / tmp / price  18:05  (Gregory N. Price)
>        Done.
>    
>        vinegar-pot:~# df /tmp/
>        Filesystem           1K-blocks      Used Available Use% Mounted on
>        /dev/mapper/linerva-tmp
>                              51606140  40478324   8506760  83% /tmp
>    
>        We should still set up a real tmp-cleaner.
> 
> One obvious choice is debathena-tmp-cleaner, which as written removes
> files in /tmp older than 2 days and in /var/tmp older than 3.
> 
> But it refuses to remove files owned by users who are logged in, no
> matter how long ago the file was last touched.  Since the history of
> -tmp-cleaner is that ghudson wrote it in July, I suspect that this was
> motivated by the cluster situation where a logged-in user "owns" the
> machine and may as well do as they please in /tmp/.  For Linerva we
> may want to vary this behavior.
> 
> It might also be nice to use upstream software.  Any recommendations?
> 
> Greg

home help back first fref pref prev next nref lref last post