[Samba] Small Files/Load Average Information

Yan Seiner yan at cardinalengineering.com
Thu Feb 14 03:40:07 GMT 2002

Noel Kelly wrote:
> Hi,
> I have been noticing some serious load averages occurring when users are
> browsing or using directories with a large number of files.
> A case in point is our Sage users.  Sage is a nasty program and spits out
> three small files into a spool directory every time something is printed and
> does not clear them out.  This means that the spool directories rapidly fill
> with tiny files and by the end of the month there might be upwards of 5,000
> files in each spool directory.

I can't tell you how to solve the problem, but I can tell you how to fix
the symptoms.  We have a similar problem with other software.  It likes
to leaves work files around that quickly gobble up disk space.  I just
run a find -mtime +3 -exec rm -f {}; .  That finds all files that have
not been touched in three days and deletes them.  That line above will
do exactly that, so please man find if you have not used find.  It's a
bit tricky, and my script is set up to use three business days (it
ignores Sat/Sun).


Future fighter pilots:
Me: Akari, WHAT are you DOING?
Akari, age 3: Pushing the envelope.
  6:28am  up 9 days, 10:37,  7 users

More information about the samba mailing list