🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #36610

Re: expire question.

#36610
From: Arthur Hagen
Date: Thu, 15 Apr 1999 00:00
61 lines
3166 bytes
In article <7EpdNM0Hw-B@khms.westfalen.de>, kaih=7EpdNM0Hw-B@khms.westfalen.de writes:

> *Most* UN*X filesystems have absolutely dreadful performance with big  
> directories. That's an area where OS/2 or MacOS do much better.

That differs a LOT between different file systems and implementations.

Here's a quick and dirty example:

HP-UX 10.20, vxfs       IRIX 6.5, xfs           Solaris 2.7, ufs
HP9000/D230             O2 R5000                Ultra-250
(expensive server)      (cheap workstation)     (cheap server)

% mkdir tmp; cd tmp
% timex perl -e 'for ($i=0;$i<9999;$i++) {open(FILE,">$i");seek(FILE,rand 32000,1);print FILE "x";close FILE}'

real     7:12.90        real     2:53.34        real     5:45.09
user        4.27        user        2.15        user        1.97
sys        58.58        sys        19.18        sys        38.27

% timex ls -l >/dev/null

real       10.28        real        5.72        real        3.48
user        2.14        user        2.41        user        1.98
sys         2.28        sys         2.85        sys         0.68

% timex sh -c "find . -type f -print | xargs rm"

real     3:12.63        real     1:45.00        real     4:08.38
user        1.05        user        0.30        user        0.63
sys        30.82        sys        12.47        sys         8.48

Increase the number of files, and the difference becomes even more appearent.
Some half a million files (like control.cancel), and vxfs becomes totally
unusable.  Even the ~25k overview dirs and files give it some trouble.

> I've seen updatedb (for the locate database) spend nearly an hour on  
> control/cancel before I told it not to bother with the news spool, *and*  
> started to wipe it out from cron.

I've seen "sync" take more than 30 seconds.  Now that's *bad*.

> Here's a way to check your machine for file system traps:
> 
> find / -type d -size 100k
> 
> (or whatever size you want to look for). Old machines will need to add
> -print at the end.

Use "find / -type d -size +100000c -exec ls -ld {} \;" instead, and it
will both give some more information and also work on more OS'es.
None of the systems I have access to can use "100k", but all of
them can use "100000c".  One of them (IRIX) will also match *exactly*
the size unless you use a plus sign to specify "at least".

Regards,
-- 
*Art

Technical Details
Message-ID: <m3c3f7.gsu3.ln@flying.broomstick.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <fapve7.kn1.ln@vikes.dynip.com> <7EpdNM0Hw-B@khms.westfalen.de>

Show Full Headers
Complete Article Headers
Message-ID: <m3c3f7.gsu3.ln@flying.broomstick.com>
Subject: Re: expire question.
Date: Thu, 15 Apr 1999 00:00:00 +0000
From: art@flying.broomstick.com (Arthur Hagen)
References: <fapve7.kn1.ln@vikes.dynip.com> <7EpdNM0Hw-B@khms.westfalen.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 466520743
X-Complaints-To: abuse@globalone.no
X-Trace: bone.globalone.no 924136527 15745 194.52.172.70 (15 Apr 1999 00:35:27 GMT)
Organization: Broomstick Net Services
Reply-To: art@broomstick.com
NNTP-Posting-Date: 15 Apr 1999 00:35:27 GMT
Newsgroups: news.software.nntp