Thread View: news.software.nntp
15 messages
15 total messages
Started by Thomas
Thu, 12 Dec 2002 21:52
INN history tuning dilemma
Author: Thomas
Date: Thu, 12 Dec 2002 21:52
Date: Thu, 12 Dec 2002 21:52
30 lines
2106 bytes
2106 bytes
I have the following dilemma: First, if the history gets too big, performance seems to suffer as other things like CNFS buffer bits get pushed out of RAM. And to keep history small, I want to set 'remembertrash' to false. But then, I would receive unwanted articles from all peers, greatly increasing wasted bandwidth. Now, I could stand the occasional duplicated refused article. But I do not think INN has a possibility to expire these in a different manner. Or has it? It would be great if history expiry could work based on the storage class that was originally used for the article. Then, one could set up something like: - keep articles for a few hours on a feeder - keep the history for them for 5 days, with artcutoff set to 5. - keep entries for trash around for just 1 day. If they get received again we just drop them anyway. Any chance? Otherwise it is too tempting to lower /remember/ to something lower than the cutoff, have the reader machines do the rejecting of duplicates that may occur, and hope not too many old articles start flowing around. Thomas
Re: INN history tuning dilemma
Author: Jeffrey M. Vinocur
Date: Fri, 13 Dec 2002 00:38
Date: Fri, 13 Dec 2002 00:38
40 lines
2069 bytes
2069 bytes
In article <Py7K9.814$3G4.2389@amstwist00>, Thomas <zak@spam.invalid> wrote: > >First, if the history gets too big, performance seems to suffer >as other things like CNFS buffer bits get pushed out of RAM. Are you sure that's the reason? Perhaps you've overflowed the dbz hashtable. >to keep history small, I want to set 'remembertrash' to false. I think it would be better to drop /remember/ way down than to do that. >Now, I could stand the occasional duplicated refused article. Rejected, you mean? >But I do not think INN has a possibility to expire these in a >different manner. Or has it? > >It would be great if history expiry could work based on the >storage class that was originally used for the article. > >Then, one could set up something like: > >- keep articles for a few hours on a feeder >- keep the history for them for 5 days, with artcutoff set to 5. >- keep entries for trash around for just 1 day. If they get received again we >just drop them anyway. This is making my head hurt. Somebody else? -- Jeffrey M. Vinocur jeff@litech.org
Re: INN history tuning dilemma
Author: Mark Hittinger
Date: Fri, 13 Dec 2002 03:01
Date: Fri, 13 Dec 2002 03:01
17 lines
1607 bytes
1607 bytes
Thomas <zak@spam.invalid> writes: >like CNFS buffer bits get pushed out of RAM. And to keep history small, I want >to set 'remembertrash' to false. >But then, I would receive unwanted articles from all peers, greatly increasing >wasted bandwidth. If you carry a smaller set of groups then you need to ask your peers to mask out some of the groups you don't want. If you carry a regular set of groups then the spam and associated cancels are going to have a far greater impact on your history size than trash. Later Mark Hittinger bugs@pu.net
Re: INN history tuning dilemma
Author: Russ Allbery
Date: Fri, 13 Dec 2002 03:03
Date: Fri, 13 Dec 2002 03:03
26 lines
1954 bytes
1954 bytes
Thomas <zak@spam.invalid> writes:
> It would be great if history expiry could work based on the storage
> class that was originally used for the article.
> Then, one could set up something like:
> - keep articles for a few hours on a feeder
> - keep the history for them for 5 days, with artcutoff set to 5.
> - keep entries for trash around for just 1 day. If they get received again
> we just drop them anyway.
> Any chance?
After the article expires from the spool, the next run of expire will
remove its token from the history file. After that happens, the history
expiration mechanism has no way of distinguishing that entry from any of
the junk entries. That makes this impossible with the current INN
architecture, I fear.
--
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: INN history tuning dilemma
Author: Andrew - Supernews
Date: Fri, 13 Dec 2002 03:10
Date: Fri, 13 Dec 2002 03:10
13 lines
1290 bytes
1290 bytes
In article <Py7K9.814$3G4.2389@amstwist00>, Thomas wrote: > I have the following dilemma: > > First, if the history gets too big, performance seems to suffer as other > things like CNFS buffer bits get pushed out of RAM. how big are your history files, exactly, and how many entries? How much RAM do you have? -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services
Re: INN history tuning dilemma
Author: Thomas
Date: Fri, 13 Dec 2002 10:19
Date: Fri, 13 Dec 2002 10:19
15 lines
1618 bytes
1618 bytes
Russ Allbery wrote: > After the article expires from the spool, the next run of expire will > remove its token from the history file. After that happens, the history > expiration mechanism has no way of distinguishing that entry from any of > the junk entries. That makes this impossible with the current INN > architecture, I fear. I was thinking a kind of dummy token could perhaps be inserted in history, but I don't know what the overhead would be. Thomas
Re: INN history tuning dilemma
Author: Thomas
Date: Fri, 13 Dec 2002 10:37
Date: Fri, 13 Dec 2002 10:37
28 lines
1975 bytes
1975 bytes
Andrew - Supernews wrote: > how big are your history files, exactly, and how many entries? How much > RAM do you have? The situation when I had problems does not persist any more, but currently the history is 350322495 bytes. The file has 5396055 lines. This is in the new situation, with remember set to 2. Performance seems to be good now. At the time I had occasional performance problems, history was around 1 GB and artcutoff/remember were set to 10 days. RAM is 2 GB. What do people actually use for /remember/ and for artcutoff? History.dir contains: dbz 6 9445713 14 66 5409056 5627408 5512791 5296905 6297142 5889599 5485615 5379670 4837106 4817334 4852606 I run 4 expires per day. INN is configured to not use tagged hash. Thomas
Re: INN history tuning dilemma
Author: Andrew - Supernews
Date: Fri, 13 Dec 2002 12:25
Date: Fri, 13 Dec 2002 12:25
32 lines
2140 bytes
2140 bytes
In article <hLiK9.911$3G4.2521@amstwist00>, Thomas wrote: > Andrew - Supernews wrote: > >> how big are your history files, exactly, and how many entries? How much >> RAM do you have? > > The situation when I had problems does not persist any more, but currently > the history is 350322495 bytes. The file has 5396055 lines. from the point of view of RAM usage, it's the size of the dbz files that matters rather than the size of the history proper. On a transit system, almost all history lookups should either find a nonexistent entry (in which case the history data file should not be accessed) or should find a cached entry (ditto). It's very important with dbz that you don't end up overflowing the tables; this is a significant performance hit. > RAM is 2 GB. > > What do people actually use for /remember/ and for artcutoff? well, we don't run INN and we have a different history architecture, but we have no problem at all with a 32-million-entry history on a 2GB transit machine. (with our design that means about 384M of hashtables, which is probably in the same ballpark as dbz for a history of that size). -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services
Re: INN history tuning dilemma
Author: Thomas
Date: Fri, 13 Dec 2002 16:05
Date: Fri, 13 Dec 2002 16:05
33 lines
2597 bytes
2597 bytes
Andrew - Supernews wrote: > from the point of view of RAM usage, it's the size of the dbz files that > matters rather than the size of the history proper. > > On a transit system, almost all history lookups should either find a > nonexistent entry (in which case the history data file should not be > accessed) or should find a cached entry (ditto). Maybe I should increase the cache size a bit more. Good insight, that the history data itself will not be used much this way. > It's very important with dbz that you don't end up overflowing the tables; > this is a significant performance hit. I think (hope?) expire takes care of that by rebuilding. Maybe the occasional surges of incompletes are caused by not having enough peers. Or perhaps using a single feeder to centrally number articles and handle peerings is not such a clever idea - if it hiccups, it probably has a hard time catching up with all the articles being offered asynchronously. And if some peer hiccups, it will be busy feeding that peer or a peer of that. Hmmm - adding two peering servers may be somewhat of a hassle. And whether that will be the solution? Just as a data point for all onlookers: history is now 354 megs, history.hash is 57 megs, and history.index is 76 megs. Thomas
Re: INN history tuning dilemma
Author: Russ Allbery
Date: Fri, 13 Dec 2002 18:37
Date: Fri, 13 Dec 2002 18:37
14 lines
1655 bytes
1655 bytes
Thomas <zak@spam.invalid> writes:
> Just as a data point for all onlookers: history is now 354 megs,
> history.hash is 57 megs, and history.index is 76 megs.
That's tiny. You really shouldn't be having memory pressure problems with
that sort of history size and 2GB of RAM.
--
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: INN history tuning dilemma
Author: Thomas
Date: Fri, 13 Dec 2002 18:42
Date: Fri, 13 Dec 2002 18:42
14 lines
1676 bytes
1676 bytes
Russ Allbery wrote: > That's tiny. You really shouldn't be having memory pressure problems with > that sort of history size and 2GB of RAM. This is the tuned version. I'll see what happens. The previous was 3 times as big. Should not be a problem still, I'd think. Thomas
Re: INN history tuning dilemma
Author: Jeffrey M. Vinocur
Date: Fri, 13 Dec 2002 18:58
Date: Fri, 13 Dec 2002 18:58
33 lines
2193 bytes
2193 bytes
In article <%ynK9.1009$3G4.2233@amstwist00>, Thomas <zak@spam.invalid> wrote: >Andrew - Supernews wrote: > >> It's very important with dbz that you don't end up overflowing the tables; >> this is a significant performance hit. > >I think (hope?) expire takes care of that by rebuilding. I don't really understand dbz, but I don't think so, or people wouldn't fuss about it so much. >Maybe the occasional surges of incompletes are caused by not >having enough peers. Or perhaps using a single feeder to >centrally number articles and handle peerings is not such a >clever idea - if it hiccups, it probably has a hard time >catching up with all the articles being offered asynchronously. Why don't you investigate a bit more. Ask your peers if they're running a backlog. Is the amount of news you're expecting reasonably able to fit down your pipe? >Hmmm - adding two peering servers may be somewhat of a hassle. >And whether that will be the solution? Probably adding more memory and/or bandwidth to the existing one would be better. -- Jeffrey M. Vinocur jeff@litech.org
Re: INN history tuning dilemma
Author: Thomas
Date: Fri, 13 Dec 2002 19:55
Date: Fri, 13 Dec 2002 19:55
72 lines
3824 bytes
3824 bytes
Jeffrey M. Vinocur wrote: > In article <%ynK9.1009$3G4.2233@amstwist00>, Thomas wrote: > > >Andrew - Supernews wrote: > > > > > >>It's very important with dbz that you don't end up overflowing the tables; > >>this is a significant performance hit. > > > >I think (hope?) expire takes care of that by rebuilding. > > > I don't really understand dbz, but I don't think so, or people > wouldn't fuss about it so much. From old postings I dug up the following info. Things are done rather cleverly, I must say. Below is my history.dir: $ cat history.dir dbz 6 9445713 14 66 5765115 5698800 5627408 5512791 5296905 6297142 5889599 5485615 5379670 ... This says the has table is 9445713 entries in size, and 5765115 entries are in use. The other numbers on the second line are a size history. At expire, the largest number is used to deterimine hash size. Now that I think about it: there are actually 10 of these numbers. If one does a daily expire, this keeps a history of more than a week, remembering variations that long ago. If the hash is too small, and more than 10 collisions occur, the hash is expanded into a history.pag file. That file is a sign of a problem, but it doesn't exist on my system. So the hash size matters mostly when setting up a new server and trying to backfill that in one go. > >Maybe the occasional surges of incompletes are caused by not > >having enough peers. Or perhaps using a single feeder to > >centrally number articles and handle peerings is not such a > >clever idea - if it hiccups, it probably has a hard time > >catching up with all the articles being offered asynchronously. > > > Why don't you investigate a bit more. Ask your peers if they're > running a backlog. Is the amount of news you're expecting > reasonably able to fit down your pipe? Yup, I should dive into that. The pipe is big enough, and what I'm missing when things go wrong is about 3% of articles I think. > Probably adding more memory and/or bandwidth to the existing one > would be better. System tuning time :) Maybe Linux isn't that good a choice still, memory management wise. Disks should be coping well... they manage to write the bulk of the data in bursts and are fairly idle in between. CPU is a bit busy to my taste, but there is more than 50% idle time. Outgoing bandwidth is around 200 megabits/second; incoming is in the 60s most of the time. And maybe things 'just work' after the latest tuning. Thomas
Re: INN history tuning dilemma
Author: Russ Allbery
Date: Fri, 13 Dec 2002 20:16
Date: Fri, 13 Dec 2002 20:16
23 lines
2062 bytes
2062 bytes
Thomas <zak@spam.invalid> writes:
> If the hash is too small, and more than 10 collisions occur, the hash is
> expanded into a history.pag file. That file is a sign of a problem, but
> it doesn't exist on my system.
100, actually. It was changed a while back because overflows destroy
performance badly.
> System tuning time :) Maybe Linux isn't that good a choice still, memory
> management wise.
One trick that you can do in Solaris is to run a process that maps the
history tables and then locks them in memory with mlock(). There's a
program in contrib in INN CURRENT from Alex Kiernan that does that. I
don't know if Linux has the same trick available.
--
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: INN history tuning dilemma
Author: Curt Welch
Date: Fri, 13 Dec 2002 22:55
Date: Fri, 13 Dec 2002 22:55
15 lines
1990 bytes
1990 bytes
Russ Allbery <rra@stanford.edu> wrote: > One trick that you can do in Solaris is to run a process that maps the > history tables and then locks them in memory with mlock(). There's a > program in contrib in INN CURRENT from Alex Kiernan that does that. I > don't know if Linux has the same trick available. I've used a "cat history > /dev/null" trick from cron every 5 minutes to "encourge" more history file blocks to stay in-core on systems that really didn't have enough memory to do this on it's own. This was not with inn however so "history" probably isn't the correct file name to use with inn. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
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