From owner-freebsd-hackers Mon Jul 7 09:50:50 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id JAA22932 for hackers-outgoing; Mon, 7 Jul 1997 09:50:50 -0700 (PDT) Received: from dg-rtp.dg.com (dg-rtp.rtp.dg.com [128.222.1.2]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id JAA22899 for ; Mon, 7 Jul 1997 09:50:45 -0700 (PDT) Received: by dg-rtp.dg.com (5.4R3.10/dg-rtp-v02) id AA02361; Mon, 7 Jul 1997 12:50:13 -0400 Received: from ponds by dg-rtp.dg.com.rtp.dg.com; Mon, 7 Jul 1997 12:50 EDT Received: from lakes.water.net (lakes [10.0.0.3]) by ponds.water.net (8.8.5/8.7.3) with ESMTP id HAA12514; Mon, 7 Jul 1997 07:40:52 -0400 (EDT) Received: (from rivers@localhost) by lakes.water.net (8.8.5/8.6.9) id HAA01494; Mon, 7 Jul 1997 07:49:03 -0400 (EDT) Date: Mon, 7 Jul 1997 07:49:03 -0400 (EDT) From: Thomas David Rivers Message-Id: <199707071149.HAA01494@lakes.water.net> To: ponds!lakes.water.net!rivers, ponds!sdf.com!tom Subject: Re: Why news expiration is sooo slowww with 2.2.x. Cc: ponds!FreeBSD.ORG!freebsd-hackers Content-Type: text Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > 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 -