On 8/20/2010 1:40 PM, Rahul Nabar wrote:
What's the typical protocol about the cleanup of /tmp folders? Do
people clean them on each reboot or at intervals with a cron (sounds a
bad idea). I was always under the impression that a reboot cleans them
but apparantly not on my CentOS distro, by default.

I have a cronjob that removes anything in /tmp and
in /scratch, which not everybody uses, that's older
than a week old. I determined this 1 week old policy
by asking my users what the maximum length of any
of their jobs could be. For some people this might
be longer, and for some it might be shorter.

Also, since an open file isn't actually removed, you
probably can't damage things if you guess wrong, although
the file might not be visible in a directory listing.

One other option that I've seen mentioned is mounting /tmp on a tmpfs.
Is that a good idea? The risk of using up too much RAM if a program
gets out of hand writing to /tmp.

Right. I don't think this is a good idea for scratch
space for the reasons you mention. It does make sense
for things like compilers and other programs that
create very transient and small files.

Cordially,
--
Jon Forrest
Research Computing Support
College of Chemistry
173 Tan Hall
University of California Berkeley
Berkeley, CA
94720-1460
510-643-1032
jlforr...@berkeley.edu
_______________________________________________
Beowulf mailing list, Beowulf@beowulf.org sponsored by Penguin Computing
To change your subscription (digest mode or unsubscribe) visit 
http://www.beowulf.org/mailman/listinfo/beowulf

Reply via email to