🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
14 messages
14 total messages Started by BARRY BOUWSMA IS A PROUD MEMBER ... Wed, 20 Jan 1999 00:00
Expire with INN2: Unclear on the concept
#34901
Author: BARRY BOUWSMA IS A PROUD MEMBER ...
Date: Wed, 20 Jan 1999 00:00
32 lines
2113 bytes
Okay, like, see, like, I'm running a full feed through a slow
box with only 32MB of RAM, okay?  Right?

And like, I'm going to want to, like, you know, keep the history
file, like, kinda small, okay?  I mean, really!

Now, like, I just got through running expire, with /remember/
bumped down to one and a half days to try and keep things small.
But the weird thing is, even though the first entries from the
old history file were purged, the first remaining entry in the
new history file seems to pick up where things were more than
3 1/2 days ago.  That seems, well, strange.

Now, since I'd much rather make sure that news can run in the
32M memory rather than go through all the paperwork and give up
my firstborn in order to beg to get a further 32M, it looks like
I'll have to cut the remember time down to one day or less, to
keep the history manageable on this transit box.

Or is there some particular reason that 1,5 days of remember
time really turns out as almost 4 days?  Or should I take more
drugs and look at the source to see what I should chop out to
get only no more than a couple days tops of history entries?
I'll let our other transit box handle a full 14 days (or more,
looks to be a tad under 15 days) of history entries, but this
one don't need it, for sure.

signed,
perplexed


Re: Expire with INN2: Unclear on the concept
#34837
Author: Richard Michael Todd
Date: Tue, 19 Jan 1999 00:00
28 lines
2374 bytes
Russ Allbery <rra@stanford.edu> writes:

> BARRY BOUWSMA IS A PROUD MEMBER OF NAMBLA <fluffy@vszbr.cz> writes:
> 
> > Yeah well, I was kinda hoping that with INN2 CNFS, like with the
> > original CNFS code, that expire would ignore anything other than
> > /remember/, unless perhaps one were running the additional bells'n'
> > whistles needed to make reading possible.
> 
> That's the documented behavior, I'm pretty sure, but it wouldn't make much
> sense to delete the history entry for a message while it was still present
> in a CNFS buffer, since otherwise that message would then become
> unretrievable.  Or am I missing something?

No, you understand correctly.  Deleting the history entry for an article
before its time is not something you'd generally want to do with CNFS, unless
you're under some other constraint that forces you to keep a lid on history
or uniover size.  Like, say, running a server in 32M. :-)

Although Barry can probably get what he wants without having to
actually hack INND code, just by running a script to throttle INND,
create a new history file from the old by ditching any entry over
n days old, call makehistory -r -s nnnnn to build the new .dir/.pag files,
and mv the new history files in place of the old and let innd go.  It's
not quite as efficient as hacking expire, but it means one wouldn't need to
maintain a separately hacked version of INN. 

Re: Expire with INN2: Unclear on the concept
#34838
Author: Russ Allbery
Date: Tue, 19 Jan 1999 00:00
16 lines
1387 bytes
BARRY BOUWSMA IS A PROUD MEMBER OF NAMBLA <fluffy@vszbr.cz> writes:

> Yeah well, I was kinda hoping that with INN2 CNFS, like with the
> original CNFS code, that expire would ignore anything other than
> /remember/, unless perhaps one were running the additional bells'n'
> whistles needed to make reading possible.

That's the documented behavior, I'm pretty sure, but it wouldn't make much
sense to delete the history entry for a message while it was still present
in a CNFS buffer, since otherwise that message would then become
unretrievable.  Or am I missing something?

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

Re: Expire with INN2: Unclear on the concept
#34841
Author: Richard Michael Todd
Date: Tue, 19 Jan 1999 00:00
39 lines
2514 bytes
BARRY BOUWSMA IS A PROUD MEMBER OF NAMBLA <fluffy@vszbr.cz> writes:

> Okay, like, see, like, I'm running a full feed through a slow
> box with only 32MB of RAM, okay?  Right?

Been there, done that, although not with a full feed (didn't take
*.binaries.*). 

> And like, I'm going to want to, like, you know, keep the history
> file, like, kinda small, okay?  I mean, really!
> 
> Now, like, I just got through running expire, with /remember/
> bumped down to one and a half days to try and keep things small.
> But the weird thing is, even though the first entries from the
> old history file were purged, the first remaining entry in the
> new history file seems to pick up where things were more than
> 3 1/2 days ago.  That seems, well, strange.

Are those history entries ones with path/token names, or without?
I.e. do they look like

[985CA99CD406847A34F1EB30A407821A]      915847246~-

or 

[661D15F887AC31AA306CFD62C179C2F7]      915883386~-~915883448   @040100369745001A00000000000000000000030000000000E2000000@ 

One of the most nonintuitive things about expire.ctl is that /remember/ only
affects the entries of the first type (i.e. entries for already expired
articles). Entries of the 2nd type expire when the article hits its expire time
(either that specified in expire.ctl, or the 'cycle time' of your CNFS buffer
if you use CNFS), and after that the msg hangs around as a history entry of
the 1st type until it hits the /remember/ time.  

If your /remember/ time is *less* than your expire time for articles, this
means that you will have history entries with ages up to your max expire time 
+ the length of time you have between expires.  

Re: Expire with INN2: Unclear on the concept
#34872
Author: BARRY BOUWSMA IS A PROUD MEMBER ...
Date: Wed, 20 Jan 1999 00:00
26 lines
2261 bytes
On 19 Jan 1999, Russ Allbery wrote:

> > original CNFS code, that expire would ignore anything other than
> > /remember/, unless perhaps one were running the additional bells'n'
> 
> That's the documented behavior, I'm pretty sure, but it wouldn't make much
> sense to delete the history entry for a message while it was still present
> in a CNFS buffer, since otherwise that message would then become
> unretrievable.  Or am I missing something?

Only that this is purely a transit machine, and the only things
needing to retrieve the message would be innxmit, which
traditionally is fed a batch with the path to the message
and its ID, or innfeed, whose backlog files look identical.
No readers, no grephistory.

Presumably these lines from my innxmit batchfile...
@0302534D414C4C2D3100001CB35F00000004FF000000000000000000@ <cancel.k65a8mdJ5A.32R30V.pF9lvqr6Tx@olympian.org>
@0302534D414C4C2D3100001CB36B00000004FF000000000000000000@ <cancel.od5w2eVj7s3.o38l024u@fleaweed.org>
@0302534D414C4C2D3100001CB38F00000004FF000000000000000000@ <cancel.BCk0Jech3hV.86uRiRjSQ@rescript.net>
of these annoying transplant'bot posts contain all the information
needed to retrieve the article out of the spool without accessing
the history file.


Re: Expire with INN2: Unclear on the concept
#34885
Author: BARRY BOUWSMA IS A PROUD MEMBER ...
Date: Wed, 20 Jan 1999 00:00
63 lines
3597 bytes
On 19 Jan 1999, Richard Michael Todd wrote:

> > Okay, like, see, like, I'm running a full feed through a slow
> > box with only 32MB of RAM, okay?  Right?
> 
> Been there, done that, although not with a full feed (didn't take
> *.binaries.*). 

Well, I'm not wimping out, I'm sending it the whole shebang.  Too
much idle time though, I should lobby for a few million more articles
a day and give the machine a workout (rather than just its swap
partition).


> > new history file seems to pick up where things were more than
> > 3 1/2 days ago.  That seems, well, strange.
> 
> Are those history entries ones with path/token names, or without?
> [985CA99CD406847A34F1EB30A407821A]      915847246~-

Yes.


> One of the most nonintuitive things about expire.ctl is that /remember/ only
> affects the entries of the first type (i.e. entries for already expired
> articles). Entries of the 2nd type expire when the article hits its expire time
> (either that specified in expire.ctl, or the 'cycle time' of your CNFS buffer
> if you use CNFS), and after that the msg hangs around as a history entry of
> the 1st type until it hits the /remember/ time.  

Well bugger that.  So I'm tied down by the amount of space I've
allocated for my spool, so I guess expire is trying to be too
smart for its own good and poking around in the buffers.

*Sigh*  I was hoping to avoid this, and be able to run more or
less the same INN 2.x that Normal People run, rather than taking
it and ripping it to shreds the way our transfer 1.5 and reader
1.7 boxen are.  Well, other than applying the local ``enhancements''
to the current code.  So it appears I need to rip out a bunch of
code from expire to ignore the contents of the spool for this here
transfer pile-o'-hardware and simply prune based on /remember/, the
way my mangulated 1.5 does it.  I just need a few hours context for
a few redundant feeds, unless innxmit/innfeed need to dig through
history to send out an article (doesn't seem like it based on their
failure to fail with a heavily-truncated text file).


> If your /remember/ time is *less* than your expire time for articles, this
> means that you will have history entries with ages up to your max expire time 
> + the length of time you have between expires.  

Yeah well, I was kinda hoping that with INN2 CNFS, like with the
original CNFS code, that expire would ignore anything other than
/remember/, unless perhaps one were running the additional bells'n'
whistles needed to make reading possible.

Oh well, here comes the inevitable fork in the road after which my
code will bear little resemblance to anyone else's...

thanks


Re: Expire with INN2: Unclear on the concept
#34886
Author: BARRY BOUWSMA IS A PROUD MEMBER ...
Date: Wed, 20 Jan 1999 00:00
41 lines
2914 bytes
On 19 Jan 1999, Richard Michael Todd wrote:

> Although Barry can probably get what he wants without having to
> actually hack INND code, just by running a script to throttle INND,
> create a new history file from the old by ditching any entry over
> n days old

Urg.  It would be faster to just tail -10000 or so the old
history file and makehistory from that like I did the first
time expire was grinding the disks 'cuz I forgot to do it in
time.  The original CNFS expire was in fact a perl script
that did just that, but it was rather slow, since you actually
had to scan through the text file.  Being able to use the
hash files makes a big difference helping it run faster.

And before anyone comments, I'm not using an md5-based hash
this time.  Expire seems to run fine so long as the .pag file
is around 9MB with 32MB RAM, whilst once it hit 12MB, it was
continuously calling on the text file.


> not quite as efficient as hacking expire, but it means one wouldn't need to
> maintain a separately hacked version of INN. 

But I'll have to do this anyway, as I see that the patches for
innfeed I uploaded, with additional alleged so-called `features'
and bugfixen, weren't incorporated, and I know for a fact that I'm
doing a lot more in innd as well that I haven't extracted and
bundled in an easily-digested form.

Whose brilliant idea was it to call it 2.2-STABLE anyway?  That's
the name that makes me think of the OS I'm running (actual practice
bears no similarity, intended or unintended, to the name).  Grrr.
Oh yeah, it's rainy and windy too and I didn't get enough sleep.
Any more questions?  Yeah, my boss just said I was given the
wrong machine, I was supposed to get the 16M RAM box, these over-
equipped 32M machines are intended for applications that really
need it, like NT.  Sigh.


Re: Expire with INN2: Unclear on the concept
#34934
Author: bill davidsen
Date: Fri, 22 Jan 1999 00:00
41 lines
2876 bytes
In article <Pine.LNX.4.00.9901200404350.1119-100000@Qoredump.ineT.telE.dQ>,
BARRY BOUWSMA IS A PROUD MEMBER OF NAMBLA  <fluffy@vszbr.cz> wrote:

| > One of the most nonintuitive things about expire.ctl is that /remember/ only
| > affects the entries of the first type (i.e. entries for already expired
| > articles). Entries of the 2nd type expire when the article hits its expire time
| > (either that specified in expire.ctl, or the 'cycle time' of your CNFS buffer
| > if you use CNFS), and after that the msg hangs around as a history entry of
| > the 1st type until it hits the /remember/ time.  
| 
| Well bugger that.  So I'm tied down by the amount of space I've
| allocated for my spool, so I guess expire is trying to be too
| smart for its own good and poking around in the buffers.

I realize that you have constraints on memory, but why don't you just
make the damn cycbuffs smaller?!! If you want to play with the code,
fine enough, but there is a cleaner solution by tuning your cycbuff
size.

| > If your /remember/ time is *less* than your expire time for articles, this
| > means that you will have history entries with ages up to your max expire time 
| > + the length of time you have between expires.  
| 
| Yeah well, I was kinda hoping that with INN2 CNFS, like with the
| original CNFS code, that expire would ignore anything other than
| /remember/, unless perhaps one were running the additional bells'n'
| whistles needed to make reading possible.
| 
| Oh well, here comes the inevitable fork in the road after which my
| code will bear little resemblance to anyone else's...

I would like to have expire work better, I want to delete entries after
N days, too, because people don't want to see really old stuff, not
because I don't have room.

-- 
  bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
"Too soon we grow old, and too late we grow smart" -Arthur Godfrey


Re: Expire with INN2: Unclear on the concept
#34955
Author: BARRY BOUWSMA IS A PROUD MEMBER ...
Date: Sat, 23 Jan 1999 00:00
34 lines
2569 bytes
On 22 Jan 1999, bill davidsen wrote:

> | Well bugger that.  So I'm tied down by the amount of space I've
> | allocated for my spool, so I guess expire is trying to be too
> | smart for its own good and poking around in the buffers.
> 
> I realize that you have constraints on memory, but why don't you just
> make the damn cycbuffs smaller?!! If you want to play with the code,
> fine enough, but there is a cleaner solution by tuning your cycbuff
> size.

Then I lose out on being able to hold backlogs for a few days
in case of downtime where I need it.  You'd think it would be
easier for me just to pop the cover off one of my cow-orkers'
NT machines and swipe some of their memory.

But all this has suddenly become a theoretical exercise in
um... well, something, because manglement flipped out upon
hearing that this platform was being used in production, and
instead of goodies like softupdates and the like that give me
article write times less than 1ms until some apparent problem
with the softupdates code constrained by so little memory but
needing to update the history files for tens of thousands of new
entries every minute resulting in an interesting wedged machine...
now I have a Real[tm] Approved machine, and I'm just waiting
for the old one to go up in flames to throw the new one in its
place (which, in spite of problem buggy hardware, hasn't yet
happened since I bothered y'all).

So my frantic pleas for help that wasted your time were all
for nothing.  That's not news, of course, but thanks anyway


Re: Expire with INN2: Unclear on the concept
#34973
Author: chad_dressler
Date: Mon, 25 Jan 1999 00:00
26 lines
1799 bytes
> If your /remember/ time is *less* than your expire time for articles, this
> means that you will have history entries with ages up to your max expire time
> + the length of time you have between expires.
>

Could you explain that again?  What is the "max expire time"?  The amount of
time it takes to roll over your largest cycbuff?

Maybe this is the same thing, but this is how I thought it worked:
1.  Message stays in cycbuff until it is rolled over.
2.  Hash key for this message is removed from history file.
3.  Message entry stays in history file for /remember/ days.
4.  Message entry is removed from history.

If this is the case, the total time the article is in the history is ALWAYS
<time it takes to roll over cycbuff> + /remember/

Is this correct?

Chad Dressler

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    

Re: Expire with INN2: Unclear on the concept
#34986
Author: Aidan Cully
Date: Tue, 26 Jan 1999 00:00
82 lines
4678 bytes
In news.software.nntp, davidsen@tmr.com (bill davidsen) wrote:
> In article <Pine.LNX.4.00.9901230848270.1119-100000@Qoredump.ineT.telE.dQ>,
> BARRY BOUWSMA IS A PROUD MEMBER OF NAMBLA  <fluffy@vszbr.cz> wrote:
> | On 22 Jan 1999, bill davidsen wrote:
> | 
> | > | Well bugger that.  So I'm tied down by the amount of space I've
> | > | allocated for my spool, so I guess expire is trying to be too
> | > | smart for its own good and poking around in the buffers.
> | > 
> | > I realize that you have constraints on memory, but why don't you just
> | > make the damn cycbuffs smaller?!! If you want to play with the code,
> | > fine enough, but there is a cleaner solution by tuning your cycbuff
> | > size.
> | 
> | Then I lose out on being able to hold backlogs for a few days
> | in case of downtime where I need it.  You'd think it would be
> | easier for me just to pop the cover off one of my cow-orkers'
> | NT machines and swipe some of their memory.
> 
> Now you totally lose me... if you make history smaller, you have the
> articles still online but you can't find them any more... this seems to
> be the worst of all possible worlds, you devote space to the srticle but
> can't use it. A more balanced size between history, overview, and
> cycbuffs is indicated.

I think Barry is running traditional spool?  If so, you don't need a
history entry for the article to do lookups by number, right?

> 1 - embedded overview patch
> 
>   Has anyone used the embedded overview patch to 2.1 from digital.com?
> It mixes the articles and overview in the cycbuff, and seems to keep
> blocks of overview for the same group in order, so delivery of XOVER
> data sounds faster.

This is actually the first I've heard of this patch..  I'm not about to
try it, though, since I'm loath to run a non-standard INN, but that's
just me.

> 2 - making cycbuffs larger
> 
>   Assuming that you want to make existing cycbuffs larger rather than
> adding more, is it as easy as just appending a block of zeros to the
> end of the existing cycbuff (to get as contiguous allocation as
> possible)  and then restarting with the size changed in the cycbuff
> control file? 

I think you'll probably also want to do some bit manipulation in the
cycbuff's usage map at the beginning of the buffer..  The usage-map
will grow and shrink proportionally with the cycbuff, so the tail end
of the cycbuff will end up overwriting an area that used to be used
by articles.  Since the usage map is basically 1 bit for every 512
bytes after the end of the usage map marks whether an article is there
or not, you'd actually have to move the entire usage map left a
certain number of bits (depending on how much you grow your buffer..
1 bit for every 512 bytes, I think.), filling in what's left with 0's.

> 3 - making cycbuffs smaller
> 
>   If you change the size down in the cycbuff control file, and then let
> news run until the cycbuff rolls over twice, can you then ftrunc() the
> file down to the new smaller size?

Same sort of thing as above..  If you want to keep the current articles,
you'd have to mess with the usage map, but moving the bits in the other
direction this time.

If you don't care about keeping current articles, I wrote a dumb little
C-program for zeroing out the header and the usage-map on a CNFS-buffer
and sent it off to the ISC for inclusion..  I haven't checked if it
made it in, but if anyone wants it I can make it available from my FTP
site.  Growing and shrinking the buffer would be someone else's
responsibility.

HTH,
--aidan
-- 
Aidan Cully       "Umm..  Could you call back?  My house is on fire."
Panix Staff          --Tom Waits
aidan@panix.com

Re: Expire with INN2: Unclear on the concept
#34988
Author: Kjetil Torgrim Homme
Date: Tue, 26 Jan 1999 00:00
29 lines
2233 bytes
[Richard Michael Todd]

>   Although Barry can probably get what he wants without having to
>   actually hack INND code, just by running a script to throttle
>   INND, create a new history file from the old by ditching any entry
>   over n days old, call makehistory -r -s nnnnn to build the new
>   .dir/.pag files, and mv the new history files in place of the old
>   and let innd go.  It's not quite as efficient as hacking expire,
>   but it means one wouldn't need to maintain a separately hacked
>   version of INN.

Err, I haven't tried it, but why not do expire based on storage class?

     If  you  have  turned  on  the  storage  manager  with   the
     'storageapi' in inn.conf(5) option, and you don't use ``-c''
     option with expire or overview data for the article  is  not
     created, then you will need to use a slightly different for-
     mat for specifying expiration times for storage classes:
          classnum:keep:default:purge
     Where  classnum  is  the  number  that  you   specified   in
     storage.ctl(5).  The rest of the fields are identical to the
     5 field format.  If the line for classnum  is  not  defined,
     keep, default and purge are assumed to be all ``0''.


Kjetil T.


Re: Expire with INN2: Unclear on the concept
#35012
Author: Fluffy
Date: Wed, 27 Jan 1999 00:00
17 lines
1748 bytes
bill davidsen <davidsen@tmr.com> wrote:
>   Has anyone used the embedded overview patch to 2.1 from digital.com?
> It mixes the articles and overview in the cycbuff, and seems to keep
> blocks of overview for the same group in order, so delivery of XOVER
> data sounds faster.

No fair talking about cool stuff and keeping its home a secret =)
<URL:http://www.research.digital.com/wrl/projects/newsbench/> Some
interesting data for anyone wanting to hack on (or gh0d forbid write)
news stuff.

That patch is interesting, but is addressing different problems than
the ones that interest me.
-- 
"Meow."  --me

Re: Expire with INN2: Unclear on the concept
#35028
Author: bill davidsen
Date: Wed, 27 Jan 1999 00:00
53 lines
3171 bytes
In article <Pine.LNX.4.00.9901230848270.1119-100000@Qoredump.ineT.telE.dQ>,
BARRY BOUWSMA IS A PROUD MEMBER OF NAMBLA  <fluffy@vszbr.cz> wrote:
| On 22 Jan 1999, bill davidsen wrote:
| 
| > | Well bugger that.  So I'm tied down by the amount of space I've
| > | allocated for my spool, so I guess expire is trying to be too
| > | smart for its own good and poking around in the buffers.
| > 
| > I realize that you have constraints on memory, but why don't you just
| > make the damn cycbuffs smaller?!! If you want to play with the code,
| > fine enough, but there is a cleaner solution by tuning your cycbuff
| > size.
| 
| Then I lose out on being able to hold backlogs for a few days
| in case of downtime where I need it.  You'd think it would be
| easier for me just to pop the cover off one of my cow-orkers'
| NT machines and swipe some of their memory.

Now you totally lose me... if you make history smaller, you have the
articles still online but you can't find them any more... this seems to
be the worst of all possible worlds, you devote space to the srticle but
can't use it. A more balanced size between history, overview, and
cycbuffs is indicated.

Three technical questions here.

1 - embedded overview patch

  Has anyone used the embedded overview patch to 2.1 from digital.com?
It mixes the articles and overview in the cycbuff, and seems to keep
blocks of overview for the same group in order, so delivery of XOVER
data sounds faster.

2 - making cycbuffs larger

  Assuming that you want to make existing cycbuffs larger rather than
adding more, is it as easy as just appending a block of zeros to the
end of the existing cycbuff (to get as contiguous allocation as
possible)  and then restarting with the size changed in the cycbuff
control file? 

3 - making cycbuffs smaller

  If you change the size down in the cycbuff control file, and then let
news run until the cycbuff rolls over twice, can you then ftrunc() the
file down to the new smaller size?

-- 
  bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
"Too soon we grow old, and too late we grow smart" -Arthur Godfrey


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