🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
7 messages
7 total messages Started by Ben Rosengart Wed, 18 Dec 2002 19:41
ballooning innfeed memory usage
#62342
Author: Ben Rosengart
Date: Wed, 18 Dec 2002 19:41
22 lines
1829 bytes
Over the past month or so, I've seen a strange phenomenon with
innfeed on Panix's transit server.  The symptom is that it rather
abruptly begins to use quite a lot of memory, as in upwards of a
gigabyte.  This tends to hang the machine that it's running on.
Sometimes when it comes back up, it hangs again almost immediately.
The theory around here is that this happens when a bunch of large
articles come in at the same time.

I've tweaked host-queue-highwater down to 30 from 50 in an attempt
to moderate the memory usage, but it hasn't helped.  We are feeding
about two dozen peers.  I can provide more configuration details
on request.

Has anyone else seen this phenomenon?  Any suggestions as to what to
do about it?  Thanks.

-- 
Ben Rosengart     (212) 741-4400 x215

"Feel the pleasure and the freedom to make systems on your own!"
                                                   -- a spammer
Re: ballooning innfeed memory usage
#62344
Author: Thomas
Date: Wed, 18 Dec 2002 20:09
50 lines
3340 bytes
Ben Rosengart wrote:
> Over the past month or so, I've seen a strange phenomenon with
> innfeed on Panix's transit server.  The symptom is that it rather
> abruptly begins to use quite a lot of memory, as in upwards of a
> gigabyte.  This tends to hang the machine that it's running on.
> Sometimes when it comes back up, it hangs again almost immediately.
> The theory around here is that this happens when a bunch of large
> articles come in at the same time.

I'm thinking in the direction of yEnc'ed articles. I saw an assumption about 
line length someplace, but don't know if it affects what is going on. But read on.

In my case I get "couldn't mmap article" errors. I flush the innfeeds on a 
regular basis now, and run multiple innfeeds (using the same config file, but 
different spool directories and status files). The innfeed that feeds to reader 
machines stay small, even though it outputs the most bytes. But the average 
queue is nearly empty.

Don't forget to adjust the initial connections to 0 if you set up multiple 
innfeeds with a single config file - or you waste a connection for every innfeed 
that will never see articles.

> I've tweaked host-queue-highwater down to 30 from 50 in an attempt
> to moderate the memory usage, but it hasn't helped.  We are feeding
> about two dozen peers.  I can provide more configuration details
> on request.

You could also try adjusting what I think is called 'queue highwater' - the 
value that is 200 by default.

In any case, it seems to be some peer(s?) causing the memory explosion. Non of 
the above really helped - but these things work as a workaround as in my case 
just the single innfeed hangs.

I also tried setting 'drop-deferred' but that did't help either.

And not using mmap in the config file also doesn't seem to have any effect (it 
still complains 'can't mmap' - so I assume that config option is broken somehwo.

> Has anyone else seen this phenomenon?  Any suggestions as to what to
> do about it?  Thanks.

Seen something similar (can't mmap) and don't have a solution. Wish I had one.

Any other suggestions?


Thomas

Re: ballooning innfeed memory usage
#62345
Author: Russ Allbery
Date: Wed, 18 Dec 2002 20:21
30 lines
2208 bytes
Ben Rosengart <br+nsn@panix.com> writes:

> Over the past month or so, I've seen a strange phenomenon with innfeed
> on Panix's transit server.  The symptom is that it rather abruptly
> begins to use quite a lot of memory, as in upwards of a gigabyte.  This
> tends to hang the machine that it's running on.  Sometimes when it comes
> back up, it hangs again almost immediately.  The theory around here is
> that this happens when a bunch of large articles come in at the same
> time.

Usually this is memory-mapped memory and therefore isn't actually "real"
in the sense that it doesn't consume your swap the way that unbacked
memory would.  Although that may not be the case if you're feeding out of
a non-wireformat spool.

In any event, the tuning that I did to prevent this was to feed all
binaries through the same innfeed with the setting:

    max-queue-size: 5

so that it wouldn't hold a bunch of large binaries open all the time.

What's your maximum article size?

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

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: ballooning innfeed memory usage
#62346
Author: Mark Hittinger
Date: Wed, 18 Dec 2002 20:48
27 lines
2029 bytes
Ben Rosengart <br+nsn@panix.com> writes:
>Has anyone else seen this phenomenon?  Any suggestions as to what to
>do about it?  Thanks.

I've also seen this issue and here are some things to check on.

Check to see if you have a peer or two with large backlogs and you've
got some big maximum backlog size parameter set.  I saw innfeed using lots
of memory trimming large backlogs.  If this is the case then its time
to start being a no-backlog hawk :-)

The second thing to check on is if there is a peer which has begun
to accept articles for a little and then throttles.  Such a site would
build up a large backlog with the first problem but it makes things
worse if a site repeatedly "sort of starts to acccept a feed" and then
drops away.  This just drives innfeed nuts.

Innfeed doesn't seem to handle the large backlog case gracefully so
on a particularly bad site it might be a good idea to switch them to
an old fashioned innxmit/nntpsend feed and leave your hot peers on
innfeed.

Later

Mark Hittinger
bugs@pu.net
Re: ballooning innfeed memory usage
#62348
Author: Ben Rosengart
Date: Wed, 18 Dec 2002 22:08
33 lines
1944 bytes
In article <ylisxr5b9s.fsf@windlord.stanford.edu>, Russ Allbery wrote:
> 
> Usually this is memory-mapped memory and therefore isn't actually "real"
> in the sense that it doesn't consume your swap the way that unbacked
> memory would. 

It does show up in the SIZE and especially VSZ columns of "ps", for
what it's worth.

> Although that may not be the case if you're feeding out of
> a non-wireformat spool.

Our spool is wireformat.
 
> In any event, the tuning that I did to prevent this was to feed all
> binaries through the same innfeed with the setting:
> 
>     max-queue-size: 5
> 
> so that it wouldn't hold a bunch of large binaries open all the time.

I will try that, thanks.  What exactly does this parameter control?

> What's your maximum article size?

1,000,000 bytes.

-- 
Ben Rosengart     (212) 741-4400 x215

"From start to finish, getting data to do the right things and go to the
 right places can seem complicated."  --Sun Cobalt Qube 3 Developer's Guide
Re: ballooning innfeed memory usage
#62349
Author: Russ Allbery
Date: Wed, 18 Dec 2002 22:17
37 lines
2588 bytes
Ben Rosengart <br@panix.com> writes:
> Russ Allbery wrote:

>> Usually this is memory-mapped memory and therefore isn't actually
>> "real" in the sense that it doesn't consume your swap the way that
>> unbacked memory would.

> It does show up in the SIZE and especially VSZ columns of "ps", for what
> it's worth.

Yeah, it probably will.  What you really want is something like the
Solaris pmap tool that will tell you exactly how much of a process's
address space is shared versus unshared.

>> In any event, the tuning that I did to prevent this was to feed all
>> binaries through the same innfeed with the setting:

>>     max-queue-size: 5

>> so that it wouldn't hold a bunch of large binaries open all the time.

> I will try that, thanks.  What exactly does this parameter control?

It controls the number of articles that innfeed will read into memory at a
time to send to a remote peer.  The default innfeed.conf file sets it to
25, which I found was a bit large for binary feeds.  If each feed is
sending different articles, that can mean 25 * max art size * no of feeds
in memory usage.  I cut it down to 5 for the innfeed process that sends
binaries, since really with binaries the overhead of doing fewer CHECKs at
a time is much less, relatively speaking.

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

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: ballooning innfeed memory usage
#62358
Author: Thomas
Date: Thu, 19 Dec 2002 21:13
22 lines
2071 bytes
Russ Allbery wrote:

>>>    max-queue-size: 5

> It controls the number of articles that innfeed will read into memory at a
> time to send to a remote peer.  The default innfeed.conf file sets it to
> 25, which I found was a bit large for binary feeds.  If each feed is
> sending different articles, that can mean 25 * max art size * no of feeds
> in memory usage.  I cut it down to 5 for the innfeed process that sends
> binaries, since really with binaries the overhead of doing fewer CHECKs at
> a time is much less, relatively speaking.

Good suggestion! I only tried host-queue-highwater: so far, but that was 
misguided. I overlooked or misread the documentation obviously and used the 
wrong parameter (that cannot be adjusted on a per peer basis even).

Thanks!


Thomas

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