Article View: news.software.nntp
Article #10315Re: Probs with innfeed 0.8.5b on Solaris
From: Joe Greco
Date: Thu, 22 Aug 1996 00:00
Date: Thu, 22 Aug 1996 00:00
63 lines
3849 bytes
3849 bytes
In news.software.nntp article <4vgpmj$sfe@gw.home.vix.com>, brister@gw.home.vix.com (James Brister) wrote: :It's possible there is still a memory leak in there, but even so, :given the way innfeed keeps articles in memory while feeding, it's :very easy to configure it so that it will run out of memory. Anybody :who starts using innfeed should start light (few parallel connections :and low max-check values), and then experiment from there. You only need a :burst of big binaries along with high values in your config file to kill :it. Let me ask a "stupid" question... wouldn't it be more practical to use mmap() to map in articles? When you mmap() in an article, it becomes an entity which does not "require" physical memory AND swap space... That means on a large system where I am running several dozen peers with innfeed, I would not care if there are 36 peers x 5 feeds per peer x 10 articles pending per feed x 1000000 bytes per article = 1.8GB worth of articles in my VM map (and certainly!!!! not in core).. Or to be a little more detailed... If you mmap(), the greatest possible penalty in terms of I/O for an article is that you would fault it in to feed it. Ideally you do not want to do ANY further I/O, and if you have the physical RAM to back it up, you're fine and dandy. However, the WORST case scenario is that you do NOT have the memory, the VM system reclaims your pages after EACH peer transmission, and you have to fault it in again for each remaining peer referencing that article. You may end up reading it in precisely 'N' times, in the worst case, where 'N' is the number of peers you are feeding. If you read() it into a buffer, you still pay the I/O penalty to read it the first time. If you HAVE the physical RAM to back it up, you are in the same situation as above - you do not have to pay any further I/O penalty and the result is the same. However, if you DON'T, when the VM system decides to page you out, you get WRITTEN to swap and then READ back from swap, potentially once for each of 'N' feeds. Scoreboard: Best case Worst case mmap(): reads: 1 writes: 0 reads: N writes: 0 buffer: reads: 1 writes: 0 reads: N writes: N-1 I would not be uncomfortable with a NNTP feeder that mmap()'ed in a few thousand articles if need be, because I know my VM system will make the most of it. I would be less comfortable with a NNTP feeder that read in a few thousand articles... I wouldn't have the swap to back it. I am just trying to understand from a large scale systems engineering point of view. Please don't think I'm saying anything bad about innfeed, I am NOT!!! I do like innfeed, a lot, but it is missing a few things so far. This is one potentially large problem for sites feeding a few dozen others. My other MAJOR gripe is how to control the size of backlogs, I used to keep all my backlogs tightly capped at a few MB's, innfeed likes to generate hundreds of MB's per site with no readily apparent way to cap it, and if I do not carefully monitor, it will fill up a disk and then innfeed actually STOPS running at all... ... JG
Technical Details
Message-ID:
<4vht04$o3d@brasil.moneng.mei.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-mailReferences:
<4vc7hk$sjj@news2.cais.com> <4vfi5t$r6d@twwells.com> <4vg36v$piu$1@bushwire.mira.net.au> <4vgpmj$sfe@gw.home.vix.com>Show Full Headers
Complete Article Headers
Message-ID: <4vht04$o3d@brasil.moneng.mei.com> Subject: Re: Probs with innfeed 0.8.5b on Solaris Date: Thu, 22 Aug 1996 00:00:00 +0000 From: jgreco@brasil.moneng.mei.com (Joe Greco) References: <4vc7hk$sjj@news2.cais.com> <4vfi5t$r6d@twwells.com> <4vg36v$piu$1@bushwire.mira.net.au> <4vgpmj$sfe@gw.home.vix.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 X-Deja-AN: 175815847 Distribution: inet Organization: Marquette Electronics, Inc. - Milwaukee, WI. Newsgroups: news.software.nntp