Thread View: news.software.nntp
66 messages
66 total messages
Page 2 of 2
Started by D. Stussy
Tue, 28 Jul 2009 01:11
Page 2 of 2 • 66 total messages
Re: INN's expire program and memory usage:
Author: Alexander Bartolich
Date: Fri, 14 Aug 2009 03:41
Date: Fri, 14 Aug 2009 03:41
47 lines
3486 bytes
3486 bytes
NPG wrote: > [...] > Say I have a question about NNTP software. > I see a group, news.software.nntp that might contain the answer. > I log into my news box and type > > ctlinnd newgroup news.software.nntp > > It gets added to the active file. > I start accepting articles from peers that may be already feeding me > that group. If a peer sends you an articles to a group that does not exist then 1. the article will be rejected with reason "Unwanted newsgroup" 2. the message-ID is added to the history file 3. since the article does not exist in spool it will be removed from the history according to the value of /remember/ > When I read the new group all I'll see are articles from the time I > typed ctlinnd to now. True. > So I have a cron job that runs newsx to pull the group from my ISP. > This feeds it to the server which only accepts stuff from the last year, > since artcutoff is 365. > > Now when I read the group, I'll see articles from the last year. Well, if your history is filled with unwanted-newsgroup rejects then you'll see only the time frame between /remember/ and artcutoff. > [...] > When I first started using INN the newsx way was how I got all my news. With this setup you can indeed fetch the stuff from last year. > Then I started peering to get some groups that my ISP wasn't carrying. > I hope that clarifies things. With this setup your peers have to be extremely careful. -- BrĂĽder, in die Tonne die Freiheit, BrĂĽder, ein Stoppschild davor. Egal was die Schwarzen Verlangen Rufen wir: Ja! Brav im Chor.
Re: INN's expire program and memory usage:
Author: Russ Allbery
Date: Fri, 14 Aug 2009 03:53
Date: Fri, 14 Aug 2009 03:53
14 lines
2256 bytes
2256 bytes
Alexander Bartolich <alexander.bartolich@gmx.at> writes:
> If a peer sends you an articles to a group that does not exist then
> 1. the article will be rejected with reason "Unwanted newsgroup"
> 2. the message-ID is added to the history file
Well, you can disable that behavior (remembertrash in inn.conf). I was
assuming that's what he was doing.
--
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's expire program and memory usage:
Author: Julien ÉLIE
Date: Fri, 14 Aug 2009 08:12
Date: Fri, 14 Aug 2009 08:12
32 lines
2639 bytes
2639 bytes
Hi John, > I thought the problem was with documentation, which could be corrected > and/or improved without the actual program code being upgraded. Yes, the problem is with documentation. However, it is shipped with the program so up-to-date documentation comes along with a new release. Only the online documentation on Russ' web site is updated without the need of a new release. It reflects the current documentation committed in the source repository. > Others may not want to compile, and instead will wait until their distro > has been upgraded to include a newer INN upgrade. Which is as often as not done when a new upstream release comes. > But if corrected documentation is available, I certainly would want it. Online then. -- Julien ÉLIE « -- Nous parlerons quand l'interprète dormira. [Bong !] -- Il dort. On peut parler. » (Astérix)
Re: INN's expire program and memory usage:
Author: Russ Allbery
Date: Fri, 14 Aug 2009 08:18
Date: Fri, 14 Aug 2009 08:18
31 lines
2918 bytes
2918 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> writes:
> # Alternatively, agents MAY drop history records according to the date
> when the article was first seen by that agent rather than the date
> of the article. In this case, the history retention interval MUST be
> at least 24 hours longer than the cutoff interval to allow for articles
> dated in the future.
> As /remember/ currently works with the arrival time, that is to say the
> second behaviour, it MUST be 1 day more than the cutoff. So the
> documentation is wrong: artcutoff=10 => /remember/=11 at least, and not
> 10...
Yeah, that's probably true.
> Yet, wouldn't it be better to base /remember/ upon the posting/injection
> date, that is to say the first behaviour? We've seen it otherwise keeps
> articles too much time in the history file (which is a caveat not
> mentioned in USEPRO by the way).
This is a good point, and I don't recall why it's currently that way since
innd already has the posting/injection date available when it writes the
history entry. (I seem to recall there may even be some switch somewhere
to which date is used, although maybe that's only for article expiration
and not for history?)
--
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's expire program and memory usage:
Author: Julien ÉLIE
Date: Fri, 14 Aug 2009 10:06
Date: Fri, 14 Aug 2009 10:06
52 lines
3795 bytes
3795 bytes
Hi Russ,
>> As /remember/ currently works with the arrival time, that is to say the
>> second behaviour, it MUST be 1 day more than the cutoff. So the
>> documentation is wrong: artcutoff=10 => /remember/=11 at least, and not
>> 10...
>
> Yeah, that's probably true.
I shall mention it, then. Besides, it could affect everything in expire.ctl
because news.*:A:1:2:3 works the same way as for expiration.
>> Yet, wouldn't it be better to base /remember/ upon the posting/injection
>> date, that is to say the first behaviour? We've seen it otherwise keeps
>> articles too much time in the history file (which is a caveat not
>> mentioned in USEPRO by the way).
>
> This is a good point, and I don't recall why it's currently that way since
> innd already has the posting/injection date available when it writes the
> history entry. (I seem to recall there may even be some switch somewhere
> to which date is used, although maybe that's only for article expiration
> and not for history?)
expire and expireover have -p:
By default, expire[over] bases decisions on whether to remove an article
on the arrival time on the server. This means that articles may be kept
a little longer than if the decision were based on the article's posting
date. If this option is given, expiration decisions are based on the article
posting date instead. This flag is ignored if groupbaseexpiry is false.
Shouldn't we move "-p" to an inn.conf parameter? (which will be used with
consistency for article expiration and history)
"exponarrivaltime" for that parameter?
And I am rather inclined to change the default behaviour (using the
posting/injection date instead of the arrival date). I think it fits
better what a news administrator wishes to do by default.
Any comments about that?
(We already changed the default behaviour of makehistory -- generating
:bytes and :lines metadata information was not the default.)
--
Julien ÉLIE
« Rien ne serpe de courir ! » (Druides gaulois)
Re: INN's expire program and memory usage:
Author: NPG
Date: Fri, 14 Aug 2009 13:50
Date: Fri, 14 Aug 2009 13:50
12 lines
2399 bytes
2399 bytes
* Russ Allbery wrote: > Alexander Bartolich <alexander.bartolich@gmx.at> writes: > >> If a peer sends you an articles to a group that does not exist then >> 1. the article will be rejected with reason "Unwanted newsgroup" >> 2. the message-ID is added to the history file > > Well, you can disable that behavior (remembertrash in inn.conf). I was > assuming that's what he was doing. > remembertrash is set to true, so what he said sounds right.
Re: INN's expire program and memory usage:
Author: NPG
Date: Fri, 14 Aug 2009 14:35
Date: Fri, 14 Aug 2009 14:35
94 lines
4838 bytes
4838 bytes
* Alexander Bartolich wrote: > NPG wrote: >> [...] >> Say I have a question about NNTP software. >> I see a group, news.software.nntp that might contain the answer. >> I log into my news box and type >> >> ctlinnd newgroup news.software.nntp >> >> It gets added to the active file. >> I start accepting articles from peers that may be already feeding me >> that group. > > If a peer sends you an articles to a group that does not exist then > 1. the article will be rejected with reason "Unwanted newsgroup" > 2. the message-ID is added to the history file > 3. since the article does not exist in spool it will be removed > from the history according to the value of /remember/ > Ok, that makes sense. >> When I read the new group all I'll see are articles from the time I >> typed ctlinnd to now. > > True. > >> So I have a cron job that runs newsx to pull the group from my ISP. >> This feeds it to the server which only accepts stuff from the last year, >> since artcutoff is 365. >> >> Now when I read the group, I'll see articles from the last year. > > Well, if your history is filled with unwanted-newsgroup rejects then > you'll see only the time frame between /remember/ and artcutoff. > If they are both set to 365, I'll see articles from the time I typed ctlinnd to now. I'm back where I started. >> [...] >> When I first started using INN the newsx way was how I got all my news. > > With this setup you can indeed fetch the stuff from last year. > So I had it right then, >> Then I started peering to get some groups that my ISP wasn't carrying. >> I hope that clarifies things. > > With this setup your peers have to be extremely careful. > But, once I added peers, it isn't right anymore. Please explain, I want to do the "right thing" by my peers. I know I don't understand yet, but I'll keep trying to. I appreciate everyone's patience here. I'll review my current state of "mis" understanding. ** My configuration ** My initial configuration worked because newsx would not pull down groups that I wasn't carrying. When I added peers I now get and reject groups not carried, if I add one later, it may already be in history, so the newsx pull wouldn't work like I thought. I may not actually get a years worth of old news. ** History, Expiration, Etc ** 1. When an article comes in it gets accepted or rejected. If rejected its ID goes to history and stays there until remember. If accepted, it goes to spool until expired, then its ID goes to history and stays until remember. 2. If history gets to be the size of available memory your server blows up. 3. The size of history can be reduced by lowering remember. 4. If artcutoff & remember are not the same, you could get duplicate articles in your spool. ** Various setting on my server ** * expire.ctl * /remember/:365 *:A:1:365:never * inn.conf * remembertrash: true enableoverview: true groupbaseexpiry: true ovmethod: tradindexed Hope that helps
Re: INN's expire program and memory usage:
Author: Russ Allbery
Date: Fri, 14 Aug 2009 17:00
Date: Fri, 14 Aug 2009 17:00
41 lines
3429 bytes
3429 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> writes:
> expire and expireover have -p:
> By default, expire[over] bases decisions on whether to remove an
> article on the arrival time on the server. This means that articles
> may be kept a little longer than if the decision were based on the
> article's posting date. If this option is given, expiration
> decisions are based on the article posting date instead. This flag
> is ignored if groupbaseexpiry is false.
> Shouldn't we move "-p" to an inn.conf parameter? (which will be used with
> consistency for article expiration and history)
> "exponarrivaltime" for that parameter?
Well, you may want history entries and articles handled differently. The
reason why articles are expired based on arrival date instead of posting
time is that if articles are dated in the past (composed off-line, for
instance), they could get an extremely short expiration depending on the
expire time of the group and expire before anyone can read them. I think
it makes more sense as a default to keep articles around for N days from
the point from which they were first available to readers.
History retention for articles not in the spool has a different set of
concerns.
> And I am rather inclined to change the default behaviour (using the
> posting/injection date instead of the arrival date). I think it fits
> better what a news administrator wishes to do by default.
I think that for trash (articles not in the spool), we should use the
posting date rather than the arrival date, but keep using the arrival date
for article expiration.
I haven't looked at how hard this might be.
--
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's expire program and memory usage:
Author: Julien ÉLIE
Date: Sun, 16 Aug 2009 22:00
Date: Sun, 16 Aug 2009 22:00
84 lines
4696 bytes
4696 bytes
Hi Russ,
>> Shouldn't we move "-p" to an inn.conf parameter? (which will be used with
>> consistency for article expiration and history)
>
> Well, you may want history entries and articles handled differently. The
> reason why articles are expired based on arrival date instead of posting
> time is that if articles are dated in the past (composed off-line, for
> instance), they could get an extremely short expiration depending on the
> expire time of the group and expire before anyone can read them. I think
> it makes more sense as a default to keep articles around for N days from
> the point from which they were first available to readers.
>
> History retention for articles not in the spool has a different set of
> concerns.
All right, that's indeed wise.
>> And I am rather inclined to change the default behaviour (using the
>> posting/injection date instead of the arrival date). I think it fits
>> better what a news administrator wishes to do by default.
>
> I think that for trash (articles not in the spool), we should use the
> posting date rather than the arrival date, but keep using the arrival date
> for article expiration.
>
> I haven't looked at how hard this might be.
It's not hard to do. In fact, there are more changes in documentation
than anything else (in order to be more precise on how article expiration
and history retention work).
Impacted files are:
M innd/nc.c
M innd/util.c
M innd/art.c
M innd/innd.h
M contrib/makeexpctl.in
M history/hisv6/hisv6.c
M history/his.c
M samples/expire.ctl
M doc/pod/libinnhist.pod
M doc/pod/news.pod
M doc/pod/expire.ctl.pod
M doc/pod/expireover.pod
M doc/pod/install.pod
M doc/pod/inn.conf.pod
M doc/FAQ
My only concern is for articles rejected at arrival time. We currently
have in history API:
bool HISremember(struct history *history, const char *key, time_t arrived);
because we write something like:
[EDD7A9AFDD5560BD0F1C731C8BEB5F8A] 1250458751~-
with only an arrival time, in order to remember the rejected article.
It would be better to have:
bool HISremember(struct history *history, const char *key, time_t arrived, time_t posted);
in order to write something like:
[EDD7A9AFDD5560BD0F1C731C8BEB5F8A] 1250458751~-~1250458749
Is it wise to do that? (an API change for INN 2.5.1)
I could also give the posting time to HISremember instead of the arrival time,
when it is known... but the first field would be diverted from its use...
(No problem after an article expiration; we can remember the posting date when rewriting
the history line. The only issue is with HISremember.)
Any suggestion?
--
Julien ÉLIE
« -- C'est une bonne situation ça, scribe ?
-- Oh, c'est une situation assise. » (Astérix)
Re: INN's expire program and memory usage:
Author: Russ Allbery
Date: Mon, 17 Aug 2009 01:26
Date: Mon, 17 Aug 2009 01:26
40 lines
3086 bytes
3086 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> writes:
> My only concern is for articles rejected at arrival time. We currently
> have in history API:
> bool HISremember(struct history *history, const char *key, time_t arrived);
> because we write something like:
> [EDD7A9AFDD5560BD0F1C731C8BEB5F8A] 1250458751~-
> with only an arrival time, in order to remember the rejected article.
> It would be better to have:
> bool HISremember(struct history *history, const char *key, time_t arrived, time_t posted);
> in order to write something like:
> [EDD7A9AFDD5560BD0F1C731C8BEB5F8A] 1250458751~-~1250458749
> Is it wise to do that? (an API change for INN 2.5.1)
I suspect that would be fine. There's some distant chance that one of the
programs like suck or newsx calls that, but it seems unlikely to me, and
INN isn't otherwise very careful about APIs.
It's certainly fine for the trunk, of course.
> I could also give the posting time to HISremember instead of the arrival
> time, when it is known... but the first field would be diverted from its
> use...
I think it's preferrable to fix the API and write in the real data rather
than changing the meaning of the history field.
--
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's expire program and memory usage:
Author: Julien ÉLIE
Date: Mon, 17 Aug 2009 19:30
Date: Mon, 17 Aug 2009 19:30
43 lines
3349 bytes
3349 bytes
Hi NPG, > ** My configuration ** > My initial configuration worked because newsx would not pull down groups > that I wasn't carrying. When I added peers I now get and reject groups > not carried, if I add one later, it may already be in history, so the > newsx pull wouldn't work like I thought. I may not actually get a years > worth of old news. Right. Rejected articles in newsgroups not carried are remembered and will not be accepted by a newsx pull. Unless you set remembertrash to false. (Note that setting this parameter to false will not give you duplicates because accepted articles are always remembered at least for /remember/ days.) > 4. If artcutoff & remember are not the same, you could get duplicate > articles in your spool. More precisely, /remember/ should be one more artcutoff in order to take into account articles posted one day into the future (which are accepted). > * expire.ctl * > /remember/:365 > *:A:1:365:never /remember/ should be 366 if artcutoff is 365. I for one prefer "1:365:365" so that articles with an Expires: header in the future expire all the same. > * inn.conf * > remembertrash: true Maybe you should consider using "false" to better fit your needs. -- Julien ÉLIE « -- C'est une bonne situation ça, scribe ? -- Oh, c'est une situation assise. » (Astérix)
Re: INN's expire program and memory usage:
Author: Julien ÉLIE
Date: Mon, 17 Aug 2009 19:31
Date: Mon, 17 Aug 2009 19:31
17 lines
2298 bytes
2298 bytes
Hi Russ, >> I could also give the posting time to HISremember instead of the arrival >> time, when it is known... but the first field would be diverted from its >> use... > > I think it's preferrable to fix the API and write in the real data rather > than changing the meaning of the history field. Sure! -- Julien ÉLIE « -- Laissons-lui notre char et prenons le sien... -- Oui, ça nous dépannera... » (Astérix)
Re: INN's expire program and memory usage:
Author: NPG
Date: Thu, 20 Aug 2009 02:44
Date: Thu, 20 Aug 2009 02:44
79 lines
4046 bytes
4046 bytes
* Julien ÉLIE wrote: > Hi NPG, > >> ** My configuration ** >> My initial configuration worked because newsx would not pull down groups >> that I wasn't carrying. When I added peers I now get and reject groups >> not carried, if I add one later, it may already be in history, so the >> newsx pull wouldn't work like I thought. I may not actually get a years >> worth of old news. > > Right. Rejected articles in newsgroups not carried are remembered and will > not be accepted by a newsx pull. > Unless you set remembertrash to false. (Note that setting this parameter > to false will not give you duplicates because accepted articles are always > remembered at least for /remember/ days.) > > OK So, when I started peering the amount of trash I was remembering went through the roof. Which caused history to expand. Which blew up the server. OOPS >> 4. If artcutoff & remember are not the same, you could get duplicate >> articles in your spool. > > More precisely, /remember/ should be one more artcutoff in order to take > into account articles posted one day into the future (which are accepted). > > >> * expire.ctl * >> /remember/:365 >> *:A:1:365:never > > /remember/ should be 366 if artcutoff is 365. Makes sense. > I for one prefer "1:365:365" so that articles with an Expires: header in > the future expire all the same. > > Another Good idea. >> * inn.conf * >> remembertrash: true > > Maybe you should consider using "false" to better fit your needs. > Oh, so close to what I want. If I set it to false, I think I would saturate my incoming (1.5Mbps) link. Put on costume, Grab fiddle, Climb on roof IF I HAD A T1 ... ;-) In summary I simply cannot, 1. Retain a years worth of old news 2. remembertrash 3. Peer on a half gig server. I can't believe that I actually tried doing that. I knew that I didn't get it, but had no idea my level of ignorance was so epic. ROFL @ myself. If my village calls, don't tell them where I'm hiding. -- But there's no sense crying over every mistake. You just keep on trying till you run out of cake. And the Science gets done. And you make an income. For the people who are still alive.
Re: INN's expire program and memory usage:
Author: Julien ÉLIE
Date: Thu, 20 Aug 2009 08:18
Date: Thu, 20 Aug 2009 08:18
33 lines
2964 bytes
2964 bytes
Hi NPG, >>> * inn.conf * >>> remembertrash: true >> >> Maybe you should consider using "false" to better fit your needs. >> > > Oh, so close to what I want. > If I set it to false, I think I would saturate my incoming (1.5Mbps) link. Normally not, because hiscachesize (in inn.conf) will remember your last incoming articles, which will then be received only once in the row. Set it to 256 or 512. > In summary I simply cannot, > 1. Retain a years worth of old news > 2. remembertrash > 3. Peer > on a half gig server. You could peer, but not with all newsgroups. Or find a peer which allows you to dynamically change your news feed, through a web interface. I know that news.stben.be does that. Maybe you could try to ask. See <http://www.stben.net/news.html>. -- Julien ÉLIE « La vérité pure et simple est très rarement pure et jamais simple. » (Oscar Wilde)
Re: INN's expire program and memory usage:
Author: Julien ÉLIE
Date: Fri, 21 Aug 2009 08:00
Date: Fri, 21 Aug 2009 08:00
18 lines
2410 bytes
2410 bytes
Hi John,
> But if corrected documentation is available, I certainly would want it.
Then here it is. Russ has just updated his online documentation:
http://www.eyrie.org/~eagle/software/inn/docs/samples/expire.ctl (new sample)
http://www.eyrie.org/~eagle/software/inn/docs/inn.conf.html (for artcutoff)
(INSTALL has also been updated, as well as a few other man pages like
expire, expireover, expire.ctl, history library and API...)
--
Julien ÉLIE
« La vraie paresse, c'est de se lever à 6 heures du matin
pour avoir plus longtemps à ne rien faire. » (Tristan Bernard)
Page 2 of 2 • 66 total messages
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