Thread View: news.software.nntp
66 messages
66 total messages
Page 1 of 2
Started by D. Stussy
Tue, 28 Jul 2009 01:11
Page 1 of 2 • 66 total messages
INN's expire program and memory usage:
Author: D. Stussy
Date: Tue, 28 Jul 2009 01:11
Date: Tue, 28 Jul 2009 01:11
35 lines
2439 bytes
2439 bytes
Can we do something about the memory usage, or is there a leak? INN 2.5.0.
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
newsserv 334 3.1 12.9 833880 131564 ? Ds Jul03 1124:23
/var/lib/news/bin/innd
newsserv 32433 4.7 62.5 703848 638188 ? D Jul27 12:31
/var/lib/news/bin/expire
newsserv 4388 0.0 0.1 109580 1492 ? SN 00:17 0:00 - nnrpd:
(reader tasks)
...etc.
Memory image just for these two main programs is 1.466GB. The machine only
has 1GB of physical RAM (Obviously, some part of the programs aren't
loaded). However, expire is eating over 512MB on its own for its active
memory image....
# free -t
total used free shared buffers cached
Mem: 1019724 995528 24196 0 7704 62524
-/+ buffers/cache: 925300 94424
Swap: 0 0 0
Total: 1019724 995528 24196
History file size:
-rw-rw-r-- 1 newsserv news 4984098036 Jul 28 00:41 history
-rw-rw-r-- 1 newsserv news 93 Jul 28 00:41 history.dir
-rw-rw-r-- 1 newsserv news 527190756 Jul 28 00:41 history.hash
-rw-rw-r-- 1 newsserv news 702921008 Jul 28 00:41 history.index
# entries (approximate): 51,391,145
Is the memory usage excessive? Is there anything I can do to reduce it? I
use dynamic linking shared modules.
Re: INN's expire program and memory usage:
Author: Russ Allbery
Date: Tue, 28 Jul 2009 01:44
Date: Tue, 28 Jul 2009 01:44
46 lines
2948 bytes
2948 bytes
"D. Stussy" <spam@bde-arc.ampr.org> writes:
> Can we do something about the memory usage, or is there a leak? INN 2.5.0.
>
> USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
> newsserv 334 3.1 12.9 833880 131564 ? Ds Jul03 1124:23
> /var/lib/news/bin/innd
> newsserv 32433 4.7 62.5 703848 638188 ? D Jul27 12:31
> /var/lib/news/bin/expire
> newsserv 4388 0.0 0.1 109580 1492 ? SN 00:17 0:00 - nnrpd:
> (reader tasks)
> ...etc.
>
> Memory image just for these two main programs is 1.466GB. The machine only
> has 1GB of physical RAM (Obviously, some part of the programs aren't
> loaded).
I'm fairly sure the programs are entirely loaded into memory. The numbers
reported by ps are essentially meaningless since they include
memory-mapped files.
In fact, we know for certain that the programs are entirely loaded in
memory because your system has no swap:
> # free -t
> total used free shared buffers cached
> Mem: 1019724 995528 24196 0 7704 62524
> -/+ buffers/cache: 925300 94424
> Swap: 0 0 0
> Total: 1019724 995528 24196
which is, incidentally, a poor configuration choice. Give your system
some swap so that it can kick stuff out of memory that isn't currently
running.
Anyway, while it's possible this is a memory leak, it's probably just the
standard problem that our history backend makes space versus time
tradeoffs that involve memory mapping a very large index and hence
consuming quite a bit of mmap space. It's not fixable without writing a
new history backend that makes different tradeoffs.
--
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: D. Stussy
Date: Tue, 28 Jul 2009 03:07
Date: Tue, 28 Jul 2009 03:07
58 lines
3427 bytes
3427 bytes
"Russ Allbery" <rra@stanford.edu> wrote in message news:873a8hh98m.fsf@windlord.stanford.edu... > "D. Stussy" <spam@bde-arc.ampr.org> writes: > > Can we do something about the memory usage, or is there a leak? INN 2.5.0. > > > > USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND > > newsserv 334 3.1 12.9 833880 131564 ? Ds Jul03 1124:23 > > /var/lib/news/bin/innd > > newsserv 32433 4.7 62.5 703848 638188 ? D Jul27 12:31 > > /var/lib/news/bin/expire > > newsserv 4388 0.0 0.1 109580 1492 ? SN 00:17 0:00 - nnrpd: > > (reader tasks) > > ...etc. > > > > Memory image just for these two main programs is 1.466GB. The machine only > > has 1GB of physical RAM (Obviously, some part of the programs aren't > > loaded). > > I'm fairly sure the programs are entirely loaded into memory. The numbers > reported by ps are essentially meaningless since they include > memory-mapped files. > > In fact, we know for certain that the programs are entirely loaded in > memory because your system has no swap: > > > # free -t > > total used free shared buffers cached > > Mem: 1019724 995528 24196 0 7704 62524 > > -/+ buffers/cache: 925300 94424 > > Swap: 0 0 0 > > Total: 1019724 995528 24196 > > which is, incidentally, a poor configuration choice. Give your system > some swap so that it can kick stuff out of memory that isn't currently > running. Actually, having no swap for a performance server is a good configuration choice for other reasons. Let's not debate that. > Anyway, while it's possible this is a memory leak, it's probably just the > standard problem that our history backend makes space versus time > tradeoffs that involve memory mapping a very large index and hence > consuming quite a bit of mmap space. It's not fixable without writing a > new history backend that makes different tradeoffs. Is expire mapping just the history.index file, or other things too? As noted, I have a rather large history file as my spool is all CNFS buffers, so it doesn't really need to expire the spool. That way, I know what to watch....
Re: INN's expire program and memory usage:
Author: Bruce Esquibel
Date: Tue, 28 Jul 2009 13:06
Date: Tue, 28 Jul 2009 13:06
46 lines
3222 bytes
3222 bytes
D. Stussy <spam@bde-arc.ampr.org> wrote: > Actually, having no swap for a performance server is a good configuration > choice for other reasons. Let's not debate that. Make about as much sense as driving around without a spare tire thinking the few pennies saved on gas will make up for the inconvience of getting a flat. There is something about your numbers that "doesn't look right". Running that machine on 1GB ram is your problem, little else. It's not enough with the size of the history file, it's ten times larger than mine (4.7GB vs 450MB) and we hold (on CNFS) about 60 days worth. If there is some reason you want a two year hold on articles, fine, but get the ram up to 4GB at least. The expire is going to throw fits otherwise. My expire takes about 20 minutes to run (keep in mind it's CNFS so no articles really expire) and since april 9th the memory on innd is... PID USERNAME LWP PRI NICE SIZE RES STATE TIME CPU COMMAND 520 news 1 59 0 147M 94M sleep 21.7H 0.27% innd 524 news 1 59 0 1516K 1060K sleep 8:59 0.05% innwatch 10210 news 1 47 4 12M 6772K sleep 13:52 0.05% innfeed 10216 news 1 60 4 5104K 4220K sleep 2:46 0.01% overchan 527 news 1 60 0 7380K 6180K sleep 2:58 0.00% cnfsstat 10213 news 1 47 4 5480K 4296K sleep 0:06 0.00% controlchan 1769 news 1 47 4 1912K 1256K sleep 0:03 0.00% ninpaths 6524 news 1 59 0 1336K 760K sleep 0:00 0.00% sleep I've always used Solaris with CNFS and back when the news box was a Sun E250, the original configuration was 1GB with a single 18GB drive for article storage. The E250 can take six internal drives and one time when I ran across some spare 36GB ones, I reconfigured the spool to use 3 of them. Worked fine until the history file got up to about the size of the ram (1GB) but then expire started to puke (cannot fork, out of resources). Increasing the ram to 2GB worked until the history file approached around 1.8GB. Point is, I think anything that uses the Berkeley DB needs room to breathe and a 4GB history on a 1GB machine isn't going to cut it. -bruce bje@ripco.com
Re: INN's expire program and memory usage:
Author: rone
Date: Tue, 28 Jul 2009 16:45
Date: Tue, 28 Jul 2009 16:45
14 lines
1778 bytes
1778 bytes
In article <h4lq1g$4kc$1@snarked.org>, D. Stussy <replies@newsgroups.kd6lvw.ampr.org> wrote: >Actually, having no swap for a performance server is a good configuration >choice for other reasons. Let's not debate that. It can be a good choice if your memory manager is a piece of shit, like, oh, in Windows. Otherwise, it's a bad idea. rone -- "The priest jabbered incomprehensibly on the distinctive nature of Christian actions, as opposed to Jewish and Muslim actions, in the world. Not one word about Mary. No connection to the readings. I am getting tired of this man, and I think his liturgy is suspect." -- Richard Allan Baruz
Modification thought - was Re: INN's expire program and memory usage:
Author: D. Stussy
Date: Wed, 29 Jul 2009 23:57
Date: Wed, 29 Jul 2009 23:57
22 lines
2454 bytes
2454 bytes
Is there a way I can cut down the size of the history files without actually removing articles from the spool by expiring them and still have "everything" (e.g. the overview) work? I have self-expiring storage (CNFS), but it's obivous that without some limit, the size of the history file may grow beyond the size that the expire program can process daily (if all articles are retained). As long as the history file isn't critical to the overview (or expireover) for self-expiring storage, I'd be happy keeping only the past 6 months worth of pointers. I don't believe that the "-N" flag is what I want, because that implies removing the article from both self-expiring storage and the overview. I don't need that. I can happily keep the article in storage and with overview data. How about a flag to indicate the maximum age of an entry in the history file (used only when a message is in self-expiring storage) - which would remove ONLY the history entry but not the article nor its overview data? Would that work? Could I use a default expiry with "-N" but also specifying "-z file" and throwing this "z" file away instead of passing it to delayrm? I don't think that works with CNFS. Expire is one difficult program to read through....
Re: Modification thought - was Re: INN's expire program and memory usage:
Author: Alexander Bartolich
Date: Thu, 30 Jul 2009 06:07
Date: Thu, 30 Jul 2009 06:07
42 lines
2899 bytes
2899 bytes
D. Stussy wrote:
> [...] it's obivous that without some limit, the size of the history
> file may grow beyond the size that the expire program can process daily
> (if all articles are retained).
Obvious is a big word.
I have currently 14 * 8 = 112 GB of CNFS storage in use.
My history file is larger than physical RAM.
$ vdir -h /var/lib/news/history
-rw-rw-r-- 1 news news 3.0G 2009-07-30 07:46 /var/lib/news/history
$ wc -l /var/lib/news/history
32920205 /var/lib/news/history
$ free -m
total used free shared buffers cached
Mem: 1982 1958 24 0 23 878
-/+ buffers/cache: 1055 927
Swap: 10247 272 9974
And still expire takes only about an hour.
$ more /var/log/news/expire.log
expireover start Thu Jul 30 03:01:48 CEST 2009: ( -z/var/log/news/expire.rm)
expireover end Thu Jul 30 03:56:37 CEST 2009
expire begin Thu Jul 30 03:57:07 CEST 2009: (-v3)
Article lines processed 32573982
Articles retained 32456949
Entries expired 117033
expire end Thu Jul 30 04:04:01 CEST 2009
all done Thu Jul 30 04:04:01 CEST 2009
I'm using the stock INN 2.4.3+20070806-1 shipped with Ubuntu 8.04 LTS
(x86_64), tradindexed, with all file system being XFS.
--
Brüder, in die Tonne die Freiheit,
Brüder, ein Stoppschild davor.
Egal was die Schwarzen Verlangen
Rufen wir: Ja! Brav im Chor.
Re: Modification thought - was Re: INN's expire program and memory usage:
Author: Ray Banana
Date: Thu, 30 Jul 2009 06:37
Date: Thu, 30 Jul 2009 06:37
38 lines
3220 bytes
3220 bytes
Thus spake Alexander Bartolich <alexander.bartolich@gmx.at> > D. Stussy wrote: >> [...] it's obivous that without some limit, the size of the history >> file may grow beyond the size that the expire program can process daily >> (if all articles are retained). > Obvious is a big word. D. Stussy's observation is correct, however. It is possible for the history.* files to exceed the available memory and this will adversely affect expire's performance (and the performance of the entire system - never noticed any memory shortage during expire on your system <veg>?) and finally will prevent expire from running. However, the memory footprint of expire is determined by the size of the *history.index* file, not the size of the history file. In D. Stussy's case the size of the index file is ~700MB for a total memory size of 1 GiB and that's when expire will start getting problems, especially as there is no page space available to temporarily swap out memory areas occupied by inactive processes. > expire begin Thu Jul 30 03:57:07 CEST 2009: (-v3) > Article lines processed 32573982 > Articles retained 32456949 > Entries expired 117033 > expire end Thu Jul 30 04:04:01 CEST 2009 > all done Thu Jul 30 04:04:01 CEST 2009 > I'm using the stock INN 2.4.3+20070806-1 shipped with Ubuntu 8.04 LTS > (x86_64), tradindexed, with all file system being XFS. What is the size of your history.index.file and what is the VSS of expire when it is running? BTW, the same problem exists with expireover and the size of the groups' IDX files if you use a tradindexed overview. -- Time flies like an arrow, fruit flies like a Banana. http://www.eternal-september.org
Re: Modification thought - was Re: INN's expire program and memory usage:
Author: D. Stussy
Date: Thu, 30 Jul 2009 07:17
Date: Thu, 30 Jul 2009 07:17
53 lines
3815 bytes
3815 bytes
"Ray Banana" <rayban@banana.shacknet.nu> wrote in message news:80prbid6cl.fsf@banana.shacknet.nu... > Thus spake Alexander Bartolich <alexander.bartolich@gmx.at> > > D. Stussy wrote: > >> [...] it's obivous that without some limit, the size of the history > >> file may grow beyond the size that the expire program can process daily > >> (if all articles are retained). > > Obvious is a big word. > > D. Stussy's observation is correct, however. It is possible for the > history.* files to exceed the available memory and this will adversely > affect expire's performance (and the performance of the entire system - > never noticed any memory shortage during expire on your system <veg>?) and > finally will prevent expire from running. However, the memory footprint > of expire is determined by the size of the *history.index* file, not the > size of the history file. In D. Stussy's case the size of the index file > is ~700MB for a total memory size of 1 GiB and that's when expire will > start getting problems, especially as there is no page space available > to temporarily swap out memory areas occupied by inactive processes. Note that I didn't compare the size of the history file to memory size. However, it still can grow beyond the point where it's index is unloadable into memory, and clearly if its index file can't be loaded and is always smaller, the history file itself can't be processed. > > expire begin Thu Jul 30 03:57:07 CEST 2009: (-v3) > > Article lines processed 32573982 > > Articles retained 32456949 > > Entries expired 117033 > > expire end Thu Jul 30 04:04:01 CEST 2009 > > all done Thu Jul 30 04:04:01 CEST 2009 > > > I'm using the stock INN 2.4.3+20070806-1 shipped with Ubuntu 8.04 LTS > > (x86_64), tradindexed, with all file system being XFS. I find that each article line on the average is 98 bytes. His history file will then be a little less than 3.2GB. I don't know what the corresponding size of his index file would be, but mine seemed to be about 10% of the size of history file, so it might be about 320MB. That's about half the size of mine. > What is the size of your history.index.file and what is the VSS of > expire when it is running? > > BTW, the same problem exists with expireover and the size of the groups' > IDX files if you use a tradindexed overview. A traditional indexed overview does not have all the server's messages in a single file (unless one has only one newsgroup).
Re: Modification thought - was Re: INN's expire program and memory usage:
Author: Alexander Bartolich
Date: Thu, 30 Jul 2009 07:19
Date: Thu, 30 Jul 2009 07:19
19 lines
2065 bytes
2065 bytes
Ray Banana schrieb: > [...] > What is the size of your history.index.file $ vdir -h /var/lib/news/history* -rw-rw-r-- 1 news news 3.0G 2009-07-30 09:13 /var/lib/news/history -rw-rw-r-- 1 news news 120 2009-07-30 09:13 /var/lib/news/history.dir -rw-rw-r-- 1 news news 553M 2009-07-30 05:20 /var/lib/news/history.hash -rw-rw-r-- 1 news news 737M 2009-07-30 05:20 /var/lib/news/history.index > and what is the VSS of expire when it is running? I'll have to setup a cron job to monitor that. -- Brüder, in eins nun die Hände, Brüder, die Freiheit verlacht, Ewiglich der Dividende Unserer Bonzen gedacht.
Re: Modification thought - was Re: INN's expire program and memory usage:
Author: Ray Banana
Date: Thu, 30 Jul 2009 07:24
Date: Thu, 30 Jul 2009 07:24
17 lines
2254 bytes
2254 bytes
Thus spake "D. Stussy" <spam@bde-arc.ampr.org> >> BTW, the same problem exists with expireover and the size of the groups' >> IDX files if you use a tradindexed overview. > A traditional indexed overview does not have all the server's messages in a > single file (unless one has only one newsgroup). The size of an IDX file is not only determined by the number of articles in a group, but also by the size of article numbers, especially when there are huge gaps in the article numbers. I recently posted a problem in this group where a group contained only 12 articles and the size of the IDX file was 4.7 GiB. And now try to guess how much memory expireover requested. -- Time flies like an arrow, fruit flies like a Banana. http://www.eternal-september.org
Re: Modification thought - was Re: INN's expire program and memory usage:
Author: Alexander Bartolich
Date: Thu, 30 Jul 2009 08:21
Date: Thu, 30 Jul 2009 08:21
20 lines
2426 bytes
2426 bytes
Ray Banana wrote:
> [...]
> BTW, the same problem exists with expireover and the size of the groups'
> IDX files if you use a tradindexed overview.
$ nice find . -type f -size +100M -exec vdir -h {} \+
-rw-rw-r-- 1 news news 135M 2009-07-30 10:15 ./a/a/alt.atheism.DAT
-rw-rw-r-- 1 news news 172M 2009-07-30 10:07 ./a/f/r/alt.fan.rush-limbaugh.DAT
-rw-rw-r-- 1 news news 214M 2009-07-30 10:05 ./a/p/alt.politics.DAT
-rw-rw-r-- 1 news news 162M 2009-07-30 10:18 ./c/c/control.cancel.DAT
-rw-rw-r-- 1 news news 350M 2009-07-30 10:18 ./c/c/control.cancel.IDX
-rw-rw-r-- 1 news news 140M 2009-07-30 10:16 ./d/s/p/m/de.soc.politik.misc.DAT
-rw-rw-r-- 1 news news 377M 2009-07-30 10:15 ./p/c/t/perl.cpan.testers.DAT
-rw-rw-r-- 1 news news 148M 2009-07-30 09:59 ./t/p/m/talk.politics.misc.DAT
--
Seht, wie mit Spendenmillionen
Endlos das Konto sich füllt,
Bis unser Sehnsucht Verlangen
Nach Posten und Macht ist gestillt.
Re: INN's expire program and memory usage:
Author: NPG
Date: Wed, 12 Aug 2009 02:45
Date: Wed, 12 Aug 2009 02:45
45 lines
3128 bytes
3128 bytes
* Bruce Esquibel wrote: > Running that machine on 1GB ram is your problem, little else. It's not > enough with the size of the history file, it's ten times larger than mine > (4.7GB vs 450MB) and we hold (on CNFS) about 60 days worth. > > If there is some reason you want a two year hold on articles, fine, but > get the ram up to 4GB at least. The expire is going to throw fits otherwise. > That would explain why our old news server kept blowing up. :-) 512 MB Ram, 340 MB swap and this for history ll -h /var/lib/news/history* -rw-rw-r-- 1 news news 769M 2009-08-12 02:08 /var/lib/news/history -rw-rw-r-- 1 news news 120 2009-08-12 02:08 /var/lib/news/history.dir -rw-rw-r-- 1 news news 177M 2009-08-12 02:08 /var/lib/news/history.hash -rw-rw-r-- 1 news news 118M 2009-08-12 02:08 /var/lib/news/history.index > My expire takes about 20 minutes to run (keep in mind it's CNFS so no > articles really expire) Old server still takes 2 hours to do expire. New server does it so fast, I can never catch it in the act. We use a tradindexed overview for now, don't know how that plays into it. > Worked fine until the history file got up to about the size of the ram (1GB) > but then expire started to puke (cannot fork, out of resources). Increasing > the ram to 2GB worked until the history file approached around 1.8GB. History on the new server looks like this ll -h /var/lib/news/history* -rw-rw-r-- 1 news news 160M 2009-08-12 02:45 /var/lib/news/history -rw-rw-r-- 1 news news 108 2009-08-12 02:45 /var/lib/news/history.dir -rw-rw-r-- 1 news news 19M 2009-08-12 02:45 /var/lib/news/history.hash -rw-rw-r-- 1 news news 13M 2009-08-12 02:45 /var/lib/news/history.index How should I keep it from growing out of control like before? > Point is, I think anything that uses the Berkeley DB needs room to breathe > and a 4GB history on a 1GB machine isn't going to cut it. > > -bruce > bje@ripco.com >
Re: INN's expire program and memory usage:
Author: Bruce Esquibel
Date: Wed, 12 Aug 2009 15:58
Date: Wed, 12 Aug 2009 15:58
60 lines
3765 bytes
3765 bytes
NPG <nathan@cmpublishers.com> wrote: > How should I keep it from growing out of control like before? Well, the size of the history file is going to be governed by storage capacity and one other line in the expire.ctl file... /remember/:10 What that does is controls how long an entry is in the history file after the article is expired. That's in case for some reason the same article comes back again, maybe due to a down feed. If you think about it, I really don't see any reason to set that value to just one or two. At the default of 10 (it's either 10 or 7, forgot) and assuming you are taking in a full, more or less english only text feed, average of 150,000 new posts a day, to keep the "old headers" for 10 days after they expire, you are looking at 1.5 million dead entries. Depending on your spool capacity and other things, I'd say those dead entries could be taking up 10 to 20% of the total history size. If you are using CNFS for storage, control of article expiration is sort of limited to non-exsistant. Rough rule of thumb for the "full, more or less english only text feed" is about 20GB a month currently. If you set up buffers larger than like 100GB, you are going to be storing a lot of articles, like it or not. I'm just saying, if there isn't a reason to carry more than a month of news, just use the 20GB per 30 days rule of thumb. Reduce the size of the buffer(s). Another thing in your case specifically, we were feeding you but aren't anymore. I tried to email you about this but it seems we're firewalled off on both fronts (smtp and nntp). Not sure if it was an oversight or what but if you want that restored, unblock like 74.8.102.114 and 74.8.102.115 at least. The point I"m trying to make is, when we were feeding you, you were only taking like 1% of what was being offered (or less). I suspect you originally asked for a "full feed" but somewhere down the line decided just to pick up a handful of groups. I never can remember which one it is (refused or rejected) in the logs, but it did appear to me it was because you didn't want the articles, not that you already had them. Russ or someone else who knows the internals would have to chime in but I beleive if that is what you did, ask for full feeds then elected just to have a handful of "active groups" on your server, every one of those articles you are dropping to the floor is still being added to the history file as "being seen". If that is near the truth, the only fix for that is get in touch with the feeds you are getting and give them a list of what you really want. If it's not being sent, it won't get stored. -bruce bje@ripco.com
Re: INN's expire program and memory usage:
Author: NPG
Date: Wed, 12 Aug 2009 19:33
Date: Wed, 12 Aug 2009 19:33
17 lines
1722 bytes
1722 bytes
* Bruce Esquibel wrote: > > Another thing in your case specifically, we were feeding you but aren't > anymore. I tried to email you about this but it seems we're firewalled off > on both fronts (smtp and nntp). Not sure if it was an oversight or what but > if you want that restored, unblock like 74.8.102.114 and 74.8.102.115 at > least. > OOPS My bad, I'll get right on that. Should have it sorted out within 24 hrs at the latest. Sorry about that.
Re: INN's expire program and memory usage:
Author: D. Stussy
Date: Wed, 12 Aug 2009 20:08
Date: Wed, 12 Aug 2009 20:08
19 lines
1998 bytes
1998 bytes
"Bruce Esquibel" <bje@ripco.com> wrote in message news:h5uoqh$e8a$1@remote5bge0.ripco.com... > NPG <nathan@cmpublishers.com> wrote: > > > How should I keep it from growing out of control like before? > > Well, the size of the history file is going to be governed by storage > capacity and one other line in the expire.ctl file... > > /remember/:10 > > What that does is controls how long an entry is in the history file after > the article is expired. That's in case for some reason the same article > comes back again, maybe due to a down feed. Huh? I thought that the remember line controlled how long an article's message-ID is retained in the history file for articles that were REJECTED.
Re: INN's expire program and memory usage:
Author: Black Dragon
Date: Wed, 12 Aug 2009 20:16
Date: Wed, 12 Aug 2009 20:16
35 lines
2201 bytes
2201 bytes
D. Stussy wrote: > "Bruce Esquibel" <bje@ripco.com> wrote in message > news:h5uoqh$e8a$1@remote5bge0.ripco.com... >> NPG <nathan@cmpublishers.com> wrote: >> > How should I keep it from growing out of control like before? >> Well, the size of the history file is going to be governed by storage >> capacity and one other line in the expire.ctl file... >> /remember/:10 >> What that does is controls how long an entry is in the history file after >> the article is expired. That's in case for some reason the same article >> comes back again, maybe due to a down feed. > Huh? I thought that the remember line controlled how long an article's > message-ID is retained in the history file for articles that were REJECTED. >From expire.ctl; ## If article expires before 10 days, we still remember it for 10 days in ## case we get offered it again. Depending on what you use for the innd ## -c flag and how paranoid you are about old news, you might want to ## make this 28, 30, etc, but it's probably safe to reduce it to 7 in most ## cases if you want to keep your history file smaller. /remember/:10 -- Black Dragon When the fog came in on little cat feet last night, it left these little muddy paw prints on the hood of my car.
Re: INN's expire program and memory usage:
Author: NPG
Date: Wed, 12 Aug 2009 20:35
Date: Wed, 12 Aug 2009 20:35
43 lines
2680 bytes
2680 bytes
* Bruce Esquibel wrote:
> NPG <nathan@cmpublishers.com> wrote:
>
>> How should I keep it from growing out of control like before?
>
> Well, the size of the history file is going to be governed by storage
> capacity and one other line in the expire.ctl file...
>
> /remember/:10
>
> What that does is controls how long an entry is in the history file after
> the article is expired. That's in case for some reason the same article
> comes back again, maybe due to a down feed.
>
WOW, Epic Fail
I sooo nailed myself to the wall.
my expire.ctl file
/remember/:365
*:A:1:365:never
We set it up like that following this suggestion from the inn.conf man page.
artcutoff
Articles older than this number of days are dropped.
This setting
should probably match the setting on the "/remember/" line in
expire.ctl. The default value is 10.
Our server began its life by just pulling news from our ISP, so we
wanted to carry the last years worth of news locally. When we wanted to
carry a new group, we would
ctlinnd newgroup blah.blah.blah
Newsx would go out and get it, we would have anything that happened in
the group for the last year.
If I'm understanding it correctly, our current configuration will hold
the article for a year, expire it, then, retain the entry in history for
another year.
Re: INN's expire program and memory usage:
Author: Julien ÉLIE
Date: Wed, 12 Aug 2009 21:16
Date: Wed, 12 Aug 2009 21:16
26 lines
2414 bytes
2414 bytes
Hi NPG, > /remember/:365 > *:A:1:365:never > > We set it up like that following this suggestion from the inn.conf man page. > > artcutoff > Articles older than this number of days are dropped. > This setting > should probably match the setting on the "/remember/" line in > expire.ctl. The default value is 10. In fact, that parameter is used when an article is received. It is a sort of filter: if an article older than artcutoff is received, it is rejected. An article whose date is August, 8th is accepted today (August, 12th), but an article whose posting date is July, 8th is rejected (with artcutoff set to 10). It prevents a news server from accepting old articles which are re-injected into Usenet by mistake. -- Julien ÉLIE « La bigamie, c'est quand on a deux femmes ; et la monotonie, c'est quand on n'en a qu'une. » (Coluche)
Re: INN's expire program and memory usage:
Author: Bruce Esquibel
Date: Wed, 12 Aug 2009 22:33
Date: Wed, 12 Aug 2009 22:33
59 lines
3813 bytes
3813 bytes
NPG <nathan@cmpublishers.com> wrote: > /remember/:365 > *:A:1:365:never > If I'm understanding it correctly, our current configuration will hold > the article for a year, expire it, then, retain the entry in history for > another year. I beleive that is true. Again, there might of been some changes/additions when CNFS came into the picture but I'm pretty sure the stuff with that /remember/ is the same as it was in the old days of tradspool and overview indexes. That line controls how long the entry is stored in the history file and related database, reguardless of what happend to the article. I'm also still pretty sure that all articles offered you, no matter if they were rejected, refused, accepted then expired or accepted and never expired get written into the history. Maybe it's the voices in my head but I seem to remember a discussion about this and if it was a good idea. Keep in mind I think earlier version of INN didn't do pipelining (think that what it was called), each article was sent one-by-one and the pipelining allows mutiple groups of headers to be sent at once. I guess you can just call it a streaming feed these days. The logic of the whole thing, to write everything to history was based on the logic that it was more efficent to store the token, even if the article was refused or rejected (still never can remember which is which). The idea behind that was something with the database storage and history being a fifo or filo construction. If like a system has 20 feeds coming in, if an article came in from feed1, and was dropped (group not carried), logically in a few seconds it would likely show up from feeds 2 to 20, again and again and again. If it wasn't written in from feed1, there was a lack of efficency somewhere having to muddle through the whole database looking for something that wasn't there, again and again and again. If it was written in, but tagged like unavailable or something, it would behave the same way as if it was a duplicate. I dunno, keep in mind this crap probably goes back 10 years, most OS's didn't even have a decent mmap in kernel code. All these issues were looked at and thought about when there was a fear news boxes couldn't keep up with the flow. There was some limitation of like 30 arts/sec (or 100, I really don't remember, honestly) but all these save a millisecond here and there added up when handling millions of articles a day. These days you can probably go back to cnews/nntpd without much fear of falling behind. Anyway, short answer, edit the /remember/ line down to 7 or 10 and start breathing easier. -bruce bje@ripco.com
Re: INN's expire program and memory usage:
Author: Gary L. Burnore
Date: Thu, 13 Aug 2009 00:28
Date: Thu, 13 Aug 2009 00:28
36 lines
3160 bytes
3160 bytes
On Wed, 12 Aug 2009 13:08:47 -0700, "D. Stussy" <spam@bde-arc.ampr.org> wrote:
>"Bruce Esquibel" <bje@ripco.com> wrote in message
>news:h5uoqh$e8a$1@remote5bge0.ripco.com...
>> NPG <nathan@cmpublishers.com> wrote:
>>
>> > How should I keep it from growing out of control like before?
>>
>> Well, the size of the history file is going to be governed by storage
>> capacity and one other line in the expire.ctl file...
>>
>> /remember/:10
>>
>> What that does is controls how long an entry is in the history file after
>> the article is expired. That's in case for some reason the same article
>> comes back again, maybe due to a down feed.
>
>Huh? I thought that the remember line controlled how long an article's
>message-ID is retained in the history file for articles that were REJECTED.
>
Oh yeah, THAT makes sense. Set it to 10 so you get the same message for 10
days then you reject it? Feh
--
gburnore@databasix dot com
---------------------------------------------------------------------------
How you look depends on where you go.
---------------------------------------------------------------------------
Gary L. Burnore | ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
| ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
DataBasix | ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
| ÝÛ³ 3 4 1 4 2 ݳ޳ 6 9 0 6 9 ÝÛ³
Black Helicopter Repair Svcs Division | Official Proof of Purchase
===========================================================================
Want one? GET one! http://signup.databasix.com
===========================================================================
Re: INN's expire program and memory usage:
Author: D. Stussy
Date: Thu, 13 Aug 2009 02:23
Date: Thu, 13 Aug 2009 02:23
43 lines
2871 bytes
2871 bytes
"Black Dragon" <bd@nomail.invalid> wrote in message news:h5v7uc$13mo$1@bdhi.local... > D. Stussy wrote: > > "Bruce Esquibel" <bje@ripco.com> wrote in message > > news:h5uoqh$e8a$1@remote5bge0.ripco.com... > >> NPG <nathan@cmpublishers.com> wrote: > > >> > How should I keep it from growing out of control like before? > > >> Well, the size of the history file is going to be governed by storage > >> capacity and one other line in the expire.ctl file... > > >> /remember/:10 > > >> What that does is controls how long an entry is in the history file after > >> the article is expired. That's in case for some reason the same article > >> comes back again, maybe due to a down feed. > > > Huh? I thought that the remember line controlled how long an article's > > message-ID is retained in the history file for articles that were REJECTED. > > From expire.ctl; > > ## If article expires before 10 days, we still remember it for 10 days in > ## case we get offered it again. Depending on what you use for the innd > ## -c flag and how paranoid you are about old news, you might want to > ## make this 28, 30, etc, but it's probably safe to reduce it to 7 in most > ## cases if you want to keep your history file smaller. > /remember/:10 Not quite. I was closer: "The first format (remember) specifies how long to keep history entries for articles that aren't present in the news spool. These are articles that have either already expired, or articles which the server rejected (when remembertrash is set to true in inn.conf)."
Re: INN's expire program and memory usage:
Author: NPG
Date: Thu, 13 Aug 2009 04:32
Date: Thu, 13 Aug 2009 04:32
89 lines
4830 bytes
4830 bytes
* Bruce Esquibel wrote: > NPG <nathan@cmpublishers.com> wrote: > >> /remember/:365 >> *:A:1:365:never > >> If I'm understanding it correctly, our current configuration will hold >> the article for a year, expire it, then, retain the entry in history for >> another year. > > I beleive that is true. > > Again, there might of been some changes/additions when CNFS came into the > picture but I'm pretty sure the stuff with that /remember/ is the same as it > was in the old days of tradspool and overview indexes. > Which is how we are doing it right now. > That line controls how long the entry is stored in the history file and > related database, reguardless of what happend to the article. > > I'm also still pretty sure that all articles offered you, no matter if they > were rejected, refused, accepted then expired or accepted and never expired > get written into the history. > That would make sense. > Maybe it's the voices in my head but I seem to remember a discussion about > this and if it was a good idea. Keep in mind I think earlier version of INN > didn't do pipelining (think that what it was called), each article was sent > one-by-one and the pipelining allows mutiple groups of headers to be sent at > once. I guess you can just call it a streaming feed these days. > > The logic of the whole thing, to write everything to history was based on > the logic that it was more efficent to store the token, even if the article > was refused or rejected (still never can remember which is which). > The end result is the same. It doesn't go through. > The idea behind that was something with the database storage and history > being a fifo or filo construction. If like a system has 20 feeds coming in, > if an article came in from feed1, and was dropped (group not carried), > logically in a few seconds it would likely show up from feeds 2 to 20, again > and again and again. > > If it wasn't written in from feed1, there was a lack of efficency somewhere > having to muddle through the whole database looking for something that > wasn't there, again and again and again. If it was written in, but tagged > like unavailable or something, it would behave the same way as if it was a > duplicate. > Makes sense. > I dunno, keep in mind this crap probably goes back 10 years, most OS's > didn't even have a decent mmap in kernel code. All these issues were looked > at and thought about when there was a fear news boxes couldn't keep up with > the flow. There was some limitation of like 30 arts/sec (or 100, I really > don't remember, honestly) but all these save a millisecond here and there > added up when handling millions of articles a day. > Man, if you can /remember/:3650 ( even vaguely ) the state of NNTP software and real OS's then, I'll listen to what you have to say. Ten years ago, I though Win95 was an adequate OS, and didn't even own a UTP cable. I'll try to understand where we have been in order to appreciate where we are today. > These days you can probably go back to cnews/nntpd without much fear of > falling behind. > Jurassic NNTP, from what I've read. > Anyway, short answer, edit the /remember/ line down to 7 or 10 and start > breathing easier. > Ok, will do. I had considered running for village idiot, but honestly. I just Read The Fine Manual and did what it suggested. Figured that if I didn't understand it, do what it says so I don't break it. Thanks for the help
Re: INN's expire program and memory usage:
Author: NPG
Date: Thu, 13 Aug 2009 04:46
Date: Thu, 13 Aug 2009 04:46
34 lines
2707 bytes
2707 bytes
* Julien ÉLIE wrote: > Hi NPG, > >> /remember/:365 >> *:A:1:365:never >> >> We set it up like that following this suggestion from the inn.conf man >> page. >> >> artcutoff >> Articles older than this number of days are dropped. >> This setting >> should probably match the setting on the "/remember/" line in >> expire.ctl. The default value is 10. > > In fact, that parameter is used when an article is received. It is a sort > of filter: if an article older than artcutoff is received, it is rejected. > An article whose date is August, 8th is accepted today (August, 12th), but > an article whose posting date is July, 8th is rejected (with artcutoff set > to 10). It prevents a news server from accepting old articles which are > re-injected into Usenet by mistake. > I understand what artcutoff does. What I was saying is that I set the remember line in my expire.ctl based on this "This setting should probably match the setting on the "/remember/" line in expire.ctl." I didn't ( still don't ) know why they should be the same, I just did as suggested. I wanted to reject anything over a year old so set artcutoff to 365. Following the manual, I changed the remember line to 365 not realizing that it could eventually turn my history into a multi gigabyte, server crashing, monster.
Re: INN's expire program and memory usage:
Author: Julien ÉLIE
Date: Thu, 13 Aug 2009 09:10
Date: Thu, 13 Aug 2009 09:10
43 lines
3124 bytes
3124 bytes
Hi Bruce,
> Well, the size of the history file is going to be governed by storage
> capacity and one other line in the expire.ctl file...
>
> /remember/:10
>
> What that does is controls how long an entry is in the history file after
> the article is expired.
No, that's wrong.
See the man page of expire.ctl:
The first format specifies how long to keep history entries for articles
that aren't present in the news spool. These are articles that have either
already expired, or articles which the server rejected (when remembertrash
is set to true in inn.conf). There should be one and only one line in this
format, which looks like:
/remember/:<days>
where <days> is a decimal number that specifies the minimum number of days
a history record for a given message ID is retained, regardless of whether
the article is present in the spool. (History entries for articles still
present in the spool are always retained.)
> If you think about it, I really don't see any reason to set that value to
> just one or two. At the default of 10 (it's either 10 or 7, forgot) and
> assuming you are taking in a full, more or less english only text feed,
> average of 150,000 new posts a day, to keep the "old headers" for 10 days
> after they expire, you are looking at 1.5 million dead entries.
No. An expired article which was sent *11* days ago will be removed from
the history file. It is *not* retained until its 20th day in history.
--
Julien ÉLIE
« La bigamie, c'est quand on a deux femmes ; et la monotonie,
c'est quand on n'en a qu'une. » (Coluche)
Re: INN's expire program and memory usage:
Author: Julien ÉLIE
Date: Thu, 13 Aug 2009 09:17
Date: Thu, 13 Aug 2009 09:17
35 lines
2638 bytes
2638 bytes
Hi Black Dragon,
> From expire.ctl;
>
> ## If article expires before 10 days, we still remember it for 10 days in
> ## case we get offered it again. Depending on what you use for the innd
> ## -c flag and how paranoid you are about old news, you might want to
> ## make this 28, 30, etc, but it's probably safe to reduce it to 7 in most
> ## cases if you want to keep your history file smaller.
> /remember/:10
Hmm... I would tend to think that the commentary is wrong.
During expire, we write an history line when the arrival time of the
article is superior than the threshold.
/remember/:10
now = August, 13th
threshold = now - 10 = August, 3th
arrived = August, 2th
implies it will not be retained.
if (hiscookie->new &&
(t != NULL || arrived >= hiscookie->threshold)) {
r = hisv6_writeline(hiscookie->new, hash,
arrived, posted, expires, t);
}
--
Julien ÉLIE
« -- Essayons d'interroger ce garde habilement sans éveiller ses soupçons...
-- Hep ! Où est enfermé Assurancetourix ? » (Astérix)
Re: INN's expire program and memory usage:
Author: Julien ÉLIE
Date: Thu, 13 Aug 2009 09:21
Date: Thu, 13 Aug 2009 09:21
43 lines
3112 bytes
3112 bytes
Hi NPG,
>>> artcutoff
>>
>> In fact, that parameter is used when an article is received. It is a sort
>> of filter: if an article older than artcutoff is received, it is rejected.
>> An article whose date is August, 8th is accepted today (August, 12th), but
>> an article whose posting date is July, 8th is rejected (with artcutoff set
>> to 10). It prevents a news server from accepting old articles which are
>> re-injected into Usenet by mistake.
>
> I understand what artcutoff does. What I was saying is that I set the
> remember line in my expire.ctl based on this
>
> "This setting should probably match the setting on the "/remember/" line
> in expire.ctl."
And that's fine.
> I didn't ( still don't ) know why they should be the same, I just did as
> suggested.
Have a look at section
3.3. Article History and Duplicate Suppression
of USEPRO (RFC 5537):
http://www.eyrie.org/~eagle/usefor/drafts/draft-ietf-usefor-usepro-14.html
> I wanted to reject anything over a year old so set artcutoff
> to 365. Following the manual, I changed the remember line to 365 not
> realizing that it could eventually turn my history into a multi
> gigabyte, server crashing, monster.
No, the /remember/ setting has not that power. It should really match artcutoff
in case you want a year of articles without duplicates.
--
Julien ÉLIE
« -- Essayons d'interroger ce garde habilement sans éveiller ses soupçons...
-- Hep ! Où est enfermé Assurancetourix ? » (Astérix)
Re: INN's expire program and memory usage:
Author: Julien ÉLIE
Date: Thu, 13 Aug 2009 09:27
Date: Thu, 13 Aug 2009 09:27
47 lines
3697 bytes
3697 bytes
Hi Bruce,
> The logic of the whole thing, to write everything to history was based on
> the logic that it was more efficent to store the token, even if the article
> was refused or rejected (still never can remember which is which).
>
> The idea behind that was something with the database storage and history
> being a fifo or filo construction. If like a system has 20 feeds coming in,
> if an article came in from feed1, and was dropped (group not carried),
> logically in a few seconds it would likely show up from feeds 2 to 20, again
> and again and again.
>
> If it wasn't written in from feed1, there was a lack of efficency somewhere
> having to muddle through the whole database looking for something that
> wasn't there, again and again and again. If it was written in, but tagged
> like unavailable or something, it would behave the same way as if it was a
> duplicate.
Hopefully the server does not keep looking for that when the same article
comes from feeds 2 to 20.
It directly looks at its cache. See the hiscachesize: parameter in inn.conf.
hiscachesize
If set to a value other than 0, a hash of recently received Message-IDs
is kept in memory to speed history lookups. The value is the amount
of memory to devote to the cache in kilobytes. The cache is only used
for incoming feeds and a small cache can hold quite a few Message-IDs,
so large values aren't necessarily useful unless you have incoming feeds
that are badly delayed. innreport can provide useful statistics regarding
the use of the history cache, especially when it misses. A good value for
a system with more than one incoming feed is 256; systems with only one
incoming feed should probably set this to 0. The default value is 256.
> Anyway, short answer, edit the /remember/ line down to 7 or 10 and start
> breathing easier.
I do not think it will change much (unless for expired articles within
the last 365 days).
--
Julien ÉLIE
« -- Essayons d'interroger ce garde habilement sans éveiller ses soupçons...
-- Hep ! Où est enfermé Assurancetourix ? » (Astérix)
Re: INN's expire program and memory usage:
Author: Black Dragon
Date: Thu, 13 Aug 2009 13:44
Date: Thu, 13 Aug 2009 13:44
23 lines
1758 bytes
1758 bytes
=?Windows-1252?Q?Julien_=C9LIE?= wrote: > Hi Black Dragon, >> From expire.ctl; >> >> ## If article expires before 10 days, we still remember it for 10 days in >> ## case we get offered it again. Depending on what you use for the innd >> ## -c flag and how paranoid you are about old news, you might want to >> ## make this 28, 30, etc, but it's probably safe to reduce it to 7 in most >> ## cases if you want to keep your history file smaller. >> /remember/:10 > Hmm... I would tend to think that the commentary is wrong. If it's wrong then perhaps it should be corrected or removed? I often use the comments in config files as a guide. Now I'm wondering what else I've been mis-lead to believe because of that. Feh. -- Black Dragon The girl who stoops to conquer usually wears a low-cut dress.
Re: INN's expire program and memory usage:
Author: Julien ÉLIE
Date: Thu, 13 Aug 2009 13:48
Date: Thu, 13 Aug 2009 13:48
20 lines
2135 bytes
2135 bytes
Hi Black Dragon, >> Hmm... I would tend to think that the commentary is wrong. > > If it's wrong then perhaps it should be corrected or removed? Yes, of course it will be corrected in INN 2.5.1. > I often use the comments in config files as a guide. Now I'm wondering > what else I've been mis-lead to believe because of that. Feh. :-> -- Julien ÉLIE « -- Essayons d'interroger ce garde habilement sans éveiller ses soupçons... -- Hep ! Où est enfermé Assurancetourix ? » (Astérix)
Re: INN's expire program and memory usage:
Author: Bruce Esquibel
Date: Thu, 13 Aug 2009 14:41
Date: Thu, 13 Aug 2009 14:41
54 lines
4180 bytes
4180 bytes
NPG <nathan@cmpublishers.com> wrote: > Man, if you can /remember/:3650 ( even vaguely ) the state of NNTP > software and real OS's then, I'll listen to what you have to say. > Ten years ago, I though Win95 was an adequate OS, and didn't even own a > UTP cable. > I'll try to understand where we have been in order to appreciate where > we are today. This is for amusement only, some other things I remember... Back in 93/94 there was a "usenet on cdrom" service. It was some company that captured all the posts on usenet, even the binaries, every week they would mail out a 600mb cdrom with the weeks past posts. Guess that worked until usenet reached 100mb a day. Later in the 90's there was a satellite service called Pagesat, for like around $600 plus a subscription fee you would get a Ku band dish and special receiver and they would broadcast a "around the clock" news feed. The receiver hooked up to you box via the serial port and it would drop something that resembled uucp batches into it. Was equal to about a 56kb feed and suffered the same death as the cdrom idea, once usenet grew past what could fit on 56kb, they started to drop binary groups and tried to introduce new receivers with compression but by then T1's were fairly common. There used to be contests to see how far an article traveled. People would examine the path header and try to figure out the distant between the hops, then add them all up. There used to be these "uucp maps" listings where each news server was listed with it's physical location along with longitute and latitude. I think extra points were given if you could get the article passed through the Murdow station (probably spelled wrong) in the antarctic. The biggest nightmare for a news admin was being "backlogged". Usenet used to come in batches, not streamed like it is now, even if you were live on a wire. The batches were like tar balls of new articles. You would collect the batches and "explode" them (inject), usually by a cron job every 15 or 30 minutes. The problem was that if you had slow i/o it was easy to get in more news than your box could write out to the spool. This problem was easy to get into an avalanche situation, once it started to get backlogged it was just a matter of when you would start "throwing out news" meaning deleting the batches sitting in /var/spool/news/incoming (now normally an empty directory). You would cross your fingers no one noticed the holes. One other thing, when people only read news from shell boxes, there used to be these programs that used to collect the data from the .newsrc's from everyones home directory. The end result would generate a new expire.ctl file that reduced groups that no one were reading down to a day or two, and increase the ones being read to a longer expire time. Enough of the old fart mode. -bruce bje@ripco.com
Re: INN's expire program and memory usage:
Author: Bruce Esquibel
Date: Thu, 13 Aug 2009 15:08
Date: Thu, 13 Aug 2009 15:08
34 lines
2382 bytes
2382 bytes
Julien ?LIE <iulius@nom-de-mon-site.com.invalid> wrote: > Hi Black Dragon, >> From expire.ctl; >> >> ## If article expires before 10 days, we still remember it for 10 days in >> ## case we get offered it again. Depending on what you use for the innd >> ## -c flag and how paranoid you are about old news, you might want to >> ## make this 28, 30, etc, but it's probably safe to reduce it to 7 in most >> ## cases if you want to keep your history file smaller. >> /remember/:10 > Hmm... I would tend to think that the commentary is wrong. Probably, not that this sheds any light on the matter but I found an old source directory for INN1.4-sec, which I think is from december of 1993, but... ## If article expires before 14 days, we still remember it for 14 days in ## case we get offered it again. Depending on what you use for the innd ## -c flag and how paranoid you are about old news, you might want to ## make this 28, 30, etc. /remember/:14 Besides padding the paragraph on the current expire.ctl, what it says basically goes back 15 years or so. It's just old documentation. Still not convinced it's inaccurate though. -bruce bje@ripco.com
Re: INN's expire program and memory usage:
Author: Russ Allbery
Date: Thu, 13 Aug 2009 17:04
Date: Thu, 13 Aug 2009 17:04
26 lines
2433 bytes
2433 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> writes:
> Hi Black Dragon,
>> From expire.ctl;
>>
>> ## If article expires before 10 days, we still remember it for 10 days in
>> ## case we get offered it again. Depending on what you use for the innd
>> ## -c flag and how paranoid you are about old news, you might want to
>> ## make this 28, 30, etc, but it's probably safe to reduce it to 7 in most
>> ## cases if you want to keep your history file smaller.
>> /remember/:10
> Hmm... I would tend to think that the commentary is wrong.
> During expire, we write an history line when the arrival time of the
> article is superior than the threshold.
I don't see how what you said contradicts what that says. That comment is
about the retention of history entries for articles that were accepted and
then expired. I'm fairly sure that INN behaves the way that it documents.
--
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: Thu, 13 Aug 2009 17:32
Date: Thu, 13 Aug 2009 17:32
35 lines
2969 bytes
2969 bytes
Hi Russ, >>> From expire.ctl; >>> >>> ## If article expires before 10 days, we still remember it for 10 days in >>> ## case we get offered it again. Depending on what you use for the innd >>> ## -c flag and how paranoid you are about old news, you might want to >>> ## make this 28, 30, etc, but it's probably safe to reduce it to 7 in most >>> ## cases if you want to keep your history file smaller. >>> /remember/:10 > >> Hmm... I would tend to think that the commentary is wrong. > >> During expire, we write an history line when the arrival time of the >> article is superior than the threshold. > > I don't see how what you said contradicts what that says. That comment is > about the retention of history entries for articles that were accepted and > then expired. I'm fairly sure that INN behaves the way that it documents. Maybe the wording is not optimal. It appears that the first sentence was interpreted differently by other people in that thread. "We still remember it for 10 days" was interpreted to "10 additional days", which is *not* the case. It is 10 days after the posting date. So instead of saying the commentary is wrong, I should have written that the commentary should be reworded... -- Julien ÉLIE « Tous les matins, j'apporte à ma femme le café au lit. Elle n'a plus qu'à le moudre. » (Coluche)
Re: INN's expire program and memory usage:
Author: Russ Allbery
Date: Thu, 13 Aug 2009 17:39
Date: Thu, 13 Aug 2009 17:39
38 lines
3135 bytes
3135 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> writes:
>>>> From expire.ctl;
>>>>
>>>> ## If article expires before 10 days, we still remember it for 10 days in
>>>> ## case we get offered it again. Depending on what you use for the innd
>>>> ## -c flag and how paranoid you are about old news, you might want to
>>>> ## make this 28, 30, etc, but it's probably safe to reduce it to 7 in most
>>>> ## cases if you want to keep your history file smaller.
>>>> /remember/:10
>>
>>> Hmm... I would tend to think that the commentary is wrong.
>>
>>> During expire, we write an history line when the arrival time of the
>>> article is superior than the threshold.
>>
>> I don't see how what you said contradicts what that says. That comment is
>> about the retention of history entries for articles that were accepted and
>> then expired. I'm fairly sure that INN behaves the way that it documents.
> Maybe the wording is not optimal.
> It appears that the first sentence was interpreted differently by other
> people in that thread. "We still remember it for 10 days" was interpreted
> to "10 additional days", which is *not* the case. It is 10 days after the
> posting date.
> So instead of saying the commentary is wrong, I should have written that
> the commentary should be reworded...
Oh! Yes. I guess I'm too familiar with what it is supposed to mean that
the other interpretation never occurred to me. "remember it for 10 days
from its original arrival time" is probably clearer.
--
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: Ray Banana
Date: Thu, 13 Aug 2009 17:51
Date: Thu, 13 Aug 2009 17:51
22 lines
2710 bytes
2710 bytes
Thus spake Russ Allbery <rra@stanford.edu>
> Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> writes:
>> Maybe the wording is not optimal.
>> It appears that the first sentence was interpreted differently by other
>> people in that thread. "We still remember it for 10 days" was interpreted
>> to "10 additional days", which is *not* the case. It is 10 days
^^^^^^^^^^^^^
>> after the posting date.
^^^^^^^^^^^^^^^^^^^^^^
>> So instead of saying the commentary is wrong, I should have written that
>> the commentary should be reworded...
> Oh! Yes. I guess I'm too familiar with what it is supposed to mean that
> the other interpretation never occurred to me. "remember it for 10 days
> from its original arrival time" is probably clearer.
^^^^^^^^^^^^^^^^^^^^^
I'm afraid it's not. In fact, now you got me really confused.
--
Time flies like an arrow, fruit flies like a Banana.
http://www.eternal-september.org
Re: INN's expire program and memory usage:
Author: Julien ÉLIE
Date: Thu, 13 Aug 2009 18:01
Date: Thu, 13 Aug 2009 18:01
21 lines
2428 bytes
2428 bytes
Hi Ray, >>> So instead of saying the commentary is wrong, I should have written that >>> the commentary should be reworded... >> Oh! Yes. I guess I'm too familiar with what it is supposed to mean that >> the other interpretation never occurred to me. "remember it for 10 days >> from its original arrival time" is probably clearer. > ^^^^^^^^^^^^^^^^^^^^^ > I'm afraid it's not. In fact, now you got me really confused. (arrived >= hiscookie->threshold) Russ is right, it is the arrival time. I have checked and arrived contains the arrived field from the history file. -- Julien ÉLIE « Tous les matins, j'apporte à ma femme le café au lit. Elle n'a plus qu'à le moudre. » (Coluche)
Re: INN's expire program and memory usage:
Author: Ray Banana
Date: Thu, 13 Aug 2009 18:05
Date: Thu, 13 Aug 2009 18:05
21 lines
2696 bytes
2696 bytes
Thus spake Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> > Hi Ray, >>>> So instead of saying the commentary is wrong, I should have written that >>>> the commentary should be reworded... >>> Oh! Yes. I guess I'm too familiar with what it is supposed to mean that >>> the other interpretation never occurred to me. "remember it for 10 days >>> from its original arrival time" is probably clearer. >> ^^^^^^^^^^^^^^^^^^^^^ >> I'm afraid it's not. In fact, now you got me really confused. > (arrived >= hiscookie->threshold) > Russ is right, it is the arrival time. > I have checked and arrived contains the arrived field from the history file. Thanks for the clarification. You know I migrate servers around all the time, so posting date vs. arrival date makes quite a difference. -- Time flies like an arrow, fruit flies like a Banana. http://www.eternal-september.org
Re: INN's expire program and memory usage:
Author: John F. Morse
Date: Thu, 13 Aug 2009 21:03
Date: Thu, 13 Aug 2009 21:03
30 lines
2105 bytes
2105 bytes
Julien ÉLIE wrote: > Hi Black Dragon, > >>> Hmm... I would tend to think that the commentary is wrong. >> >> If it's wrong then perhaps it should be corrected or removed? > > Yes, of course it will be corrected in INN 2.5.1. > > >> I often use the comments in config files as a guide. Now I'm wondering >> what else I've been mis-lead to believe because of that. Feh. > > :-> > Hi, Julien. I would think incorrect information and typos should be corrected whenever they are found. They have nothing do do with the release of newer versions. Some people, for various and valid reasons, will not upgrade for some length of time. -- John
Re: INN's expire program and memory usage:
Author: Julien ÉLIE
Date: Thu, 13 Aug 2009 22:07
Date: Thu, 13 Aug 2009 22:07
22 lines
2300 bytes
2300 bytes
Hi John, >> Yes, of course it will be corrected in INN 2.5.1. > > I would think incorrect information and typos should be corrected > whenever they are found. > > They have nothing do do with the release of newer versions. > > Some people, for various and valid reasons, will not upgrade for some > length of time. Then what do you suggest? How could you change something in an already released version? (I do not understand the part when people do not upgrade -- what does it change for released or following versions?) -- Julien ÉLIE « C'est une forêt vierge où la main de l'homme n'a jamais mis le pied. »
Re: INN's expire program and memory usage:
Author: Julien ÉLIE
Date: Thu, 13 Aug 2009 22:08
Date: Thu, 13 Aug 2009 22:08
31 lines
2711 bytes
2711 bytes
Hi, > Thanks for the clarification. You know I migrate servers around all the > time, so posting date vs. arrival date makes quite a difference. Incidentally, it triggers off the problem mentioned in that thread. artcutoff: 365 /remember/: 365 now = January, 1st 2010 I suck another news server. I have all its articles for the year 2009 *arrived* on January, 1st 2010. Then, messages *posted* on January, 1st 2009 will expire but will remain in the history file until 2011, which leads to two years of articles in the history file. Isn't there a problem on the way /remember/ works? Shouldn't it be based upon the posting date? (especially when artcutoff is based upon the posting date) P.-S.: With the new terminology of RFC 5537 (USEPRO), the injection date is what matters, and not the posting date. -- Julien ÉLIE « C'est une forêt vierge où la main de l'homme n'a jamais mis le pied. »
Re: INN's expire program and memory usage:
Author: NPG
Date: Thu, 13 Aug 2009 23:52
Date: Thu, 13 Aug 2009 23:52
41 lines
2874 bytes
2874 bytes
* Julien ÉLIE wrote: > Hi, > >> Thanks for the clarification. You know I migrate servers around all the >> time, so posting date vs. arrival date makes quite a difference. > > Incidentally, it triggers off the problem mentioned in that thread. > > artcutoff: 365 > /remember/: 365 > > now = January, 1st 2010 > > I suck another news server. I have all its articles for the year 2009 > *arrived* on January, 1st 2010. > Then, messages *posted* on January, 1st 2009 will expire but will > remain in the history file until 2011, which leads to two years of > articles in the history file. > So we are retaining the article in history for an extra year? !! Which is exactly what I've been talking about. I am so confused right now. What I am currently thinking is that I should Leave artcutoff at 365, so when I pick up a new group I'll still get a years worth of the old news. Set remember down to 10 which will keep my history file from blowing up the server. > Isn't there a problem on the way /remember/ works? Shouldn't it be > based upon the posting date? (especially when artcutoff is based > upon the posting date) > > > P.-S.: With the new terminology of RFC 5537 (USEPRO), the injection date > is what matters, and not the posting date. >
Re: INN's expire program and memory usage:
Author: Russ Allbery
Date: Fri, 14 Aug 2009 00:28
Date: Fri, 14 Aug 2009 00:28
21 lines
2675 bytes
2675 bytes
NPG <nathan@cmpublishers.com> writes:
> What I am currently thinking is that I should Leave artcutoff at 365, so
> when I pick up a new group I'll still get a years worth of the old news.
> Set remember down to 10 which will keep my history file from blowing up
> the server.
If you set remember to 10 and artcutoff to 365, then when someone
reinjects an 11-day-old article into Usenet, you will accept it again and
have duplicate messages in the newsgroup.
How are you pulling down a year's worth of old news when you add a new
group? If that's a scripted process, you should temporarily set artcutoff
to 0 using ctlinnd while importing the news and then reset it to your
normal running value (10 is what I'd recommend).
--
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: Alexander Bartolich
Date: Fri, 14 Aug 2009 00:32
Date: Fri, 14 Aug 2009 00:32
25 lines
2717 bytes
2717 bytes
NPG wrote: > [...] > What I am currently thinking is that I should > Leave artcutoff at 365, so when I pick up a new group I'll still get a > years worth of the old news. > Set remember down to 10 which will keep my history file from blowing up > the server. According to my experience your thoughts are correct. artcutoff is used as a criteria to reject incoming articles. Setting it to 365 makes sense if you intend to load articles that are a year old. remember is used as a criteria to remove history records that don't point to articles in the spool. As long as the article still exists the value of remember is irrelevant. Increasing the value of remember makes sense if you expect to receive old articles that you have already rejected. -- 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: Alexander Bartolich
Date: Fri, 14 Aug 2009 01:10
Date: Fri, 14 Aug 2009 01:10
51 lines
3731 bytes
3731 bytes
Russ Allbery wrote: > NPG <nathan@cmpublishers.com> writes: > >> What I am currently thinking is that I should Leave artcutoff at 365, so >> when I pick up a new group I'll still get a years worth of the old news. >> Set remember down to 10 which will keep my history file from blowing up >> the server. > > If you set remember to 10 and artcutoff to 365, then when someone > reinjects an 11-day-old article into Usenet, you will accept it again and > have duplicate messages in the newsgroup. I use the default value for /remember/. $ grep ^/remember/ /etc/news/expire.ctl /remember/:10 And yet the first line of my history file points to an article that is 16 month old. $ head -1 /var/lib/news/history [A99BF1B2B526070EAED949E08C038A0F] 1211153434~-~1211153143 @030544453100000000000000102400000001@ $ sm -H @030544453100000000000000102400000001@ | egrep 'Date|Message-ID' Date: Mon, 19 May 2008 01:25:43 +0200 Message-ID: <4830bab5$0$6775$9b4e6d93@newsspool2.arcor-online.net> NNTP-Posting-Date: 19 May 2008 01:24:37 CEST Apparently /remember/ does not affect history records pointing to articles in the spool. So when someone reinjects an 11-day-old article into Usenet it will not be accepted as long as the original article still exists in the spool. This limits the possible damage of reinjected articles to articles that a) were outright rejected (e.g. by cleanfeed) b) were regularly expired c) were later on removed (supersede, cancel, NoCeM) If the rejection rules are constant then the reinjected articles will be rejected again. This is just a waste of bandwidth. To avoid reinjection of expired articles it is enough if artcutoff is less then expiration time. That leaves the third case. -- 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 01:16
Date: Fri, 14 Aug 2009 01:16
36 lines
3158 bytes
3158 bytes
Alexander Bartolich <alexander.bartolich@gmx.at> writes:
> Apparently /remember/ does not affect history records pointing to
> articles in the spool. So when someone reinjects an 11-day-old article
> into Usenet it will not be accepted as long as the original article
> still exists in the spool.
Yes.
> This limits the possible damage of reinjected articles to articles that
> a) were outright rejected (e.g. by cleanfeed)
> b) were regularly expired
> c) were later on removed (supersede, cancel, NoCeM)
Right, the main risk case is (b). If your expiry time is always longer
than your artcutoff time, you're just wasting bandwidth and it doesn't
really matter. That's not always the case, though.
> That leaves the third case.
Yeah. Although that's increasingly rare.
http://www.eyrie.org/~eagle/usefor/drafts/draft-ietf-usefor-usepro-14.html#history
attempts to document the full situation. News servers with a history
expiration shorter than their artcutoff will not be compliant with the
standard because they may accept duplicate articles. You can, of course,
choose to be strategically non-compliant because you have additional
information that lets you know it won't matter, but general-purpose news
software such as INN shouldn't encourage that.
--
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: John F. Morse
Date: Fri, 14 Aug 2009 02:07
Date: Fri, 14 Aug 2009 02:07
48 lines
3029 bytes
3029 bytes
Julien ÉLIE wrote: > Hi John, > >>> Yes, of course it will be corrected in INN 2.5.1. >> >> I would think incorrect information and typos should be corrected >> whenever they are found. >> >> They have nothing do do with the release of newer versions. >> >> Some people, for various and valid reasons, will not upgrade for some >> length of time. > > Then what do you suggest? > How could you change something in an already released version? > (I do not understand the part when people do not upgrade -- what > does it change for released or following versions?) > Hi, Julien. Maybe I misunderstood the earlier comment. I thought the problem was with documentation, which could be corrected and/or improved without the actual program code being upgraded. The other question about people balking about upgrading concerns the program code itself. Some people may not have time to mess with an upgrade. Others may not want to compile, and instead will wait until their distro has been upgraded to include a newer INN upgrade. Still others believe in the old idea that "if it ain't broke, don't fix it." Usually "fixing" something will introduce further problems. ;-) I kinda subscribe to all of the above. For me, stability is the determining factor, and not cutting edge software just to keep up with the Jones' and their neverending struggle to have the latest and best of everything. But if corrected documentation is available, I certainly would want it. -- John
Re: INN's expire program and memory usage:
Author: NPG
Date: Fri, 14 Aug 2009 02:26
Date: Fri, 14 Aug 2009 02:26
54 lines
3600 bytes
3600 bytes
* Russ Allbery wrote: > NPG <nathan@cmpublishers.com> writes: > >> What I am currently thinking is that I should Leave artcutoff at 365, so >> when I pick up a new group I'll still get a years worth of the old news. >> Set remember down to 10 which will keep my history file from blowing up >> the server. > > If you set remember to 10 and artcutoff to 365, then when someone > reinjects an 11-day-old article into Usenet, you will accept it again and > have duplicate messages in the newsgroup. > OK, that makes sense. If a peer went down, than came up two weeks later, that could realy mess thing up. > How are you pulling down a year's worth of old news when you add a new > group? Short answer newsx Long answer 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. When I read the new group all I'll see are articles from the time I typed ctlinnd to now. 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. The advantage is that I may see that someone else already asked my question and I won't even have to post it. When I first started using INN the newsx way was how I got all my news. Then I started peering to get some groups that my ISP wasn't carrying. I hope that clarifies things. > If that's a scripted process, you should temporarily set artcutoff > to 0 using ctlinnd while importing the news and then reset it to your > normal running value (10 is what I'd recommend). >
Re: INN's expire program and memory usage:
Author: Russ Allbery
Date: Fri, 14 Aug 2009 02:51
Date: Fri, 14 Aug 2009 02:51
20 lines
2545 bytes
2545 bytes
NPG <nathan@cmpublishers.com> writes:
> When I read the new group all I'll see are articles from the time I
> typed ctlinnd to now.
> 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.
Ah, hm. There isn't an easy way to plug ctlinnd into that, since you may
have incoming feeds while you run newsx, and you really only want to
change the cutoff when you've added a new newsgroup.
--
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: NPG
Date: Fri, 14 Aug 2009 03:21
Date: Fri, 14 Aug 2009 03:21
27 lines
2631 bytes
2631 bytes
* Russ Allbery wrote: > NPG <nathan@cmpublishers.com> writes: > >> When I read the new group all I'll see are articles from the time I >> typed ctlinnd to now. > >> 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. > > Ah, hm. There isn't an easy way to plug ctlinnd into that, since you may > have incoming feeds while you run newsx, Yep, > and you really only want to > change the cutoff when you've added a new newsgroup. > No, my main interest was keeping the history files down to size so the server wouldn't blow up when expire ran. I think that was why our old server kept blowing up. It had 512 MB of RAM and the history was around 800 MB
Re: INN's expire program and memory usage:
Author: Julien ÉLIE
Date: Fri, 14 Aug 2009 08:07
Date: Fri, 14 Aug 2009 08:07
44 lines
3493 bytes
3493 bytes
Hi Russ,
> Oh! Yes. I guess I'm too familiar with what it is supposed to mean that
> the other interpretation never occurred to me. "remember it for 10 days
> from its original arrival time" is probably clearer.
OK, thanks for the rewording.
But something seems weird here.
USEPRO suggests the two behaviours (arrival and injection) are possible:
In the following discussion, the "date" of an article is defined to be
the date represented by its Injection-Date header field if present,
otherwise its Date header field.
# Agents that enforce such a cutoff MAY then drop records of articles
that had dates older than the cutoff from their history databases.
If such an article were offered to the agent again, it would be rejected
due to the cutoff date, so the history record is no longer required to
suppress the duplicate.
# 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...
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).
--
Julien ÉLIE
« -- Nous parlerons quand l'interprète dormira.
[Bong !]
-- Il dort. On peut parler. » (Astérix)
Page 1 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