🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
5 messages
5 total messages Started by richard.brons Mon, 09 Nov 1998 00:00
diablo dreaderd dexpireover on linux
#32793
Author: richard.brons
Date: Mon, 09 Nov 1998 00:00
17 lines
1785 bytes
On linux rh 5.1, the dexpireover -a -R operation (21-test)only is completed
succesfully after having set the inode max (per process) on 65148, and the
"max file open" on appr. 1/3 of this ultimate inode-limit. Under Linux, one
cannot hardset "unlimit" for "max file open", it has to be re-compiled for
that, but will 1024 instead of 256 suffice? For several reasons, I had to
postpone further testing (for Linux, that is). The workings of dexpireover -a
-R do not seem very efficient, though: running out of inodes (and thereby
stopping the system) as if the numerous files it opens are not closed timely
enough. Tracing is not very helpful, as the process, fault-free itself, just
runs out of inodes, that's it. On Linux, just dexpireover -a runs flawless,
and also the dexpireover -a -R -n does not give any warning. Richard


-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    

Re: diablo dreaderd dexpireover on linux
#32795
Author: Matt Dillon
Date: Mon, 09 Nov 1998 00:00
45 lines
3030 bytes
:In article <7272d6$b0q$1@nnrp1.dejanews.com>,
: <richard.brons@inet.unisource.nl> wrote:
:>On linux rh 5.1, the dexpireover -a -R operation (21-test)only is completed
:>succesfully after having set the inode max (per process) on 65148, and the
:>"max file open" on appr. 1/3 of this ultimate inode-limit. Under Linux, one
:>cannot hardset "unlimit" for "max file open", it has to be re-compiled for
:>that, but will 1024 instead of 256 suffice? For several reasons, I had to
:>postpone further testing (for Linux, that is). The workings of dexpireover -a
:>-R do not seem very efficient, though: running out of inodes (and thereby
:>stopping the system) as if the numerous files it opens are not closed timely
:>enough. Tracing is not very helpful, as the process, fault-free itself, just
:>runs out of inodes, that's it. On Linux, just dexpireover -a runs flawless,
:>and also the dexpireover -a -R -n does not give any warning. Richard
:>
:>
:>-----------== Posted via Deja News, The Discussion Network ==----------
:>http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    

    Well, it sounds like dexpireover is forgetting to close descriptors
    but I can't find any bugs in the code, and there's something seriously
    odd about the system running out of inodes... it sounds like the overview
    scan is broken somewhere.  What may be occuring is that one of
    the overview files is bokered and causing it to try to rewrite
    hundreds of data. files for one over. file (or thousands ...).

    If you are familiar with the 'strace' utility, perhaps you can run
    dexpireover -a -R through that.  The output might make the problem
    more obvious.

    dexpireover -a -R is expensive, but it shouldn't be creating thousands
    of files.  Normally -R only creates replacement .data files for
    the ones already on disk, then renames-over (.data -> data.) and closes 
    the descriptors.  Each data file holds 256 articles so, for example,
    a group containing 4000 articles would temporarily use 15 descriptors.
    But dexpireover closes them and fixes up the data files before moving
    onto the next group.

						-Matt

-- 
    Matthew Dillon  Engineering, HiWay Technologies, Inc. & BEST Internet
                    Communications
    <dillon@best.net> (Please include original email in any response)

Re: diablo dreaderd dexpireover on linux
#32817
Author: richard.brons
Date: Tue, 10 Nov 1998 00:00
71 lines
4687 bytes
In article <728n8r$8g8$1@flea.best.net>,
  dillon@best.net (Matt Dillon) wrote:
> :In article <7272d6$b0q$1@nnrp1.dejanews.com>,
> : <richard.brons@inet.unisource.nl> wrote:
> :>On linux rh 5.1, the dexpireover -a -R operation (21-test)only is completed
> :>succesfully after having set the inode max (per process) on 65148, and the
> :>"max file open" on appr. 1/3 of this ultimate inode-limit. Under Linux, one
> :>cannot hardset "unlimit" for "max file open", it has to be re-compiled for
> :>that, but will 1024 instead of 256 suffice? For several reasons, I had to
> :>postpone further testing (for Linux, that is). The workings of dexpireover
-a
> :>-R do not seem very efficient, though: running out of inodes (and thereby
> :>stopping the system) as if the numerous files it opens are not closed timely
> :>enough. Tracing is not very helpful, as the process, fault-free itself, just
> :>runs out of inodes, that's it. On Linux, just dexpireover -a runs flawless,
> :>and also the dexpireover -a -R -n does not give any warning. Richard
> :>
> :>
> :>-----------== Posted via Deja News, The Discussion Network ==----------
> :>http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own
>
>     Well, it sounds like dexpireover is forgetting to close descriptors
>     but I can't find any bugs in the code, and there's something seriously
>     odd about the system running out of inodes... it sounds like the overview
>     scan is broken somewhere.  What may be occuring is that one of
>     the overview files is bokered and causing it to try to rewrite
>     hundreds of data. files for one over. file (or thousands ...).
>
>     If you are familiar with the 'strace' utility, perhaps you can run
>     dexpireover -a -R through that.  The output might make the problem
>     more obvious.
>
>     dexpireover -a -R is expensive, but it shouldn't be creating thousands
>     of files.  Normally -R only creates replacement .data files for
>     the ones already on disk, then renames-over (.data -> data.) and closes
>     the descriptors.  Each data file holds 256 articles so, for example,
>     a group containing 4000 articles would temporarily use 15 descriptors.
>     But dexpireover closes them and fixes up the data files before moving
>     onto the next group.
>
> 						-Matt
>
> --
>     Matthew Dillon  Engineering, HiWay Technologies, Inc. & BEST Internet
>                     Communications
>     <dillon@best.net> (Please include original email in any response)
>
Matt,

A further checking of the huge strace output (i.e. comparing lseeking/writing
of files against them being closed) has to wait until our headerfeed
test-customer has build up a larger dgroup dir, but he is running on freebsd,
though. This brings me to a question far more important (for our production
environment) Having upgraded diablo to rel. 1.20 (for the headerfeed, mainly)
I experience the same problem as I had with rel. 1.16b12 (we preferred to
stay with 1.16b8), namely, a significant decline of dnewslink's outgoing
feed-volumes, without backlogging the deficit. Before any further analysis, I
have to decide (we have many big peers on this particular machine) either to
return to the older diablo version (and loose the headerfeed option), or to
use the older dnewslink (for the regular feeds) parallel to the newer one
(for the headerfeed). Would that be possible, running them on different
cronjobs both on the 1.20 level? btw, diablo 1.16b8 performed excellently,
like it still does on our customer-servers. I would appreciate your advice on
this very much, Richard



-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    

Re: diablo dreaderd dexpireover on linux
#32824
Author: Matt Dillon
Date: Tue, 10 Nov 1998 00:00
64 lines
4215 bytes
:In article <729791$61r$1@nnrp1.dejanews.com>,
: <richard.brons@inet.unisource.nl> wrote:
:>>
:>Matt,
:>
:>A further checking of the huge strace output (i.e. comparing lseeking/writing
:>of files against them being closed) has to wait until our headerfeed
:>test-customer has build up a larger dgroup dir, but he is running on freebsd,
:>though. This brings me to a question far more important (for our production
:>environment) Having upgraded diablo to rel. 1.20 (for the headerfeed, mainly)
:>I experience the same problem as I had with rel. 1.16b12 (we preferred to
:>stay with 1.16b8), namely, a significant decline of dnewslink's outgoing
:>feed-volumes, without backlogging the deficit. Before any further analysis, I
:>have to decide (we have many big peers on this particular machine) either to
:>return to the older diablo version (and loose the headerfeed option), or to
:>use the older dnewslink (for the regular feeds) parallel to the newer one
:>(for the headerfeed). Would that be possible, running them on different
:>cronjobs both on the 1.20 level? btw, diablo 1.16b8 performed excellently,
:>like it still does on our customer-servers. I would appreciate your advice on
:>this very much, Richard
:>
:>
:>
:>-----------== Posted via Deja News, The Discussion Network ==----------
:>http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    

    Hmm.  It's hard to say, the changes I made to dnewslink between 1.16
    and 1.20 were mainly in the mmap() and socket tuning departments.
    dnewslink mmap()'s the article files now rather then read()ing them,
    and it turns on a couple of tcp options.  This significantly boosted
    performance on my own FreeBSD boxes.

    It could be that Linux isn't as efficient handling mmap() (e.g. in regards
    to dealing with page faults) then it is handling read().   The only 
    way to find out is to strace a dnewslink session to see where the 
    bottleneck is and to also observe the tcp connection's send and receive
    buffers via netstat (e.g. 'netstat -tn | fgrep destination-ip' while
    dnewslink is running).  Ick.  I'd hate to have to put the read()
    interface back in there but if it's the only way, it's the only way.

    I would also check the tcp send and receive window defaults for your 
    machine.  I believe you can get and set them via the linux route command
    on a per-route basis.  You can also set the send and receive windows 
    sizes with the R and T options in dnntpspool.ctl ... it might be worth
    playing with those.  For dnntpspool.ctl, the send window size is the
    most important, of course.  The larger the window size, the more you
    isolate dnewslink overhead from socket latency overhead.

    I would dearly love some Linux Diablo users to tune Diablo for linux and
    send me the diffs.  I've done a lot of tuning work for FreeBSD, but I
    don't use linux and I'll bet you could find a couple of things in there
    that would make a big difference.  It's fairly easy to add machine-specific
    tuning in, you just create #define variable in lib/config.h which you
    default to 0 at the bottom, then turn it on in the machine-specific
    configuration section and use that to #if condition the tuned code.

						-Matt

-- 
    Matthew Dillon  Engineering, HiWay Technologies, Inc. & BEST Internet
                    Communications
    <dillon@best.net> (Please include original email in any response)

Re: diablo dreaderd dexpireover on linux
#32852
Author: richard.brons
Date: Wed, 11 Nov 1998 00:00
86 lines
5263 bytes
In article <72a3c8$ch6$1@flea.best.net>,
  dillon@best.net (Matt Dillon) wrote:
> :In article <729791$61r$1@nnrp1.dejanews.com>,
> : <richard.brons@inet.unisource.nl> wrote:
> :>>
> :>Matt,
> :>
> :>A further checking of the huge strace output (i.e. comparing
lseeking/writing
> :>of files against them being closed) has to wait until our headerfeed
> :>test-customer has build up a larger dgroup dir, but he is running on
freebsd,
> :>though. This brings me to a question far more important (for our production
> :>environment) Having upgraded diablo to rel. 1.20 (for the headerfeed,
mainly)
> :>I experience the same problem as I had with rel. 1.16b12 (we preferred to
> :>stay with 1.16b8), namely, a significant decline of dnewslink's outgoing
> :>feed-volumes, without backlogging the deficit. Before any further analysis,
I
> :>have to decide (we have many big peers on this particular machine) either to
> :>return to the older diablo version (and loose the headerfeed option), or to
> :>use the older dnewslink (for the regular feeds) parallel to the newer one
> :>(for the headerfeed). Would that be possible, running them on different
> :>cronjobs both on the 1.20 level? btw, diablo 1.16b8 performed excellently,
> :>like it still does on our customer-servers. I would appreciate your advice
on
> :>this very much, Richard
> :>
> :>
> :>
> :>-----------== Posted via Deja News, The Discussion Network ==----------
> :>http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own
>
>     Hmm.  It's hard to say, the changes I made to dnewslink between 1.16
>     and 1.20 were mainly in the mmap() and socket tuning departments.
>     dnewslink mmap()'s the article files now rather then read()ing them,
>     and it turns on a couple of tcp options.  This significantly boosted
>     performance on my own FreeBSD boxes.
>
>     It could be that Linux isn't as efficient handling mmap() (e.g. in regards
>     to dealing with page faults) then it is handling read().   The only
>     way to find out is to strace a dnewslink session to see where the
>     bottleneck is and to also observe the tcp connection's send and receive
>     buffers via netstat (e.g. 'netstat -tn | fgrep destination-ip' while
>     dnewslink is running).  Ick.  I'd hate to have to put the read()
>     interface back in there but if it's the only way, it's the only way.
>
>     I would also check the tcp send and receive window defaults for your
>     machine.  I believe you can get and set them via the linux route command
>     on a per-route basis.  You can also set the send and receive windows
>     sizes with the R and T options in dnntpspool.ctl ... it might be worth
>     playing with those.  For dnntpspool.ctl, the send window size is the
>     most important, of course.  The larger the window size, the more you
>     isolate dnewslink overhead from socket latency overhead.
>
>     I would dearly love some Linux Diablo users to tune Diablo for linux and
>     send me the diffs.  I've done a lot of tuning work for FreeBSD, but I
>     don't use linux and I'll bet you could find a couple of things in there
>     that would make a big difference.  It's fairly easy to add
machine-specific
>     tuning in, you just create #define variable in lib/config.h which you
>     default to 0 at the bottom, then turn it on in the machine-specific
>     configuration section and use that to #if condition the tuned code.
>
> 						-Matt
>
> --
>     Matthew Dillon  Engineering, HiWay Technologies, Inc. & BEST Internet
>                     Communications
>     <dillon@best.net> (Please include original email in any response)
>
Matt,

Appreciate your suggestions, and sorry I did not make clear we are running
the feeding services on Solaris 2.6 -- I used Linux only for testing
dreaderd, it might be that Linux would not have any problems with this (being
more advanced and flexible anyway) But I guess the problem is generic, and
certainly Solaris is not handling the mmap()correctly. I will send you (to
your private mail, I presume) a truss of a dnewslink process.

Richard

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    

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