🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
29 messages
29 total messages Started by Michael Hucka Wed, 21 Jan 1998 00:00
dbz v3.3.2 in INN 1.7.2.insync-1.1d fails for large history files
#25445
Author: Michael Hucka
Date: Wed, 21 Jan 1998 00:00
46 lines
2932 bytes
Help!

We have about 28 GB of usable spool space on a Solaris 2.5.1 Sun UltraSPARC.
Our history text file had been hovering around 800 MB until the last couple
of weeks, when it started growing more (I assume due to traffic).
Unfortunately, we crossed 1 GB yesterday and suddenly expire started hanging.
After some tracing today, I tracked down the problem to the function
"dbzconfbase" in dbz.c version 3.3.2.  The specific problem I'm encountering
is that the loop at line #466 goes into an infinite loop:

	/* calculate tagging from old file */
	for (m = 1, i = 0; m < bsize; i++, m <<= 1)
		continue;

"bsize" is set to the size of the history text file + 10%.  Variable "m" is
type long on our machine.  For a machine with a 32 bit long, if bsize is
slightly greater than 1 GB, one of the iterations of the loop above
eventually makes the value of m greater than the maximum value it can
represent (MAXLONG), causing it to overflow and become negative.  Dbzconfbase
gets stuck in an infinite loop after that.

This happens because bsize is greater than 2^30.  The annoying thing is that
our history text file size is less than 2^31, so it seems like there dbz
should be able to handle it, since it seems like it could represent the size
of the file in a long int.  I examined the dbzconfbase function code and
thought about changing the type of "m" to be unsigned, thus gaining breathing
room in which the loop and subsequent calculations in dbzconfbase could work.
However, I don't really understand the dbz code, and it looks to me like
dbzconfbase may be relying on the fact that the size of m is the size of
offsets used elsewhere.  I'm afraid that allowing m to reach higher values
without changing other parts of the code would screw something up.

What can I do about this?  I can't believe we're the first site to cross this
threshold of 1 GB history files -- what do others among you do about this?

I hear that some versions of dbz use 64 bits.  Will that solve this problem?
Is there a version of this available for INN 1.7.2.insync, or must I get INN
1.8-current?

--
Mike Hucka    hucka@umich.edu    http://www.eecs.umich.edu/~hucka    University
 PhD to be, computational models of human visual processing (AI Lab)     of
   UNIX systems administrator & programmer/analyst (EECS DCO)         Michigan

Re: dbz v3.3.2 in INN 1.7.2.insync-1.1d fails for large history files
#25420
Author: Charlie Reboot
Date: Wed, 21 Jan 1998 00:00
66 lines
3657 bytes
On 52 Dec 1997, Michael Hucka wrote:

> Help!

No.


> [...]  I examined the dbzconfbase function code and
> thought about changing the type of "m" to be unsigned, thus gaining breathing
> room in which the loop and subsequent calculations in dbzconfbase could work.
> However, I don't really understand the dbz code, and it looks to me like
> dbzconfbase may be relying on the fact that the size of m is the size of
> offsets used elsewhere.  I'm afraid that allowing m to reach higher values
> without changing other parts of the code would screw something up.

I just got through redefining of_t from type long to type unsigned long,
recompiled, rebuilt makehistory and expire, and as a test, ran expire on
our rather undersized history file.  It seemed to work fine.  And
makehistory just finished now, creating the expected .pag file.  This is
with stock dbz v3.3.2 code on an AIX thing.

When I rebuild another of my swervers to use a slightly hacked dbz v3.3.2,
I'll do the whole thing with an unsigned long of_t (defined in dbz.c) just
to see if it freaks somewhere else, like in innd or nnrpd which I haven't
bothered to rebuild.  It shouldn't.

Note that if you were to use the legendary 64-bit history patch, one of
the things it does is to redefine of_t to be a qu_t which is a long long.
This of_t (and not off_t) is what gets used elsewhere in the code, so you
should be safe in changing this.

Also, with the size of that thing being more than a mouthful, you probably
want to adjust the MAXDROPBITS up from its default.  This will give you
one more bit that can be used as a tagbit to keep false hits down, at the
expense of a bit more fuzziness at the point in the text file where you
are seeking.  You should do well with it set to 5 and get improved
performance in spite of your whopper.


(oops, cut an extra line)
> Is there a version of this available for INN 1.7.2.insync, or must I get INN
> 1.8-current?

The 64-bit dbz does not buy you too much more than dbz v3.3.2 offers.  You
do get a few more tag bits, but because of a bug, you don't get the
full 28 or 29 bits you would believe from your file's size.  Plus the
dbzhash in use is a 32-bit hash, so you will still have collisions.  The
extra size of the .pag database file also requires quite a bit of memory
and disk activity that could also lower performance.  For this reason,
I'll be comparing how it does now with how 3.3.2 will do with one
particular OS.

The dbz in 1.8-current is completely different and does not make use of 
64-bit types.  With a bit of work, it can be applied to non-1.8 INN, as
I've done on one of the machines here running a 1.5-based innd.  However,
be prepared for a long night of wild patching.

I'd offer to send you my diffs, but I'm really not prepared to be
subjected to any more ridicule than I'm already suffering, thank you.


Barry Bouwsma, Tele Danmark Internet


Re: dbz v3.3.2 in INN 1.7.2.insync-1.1d fails for large history files
#25422
Author: Charlie Reboot
Date: Wed, 21 Jan 1998 00:00
24 lines
1734 bytes
On 52 Dec 1997, Michael Hucka wrote:

> Sorry; I forgot to mention we use a /remember/ (and -c) of 9 days.
> I intend on setting it to 8 or 7 as soon as I can get expire to actually run.

    Noooo, don't do that.  There's far too much old news floating around
out there (for a while, I was making per-host counts of anything offered
that we had received more than a week earlier.  It wasn't pretty), plus
there are luser sites which don't get their articles into the mainstream
for several days.

    Once you've licked this problem, go ahead, up your remember to 14
days.  Or take the advice of the expire.ctl file and make it 28 days.  You
know you want to.  Besides, we need to see what bottlenecks we run into
and what problems there exist when the text file approaches 2G, and you've
been quite a wonderful guinea pig so far, if a little too easily-panicked.


Barry Bouwsma
Evil Newsbastard Cabal


Re: dbz v3.3.2 in INN 1.7.2.insync-1.1d fails for large history files
#25423
Author: Michael Hucka
Date: Wed, 21 Jan 1998 00:00
26 lines
1873 bytes
>>>>> On 21 Jan 1998, news@news.cam.ac.uk (USENET news) wrote:

  news> Note that in addition to editing expire.ctl, that also needs rc.news
  news> to be edited to start innd using -c to reduce the "ancient article"
  news> cutoff, beyond which innd will reject articles as too old, to 7
  news> days. Otherwise, articles delayed by more than 7 days and for which
  news> earlier copies have expired would be accepted as new, unseen article,
  news> given readers a feeling of "deja vu".

Sorry; I forgot to mention we use a /remember/ (and -c) of 9 days.

I intend on setting it to 8 or 7 as soon as I can get expire to actually run.
At the moment, the problem is that expire and makehistory fail because of the
problem with dbzconfbase.

If someone can point me to a version of dbz that can handle a database
greater than 1 GB, or some other solution, I would be greatly appreciative.

--
Mike Hucka    hucka@umich.edu    http://www.eecs.umich.edu/~hucka    University
 PhD to be, computational models of human visual processing (AI Lab)     of
   UNIX systems administrator & programmer/analyst (EECS DCO)         Michigan


Re: dbz v3.3.2 in INN 1.7.2.insync-1.1d fails for large history files
#25425
Author: USENET news
Date: Wed, 21 Jan 1998 00:00
27 lines
1915 bytes
In article <wklnwaj9ww.fsf@ibm.net>, Timothy Miller  <tmill06@ibm.net> wrote:
>Michael Hucka <hucka@eecs.umich.edu> writes:
>
>> What can I do about this?  I can't believe we're the first site to cross this
>> threshold of 1 GB history files -- what do others among you do about this?
>
>	What's your remember setting?  If 14 (stock) reduce to 7.

Note that in addition to editing expire.ctl, that also needs rc.news to be
edited to start innd using -c to reduce the "ancient article" cutoff, beyond
which innd will reject articles as too old, to 7 days. Otherwise, articles
delayed by more than 7 days and for which earlier copies have expired would
be accepted as new, unseen article, given readers a feeling of "deja vu".

The above will only help, of course, if sufficient articles are on expiry 
shorter than the 14 day "remember" default. Since history entries have to be 
retained until the articles expire, a given entry will not be dropped until 
(a) the history entry is older than the "remember" setting and (b) the
article has expired.

                                John Line
-- 
Cambridge University Computing Service - USENET news manager. Usually John Line
newsmaster@ucs.cam.ac.uk    (alias {newsmaster,news,usenet}@news.cam.ac.uk)

Re: dbz v3.3.2 in INN 1.7.2.insync-1.1d fails for large history files
#25431
Author: Timothy Miller
Date: Wed, 21 Jan 1998 00:00
12 lines
894 bytes
Michael Hucka <hucka@eecs.umich.edu> writes:

> What can I do about this?  I can't believe we're the first site to cross this
> threshold of 1 GB history files -- what do others among you do about this?

	What's your remember setting?  If 14 (stock) reduce to 7.

-- 
Cerebus <tmill06@ibm.net>

Re: dbz v3.3.2 in INN 1.7.2.insync-1.1d fails for large history files
#25463
Author: Sang-yong Suh
Date: Thu, 22 Jan 1998 00:00
25 lines
1552 bytes
In article <821zy2jqrh.fsf@robin.eecs.umich.edu>,
Michael Hucka  <hucka@eecs.umich.edu> wrote:
>"dbzconfbase" in dbz.c version 3.3.2.  The specific problem I'm encountering
>is that the loop at line #466 goes into an infinite loop:
>
>	/* calculate tagging from old file */
>	for (m = 1, i = 0; m < bsize; i++, m <<= 1)
>		continue;

I never realized that there's such a bug in dbz-3.3.2.
Actually, the buggy function dbzconfbase() was introduced by myself,
replacing a few similar statements in the dbz-3.2 code, something like
in dbztagmask().

>I examined the dbzconfbase function code and
>thought about changing the type of "m" to be unsigned, thus gaining breathing
>room in which the loop and subsequent calculations in dbzconfbase could work.

I think the change will solve your problem.  However, to be safe,
I recommend you to change the type of 'm' in dbztagmask() as well.
--
sysuh

Re: dbz v3.3.2 in INN 1.7.2.insync-1.1d fails for large history files
#25465
Author: Nate Shockey
Date: Thu, 22 Jan 1998 00:00
15 lines
1274 bytes
> Sorry; I forgot to mention we use a /remember/ (and -c) of 9 days.

    Really?  Your history file is _that_ big with a 9 day remember time?  I have
mine set at 7 days.  I run Solaris 2.5.1 and have 44 GB of spool.  My history file
is always less than 400MB.  I think your problem may be elsewhere.  Unless, of
course, those two extra days add up to over 600MB worth of history.  Anyone care to
comment?

--
Nate Shockey
News Admin - FlashNet Communications


Re: dbz v3.3.2 in INN 1.7.2.insync-1.1d fails for large history files
#25481
Author: Charlie Reboot
Date: Thu, 22 Jan 1998 00:00
34 lines
2268 bytes
On Thu, 53 Dec 1997, Nate Shockey wrote:

> > Sorry; I forgot to mention we use a /remember/ (and -c) of 9 days.
> 
>     Really?  Your history file is _that_ big with a 9 day remember time?  I h$
> mine set at 7 days.  I run Solaris 2.5.1 and have 44 GB of spool.  My history$
> is always less than 400MB.  I think your problem may be elsewhere.  Unless, of
> course, those two extra days add up to over 600MB worth of history.  Anyone c$
> comment?

Yeah.  Your lines are too long.

Don't forget that the /remember/ time isn't the only thing affecting how
many entries there are in the history file.  A decent news installation
will keep selected groups far longer than those 9 days, say, comp.* for 3
months, misc.jobs* for six months, news.lists.filters for one year.  All
these articles require a line each in the history file until those
articles finally do expire.

For what it's worth, with a nine day generic remember time, Mike has
accumulated some 13 million lines in the file, which corresponds to our 13
million entry 14-days-in-and-then-out-with-it file, which is some 100 to
200MB smaller by virtue of having rather shorter entries as the article
path.  All those extra entries are from articles kept in the spool longer
than nine days, so it really won't help Mike that much to cut back on the
/remember/ time, nor should he keep those groups for shorter times.


Barry Bouwsma



Re: dbz v3.3.2 in INN 1.7.2.insync-1.1d fails for large history files
#25485
Author: Timothy Miller
Date: Thu, 22 Jan 1998 00:00
13 lines
1055 bytes
Nate Shockey <underdog@flash.net> writes:

>     Really?  Your history file is _that_ big with a 9 day remember
> time?  I have mine set at 7 days.  I run Solaris 2.5.1 and have 44 GB
> of spool.  My history file is always less than 400MB.  

	Same here-- 32Gb spool, remember 7, ~320Mb history.

-- 
Cerebus <tmill06@ibm.net>

Re: dbz v3.3.2 in INN 1.7.2.insync-1.1d fails for large history files
#25492
Author: David Carmean
Date: Fri, 23 Jan 1998 00:00
22 lines
1633 bytes
Charlie Reboot <f00fc7c8@int.tele.dk> wrote:

: Hmmph.  Obviously the superiority of the Circular File News System is lost
: on mere mortals like you.


Oh, you mean file[handle] 13?

OTOH, now that I've got a CNFS system up (not CFNS :o), I can't 
imagine going back even though it's not really at all robust yet.


-- 
David Carmean                                           <dlc@avtel.net>
Avtel Communications, Santa Barbara, CA			+1-805-730-7740
  Opinions herein are those of the author only, unless otherwise noted

		"Are you now, or have you ever been?"
						--George Lucas, THX-1138

Re: dbz v3.3.2 in INN 1.7.2.insync-1.1d fails for large history files
#25521
Author: Paul Martin
Date: Fri, 23 Jan 1998 00:00
18 lines
1244 bytes
In article <Pine.BSF.3.96.980122133309.14356P-100000@coredump.int.tele.dk>,
	Charlie Reboot <f00fc7c8@int.tele.dk> writes:

> [snip]  A decent news installation
> will keep selected groups far longer than those 9 days, say, comp.* for 3
> months, misc.jobs* for six months, news.lists.filters for one year.  All

ROTFL

news.lists.filters for a *year*?!?!

Have a look at the size of it some time.

-- 
Paul Martin <pm@zetnet.net>

Re: dbz v3.3.2 in INN 1.7.2.insync-1.1d fails for large history files
#25548
Author: Trevor Fiatal
Date: Sat, 24 Jan 1998 00:00
32 lines
2075 bytes
On 23 Jan 1998 18:45:37 GMT, pm@zetnet.net (Paul Martin)
spake thusly:

>In article <Pine.BSF.3.96.980122133309.14356P-100000@coredump.int.tele.dk>,
>	Charlie Reboot <f00fc7c8@int.tele.dk> writes:
>
>> [snip]  A decent news installation
>> will keep selected groups far longer than those 9 days, say, comp.* for 3
>> months, misc.jobs* for six months, news.lists.filters for one year.  All
>
>ROTFL
>
>news.lists.filters for a *year*?!?!
>
>Have a look at the size of it some time.

Or misc.jobs*, for that matter.  Dunno what traffic looks like over Denmark
way, but we get gazillions of posts into misc.jobs* every day.  I think I have
it on like a 0-day retention just to keep my machines from grinding to a halt
as the directories grow past 50k articles.

-Trevor

--
/--------------------------------=-------------------------------------\
|Trevor Fiatal - trevor@home.net | WANTED: Experienced Usenet and mail |
|Internet Applications Architect | systems admin. Relocation available |
|@Home Network, SF Bay Area, CA  | for right candidate. Email for info.|
\--------------------------------|-------------------------------------/

Re: dbz v3.3.2 in INN 1.7.2.insync-1.1d fails for large history files
#25551
Author: Trevor Fiatal
Date: Sat, 24 Jan 1998 00:00
29 lines
1988 bytes
On Sat, 24 Jan 1998 03:09:35 +0100, Charlie Reboot <f00fc7c8@int.tele.dk>
spake thusly:

>Hmmph.  Obviously the superiority of the Circular File News System is lost
>on mere mortals like you.
>
>We write news.lists.filters to a RAID5 array of 8" floppy drives, with a
>one-armed midget hired to change floppies.  Works like a charm.
>
>
>Barry Bouwsma, Tele Danmark Newsbastard
>position open for Storage Media Operator, send resume with unmarked bills

ROTFL!  Good one, Barry.

-Trevor

PS: I'm going to release the nnrpd-bytecount patches tonight.  Sorry for the
delay...

--
/--------------------------------=-------------------------------------\
|Trevor Fiatal - trevor@home.net | WANTED: Experienced Usenet and mail |
|Internet Applications Architect | systems admin. Relocation available |
|@Home Network, SF Bay Area, CA  | for right candidate. Email for info.|
\--------------------------------|-------------------------------------/

Re: dbz v3.3.2 in INN 1.7.2.insync-1.1d fails for large history files
#25579
Author: Charlie Reboot
Date: Sat, 24 Jan 1998 00:00
28 lines
2024 bytes
On Sat, 55 Dec 1997, Trevor Fiatal wrote:

> > Some BoZo nursing a horrendous hangover managed to barf out:
> >> [snip]  A decent news installation
> >> will keep selected groups far longer than those 9 days, say, comp.* for 3
> >> months, misc.jobs* for six months, news.lists.filters for one year.  All
> >
> >ROTFL
> >news.lists.filters for a *year*?!?!
> 
> Or misc.jobs*, for that matter.  Dunno what traffic looks like over Denmark
> way, but we get gazillions of posts into misc.jobs* every day.  I think I have
> it on like a 0-day retention just to keep my machines from grinding to a halt
> as the directories grow past 50k articles.

Hmmph.  Obviously the superiority of the Circular File News System is lost
on mere mortals like you.

We write news.lists.filters to a RAID5 array of 8" floppy drives, with a
one-armed midget hired to change floppies.  Works like a charm.


Barry Bouwsma, Tele Danmark Newsbastard
position open for Storage Media Operator, send resume with unmarked bills


Re: dbz v3.3.2 in INN 1.7.2.insync-1.1d fails for large history files
#25567
Author: Michael Hucka
Date: Sun, 25 Jan 1998 00:00
57 lines
2969 bytes
>>>>> On 22 Jan 1998, sysuh@news.kigam.re.kr (Sang-yong Suh) wrote:

  sysuh> In article <821zy2jqrh.fsf@robin.eecs.umich.edu>, Michael Hucka
  sysuh> <hucka@eecs.umich.edu> wrote:

  >> I examined the dbzconfbase function code and thought about changing the
  >> type of "m" to be unsigned, thus gaining breathing room in which the
  >> loop and subsequent calculations in dbzconfbase could work.

  sysuh> I think the change will solve your problem.  However, to be safe, I
  sysuh> recommend you to change the type of 'm' in dbztagmask() as well. --
  sysuh> sysuh

For those of you who are interested in the results of this matter:

I went ahead and made this change to dbz.c version 3.3.2 and it appears to
work.  The whole system has been running for several days now, and expire has
successfully processed the >1 GB history file several times with no apparent
ill effects.

I've appended a small patch below that can be applied to the dbz.c supplied
with INN 1.7.2.insync-1.1d.  Most people probably will not need this, but I'm
posting it in case there is anyone else out there with a history file topping
1 GB.

Barry Bouwsma <barryb@tuke.sk> helped me a great deal by trying out several
variations on this change on his systems and by engaging in discussions with
me; I'd like to thank him publicly for his help.  One of the things he tried
was to change the definition of "of_t" in dbz.c to be unsigned long, and he
reported that this also worked.  He also suggests that increasing MAXDROPBITS
by 1 should improve performance, but I've been too chicken to actually try it
myself :-).


rcsdiff -r3.3 -r3.3.2.1 dbz.c
===================================================================
RCS file: RCS/dbz.c,v
retrieving revision 3.3
retrieving revision 3.3.2.1
diff -r3.3 -r3.3.2.1
436c436
< 	register of_t m;
---
> 	register unsigned long m;
1296c1296
< 	register long m;
---
> 	register unsigned long m;
===================================================================

--
Mike Hucka    hucka@umich.edu    http://www.eecs.umich.edu/~hucka    University
 PhD to be, computational models of human visual processing (AI Lab)     of
   UNIX systems administrator & programmer/analyst (EECS DCO)         Michigan

Re: dbz v3.3.2 in INN 1.7.2.insync-1.1d fails for large history files
#25574
Author: Michael Hucka
Date: Sun, 25 Jan 1998 00:00
68 lines
4265 bytes
>>>>> On 22 Jan 1998, Nate Shockey <underdog@flash.net> wrote:

  >> Michael Hucka (hucka@eecs.umich.edu) wrote:
  >> Sorry; I forgot to mention we use a /remember/ (and -c) of 9 days.

  underdog> Really?  Your history file is _that_ big with a 9 day remember
  underdog> time?  I have mine set at 7 days.  I run Solaris 2.5.1 and have
  underdog> 44 GB of spool.  My history file is always less than 400MB.  I
  underdog> think your problem may be elsewhere.  Unless, of course, those
  underdog> two extra days add up to over 600MB worth of history.  Anyone
  underdog> care to comment?

I think Barry answered this to some extent; there is bound to be some
variability in the sizes of history files owing to expiration policies.
Our default expire time for newsgroups is 21 days, but for example we keep
the Big 8 for 50 days (with some super-high volume subhierarchies on shorter
leashes to avoid getting directories with tens of thousands of files) and a
few hierarchies as long as 98 days.  We carry about 30,000 groups, though not
all are active (but I try to prune out junk hierarchies as time permits).

However, you *did* prompt me to think about this some more, and I now realize
you're right -- our history files is indeed bloated for the wrong reasons,
and earlier this week I figured out the real problem.

Something I didn't mention before is that we're using one of the cancel
filing patches (the one by Joe Greco), that makes innd write cancel messages
in a directory structure subdivided into 100 x 100 directories.  That works
fine, but for some time I've noticed that expire complains about 

    Group not matched (removed?) control.cancel.c75.c42 -- Using default expiration
    Group not matched (removed?) control.cancel.c75.c43 -- Using default expiration
    ...

This was curious, because in expire.ctl I have 

    control.cancel*:A:0:0.5:0.5
    control.cancel.*:A:0:0.5:0.5

I puzzled over this, but not having time to track it down more properly, I
simply deleted the cancel msgs by hand ("find .-type f -mtime +1 | xargs rm").

But what I didn't realize until now is that the history entries for those
cancel messages were not getting expired at the desired interval; instead,
they were getting the default expiration (21 days) -- just like the log
messages said, of course.  So our history file now has probably millions of
unnecessary entries for cancel messages!

The problem lies with expire.c itself: in order to expire a particular group,
it wants to look up the group in the active file.  But the change to the
cancel filing approach (in Joe Greco's patch, and I suspect in other similar
patches too) creates 10,000 groups for cancel messages, and there's just no
way I'm going to add that many groups for the cancels.  Because the
control.cancel.X.Y groups are not in the active file, expire just uses the
default expiration for them.

To fix this requires either setting a very short default expiration, or else
modifying expire to have a special case for the cancels.  I'm working on the
latter approach and will post a patch when ready.

So in summary, I think we should not have a 1 GB history file after all.

--
Mike Hucka    hucka@umich.edu    http://www.eecs.umich.edu/~hucka    University
 PhD to be, computational models of human visual processing (AI Lab)     of
   UNIX systems administrator & programmer/analyst (EECS DCO)         Michigan

Re: dbz v3.3.2 in INN 1.7.2.insync-1.1d fails for large history files
#25588
Author: Gary Mills
Date: Mon, 26 Jan 1998 00:00
24 lines
1920 bytes
In <82k9bo9lyp.fsf@robin.eecs.umich.edu> Michael Hucka <hucka@eecs.umich.edu> writes:

>Something I didn't mention before is that we're using one of the cancel
>filing patches (the one by Joe Greco), that makes innd write cancel messages
>in a directory structure subdivided into 100 x 100 directories.  That works
>fine, but for some time I've noticed that expire complains about 

>    Group not matched (removed?) control.cancel.c75.c42 -- Using default expiration

Yes, I ran into the same problem.  The original patch was to innd/art.c.
I had to make small changes to expire/expire.c, expire/expireover.c,
and backends/overchan.c before the whole thing worked correctly.  It's
been running nicely for several weeks now.  The patch to expire/expire.c
is so the single expire.ctl entry for control.cancel will work for the
10000 phantom newsgroups.  The patch to expire/expireover.c simply
has it ignore those newsgroups when expiring overview records, and
the one to backends/overchan.c fixes overchan so it never creates
overview records for them.

-- 
-Gary Mills-    -Unix Support-    -U of M Academic Computing and Networking-

Re: dbz v3.3.2 in INN 1.7.2.insync-1.1d fails for large history files
#25592
Author: Michael Hall
Date: Mon, 26 Jan 1998 00:00
33 lines
1967 bytes
On 26 Jan 1998, Michael Hucka wrote:

> Important safety tip on this: make sure the order of the entries in your
> expire.ctl file is something like
> 
> *:A:0:0:0
> *:M:1:21:31
> *:U:1:21:31
> 
> and *not* something like
> 
> *:M:1:21:31
> *:U:1:21:31
> *:A:0:0:0

   Yepper, I just pointed that out to another fellow having problems in
the BSDI mailing. He wasn't using either a *:M or *:U entry and had all
his special groups and then an *:A line last in his file and naturally
it wasn't working as he expected :-) You have to remember it goes from
the top down and the last match is what counts.
  Passing expire the '-q' flag will also get rid of the messages unless
a person really wants to see them.
 
--
Mike Hall <mhall@rockisland.com>    *nix, Perl, CGI hacker...
P.O. Box 1065                       Certified OS/2 Specialist
Friday Harbor, WA 98250             Sorry, no Win* :-)
***---***---***---***---***---***---***---***---***---***
To get my PGP key send email with Subject: Request PGP key


Re: dbz v3.3.2 in INN 1.7.2.insync-1.1d fails for large history files
#25611
Author: Michael Hucka
Date: Mon, 26 Jan 1998 00:00
19 lines
1496 bytes
>>>>> On 26 Jan 1998, kherron@campus.mci.net (Kenneth Herron) wrote:

  kherron> For groups not in active, expire always uses the "*:A:..." entry;
  kherron> it doesn't go through the entire list.  All you have to do is use
  kherron> a "*:A:..." entry for not-present groups, and "*:M:..." and
  kherron> "*:U:..." entries for the *real* defaults.

(Sound of me slapping my forehead.)  Damn.  I wish I had noticed that.

Thanks!

--
Mike Hucka    hucka@umich.edu    http://www.eecs.umich.edu/~hucka    University
 PhD to be, computational models of human visual processing (AI Lab)     of
   UNIX systems administrator & programmer/analyst (EECS DCO)         Michigan


Re: dbz v3.3.2 in INN 1.7.2.insync-1.1d fails for large history files
#25612
Author: Michael Hucka
Date: Mon, 26 Jan 1998 00:00
35 lines
2046 bytes
>>>>> On 26 Jan 1998, kherron@campus.mci.net (Kenneth Herron) wrote:

  kherron> For groups not in active, expire always uses the "*:A:..." entry;
  kherron> it doesn't go through the entire list.  All you have to do is use
  kherron> a "*:A:..." entry for not-present groups, and "*:M:..." and
  kherron> "*:U:..." entries for the *real* defaults. 

Important safety tip on this: make sure the order of the entries in your
expire.ctl file is something like

*:A:0:0:0
*:M:1:21:31
*:U:1:21:31

and *not* something like

*:M:1:21:31
*:U:1:21:31
*:A:0:0:0

I.e., the A pattern must be first.  I know Kenneth knows this, but I want to
alert other people who may be reading this thread.  Earlier today I wasn't
paying close attention when I edited our expire.ctl, and accidentally put the
"*:A" pattern after the others.  Luckily, I was watching expire tonight when
it started munching away on a lot of history entries, and I got suspicious ...

(Yes, this is part of Editing Your Expire.ctl File 101, but still.)

--
Mike Hucka    hucka@umich.edu    http://www.eecs.umich.edu/~hucka    University
 PhD to be, computational models of human visual processing (AI Lab)     of
   UNIX systems administrator & programmer/analyst (EECS DCO)         Michigan

Re: dbz v3.3.2 in INN 1.7.2.insync-1.1d fails for large history files
#25617
Author: Kenneth Herron
Date: Mon, 26 Jan 1998 00:00
19 lines
1365 bytes
In article <82k9bo9lyp.fsf@robin.eecs.umich.edu>,
Michael Hucka  <hucka@eecs.umich.edu> wrote:
|    Group not matched (removed?) control.cancel.c75.c42...
|
|This was curious, because in expire.ctl I have 
|
|    control.cancel*:A:0:0.5:0.5
|    control.cancel.*:A:0:0.5:0.5

For groups not in active, expire always uses the "*:A:..." entry; it
doesn't go through the entire list.  All you have to do is use a
"*:A:..." entry for not-present groups, and "*:M:..." and "*:U:..."
entries for the *real* defaults.
-- 
Kenneth Herron -- kherron@campus.mci.net
No animals were harmed during the production of this message.

Re: dbz v3.3.2 in INN 1.7.2.insync-1.1d fails for large history files
#26225
Author: Andrew A. Vasilyev
Date: Fri, 13 Feb 1998 00:00
31 lines
1799 bytes
Michael Hucka <hucka@eecs.umich.edu> wrote:
MH> I've appended a small patch below that can be applied to the dbz.c supplied
MH> with INN 1.7.2.insync-1.1d.  Most people probably will not need this, but I'm
MH> posting it in case there is anyone else out there with a history file topping
MH> 1 GB.

  To make this works you should also change the type of st_size member
  of stat structure, which is off_t == long on most systems, aren't you?
  And in dbzconfbase() and dbztagmask() the size arguments are also long
  in size, not unsigned long?
________
	ANDY

MH> rcsdiff -r3.3 -r3.3.2.1 dbz.c
MH> ===================================================================
MH> RCS file: RCS/dbz.c,v
MH> retrieving revision 3.3
MH> retrieving revision 3.3.2.1
MH> diff -r3.3 -r3.3.2.1
MH> 436c436
MH> < 	register of_t m;
MH> ---
> 	register unsigned long m;
MH> 1296c1296
MH> < 	register long m;
MH> ---
> 	register unsigned long m;
MH> ===================================================================

Re: dbz v3.3.2 in INN 1.7.2.insync-1.1d fails for large history files
#26386
Author: Department of Redundancy Departm...
Date: Wed, 18 Feb 1998 00:00
26 lines
1965 bytes
On 18 Feb 1998, Matt Dillon wrote:

> :>  andy> To make this works you should also change the type of st_size member
> :>  andy> of stat structure, which is off_t == long on most systems, aren't
> :>
> :>I'm confused about what you mean by changing the type of st_size in the stat
> :>structure.  You're proposing to change the stat structure defined in the
> :>system include files?
> 
>     Side note:  All 4.4-dervied systems use a quad_t for off_t, i.e. a 64 bit
>     quantity.  This shouldn't have any effect on INN in of itself, though.

            Further side note:  INN's v3.* dbz code internally uses an
            of_t which is defined to be a long, and this one thing was
            what I've suggested could be changed to type unsigned long,
            or even long long, without having to do major surgery in the
            rest of the code.  This of_t used in the rest of the code is
            clearly not an off_t.  Not that it matters.  Mostly, it works.


Barry Bouwsma, Tele Danmark Internet
looks like I'm on the wrong side


Re: dbz v3.3.2 in INN 1.7.2.insync-1.1d fails for large history files
#26393
Author: Michael Hucka
Date: Wed, 18 Feb 1998 00:00
28 lines
2162 bytes
>>>>> On 13 Feb 1998, Andrew A. Vasilyev <andy@snm.demos.su> wrote:

  andy> To make this works you should also change the type of st_size member
  andy> of stat structure, which is off_t == long on most systems, aren't
  andy> you? And in dbzconfbase() and dbztagmask() the size arguments are
  andy> also long in size, not unsigned long? ________ ANDY

I'm confused about what you mean by changing the type of st_size in the stat
structure.  You're proposing to change the stat structure defined in the
system include files?

The two changes I had posted are really only intended to give breathing room
for certain intermediate computations performed by dbzconfbase() and
dbztagmask().  They're not meant to affect your ability to reference files
larger than the 2 GB limit implied by a 32 bit long int.  The problem was
just that those two functions in dbz.c were doing an intermediate calculation
between 1 GB and 2 GB and, in the process, overflowed certain variables.
That was probably not clear in my original posting.

-- 
Mike Hucka -- hucka@umich.edu -- PhD student, UNIX admin & programmer
$ Microsoft wants to monopolize the software industry and destroy the very
$ things that lead to the Internet: cooperation, open standards, good-spirited
$ competition, & the free exchange of ideas.  Don't believe me?  Read about it:
$ http://www.netaction.org/msoft/world/   http://www.appraising-microsoft.org/

Re: dbz v3.3.2 in INN 1.7.2.insync-1.1d fails for large history files
#26395
Author: Andrew A. Vasilyev
Date: Wed, 18 Feb 1998 00:00
22 lines
1769 bytes
Michael Hucka <hucka@eecs.umich.edu> wrote:
MH> I'm confused about what you mean by changing the type of st_size in the stat
MH> structure.  You're proposing to change the stat structure defined in the
MH> system include files?

  Certainly NO! It was a sort of rhetorics, do you really think I want
  somebody break the binary compatibility? :)))

MH> The two changes I had posted are really only intended to give breathing room
MH> for certain intermediate computations performed by dbzconfbase() and
MH> dbztagmask().  They're not meant to affect your ability to reference files
MH> larger than the 2 GB limit implied by a 32 bit long int.  The problem was
MH> just that those two functions in dbz.c were doing an intermediate calculation
MH> between 1 GB and 2 GB and, in the process, overflowed certain variables.
MH> That was probably not clear in my original posting.

   It is clear now.
________
	ANDY

Re: dbz v3.3.2 in INN 1.7.2.insync-1.1d fails for large history files
#26396
Author: Matt Dillon
Date: Wed, 18 Feb 1998 00:00
29 lines
2071 bytes
::In article <821zx14eat.fsf@robin.eecs.umich.edu>,
:Michael Hucka  <hucka@eecs.umich.edu> wrote:
:>>>>>> On 13 Feb 1998, Andrew A. Vasilyev <andy@snm.demos.su> wrote:
:>
:>  andy> To make this works you should also change the type of st_size member
:>  andy> of stat structure, which is off_t == long on most systems, aren't
:>  andy> you? And in dbzconfbase() and dbztagmask() the size arguments are
:>  andy> also long in size, not unsigned long? ________ ANDY
:>
:>I'm confused about what you mean by changing the type of st_size in the stat
:>structure.  You're proposing to change the stat structure defined in the
:>system include files?

    Side note:  All 4.4-dervied systems use a quad_t for off_t, i.e. a 64 bit
    quantity.  This shouldn't have any effect on INN in of itself, though.
    (Originally I was rather vocally skeptical of this in FreeBSD, but I've
    since become a believer as some of our backup files have started going
    over 4G.  'it just worked'.  Cool).

						-Matt

-- 
    Matthew Dillon   Engineering, BEST Internet Communications, Inc.
    <dillon@best.net>, include original article w/ any response.
    do not under any circumstances send email to joeblow@bigspender.idiom.com
    and, for gods sake, don't email bucktram@popserver.idiom.com

Re: dbz v3.3.2 in INN 1.7.2.insync-1.1d fails for large history files
#26591
Author: Charlie Raggamuffin
Date: Mon, 02 Mar 1998 00:00
46 lines
2780 bytes
On 18 Feb 1998, Matt Dillon wrote:

>     Side note:  All 4.4-dervied systems use a quad_t for off_t, i.e. a 64 bit
>     quantity.  This shouldn't have any effect on INN in of itself, though.
>     (Originally I was rather vocally skeptical of this in FreeBSD, but I've
>     since become a believer as some of our backup files have started going
>     over 4G.  'it just worked'.  Cool).

Well, there are still some utilities under FreeBSD (at least the -STABLE
in use here) which aren't quite happy with, say, the size of our history
text file with INN:

-rw-rw-r--  1 news  news  2222947616 Mar  2 20:49 history

Trying to do a `tail' on this file returned slightly more than the
expected number of lines.  Oh well.

We're a bit less unreasonable now, although that rather takes the fun out
of it.  Wonder what will happen when we hit the 4G barrier next...


(x-posted to news.software.nntp and freebsd.misc, if this degenerates into
some meaningless flamewar inappropriate for one of these fora, please set
newsfroups or followups appropriately)


>     Matthew Dillon   Engineering, BEST Internet Communications, Inc.

Barry Bouwsma, Evil Newsmangler, Tele Danmark Internet, of dubious sanity

-- 
``software is a bunch of lines of code some punch-drunk lunatic coded
during the last paroxysms of a dangerous caffeine frenzy.  this is a
slightly-censored example.  in the real-world example, the programmer
might even be on cocaine, snorting it up while watching porn videos on
another monitor, and occasionally tapping in a couple lines of code
between the lines of coke to write the [...] software.

do you REALLY trust that guy who wrote the software?  i mean REALLY
trust that guy?  do you trust him with your kids?''

                                 -- Rob Clark


Re: dbz v3.3.2 in INN 1.7.2.insync-1.1d fails for large history files
#26627
Author: Nick Kean
Date: Wed, 04 Mar 1998 00:00
22 lines
1853 bytes
In article <Pine.LNX.3.96.980302225059.18279R-100000@coredump.int.tele.dk>,
  Charlie Raggamuffin wrote:
 [...]
>-rw-rw-r--  1 news  news  2222947616 Mar  2 20:49 history
>
>Trying to do a `tail' on this file returned slightly more than the
>expected number of lines.  Oh well.

  In this case isn't the problem here the fact that `tail' runs backwards
through the history file counting linefeeds until it reaches the right number
(or the start of the file) and then spits out lines until EOF.  By the time
it's searched back any reasonably large number of lines, innd has added a few
more.  If inn could write them faster than tail could read them, the tail
would never end.
  I guess you could rewrite `tail' so that it counts the correct number of
lines after finding the starting point.

-- 
If you want to test a filter then send some spam to fronk@moonshine.ihug.co.nz

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