🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
15 messages
15 total messages Started by Ronald Hello Thu, 03 Feb 2000 00:00
Confused about hiscachesize (inn.conf)
#43876
Author: Ronald Hello
Date: Thu, 03 Feb 2000 00:00
31 lines
1737 bytes
Hi,

I'm running INN 2.2.2 on a Solaris 2.6 machine.

Hiscachesize is default 0. The manual page (inn.conf) states that
there will only be a history-cache when you set hiscachesize to
a positive number. But innreport gives History cache statistics
even when hiscachesize is set to 0.
Are these two different things? Or do the manual pages need an
update? Can anyone tell me the real story about History caching
and hiscachesize?

Hmm. Now I'm here anyway ... another one.
What's the story about noresendid (incoming.conf)? The term
seems to suggest that noresendid: false means you send 431
responses, the comment in incoming.conf (and the manual page)
seems to suggest you have to set noresendid to true to send
431 responses. So what is the better setting and what does
it do?

Regards,

Ronald.

-- 
// Ronald Hello  (Ronald.Hello@cs.utwente.nl)
// University of Twente
// Department of Computer Science
// The Netherlands

Re: Confused about hiscachesize (inn.conf)
#43864
Author: Ronald Hello
Date: Thu, 03 Feb 2000 00:00
32 lines
2020 bytes
In article <87bmsu$gvk$1@ares.cs.utwente.nl>,
	hello@cs.utwente.nl (Ronald Hello) writes:
> In article <yliu06si2c.fsf@windlord.stanford.edu>,
> 	Russ Allbery <rra@stanford.edu> writes:
>> 
>> It will report timer statistics anyway since the timer isn't disabled when
>> the cache is turned off (like it probably should be).  It shouldn't
>> generate hit/miss statistics; if it is, then something somewhere is
>> turning the cache on.
>> 
>> Anyway, unless you have a very small site or only one incoming feed, you
>> almost certainly want the history cache.
> 
> I'll leave it off for the moment, to make sure it generates hit/miss
> statistics with hiscachesize 0. After that I'll put it on again and
> will play a little with the value.

As promised ... (I should learn to look at the numbers instead of
the percentages)
With hiscachesize: 0 it registers everything either as 'Do not exist'
or as 'Cache misses'.
I'll put the value on 512 now.

Ronald.

-- 
// Ronald Hello  (Ronald.Hello@cs.utwente.nl)
// University of Twente
// Department of Computer Science
// The Netherlands

Re: Confused about hiscachesize (inn.conf)
#43867
Author: Russ Allbery
Date: Thu, 03 Feb 2000 00:00
13 lines
1213 bytes
Ronald Hello <hello@cs.utwente.nl> writes:

> As promised ... (I should learn to look at the numbers instead of the
> percentages) With hiscachesize: 0 it registers everything either as 'Do
> not exist' or as 'Cache misses'.  I'll put the value on 512 now.

Thanks, I'll fiddle with this when we look at redoing the history API, if
not before.

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

Re: Confused about hiscachesize (inn.conf)
#43871
Author: Andrew Gierth
Date: Thu, 03 Feb 2000 00:00
23 lines
1816 bytes
>>>>> "Ronald" == Ronald Hello <hello@cs.utwente.nl> writes:

 Ronald> Hmm. Now I'm here anyway ... another one.
 Ronald> What's the story about noresendid (incoming.conf)? The term
 Ronald> seems to suggest that noresendid: false means you send 431
 Ronald> responses, the comment in incoming.conf (and the manual page)
 Ronald> seems to suggest you have to set noresendid to true to send
 Ronald> 431 responses. So what is the better setting and what does it
 Ronald> do?

431 responses are only sent if noresendid is set to false.

Which setting is better depends on what your peers do when you send
them a 431. Diablo really fucks up when you do that, it responds with
an immediate TAKETHIS for the article, which is the worst possible
thing it could do (because the 431 implies that the article is already
incoming from some other peer) and will waste shedloads of bandwidth,
so always set "noresendid: true" for any Diablo peer.

-- 
Andrew.

Re: Confused about hiscachesize (inn.conf)
#43873
Author: Russ Allbery
Date: Thu, 03 Feb 2000 00:00
65 lines
3785 bytes
Ronald Hello <hello@cs.utwente.nl> writes:

> Hiscachesize is default 0. The manual page (inn.conf) states that there
> will only be a history-cache when you set hiscachesize to a positive
> number. But innreport gives History cache statistics even when
> hiscachesize is set to 0.

It will report timer statistics anyway since the timer isn't disabled when
the cache is turned off (like it probably should be).  It shouldn't
generate hit/miss statistics; if it is, then something somewhere is
turning the cache on.

Anyway, unless you have a very small site or only one incoming feed, you
almost certainly want the history cache.

> What's the story about noresendid (incoming.conf)? The term seems to
> suggest that noresendid: false means you send 431 responses, the comment
> in incoming.conf (and the manual page) seems to suggest you have to set
> noresendid to true to send 431 responses. So what is the better setting
> and what does it do?

Yet more evidence that as a general rule of thumb options should *always*
be phrased as positive rather than negated descriptions, since otherwise
you're constantly dealing with double-negatives.  :/

The behavior of INN is as follows:

        noresendid == false     431 replies (deferrals) are sent
        noresendid == true      431 replies (deferrals) are NOT sent

You want to set noresendid to true for Diablo peers, at least older
versions, since they do precisely the wrong thing with deferrals.

To understand what the setting is, consider the following situation.  You
have two incoming peers, both of which are getting ready to offer you an
article in streaming mode.  The first sends you a CHECK <message-id>
message, to which you respond affirmatively (i.e., you don't already have
the article).  Then, before that peer sends you the article with TAKETHIS,
you receive a CHECK <message-id> from the second peer for the same
message.  What response do you send to the second peer?

If deferrals are enabled (noresendid == false), you'll send a 431 deferral
telling that peer that you may or may not want the article; try again
later.  Chances are that when it retries, you will have received the
article from the first peer and you'll just refuse it.  But if the first
peer dies before it ever sends you the article, this way you can still get
it from the second peer.

If deferrals are disabled, I believe you'll refuse the article from the
second peer, which means there's a possibility you'll lose news if the
first peer dies before sending you the article.

Diablo, upon receiving a deferral, turns around and immediately sends the
article via TAKETHIS, which is basically exactly what you don't want.
(Chances are extremely high in practice that the first peer will come
through with the article.)

I've added an explanation of this to the INN FAQ, which I need to post
more often.  Thanks for reminding me of that; I'll post it now and then
set it up for autoposting (I forgot to do that previously).

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

Re: Confused about hiscachesize (inn.conf)
#43878
Author: Russ Allbery
Date: Thu, 03 Feb 2000 00:00
11 lines
1109 bytes
Ronald Hello <hello@cs.utwente.nl> writes:

> FAQ maintenance is hard and a lot of work. Just saw a FAQ that said INN
> 2.2.1 was the latest version. I'm pretty sure it's INN 2.2.2 ...

Thanks, updated.

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

Re: Confused about hiscachesize (inn.conf)
#43883
Author: Ronald Hello
Date: Thu, 03 Feb 2000 00:00
70 lines
3194 bytes
In article <yliu06si2c.fsf@windlord.stanford.edu>,
	Russ Allbery <rra@stanford.edu> writes:
> 
> It will report timer statistics anyway since the timer isn't disabled when
> the cache is turned off (like it probably should be).  It shouldn't
> generate hit/miss statistics; if it is, then something somewhere is
> turning the cache on.
> 
> Anyway, unless you have a very small site or only one incoming feed, you
> almost certainly want the history cache.

I'll leave it off for the moment, to make sure it generates hit/miss
statistics with hiscachesize 0. After that I'll put it on again and
will play a little with the value.

> 
> Yet more evidence that as a general rule of thumb options should *always*
> be phrased as positive rather than negated descriptions, since otherwise
> you're constantly dealing with double-negatives.  :/

And English is hard enough as it is ...

> 
> The behavior of INN is as follows:
> 
>         noresendid == false     431 replies (deferrals) are sent
>         noresendid == true      431 replies (deferrals) are NOT sent
> 
> You want to set noresendid to true for Diablo peers, at least older
> versions, since they do precisely the wrong thing with deferrals.

I also saw that in Andrews answer.
Would you know what setting is better for NNTPRelay and Cyclone feeds?

> 
[snip]
I'm happy to see I understood the concept right.
;-)

Hmm. It's a nice explanation for some FAQ I think ...

> Diablo, upon receiving a deferral, turns around and immediately sends the
> article via TAKETHIS, which is basically exactly what you don't want.
> (Chances are extremely high in practice that the first peer will come
> through with the article.)

Changed that now ...

> 
> I've added an explanation of this to the INN FAQ, which I need to post
> more often.

Hmm. I should read the FAQ better :-(

> Thanks for reminding me of that; I'll post it now and then
> set it up for autoposting (I forgot to do that previously).

Thanks for the explanation (and thanks to Andrew too).
I'll let you know here if the history-cache stats still
produce hit/miss numbers with hiscachesize at 0.

Ronald.

-- 
// Ronald Hello  (Ronald.Hello@cs.utwente.nl)
// University of Twente
// Department of Computer Science
// The Netherlands

Re: Confused about hiscachesize (inn.conf)
#43884
Author: Ronald Hello
Date: Thu, 03 Feb 2000 00:00
33 lines
2035 bytes
In article <yl7lgmr16k.fsf@windlord.stanford.edu>,
	Russ Allbery <rra@stanford.edu> writes:
> Ronald Hello <hello@cs.utwente.nl> writes:
> 
>> Would you know what setting [of noresendid] is better for NNTPRelay and
>> Cyclone feeds?
> 
> Some of my previous experiments seemed to indicate that both of those
> servers treat a deferral as equivalent to a refusal (meaning that it
> doesn't matter), but I didn't investigate further and am not certain of
> that.  I'm pretty sure that either it doesn't matter or they do the right
> thing, though; I've not seen any problems.

Well, with you and Andrew agreeing on that I think I can safely
use noresendid: false on both Cyclone and NNTPRelay feeds ...

>> Hmm. I should read the FAQ better :-(
> 
> I need to add more stuff to it.  :)

FAQ maintenance is hard and a lot of work. Just saw a FAQ that
said INN 2.2.1 was the latest version. I'm pretty sure it's
INN 2.2.2 ...

Ronald.

-- 
// Ronald Hello  (Ronald.Hello@cs.utwente.nl)
// University of Twente
// Department of Computer Science
// The Netherlands

Re: Confused about hiscachesize (inn.conf)
#43885
Author: Russ Allbery
Date: Thu, 03 Feb 2000 00:00
19 lines
1383 bytes
Ronald Hello <hello@cs.utwente.nl> writes:

> Would you know what setting [of noresendid] is better for NNTPRelay and
> Cyclone feeds?

Some of my previous experiments seemed to indicate that both of those
servers treat a deferral as equivalent to a refusal (meaning that it
doesn't matter), but I didn't investigate further and am not certain of
that.  I'm pretty sure that either it doesn't matter or they do the right
thing, though; I've not seen any problems.

> Hmm. I should read the FAQ better :-(

I need to add more stuff to it.  :)

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

Re: Confused about hiscachesize (inn.conf)
#43912
Author: Robert Dinse
Date: Sat, 05 Feb 2000 00:00
23 lines
1698 bytes
In article <87c5uv$n3r$1@ares.cs.utwente.nl>, hello@cs.utwente.nl (Ronald Hello) writes:
> 
> As promised ... (I should learn to look at the numbers instead of
> the percentages)
> With hiscachesize: 0 it registers everything either as 'Do not exist'
> or as 'Cache misses'.
> I'll put the value on 512 now.
> 
> Ronald.

     For what it's worth, I've found 16384 to be able optimal, I get about
99% hit rate with that value, and if I go above about 24000 the news
crunching performance actually seems to get worse (maybe because it's
pushing other things out of memory).  That's under Linux on a machine with
384MB of physical RAM. 


-- 
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
 Eskimo North Shell Access, Web Hosting, 56K Internet Access, Two-Week Trial!
   See our web site: http://www.eskimo.com (206) 361-1161 or (800) 246-6874.

Re: Confused about hiscachesize (inn.conf)
#43918
Author: Ronald Hello
Date: Mon, 07 Feb 2000 00:00
25 lines
1731 bytes
In article <87hlq8$qd4$1@eskinews.eskimo.com>,
	nanook@eskimo.com (Robert Dinse) writes:
> 
>      For what it's worth, I've found 16384 to be able optimal, I get about
> 99% hit rate with that value, and if I go above about 24000 the news
> crunching performance actually seems to get worse (maybe because it's
> pushing other things out of memory).  That's under Linux on a machine with
> 384MB of physical RAM. 

I got the same number from one of my peers. They also run Linux. So
instead of increasing the number slowly I'll take larger steps ...

Last question:
Positive hits // negative hits ?
Is e negative hit a `I have the MID and don't have/want the article'?

Ronald.

-- 
// Ronald Hello  (Ronald.Hello@cs.utwente.nl)
// University of Twente
// Department of Computer Science
// The Netherlands

Re: Confused about hiscachesize (inn.conf)
#43924
Author: Russ Allbery
Date: Mon, 07 Feb 2000 00:00
14 lines
1245 bytes
Ronald Hello <hello@cs.utwente.nl> writes:

> Last question:
> Positive hits // negative hits ?
> Is e negative hit a `I have the MID and don't have/want the article'?

A positive hit says that the message ID is already in your history file
and that fact was cached.  A negative hit says that the message ID
*wasn't* already in your history file and that fact was cached.  IIRC.

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

Re: Confused about hiscachesize (inn.conf)
#43933
Author: Russ Allbery
Date: Mon, 07 Feb 2000 00:00
24 lines
1924 bytes
Ronald Hello <hello@cs.utwente.nl> writes:

> Now I'm even more confused.

> Seems I interpreted `Cache misses' and `Do not exist' wrong. I thought
> `Cache misses' ment it's in the history file but not in the cache and
> `Do not exist' what you describe as a negative hit. So what exactly is
> the difference between `Negative hit' and `Do not exist'?

A negative hit means that the message ID isn't in history and that fact is
stored in the cache.  A cache miss indicates that the message ID *is* in
the history file but wasn't in the history cache.  A dne or "does not
exist" indicates that the message ID wasn't in the history cache and
wasn't in the history file; this represents a brand new article (in other
words a history lookup that would have been impossible for any cache, no
matter how well-designed, to catch).

So the idea is that dnes are the misses that you're going to have to take,
and the ideal cache will have zero cache misses but still have some dnes.

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

Re: Confused about hiscachesize (inn.conf)
#43949
Author: Ronald Hello
Date: Tue, 08 Feb 2000 00:00
28 lines
1922 bytes
In article <ylaelczdyf.fsf@windlord.stanford.edu>,
	Russ Allbery <rra@stanford.edu> writes:
> Ronald Hello <hello@cs.utwente.nl> writes:
> 
>> Last question:
>> Positive hits // negative hits ?
>> Is e negative hit a `I have the MID and don't have/want the article'?
> 
> A positive hit says that the message ID is already in your history file
> and that fact was cached.  A negative hit says that the message ID
> *wasn't* already in your history file and that fact was cached.  IIRC.

Now I'm even more confused.
Seems I interpreted `Cache misses' and `Do not exist' wrong. I
thought `Cache misses' ment it's in the history file but not
in the cache and `Do not exist' what you describe as a
negative hit. So what exactly is the difference between
`Negative hit' and `Do not exist'?

Ronald.

-- 
// Ronald Hello  (Ronald.Hello@cs.utwente.nl)
// University of Twente
// Department of Computer Science
// The Netherlands

Re: Confused about hiscachesize (inn.conf)
#43957
Author: Ronald Hello
Date: Tue, 08 Feb 2000 00:00
39 lines
2504 bytes
In article <ylhffknndv.fsf@windlord.stanford.edu>,
	Russ Allbery <rra@stanford.edu> writes:
> Ronald Hello <hello@cs.utwente.nl> writes:
> 
>> Now I'm even more confused.
> 
>> Seems I interpreted `Cache misses' and `Do not exist' wrong. I thought
>> `Cache misses' ment it's in the history file but not in the cache and
>> `Do not exist' what you describe as a negative hit. So what exactly is
>> the difference between `Negative hit' and `Do not exist'?
> 
> A negative hit means that the message ID isn't in history and that fact is
> stored in the cache.

Hmm. In your previous explanation I read `stored' as an action, but
it is `stored' as in `found, it is in the cache'. That clears things
up for me.

> A cache miss indicates that the message ID *is* in
> the history file but wasn't in the history cache.  A dne or "does not
> exist" indicates that the message ID wasn't in the history cache and
> wasn't in the history file; this represents a brand new article (in other
> words a history lookup that would have been impossible for any cache, no
> matter how well-designed, to catch).
> 
> So the idea is that dnes are the misses that you're going to have to take,
> and the ideal cache will have zero cache misses but still have some dnes.

Thanks for all the explaining.

Ronald.

-- 
// Ronald Hello  (Ronald.Hello@cs.utwente.nl)
// University of Twente
// Department of Computer Science
// The Netherlands

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