Thread View: news.software.nntp
3 messages
3 total messages
Started by David Carmean
Fri, 21 Nov 1997 00:00
23-bit history patch?
Author: David Carmean
Date: Fri, 21 Nov 1997 00:00
Date: Fri, 21 Nov 1997 00:00
41 lines
1979 bytes
1979 bytes
Not really, but I'm having a problem with INN-1.5.1 (as included with the latest CNFS snapshot): I'm working with snap.971012 on Solaris 2.5.1. I compiled DBZ (the bundled version) with -DMMAP, but somewhere in the night when history grew larger than 2^23 bytes, it appears, the hishave() times went all to hell, increasing by about ten times. The first hours running were fast as all get-out, with artwrite() times of 5-7 mSec, and hishave() times in the hundreds of microseconds. But this morning, hishave() times are on the order of four seconds, and truss shows that all innd is doing is seeking in the history file. mmap works under Solaris 2.5.1, doesn't it? My buffers are mmapped block devices instead of UFS files, and that seems to work fine. Where did I screw up? Is this a forehead-slapper? I couldn't come up with anything on dejanews. Thanks. -- David Carmean <dlc@avtel.net> Avtel Communications, Santa Barbara, CA +1-805-730-7740 Opinions herein are those of the author only, unless otherwise noted "Are you now, or have you ever been?" --George Lucas, THX-1138 -- David Carmean <dlc@avtel.net> Avtel Communications, Santa Barbara, CA +1-805-730-7740 Opinions herein are those of the author only, unless otherwise noted "Karma Police, arrest this man!" --Radiohead
Re: 23-bit history patch?
Author: Requests for Further Spamming
Date: Fri, 21 Nov 1997 00:00
Date: Fri, 21 Nov 1997 00:00
71 lines
3907 bytes
3907 bytes
On 21 Nov 1997, David Carmean wrote:
23-bit history patch? What OS needs that? He wonders idly...
> Not really, but I'm having a problem with INN-1.5.1 (as included with
> the latest CNFS snapshot):
>
> I'm working with snap.971012 on Solaris 2.5.1. I compiled DBZ (the
> bundled version) with -DMMAP, but somewhere in the night when history
> grew larger than 2^23 bytes, it appears, the hishave() times went
> all to hell, increasing by about ten times.
I've run conventional 32-bit DBZ compiled both with and without -DMMAP
and noted the difference on the old Linux machine. The results were that
the size of the innd process was not significantly different for either
configuration. Also, history lookups didn't change much either. The only
thing which changed significantly for me was the history write times,
which were drastically reduced. With the same size history files, this
was enough to boost me from 70% idle to 80% idle, taking a limited feed.
However, I did note that as I let my history file grow in size from my
initial goal of keeping it under 67M in size, that the time for each
lookup increased by a factor of about 6 or so (+/-10) when it had doubled
in size to 130M. I never saw a sudden jump, although of necessity, as the
text file grew in size, the .pag database temporarily grew significantly
larger than planned until the next expire rebuilt it.
Do you really mean 2^23 bytes? That's pretty small. That's 8 Megs.
Even my 486/66 with 16M RAM was flying with a larger history than that.
By default, a fresh installation of traditional INN creates a .pag
database that should be able to handle a text file of 2^24 bytes, if I
recall. That's not much for a full feed nowadays, but should be more than
adequate for your 8Meg history file.
> The first hours running were fast as all get-out, with artwrite() times
> of 5-7 mSec, and hishave() times in the hundreds of microseconds.
This was for a fresh install, presumably.
> this morning, hishave() times are on the order of four seconds
How many incoming feeds? And are you trying to carry a full feed?
I've not had a problem with a limited feed, and the only crippling thing
for me was expire once I reached a certain size of the history files for
minimal amounts of RAM which I hope you do not have. However, while the
conventional DBZ code doesn't have problems with a limited number of
lookups (few incoming feeds) or limited partial feeds, it just doesn't
scale too well for lotsa incoming feeds and a large history file. But
even with underpowered hardware, you shouldn't see any problems with CNFS
until you're well over your present history size, say, more than 2^27
bytes.
> Where did I screw up? Is this a forehead-slapper?
Do you really mean 2^23 bytes, or 2^29 or something else? Have I
asked this yet? Anyway, check the usual suspects: is the .pag database
much larger than it should be, are you saving duplicate message IDs, even
see what difference not adding -DMMAP and recompiling might make. And
when expire rebuilds the .pag file, see if things suddenly get better.
Barry Bouwsma
Just how big was your history file again?
Re: 23-bit history patch?
Author: David Carmean
Date: Mon, 24 Nov 1997 00:00
Date: Mon, 24 Nov 1997 00:00
63 lines
3154 bytes
3154 bytes
Requests for Further Spamming <abuse@coredump.int.tele.dk> wrote: : On 21 Nov 1997, David Carmean wrote: : > I'm working with snap.971012 on Solaris 2.5.1. I compiled DBZ (the : > bundled version) with -DMMAP, but somewhere in the night when history : > grew larger than 2^23 bytes, it appears, the hishave() times went : > all to hell, increasing by about ten times. : I've run conventional 32-bit DBZ compiled both with and without -DMMAP : and noted the difference on the old Linux machine. Didn't seem to help here, or whatever help it might have been was lost within my other problem. : Do you really mean 2^23 bytes? That's pretty small. That's 8 Megs. : Even my 486/66 with 16M RAM was flying with a larger history than that. Yes, I do mean 8MB. Kinda play on previous posts about the 64-bit patches. : > this morning, hishave() times are on the order of four seconds : How many incoming feeds? And are you trying to carry a full feed? At that time, it was two feeds, of about 10,000 and 20,000 groups. But it was from the two over-stressed servers that this system is going to replace, so it was only seeing about 1/3 the volume of a good full feed. : > Where did I screw up? Is this a forehead-slapper? : Do you really mean 2^23 bytes, or 2^29 or something else? Have I : asked this yet? Anyway, check the usual suspects: is the .pag database : much larger than it should be, are you saving duplicate message IDs, even : see what difference not adding -DMMAP and recompiling might make. And : when expire rebuilds the .pag file, see if things suddenly get better. Thanks for the tips. Actually, I was forced to go with Scott's accellerator option and eat up those 32MB of RAM, and put the thing into production, 'cause one of my other boxes died. Runs great with this, but it is starting to swap. Once I get a recent FreeBSD version on the other box that has a working mmap(), then I'll get to try this all there, and then back on Solaris again. : Barry Bouwsma : Just how big was your history file again? Yup, that small. It's at about 140 MB now, with about 8 MB .pag file. innd is 55M, with 37M resident. Now about those >100 MB innxmits.... -- David Carmean <dlc@avtel.net> Avtel Communications, Santa Barbara, CA +1-805-730-7740 Opinions herein are those of the author only, unless otherwise noted "Karma Police, arrest this man!" --Radiohead
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