🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
10 messages
10 total messages Started by William Schwartz Tue, 13 Apr 1999 00:00
expire question.
#36543
Author: William Schwartz
Date: Tue, 13 Apr 1999 00:00
23 lines
1643 bytes
Right now the file system performance on my system is dreadful.  Expire is
taking was too long (fastrm started last night is still going with over
900 minnutes of cpu time).  I need to cut this down somehow.  Reading the FAQ
I found metion of "For most people, even a one-day retention time of 
control.cancel is too much, and they've had to resort to wiping that 
directory every ten minutes or so."  it went on to say trimming groups like 
this can have significant impact on file system performance.

What's the best way to trim this group down?  Since expire is run daily
that can't really clean the directory every ten minutes.

my cron entry for expire is:
30 17 * * * /usr/local/news/bin/news.daily delayrm lowmark expireover

Perhaps i'm doing somethign wrong there to make expire so slow?

any tips would be appreciated.

thanks
Bill


Re: expire question.
#36541
Author: Russ Allbery
Date: Tue, 13 Apr 1999 00:00
29 lines
1759 bytes
William Schwartz <schwartzw@usa.net> writes:

> Right now the file system performance on my system is dreadful.  Expire
> is taking was too long (fastrm started last night is still going with
> over 900 minnutes of cpu time).  I need to cut this down somehow.
> Reading the FAQ I found metion of "For most people, even a one-day
> retention time of control.cancel is too much, and they've had to resort
> to wiping that directory every ten minutes or so."  it went on to say
> trimming groups like this can have significant impact on file system
> performance.

> What's the best way to trim this group down?  Since expire is run daily
> that can't really clean the directory every ten minutes.

cd /path/to/spool/control && mv cancel cancel.old && rm -rf cancel.old

> Perhaps i'm doing somethign wrong there to make expire so slow?

Not sure; I've never had it take more than an hour or so, but I don't have
that large of a spool right now.  How big of a news spool are you
expiring?

Also, have you checked the other hot-point newsgroups and reduced the
expiration times on them?  news.lists.filters and *.jobs* are the worst.

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Re: expire question.
#36559
Author: Brad Knowles
Date: Wed, 14 Apr 1999 00:00
16 lines
1362 bytes
In article <ylyajw892e.fsf@windlord.stanford.edu>, Russ Allbery
<rra@stanford.edu> wrote:

> Also, have you checked the other hot-point newsgroups and reduced the
> expiration times on them?  news.lists.filters and *.jobs* are the worst.

    Should these typically be set to "A:0:0:0" or "A:1:1:1"?

-- 
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
    <http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0xE38CCEF1>

Are you looking for a news feed from a site in the Freenix Top 130?
If so, contact me via private e-mail for details.

Re: expire question.
#36561
Author: Kai Henningsen
Date: Wed, 14 Apr 1999 00:00
38 lines
2068 bytes
rra@stanford.edu (Russ Allbery)  wrote on 13.04.99 in <ylyajw892e.fsf@windlord.stanford.edu>:

> William Schwartz <schwartzw@usa.net> writes:

> cd /path/to/spool/control && mv cancel cancel.old && rm -rf cancel.old
>
> > Perhaps i'm doing somethign wrong there to make expire so slow?
>
> Not sure; I've never had it take more than an hour or so, but I don't have
> that large of a spool right now.  How big of a news spool are you
> expiring?

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

Typically, UN*X filesystems (or DOS FAT) do O(n) whereas OS/2 or MacOS do  
O(log(n)) for directory lookups.

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.

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.

Investigate *all* the directories this finds.

Kai
-- 
http://www.westfalen.de/private/khms/
"... by God I *KNOW* what this network is for, and you can't have it."
  - Russ Allbery (rra@stanford.edu)

Re: expire question.
#36592
Author: Russ Allbery
Date: Wed, 14 Apr 1999 00:00
21 lines
1270 bytes
Brad Knowles <brad@shub-internet.org> writes:
> Russ Allbery <rra@stanford.edu> wrote:

>> Also, have you checked the other hot-point newsgroups and reduced the
>> expiration times on them?  news.lists.filters and *.jobs* are the
>> worst.

> Should these typically be set to "A:0:0:0" or "A:1:1:1"?

nntp:~/config> grep filters: expire.ctl
news.lists.filters:A:0:4:4
nntp:~/config> grep 'jobs\*:' expire.ctl
*.jobs*:A:0:5:5

Depends on whether you care about them or not.  I like keeping them around
just 'cause, and I have the disk space to do that for a while.

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Re: expire question.
#36597
Author: nash
Date: Thu, 15 Apr 1999 00:00
42 lines
2407 bytes
Just a note on Solaris 2.7,  use ufs logging and disable accesstime
updates and things really improve.  Increasing the number of files from
9,999 to 99,999 only increased the times slightly over 10 fold.

Arthur Hagen (art@flying.broomstick.com) wrote:

: Here's a quick and dirty example:

 HP-UX 10.20,  IRIX 6.5,  Solaris 2.7  Solaris 2.7    Solaris 2.7
 HP9000/D230   O2 R5000   Ultra-250    Ultra-450      99,999 files!
 vxfs          xfs        ufs          ufs, noatime   ufs, noatime
                                            logging        logging
: % 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  2:53.34    5:45.09      0:33.79        51:07.98
 user    4.27     2.15       1.97         0.71           12.54
 sys    58.58    19.18      38.27        28.31         2657.37

: % timex ls -l >/dev/null

 real   10.28     5.72       3.48      0:02.32         0:29.14
 user    2.14     2.41       1.98         1.93           20.23
 sys     2.28     2.85       0.68         0.35            8.07

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

 real 3:12.63  1:45.00    4:08.38      0:45.69         6:30.18
 user    1.05     0.30       0.63         0.24            3.88
 sys    30.82    12.47       8.48         4.54          340.15

: 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.

--
     _ ___,;;;/  | Ron Nash (nash@sdsu.edu) San Diego State University
  ,;( )__, )~\|  | 
 ;; //   '--;    | Gin-N-Tonic   endurance horse
 '  ;\    |      | Luv on Fire   trusty trail horse

Re: expire question.
#36610
Author: 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

Re: expire question.
#36615
Author: Russ Allbery
Date: Thu, 15 Apr 1999 00:00
16 lines
1339 bytes
Arthur Hagen <art@flying.broomstick.com> writes:

> Yeah, I've heard about that.  I'm just curious whether that will have
> any negative impact if the internal power goes out or something
> similarly horrid happens.  You can also specify noatime for xfs with
> IRIX, btw, but it doesn't seem to have that much of an impact, probably
> because the atime modifications are journalled and written out later.
> But it seems like a sure winner for SunOS/ufs, if it's safe to use.

I can't see why it wouldn't be safe to use; it's just choosing not to
write out basically worthless data.

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Re: expire question.
#36634
Author: Kai Henningsen
Date: Thu, 15 Apr 1999 00:00
36 lines
2157 bytes
art@flying.broomstick.com (Arthur Hagen)  wrote on 15.04.99 in <m3c3f7.gsu3.ln@flying.broomstick.com>:

> 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.

Well yes, that was sort of the point.

> 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 remember when I tested this some years ago, I think on a 286/10 or  
something like that, I found that DOS, for a create-file-loop, showed a  
directory scanning speed of something like 32 KB per second. I think that  
was the worst case I ever saw - not only linear, but CPU-bound to an  
absolutely ridiculous amount.

>  One of them (IRIX) will also match *exactly*
> the size unless you use a plus sign to specify "at least".

Oops, sorry. Forgot about that one.


Kai
-- 
http://www.westfalen.de/private/khms/
"... by God I *KNOW* what this network is for, and you can't have it."
  - Russ Allbery (rra@stanford.edu)

Re: expire question.
#36678
Author: Arthur Hagen
Date: Fri, 16 Apr 1999 00:00
28 lines
1952 bytes
In article <7f55eo$t83$1@gondor.sdsu.edu>, nash@rohan.sdsu.edu writes:
> Just a note on Solaris 2.7,  use ufs logging and disable accesstime
> updates and things really improve.

Yeah, I've heard about that.  I'm just curious whether that will have
any negative impact if the internal power goes out or something
similarly horrid happens.  You can also specify noatime for xfs with
IRIX, btw, but it doesn't seem to have that much of an impact, probably
because the atime modifications are journalled and written out later.
But it seems like a sure winner for SunOS/ufs, if it's safe to use.

I'd also like to try using guaranteed rate IO on IRIX xfs, for the
cycbuff files.  It would mean a tiny rewrite of the cnfs routines, but
will guarantee 23 requests per second with a 64k IO size.  Seems
nice for feeds.

The overview is more of a problem, with ~25000 directories and one
file in each directory.  I wish there was a good solution for this,
as neither of the file systems I have tried handles this very well.

HP-UX and vxfs seems to be the worst though.

Regards,
-- 
*Art

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads