🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
11 messages
11 total messages Started by Jeremy Sun, 02 Nov 1997 00:00
Getting actived to actually work
#22853
Author: Jeremy
Date: Sun, 02 Nov 1997 00:00
16 lines
1308 bytes
Okay, so, after hours of doing battle with INN, I think I've finally made
progress by simply upgrading to 1.7, with the insync patches.  (Restarting
innd every 10 minutes, while getting it built.)  It's now been running
longer than it has run since this all started at 6:30am or so, meaning
about 30-45 minutes and still going strong.  My fingers are crossed.

Only thing is, all my nnrpds are being logged as "NOT using actived"
(and taking longer to start, presumably while trying and failing to
use actived).  Well, actived is running; is there more to it than that?

-- 
Jeremy  |  jeremy@exit109.com
The customer is always right, until he tries to say something.

Re: Getting actived to actually work
#22863
Author: Perry.Rovers
Date: Sun, 02 Nov 1997 00:00
32 lines
2448 bytes
Pink elephants with an attitude inspired Jeremy <jeremy@exit109.com> to tell news.software.nntp:
: Okay, so, after hours of doing battle with INN, I think I've finally made
: progress by simply upgrading to 1.7, with the insync patches.  (Restarting
: innd every 10 minutes, while getting it built.)  It's now been running
: longer than it has run since this all started at 6:30am or so, meaning
: about 30-45 minutes and still going strong.  My fingers are crossed.
I'm running the same on FreeBSD. Performance is just great (thanks again
Andrew). The only problem that still seems to crop up sometimes is the
'growing and dying innd' problem. The patches Clayton O'Neill and Forrest
Cavallier put out for bufferproblems and memoryusage are in there but
sometimes innd grows to about 128Mb and then segfaults without any message
in the logs. The system has 256Mb and the command I use to start inn
unlimits memoryusage and some other variables. I haven't figured out what
may be causing that but it hasn't happened for the past 24 hours so I'm
crossing my fingers too :)

: Only thing is, all my nnrpds are being logged as "NOT using actived"
: (and taking longer to start, presumably while trying and failing to
: use actived).  Well, actived is running; is there more to it than that?
Hmm.... you were using BSDI.. byoung@oru.edu (Brian Young) ran into the same
problem. I read a bit of the nnrpd source and it seems it logs that message
when it runs into major problems and then switches back to the 'old'
behavior. Brian thought it might be the mmap implementation of bsdi.

-- 
      Perry Rovers, IAE Systemmangler, Eindhoven, The Netherlands
'The last man on Earth sat alone in a room. There was a knock at the door...'
              the shortest SF-story ever, by Fredric Brown.


Re: Getting actived to actually work
#22864
Author: Joe Greco
Date: Sun, 02 Nov 1997 00:00
31 lines
2120 bytes
In news.software.nntp article <63j16b$92$3@news.IAEhv.nl>, Perry.Rovers@IAE.nl wrote:
:I'm running the same on FreeBSD. Performance is just great (thanks again
:Andrew). The only problem that still seems to crop up sometimes is the
:'growing and dying innd' problem. The patches Clayton O'Neill and Forrest
:Cavallier put out for bufferproblems and memoryusage are in there but
:sometimes innd grows to about 128Mb and then segfaults without any message
:in the logs. The system has 256Mb and the command I use to start inn
:unlimits memoryusage and some other variables. I haven't figured out what
:may be causing that but it hasn't happened for the past 24 hours so I'm
:crossing my fingers too :)

When you do "csh" followed by "unlimit; limit", is the limit of 128MB
still there?  If so, you need to adjust your kernel.

:Hmm.... you were using BSDI.. byoung@oru.edu (Brian Young) ran into the same
:problem. I read a bit of the nnrpd source and it seems it logs that message
:when it runs into major problems and then switches back to the 'old'
:behavior. Brian thought it might be the mmap implementation of bsdi.

actived does not use mmap.

However, BSDI has a problem somewhere in IPland where "localhost" UDP
packets don't work as advertised.

My "quick fix": go into the source, and substitute the host name of your
machine for "localhost" (somewhere in nnrpd/group.c).

... JG

Re: Getting actived to actually work
#22865
Author: Steve Carrie
Date: Mon, 03 Nov 1997 00:00
38 lines
2103 bytes
Andrew wrote:
> 
> Perry.Rovers@IAE.nl wrote:
> > I'm running the same on FreeBSD. Performance is just great (thanks again
> > Andrew). The only problem that still seems to crop up sometimes is the
> > 'growing and dying innd' problem. The patches Clayton O'Neill and Forrest
> > Cavallier put out for bufferproblems and memoryusage are in there but
> > sometimes innd grows to about 128Mb and then segfaults without any message
> > in the logs. The system has 256Mb and the command I use to start inn
> 
> Actually I've seen the same behaviour.  I'm thinking there's a memory leak
> somewhere in one the caches.  I'm not good enough at C to find it though.
> Some gurus wanna have a look?  :)
> 

I've seen much the same thing, but with an interesting twist...

I have a number of boxes running 1.7, mostly 'feeders' providing
news to customer sites, 'readers' providing reading services
and a couple of machines for peering with the world, and it is
on the peering machines that Ive seen this behavior (I 
saw innd at 120M this morning and restarted it to be safe). On
the reader machines, this doesn't happen...

Having said this, I have had NO problems otherwise with 1.7
during the last week since it's deployment.

I'm running a fleet of Sun Ultra 170's with Solaris 2.5.1 btw.

Any insights from those with the knowledge??? :-)

--

Steve Carrie - stephenc@uk.uu.net
Newsmaster, UUNET UK

Re: Getting actived to actually work
#22872
Author: Perry.Rovers
Date: Mon, 03 Nov 1997 00:00
18 lines
1297 bytes
Pink elephants with an attitude inspired Joe Greco <jgreco@ns.sol.net> to tell news.software.nntp:
[innd 1.7 segfaulting]

: When you do "csh" followed by "unlimit; limit", is the limit of 128MB
: still there?  If so, you need to adjust your kernel.
aha! it's there. So this is one of those things based on maxusers I guess?
That's the only thing I can find with 128.

Thanks Joe!

-- 
      Perry Rovers, IAE Systemmangler, Eindhoven, The Netherlands
'The last man on Earth sat alone in a room. There was a knock at the door...'
              the shortest SF-story ever, by Fredric Brown.


Re: Getting actived to actually work
#22886
Author: Another Victim of the Usenet Maf...
Date: Mon, 03 Nov 1997 00:00
89 lines
5265 bytes
On 3 Nov 1997, Andrew wrote:

> Perry.Rovers@IAE.nl wrote:
> > I'm running the same on FreeBSD. Performance is just great (thanks again
> > Andrew). The only problem that still seems to crop up sometimes is the
> > 'growing and dying innd' problem. The patches Clayton O'Neill and Forrest
> > Cavallier put out for bufferproblems and memoryusage are in there but
> > sometimes innd grows to about 128Mb and then segfaults without any message
> > in the logs. The system has 256Mb and the command I use to start inn
> 
> Actually I've seen the same behaviour.  I'm thinking there's a memory leak
> somewhere in one the caches.  I'm not good enough at C to find it though.
> Some gurus wanna have a look?  :)
> 
> Actually I think I remember mention of a known memory leak in one of those
> caches now that I think about it.  Or am I making this up?

Yes.

Actually, I've just discovered a memory leek which has been enough to
bring down my server each weekend soon after I leave, if the kernel
doesn't decide to give innd a whack.  I hate four-day weekends...
It's probably not related to what you see, though.

As I've noted before, on my s00per-turbo-charged 486/66, I've seen that
the channel version of inpaths has often not been able to keep up with the
incoming news that the IDE drives have no problem with.  This started to
be a problem when I began carrying as much of a Big 8 feed plus selected
regionals as pushed me above handling some 100 000 articles daily.

(Note that the code I'm running is still based on 1.5.1, and it includes
the patch from Jerry Aguirre without which my channel feeds would be
severely lagging, plus a patch to that patch, without which my innd would
continue to bloat relentlessly.  I've seen mention by Forrest Cavalier of
some other problem, but I haven't been able to pay much attention to it so
far.  Give me time, or give me...)

After my innd was down for a weekend, it was in the process of catching up
when I noticed the size it was taking up was enough to make me slightly
uncomfortable.  Normally I'll see a size of 10 or 20M, while it had
increased steadily to well over 40M.  Ick.  I also know that when the
articles are coming in at a rate like this, my inpaths channel will block
several hundred times daily.

What I've done is to give inpaths a chance to catch up on the data
buffered by innd by pausing innd and letting inpaths peak on top for a
while, then restart things.  So I did this for a couple hours.  After the
chaninpaths process disappeared from top, I noted that while the size of
innd had fluctuated somewhat, it remained significantly larger than I
wanted it to be.

So I decided to clear things out by flushing each channel process, one at
a time.  I normally run three, two being innfeed (one almost never blocks,
the other has been noted to block once a week or so, even though it
handles fewer peers), and the third being chaninpaths.

After flushing each of the innfeed processes, there was no change in the
size of the innd process.  No dropping was left in out.going either.  So
there doesn't seem to be a problem with processes that don't block.

However, as soon as I gave the fatal flush to chaninpaths, which in the
past has resulted in multi-megabyte droppings in out.going, the size if
the innd process fell from its >30M size while paused to a much more
pleasing 8M or so, becoming a quarter of the size before.  And to my great
glee, nothing was left in out.going, inpaths finished with its needed
housekeeping and updated the logfile.

So, it appears that the memory leek I've been seeing is somehow that the
memory used for buffering a blocked channel feed (perhaps other buffered
file feeds too, f'rinstance when one runs out of disk space?) doesn't get
freed, even when the channel is permitted to drain completely.

Of course, it could well be that this is a known problem.  In any case,
I'm going to regret this as my peers drop me like a hot brick, but having
an innd that doesn't get killed trying to grow in size is more important
than a few measly Freenix points.  At least, I can still weasel my way to
the top through a collection of Dirty Secrets, while a dead INN is not a
pleasant sight to behold each morning before sunrise.

Ah well, time to dig through the last month's inn-workers archive and see
if there's any mention about this type of problem...


Barry Bouwsma
my kingdom for a spot in the top 100, arrrgh


Re: Getting actived to actually work
#22889
Author: coneill
Date: Mon, 03 Nov 1997 00:00
25 lines
1870 bytes
Jeff Garzik <jeff.garzik@spinne.com> writes:
> Perry.Rovers@IAE.nl wrote:
> > Speaking of which.. what are the expected values for the hitrates for the
> > history and pre-commit caches? I'm getting somewhere between 40 and 70% on
> > the history but about 10 on the pre-commit.
> 
> 
> That's about right for the history cache hit rate.  The hit rate will
> rise as you add peers, but I've never seen it get far above 80%.
> 
> The pre-commit cache will never even approach 50% unless you sitting in
> a network hot spot -- where tons of peers throw articles at you across
> clear links.
> 
> I have never profiled the performance of my own precommit patch, but I
> tend to think it's usefulness is limited to sites with lots of peers.   
> 
> Stock INN has it's own precommit cache in the WIP (Write-In-Progress)
> structures.  The WIP code will defer further copies of an article until
> the first article is fully received (I think).

But the WIP code only works for IHAVE's.  

Re: Getting actived to actually work
#22892
Author: Brian Tao
Date: Mon, 03 Nov 1997 00:00
28 lines
2051 bytes
In article <63jhk2$a76$1@synthemesc.insync.net>, Andrew  <aos@insync.net> wrote:
>
>Actually I think I remember mention of a known memory leak in one of
>those caches now that I think about it.  Or am I making this up?

    I posted about this about a week ago, and Jeff Garzik confirmed
that his history pre-commit patch should not be the cause since it
does not allocate/deallocate memory while it runs.  My INN 1.7+insync
grows by couple dozen megabytes or so at a time, which sounds like the
memory leak in coneill's original history cache patch (which I thought
he had eventually fixed).

last pid: 25518;  load averages:  1.99,  1.80,  1.84                  09:06:22
31 processes:  28 sleeping, 2 running, 1 on cpu
CPU states:  1.2% idle, 76.8% user, 21.8% kernel,  0.2% iowait,  0.0% swap
Memory: 246M real, 6576K free, 286M swap, 419M free swap

  PID USERNAME PRI NICE  SIZE   RES STATE   TIME   WCPU    CPU COMMAND
27682 news     -17    4   49M   18M run    22.9H 49.00% 54.94% innfeed
25736 news       6    0  225M   59M sleep  29.6H 18.35% 19.32% innd
24069 news     -21    2 2104K 1656K run    19:24 13.56% 11.89% fastrm
[...]
-- 
Brian Tao (BT300, taob@netcom.ca)
"Though this be madness, yet there is method in't"

Re: Getting actived to actually work
#22897
Author: Jeremy
Date: Mon, 03 Nov 1997 00:00
25 lines
1293 bytes
Joe Greco <jgreco@ns.sol.net> wrote:

>> aha! it's there. So this is one of those things based on maxusers I
>> guess? That's the only thing I can find with 128.
> 
> from my local config:
> 
> ident           ISS
> maxusers        256
> 
> options         "MAXDSIZ=268435456UL"
> options         "DFLDSIZ=201326592UL"
> 
> options         "MAXMEM=524864"         #real memory

You can also use the much easier:

options         "MAXDSIZ=\(256*1024*1024\)"

-- 
Jeremy  |  jeremy@exit109.com
"Okay, at this point you're abusing sarcasm."  --Buffy

inn-werkerz as newsfroup? [Re: Getting actived to actually work]
#22902
Author: Another Victim of the Usenet Maf...
Date: Mon, 03 Nov 1997 00:00
103 lines
6321 bytes
[mailed to inn-workers for reasons that will be obvious later, and to that
end, note news followups based on the topic drift of this thread...]

On 3 Nov 1997, Forrest J. Cavalier III wrote:

> On a related note I am convinced that channel backlogging is endemic
> to some O/S hardware combinations.  It seems like the
> interprocess pipes on some O/S's (especially Linux) don't like
> dealing with tens of K bytes/second. <shrug>  And I'm not convinced
> that the backlog handling code of trying to write more often does
> not make it worse, by triggering blocking more often.
> 
> I really don't know what the solution is, I wish I did.  
> Pausing innd and draining seems like the only one.  It's ugly and
> introduces a bottleneck.

    Ah, but we can test this theory.  Given that my server is attempting
to cope with a load of 1 to 5 typically (with much swapping), it could be
that the needs of chaninpaths are too much.  Perhaps I'll do better with
the same setup on a faster machine, and more RAM.

    Or perhaps the OS is partly to blame.  This will be tested, if Linux
is unable to keep up, by a switch to FreeBSD.  And I don't like the idea
of pausing periodically either.  Maybe some eyeballing of the chaninpaths
code will also reveal some possible improvements there, since my inpaths
channel feed will hog all the CPU while it's draining the dozens of
megabytes of data out of innd over a period of hours.  (Yeah, right.
Much talk and no action about this...)


> Barry, if everyone else were running your hardware and INN, I'd
> bet you that you'd be in the the top 1.

    Not so.  I have a terrible network to deal with, with horrendous
packet loss, and by day, to any US peer, I am lucky to be able to send a
bunch of CHECKs and receive responses at an overall rate of one every ten
seconds.  Needless to say, over such an overloaded connection, the only
way I can hope to keep up is for all my peers to open as many connections
to me as are needed to keep from backlogging.  And likewise, not to limit
the number of connections I can make, since too often when I'm trying to
clear out backlogs that I've gotten for Diablo sites, I'll be denied
access at 5 connections, all of which are already in use.

    This is why I suspect that forking software like Diablo won't work as
well for me as INN or something threaded, provided I can keep innd able to
handle 200+ incoming connections without hanging on any of them doing
history lookups or writing to the spool.  Still, I really have to drop my
connections over such terrible links...


> Forrest Cavalier, Mib Software
> ....Tell me why this discussion isn't on inn-workers....

    Well, I had been thinking about posting it there, but as I have some
200 unread messages to get to there, I'd probably miss any replies.  The
mailing-list isn't as convenient for me as a newsgroup.  (Particularly as
I'm *ahem* not a real subscriber <cough>.)  Which is why I'd love to see
the technical news-related discussions that now are carried almost
exclusively via e-mail, gated into newsgroups that are more widely
distributed.  My idea was a moderated/no-posting group into which the
discussions from inn-workers, innfeed-users, as well as anything else
where the participants are willing to have their innermost secrets bared
for all to see, like the Cyclone mailing list set up by Ed Klein, and
anything about Diablo, NNTPRelay, innreport, heck, *anything* where NDAs
wouldn't be a problem, that's related to news software discussed in
news.software.nntp...

    The ideal place for this, if you ask me, is the Usenet II set of
groups (net.*).  For this reason, I've set followups to net.config to
discuss the idea of this there, although participants in inn-workers
should discuss it also if there's any possible objections.

    I'd prefer to see a no-posting newsgroup, so that people could only
participate via e-mail to their lists, but on the other hand, it should be
marked as moderated to keep out unapproved spam.  Alternatively, a real
moderater victim could volunteer to receive any posts which may be made,
and direct them as/if appropriate to the correct mailing list.  But as
this would be tiresome work, and a gateway from Usenet II to the lists
might not be wanted, I'd be quite happy to see only a one-way gateway
from all the lists to the newsgroup.  (Hmmm, maybe there needs to be a
group status flag that will toss unapproved articles while preventing
users from posting to the group...  If there is one, I don't know of it)

    And I don't see a pressing need to separate inn-workers from the other
lists, as the traffic isn't much, although it's enough to make it a pain
for me to attempt to follow by mail with flaky mailboxes and awful netwerk
connections that take hours to deliver a point-to-point e-mail message by
day, gaaah.  I suggest this earlier and one of my Cabal Newsmanglers
thought it to be a good idea, but nothing more came of that.  Maybe this
time something will...

    So, there you have it: a proposal for net.computers.whatever
(netnews.software?) to be populated by the contents of various mailing
lists, provided this is agreeable to the participants in said lists.
And no, I'm not the volunteer for moderator you are hearing...


Barry Bouwsma
Unabashed Proponent for populating 2senet with Signal


Re: (porky innd) was: Getting actived to actually work
#22910
Author: Perry.Rovers
Date: Tue, 04 Nov 1997 00:00
45 lines
2884 bytes
Pink elephants with an attitude inspired Mark Hittinger <bugs@freebsd.netcom.com> to tell news.software.nntp:

[ 'growing and dying innd' problem]

: Later Richard Todd posted a small modification to Jerry's patch which
: fixed the innd growth.  He said the patch made it into inn1.6b? but it
: might have fallen through the cracks.  Why don't you check your site.c
: code and see if the patch at the end of this article looks similar to
: yours?  After I installed Richard's one line patch on top of Jerry's the 
: innd growth problem was resolved and overchan is able to do its work.

Here it's very similar with the following comment:
              /* reset Used, Left on bp, keep channel buffer size from
                   exploding. */
                bp->Used = bp->Left = 0;

So the patch+fix are in there it seems?

: 	1. INND_NICE_KIDS causes overchan to be created with lower
: 	   priority.  If something else has cause your load to go
: 	   up then overchan might not be able to get things done.
We don't think our kids are nice :)

: 	2. I've found that overchan sometimes locks up on file systems
: 	   that have become corrupt.  It might be time to do an fsck -y.
Could a problem with overchan take down innd? The logfiles say
Oct 31 17:59:44 news /kernel: pid 29300 (innd), uid 8: exited on signal 11
and that's the only thing I can find.. well and a pager going off, some
blinking red lights and all that. The crashing itself is most probably due
to the limit imposed by the kernel (which Joe Greco posted a solution to),
but I wonder why the process keeps on growing when I read that for most
people it stabilises somewhere, say around 80Mb, not slowly climbs until
it chokes. It hasn't crashed since yesterday but it's at 122M at the
moment.. from about 80 on startup. If there's a moment with none or few
readers I can reboot the system with a new kernel and see if it grows larger
than before.

-- 
      Perry Rovers, IAE Systemmangler, Eindhoven, The Netherlands
'The last man on Earth sat alone in a room. There was a knock at the door...'
              the shortest SF-story ever, by Fredric Brown.


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