Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Jul 1997 07:49:03 -0400 (EDT)
From:      Thomas David Rivers <ponds!rivers@dg-rtp.dg.com>
To:        ponds!lakes.water.net!rivers, ponds!sdf.com!tom
Cc:        ponds!FreeBSD.ORG!freebsd-hackers
Subject:   Re: Why news expiration is sooo slowww with 2.2.x.
Message-ID:  <199707071149.HAA01494@lakes.water.net>

next in thread | raw e-mail | index | archive | help
> >   What options are you using on the "ls"?  "-l" causes lots of getpwuid()
> > calls.  "-f" will avoid sorting.  How many files were actually in that
> > directory?  If the directory is screwed, and you have a million files in
> > it, 20-30 minutes is probably normal, and chances are the expiry will
> > never remove them either.
> 
>   No -l, just 'ls' (to avoid the stat()) - the directory isn't messed
> up - an fsck indicates everything is just fine.  It's just that there
> are a lot of files.
> 
>   A 
> 	/bin/ls -1 | wc -l
> 
> reveals:
> 

 Oops - I left that out (it ran for about 15 minutes before giving
me the answer).  In my spool/control directory:

[ponds.water.net]$ /bin/ls -1 | wc -l
   41734


So - I have about that many files...

	- Dave Rivers -





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199707071149.HAA01494>