🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
32 messages
32 total messages Started by Ronald Hello Mon, 10 Jul 2000 00:00
Expire suddenly taking 16 hours
#47311
Author: Ronald Hello
Date: Mon, 10 Jul 2000 00:00
16 lines
1062 bytes
Hi,

Suddenly (since yesterday / sunday) expire is taking 16 hours
instead of 45 minutes. Anyone know where I'll have to look?

Regards,

Ronald.

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

Re: Expire suddenly taking 16 hours
#47295
Author: Ronald Hello
Date: Mon, 10 Jul 2000 00:00
29 lines
1811 bytes
In article <ylya3az8ye.fsf@windlord.stanford.edu>,
	Russ Allbery <rra@stanford.edu> writes:
> Ronald Hello <hello@cs.utwente.nl> writes:
> 
>> Cant find any. And it's not fastrm that's giving problems, it's expire.
>> Still running:
>> news 21355 21354  1 00:26:06 ?       15:49 expire -v1 -l -z/News/log/expire.rm -Z/News/log/expire.lowmark
> 
> Are you out of memory and thrashing?

Hmm. Yes, I'm swapping. Expire decided it needs 433M/286M all of
a sudden ... large group somewhere? I keep control.cancel on a
leash and I also keep all kind of job groups pretty short. Is
there a new large group somewhere?

> (Oh, and what version of INN?  INN
> 2.3 sucks at expiring large traditional spools.)

INN 2.2.2

Ronald.

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

Re: Expire suddenly taking 16 hours
#47301
Author: Ronald Hello
Date: Mon, 10 Jul 2000 00:00
26 lines
1746 bytes
In article <ylya3az8ye.fsf@windlord.stanford.edu>,
	Russ Allbery <rra@stanford.edu> writes:
> 
> Are you out of memory and thrashing?
> 

Another (maybe related) thing ...
Until a few weeks ago my innd was typical between 300M an 350M
in size. Some two weeks ago this suddenly grew to 350-400M and
last week it grew to 400-450M. I reduced remember from 21 to 14
(cutoff is 14) some time ago and I increased hiscachesize from
16M to 32M (setting it back to 16 as soon as expire lets me, but
that can't be responsable for a growth of 100 MB).
This version of INN (2.2.2) is running here since december.

Why is everything suddenly increasing in size?

Ronald.

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

Re: Expire suddenly taking 16 hours
#47303
Author: Ronald Hello
Date: Mon, 10 Jul 2000 00:00
49 lines
2785 bytes
In article <yl4s5y1mel.fsf@windlord.stanford.edu>,
	Russ Allbery <rra@stanford.edu> writes:
> Ronald Hello <hello@cs.utwente.nl> writes:
> 
>> Suddenly (since yesterday / sunday) expire is taking 16 hours instead of
>> 45 minutes. Anyone know where I'll have to look?
> 
> What does the summary say, in particular the timestamps on it for when
> various things started and stopped?

Must be running
fastrm: chdir from /News/spool/alt/non/sequitur to ../../nudism/moderated, No such file or directory
Expire messages:
expire begin Sun Jul  9 00:25:58 MET DST 2000: (-v1 -l -z/News/log/expire.rm -Z/News/log/expire.lowmark)
	[ A lot of `Group not matched (removed?)-- Purging all articles entries']
	[ 40 in total, no problem ]
    Article lines processed  9404775
    Articles retained        8901737
    Entries expired           503038
    Files unlinked            585885
    Old entries dropped       811248
    Old entries retained     6294780
expire end Sun Jul  9 15:17:15 MET DST 2000
	all done Sun Jul  9 15:17:15 MET DST 2000
lowmarkrenumber begin Sun Jul  9 15:17:46 MET DST 2000: (/News/log/expire.lowmark)
lowmarkrenumber end Sun Jul  9 15:17:46 MET DST 2000
	expireover start Sun Jul  9 15:18:57 MET DST 2000
	expireover end Sun Jul  9 15:49:24 MET DST 2000
	expirerm start Sun Jul  9 15:49:24 MET DST 2000
	expirerm end Sun Jul  9 16:16:16 MET DST 2000
---------

> The most likely cause of expire suddenly taking *much* longer than normal,
> in my experience, is file system or disk corruption causing a bunch of
> disk errors.

Cant find any. And it's not fastrm that's giving problems, it's expire.
Still running:
news 21355 21354  1 00:26:06 ?       15:49 expire -v1 -l -z/News/log/expire.rm -Z/News/log/expire.lowmark

Ronald.

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

Re: Expire suddenly taking 16 hours
#47305
Author: Russ Allbery
Date: Mon, 10 Jul 2000 00:00
13 lines
1194 bytes
Ronald Hello <hello@cs.utwente.nl> writes:

> Cant find any. And it's not fastrm that's giving problems, it's expire.
> Still running:
> news 21355 21354  1 00:26:06 ?       15:49 expire -v1 -l -z/News/log/expire.rm -Z/News/log/expire.lowmark

Are you out of memory and thrashing?  (Oh, and what version of INN?  INN
2.3 sucks at expiring large traditional spools.)

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

Re: Expire suddenly taking 16 hours
#47308
Author: Russ Allbery
Date: Mon, 10 Jul 2000 00:00
25 lines
1809 bytes
Ronald Hello <hello@cs.utwente.nl> writes:

> Another (maybe related) thing ...

> Until a few weeks ago my innd was typical between 300M an 350M
> in size. Some two weeks ago this suddenly grew to 350-400M and
> last week it grew to 400-450M. I reduced remember from 21 to 14
> (cutoff is 14) some time ago and I increased hiscachesize from
> 16M to 32M (setting it back to 16 as soon as expire lets me, but
> that can't be responsable for a growth of 100 MB).

Drop cutoff and remember to 7.  The extra 7 days aren't really getting you
anything and are significantly increasing the size of the history file.

> Why is everything suddenly increasing in size?

Do you have a peer who's suddenly sending you a lot of articles that you
don't want (and you have remembertrash on)?  I'm inclined to suspect a
significant increase in size of the history file, as this will bloat both
innd and expire.

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

Re: Expire suddenly taking 16 hours
#47310
Author: Russ Allbery
Date: Mon, 10 Jul 2000 00:00
16 lines
1196 bytes
Ronald Hello <hello@cs.utwente.nl> writes:

> Suddenly (since yesterday / sunday) expire is taking 16 hours instead of
> 45 minutes. Anyone know where I'll have to look?

What does the summary say, in particular the timestamps on it for when
various things started and stopped?

The most likely cause of expire suddenly taking *much* longer than normal,
in my experience, is file system or disk corruption causing a bunch of
disk errors.

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

Re: Expire suddenly taking 16 hours
#47313
Author: Ronald Hello
Date: Tue, 11 Jul 2000 00:00
46 lines
2858 bytes
In article <ylu2dxf055.fsf@windlord.stanford.edu>,
	Russ Allbery <rra@stanford.edu> writes:
> Ronald Hello <hello@cs.utwente.nl> writes:
> 
>> alt.binaries groups since I keep the rest for 31 days). My history is
>> 15m lines now, so I think I can safely decrease history.* to 24m
>> entries. That should take away some 34MB.
> 
> Yeah, that should be okay.

Yikes. I monitored the thingy for a while, nothing changed. But now
it seems it decreased to 170M recently ... the newly made history
files (based on 24m) give a 200M .hash file. Which leads to a
question (again) when and how does INN decide to decrease the
history database?
Innd is at 261/57 now. Not too bad. Changed hiscache from 16M
to 8M also.

> Yup, that sounds very much like a history table overflow, which is
> something you really don't want to ever have happen.

That's what we concluded last time, but now (knowing .hash is mmap'd)
I can relate it to the size of innd. That's new for me.

> (Not only does it
> cause innd to get huge, as well as expire, but the overflow code isn't at
> all well-tested.)

It looks to me like it's a little to enthousiastic in it's increasing
the size which leads to a increase / decrease problem.

> I looked at the cache allocation code, and I don't understand it either.
> It would make some sense on a machine with 16-bit ints, but I'm pretty
> sure that isn't the case....

Nope, Solaris 2.6 on a Ultra2. That's 32-bit as far as I know.

Ronald.

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

Re: Expire suddenly taking 16 hours
#47315
Author: Russ Allbery
Date: Tue, 11 Jul 2000 00:00
46 lines
2950 bytes
Ronald Hello <hello@cs.utwente.nl> writes:
> Russ Allbery <rra@stanford.edu> writes:

>> Reported size will depend a lot on your history size, since the
>> entirety of history.hash is mmap'd and will show up as allocated space.
>> Mine tends to run about 140MB, with a history.hash that's 55MB in size.

> Hmm. History.hash mmap'd in total, is that documented somewhere?

Not really.  The vagarities of the history implementation are a bit
underdocumented.  It took me a while of reading code to really understand
how the whole thing works.

> My history.hash is 170MB. Solaris/top reports SIZE 276MB, RES 92MB
> now. I increased the history files a little while ago because they
> didn't get the right size, I made them for 30m entries corresponding
> with 18-20m entries in history. My history is smaller now due to
> decreasing remember from 21 to 14 (which only effects test, job and
> alt.binaries groups since I keep the rest for 31 days). My history is
> 15m lines now, so I think I can safely decrease history.* to 24m
> entries. That should take away some 34MB.

Yeah, that should be okay.

> This also explains the behaviour I saw. History.* tended to explode
> (double) and decrease again, innd grew and never decreased in size
> (until restart).

Yup, that sounds very much like a history table overflow, which is
something you really don't want to ever have happen.  (Not only does it
cause innd to get huge, as well as expire, but the overflow code isn't at
all well-tested.)

Hopefully fixed someday with a history rewrite....

> But the sizes of the last few days are still unexpected and unexplained
> :-(

I looked at the cache allocation code, and I don't understand it either.
It would make some sense on a machine with 16-bit ints, but I'm pretty
sure that isn't the case....

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

Re: Expire suddenly taking 16 hours
#47318
Author: Ronald Hello
Date: Tue, 11 Jul 2000 00:00
48 lines
2826 bytes
In article <yln1jpy1v5.fsf@windlord.stanford.edu>,
	Russ Allbery <rra@stanford.edu> writes:
> Ronald Hello <hello@cs.utwente.nl> writes:
> 
> Drop cutoff and remember to 7.  The extra 7 days aren't really getting you
> anything and are significantly increasing the size of the history file.

Remember our cache misses discussions? Some of my feeds tend to
feed me pretty old stuff which needs to get in here before
cutoff can do it's work. Increasing it from 7 to 14 improved
the setup significantly here.

>> Why is everything suddenly increasing in size?
> 
> Do you have a peer who's suddenly sending you a lot of articles that you
> don't want (and you have remembertrash on)?  I'm inclined to suspect a
> significant increase in size of the history file, as this will bloat both
> innd and expire.

My history is stable (thanks to you) nowadays. It's running now
with hiscachesize back to 16M instead of 32M and innd stays under
350M again. It's even under 300M at the moment. With remember/cutoff
at 14.
It looks like 16M extra hiscache makes innd grow over 100M. I don't
know how large expire grew this night, but it was done in time even
though it had to expire an extra day of alt.binaries (the part I
carry, about a third). I had to break of expire yesterday, so I
better go run a findmissing.pl.

I'm still not happy with the situation. I still don't know for
sure how this works and how it could grow so suddenly. And I'm
trying to get this as stable as possible since I'm leaving soon.

Anyway, thanks for all the help (sofar). As usual you knew
immedeately what was wrong and helped me to get it stable
again.

Regards,

Ronald.

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

Re: Expire suddenly taking 16 hours
#47320
Author: Brian Edmonds
Date: Tue, 11 Jul 2000 00:00
24 lines
1869 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Russ Allbery <rra@stanford.edu> writes:
> Reported size will depend a lot on your history size, since the
> entirety of history.hash is mmap'd and will show up as allocated
> space.  Mine tends to run about 140MB, with a history.hash that's 55MB
> in size.

Mine is around 4MB.  Then again, that's on my laptop with only a few
dozen groups. :)

Brian.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.5 and Gnu Privacy Guard <http://www.gnupg.org/>

iD8DBQE5ay/bcCEFQUX5+OwRAvaVAKCnEBvVLFRy0R8oj50H4o1UsfiW3ACcCxbr
+6gJpaFcIKliQXykWYz/IGI=
=WJAW
-----END PGP SIGNATURE-----

Re: Expire suddenly taking 16 hours
#47322
Author: Brad Knowles
Date: Tue, 11 Jul 2000 00:00
14 lines
1298 bytes
In article <8kefhv$6em$8@ares.cs.utwente.nl>, hello@cs.utwente.nl 
(Ronald Hello) wrote:

>                         I had to break of expire yesterday, so I
> better go run a findmissing.pl.

    Can you refresh my memory, and tell me what "findmissing.pl" does?

    Thanks!

-- 
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>

Re: Expire suddenly taking 16 hours
#47323
Author: Russ Allbery
Date: Tue, 11 Jul 2000 00:00
37 lines
2439 bytes
Ronald Hello <hello@cs.utwente.nl> writes:
> Russ Allbery <rra@stanford.edu> writes:

>> Drop cutoff and remember to 7.  The extra 7 days aren't really getting
>> you anything and are significantly increasing the size of the history
>> file.

> Remember our cache misses discussions? Some of my feeds tend to feed me
> pretty old stuff which needs to get in here before cutoff can do it's
> work. Increasing it from 7 to 14 improved the setup significantly here.

Ah!  Never mind, then.  :)

> My history is stable (thanks to you) nowadays. It's running now with
> hiscachesize back to 16M instead of 32M and innd stays under 350M
> again. It's even under 300M at the moment. With remember/cutoff at 14.

> It looks like 16M extra hiscache makes innd grow over 100M.

Interesting... I just saw a report on inn-workers about something like
that too, although I'm not sure it's related.  Hm.  I wonder if there's
any way that the history cache size is overflowing or somehow otherwise
being interpreted by malloc as an incredibly large number.

> I'm still not happy with the situation. I still don't know for sure how
> this works and how it could grow so suddenly. And I'm trying to get this
> as stable as possible since I'm leaving soon.

> Anyway, thanks for all the help (sofar). As usual you knew immedeately
> what was wrong and helped me to get it stable again.

No problem; sorry I don't have a better memory for older problems.  :)

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

Re: Expire suddenly taking 16 hours
#47325
Author: Rick Ellis
Date: Tue, 11 Jul 2000 00:00
12 lines
1157 bytes
In article <brad-5BE9F1.18021811072000@audrey.skynet.be>,
Brad Knowles  <brad@shub-internet.org> wrote:

>    Can you refresh my memory, and tell me what "findmissing.pl" does?

It runs through your spool and adds articles that aren't listed to
your history file.

--
http://www.fnet.net/~ellis/photo/linux.html

Re: Expire suddenly taking 16 hours
#47326
Author: Russ Allbery
Date: Tue, 11 Jul 2000 00:00
18 lines
1522 bytes
Ronald Hello <hello@cs.utwente.nl> writes:

> How large should a innd process be under normal circumstances?  (INN
> 2.2.2)

Reported size will depend a lot on your history size, since the entirety
of history.hash is mmap'd and will show up as allocated space.  Mine tends
to run about 140MB, with a history.hash that's 55MB in size.

> That's my responsebility. You help so many here you'd better forget
> about all that (or you will have a cache overflow ;-)

*laugh*

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

Re: Expire suddenly taking 16 hours
#47329
Author: IRA Agent
Date: Tue, 11 Jul 2000 00:00
33 lines
2161 bytes
On Tue, 2506 Sep 1993, Russell Vincent wrote:

> > with hiscachesize back to 16M instead of 32M and innd stays under
> 
> I am amazed that people are using a hiscachesize of 16M, let alone 32M. 

Am I just incredibly dense, or what is the point of using
a history cache with the MD5-based history (using the .hash
and .index files)?  Provided you don't have an overflow of
the hash table, which shouldn't be the case on a well-set-up
system...

I'm not using a history cache on this machine, and see no
reason to bother, what with the known danger of collisions
with early cache designs that might be what turned me off to
the concept:
hishave 600(36444)
hishave 928(44333)
hishave 839(47306)

Now if I were using the old-style dbz, there would be a clear
advantage to using a history cache, but I fail to understand
why Ronald would need one (he's using MD5).  Enlightenment,
please, dammit.


> It's your memory, though.  :-)

Luckily, thanks to the miracle of long nights of heavy drinking
and years of hard-core drug usage, there's not much left of
that to go to waste!

Re: Expire suddenly taking 16 hours
#47331
Author: Ronald Hello
Date: Tue, 11 Jul 2000 00:00
28 lines
2054 bytes
In article <PsAa5.13354$8S2.108504@monolith.news.easynet.net>,
	Russell Vincent <rv@openusenet.org> writes:
> 
> I am amazed that people are using a hiscachesize of 16M, let alone 32M. 
> 16MB is close on 1 million news articles and not far off a full day
> of a newsfeed. I thought one of the original recommended settings of
> 128K was quite high (at the time). Much of that is probably wasted
> because the hash into the history cache is not that big.

Some time ago I asked around what people were using. Most of
them used 16M after some experimenting. And you are depending
on your feeds. When you have some slower feeds, a bit of extra
cache can help a lot.
I'll try decreasing it to 8M next, see what it brings.

> It's your memory, though.  :-)

I thought 760MB was enough ... seems not.

Ronald.

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

Re: Expire suddenly taking 16 hours
#47336
Author: Ronald Hello
Date: Tue, 11 Jul 2000 00:00
36 lines
2576 bytes
In article <ylsnthghws.fsf@windlord.stanford.edu>,
	Russ Allbery <rra@stanford.edu> writes:
> Ronald Hello <hello@cs.utwente.nl> writes:
> 
>> How large should a innd process be under normal circumstances?  (INN
>> 2.2.2)
> 
> Reported size will depend a lot on your history size, since the entirety
> of history.hash is mmap'd and will show up as allocated space.  Mine tends
> to run about 140MB, with a history.hash that's 55MB in size.

Hmm. History.hash mmap'd in total, is that documented somewhere?

My history.hash is 170MB. Solaris/top reports SIZE 276MB, RES 92MB
now. I increased the history files a little while ago because they
didn't get the right size, I made them for 30m entries corresponding
with 18-20m entries in history. My history is smaller now due to
decreasing remember from 21 to 14 (which only effects test, job and
alt.binaries groups since I keep the rest for 31 days). My history
is 15m lines now, so I think I can safely decrease history.* to
24m entries. That should take away some 34MB.

This also explains the behaviour I saw. History.* tended to
explode (double) and decrease again, innd grew and never decreased
in size (until restart). But the sizes of the last few days are
still unexpected and unexplained :-(

Ronald.

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

Re: Expire suddenly taking 16 hours
#47338
Author: Russ Allbery
Date: Tue, 11 Jul 2000 00:00
17 lines
1752 bytes
IRA Agent <ireland-hierarchy-admin@FREE-N0RP.NetScum.Dk> writes:

> Am I just incredibly dense, or what is the point of using a history
> cache with the MD5-based history (using the .hash and .index files)?
> Provided you don't have an overflow of the hash table, which shouldn't
> be the case on a well-set-up system...

Localization of the history cache lookups let the processor hopefully keep
at least some of the history cache in its on-board cache rather than going
to main memory, as it's probably the most frequent operation for a transit
news server.  At least, I think that's the theory.  Not sure how well it
works in practice, but I'm pretty sure it's been benchmarked in the past.

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

Re: Expire suddenly taking 16 hours
#47340
Author: Andrew Gierth
Date: Tue, 11 Jul 2000 00:00
21 lines
2023 bytes
>>>>> "Russ" == Russ Allbery <rra@stanford.edu> writes:

 >>> Reported size will depend a lot on your history size, since the
 >>> entirety of history.hash is mmap'd and will show up as allocated
 >>> space.  Mine tends to run about 140MB, with a history.hash that's
 >>> 55MB in size.

 >> Hmm. History.hash mmap'd in total, is that documented somewhere?

 Russ> Not really.  The vagarities of the history implementation are a
 Russ> bit underdocumented.  It took me a while of reading code to
 Russ> really understand how the whole thing works.

Bear in mind that _only_ the first hashtable in history.hash will be
mmaped. If you get overflows, then the overflow table(s) are not
mmaped but are accessed (pretty inefficiently) using read/write.

-- 
Andrew.

Re: Expire suddenly taking 16 hours
#47342
Author: Ronald Hello
Date: Tue, 11 Jul 2000 00:00
28 lines
2007 bytes
In article <ylaefphx35.fsf@windlord.stanford.edu>,
	Russ Allbery <rra@stanford.edu> writes:
> Ronald Hello <hello@cs.utwente.nl> writes:
> 
>> It looks like 16M extra hiscache makes innd grow over 100M.
> 
> Interesting... I just saw a report on inn-workers about something like
> that too, although I'm not sure it's related.  Hm.  I wonder if there's
> any way that the history cache size is overflowing or somehow otherwise
> being interpreted by malloc as an incredibly large number.

How large should a innd process be under normal circumstances?
(INN 2.2.2)

> No problem; sorry I don't have a better memory for older problems.  :)

That's my responsebility. You help so many here you'd better
forget about all that (or you will have a cache overflow ;-)

Ronald.

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

Re: Expire suddenly taking 16 hours
#47345
Author: Ronald Hello
Date: Tue, 11 Jul 2000 00:00
24 lines
2103 bytes
In article <871z10nab0.fsf@erlenstar.demon.co.uk>,
	Andrew Gierth <andrew@erlenstar.demon.co.uk> writes:
>>>>>> "Russ" == Russ Allbery <rra@stanford.edu> writes:
> 
>  Russ> Not really.  The vagarities of the history implementation are a
>  Russ> bit underdocumented.  It took me a while of reading code to
>  Russ> really understand how the whole thing works.
> 
> Bear in mind that _only_ the first hashtable in history.hash will be
> mmaped. If you get overflows, then the overflow table(s) are not
> mmaped but are accessed (pretty inefficiently) using read/write.

That would explain degrading of performance later in the
afternoon. If there is an overflow situation ...

Ronald.

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

Re: Expire suddenly taking 16 hours
#47348
Author: Russell Vincent
Date: Tue, 11 Jul 2000 00:00
18 lines
1764 bytes
Ronald Hello <hello@cs.utwente.nl> wrote:
> My history is stable (thanks to you) nowadays. It's running now
> with hiscachesize back to 16M instead of 32M and innd stays under
> 350M again. It's even under 300M at the moment. With remember/cutoff
> at 14.

I am amazed that people are using a hiscachesize of 16M, let alone 32M. 
16MB is close on 1 million news articles and not far off a full day
of a newsfeed. I thought one of the original recommended settings of
128K was quite high (at the time). Much of that is probably wasted
because the hash into the history cache is not that big.

It's your memory, though.  :-)

 -Russell


Re: Expire suddenly taking 16 hours
#47374
Author: Ronald Hello
Date: Wed, 12 Jul 2000 00:00
22 lines
1725 bytes
In article <brad-5BE9F1.18021811072000@audrey.skynet.be>,
	Brad Knowles <brad@shub-internet.org> writes:
> In article <8kefhv$6em$8@ares.cs.utwente.nl>, hello@cs.utwente.nl 
> (Ronald Hello) wrote:
> 
>>                         I had to break of expire yesterday, so I
>> better go run a findmissing.pl.
> 
>     Can you refresh my memory, and tell me what "findmissing.pl" does?

Finds articles which no longer have a valid entry in history (without
which they won't expire).

Ronald.

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

Re: Expire suddenly taking 16 hours
#47384
Author: Anonymous Coward
Date: Thu, 13 Jul 2000 00:00
35 lines
2723 bytes
[13 Jul 2000, <8kl3q1$35cc$1@newssvr05-en0.news.prodigy.com>, bill davidsen]

> | Am I just incredibly dense, or what is the point of using
> | a history cache with the MD5-based history (using the .hash
> 
>   Run the benchmarks. I cranked the cache up until it stopped dropping
> the "cache misses" significantly. I'm not running my transit machines
> with a miss rate of ~3% and an average lookup of <200us. That's 4MB, I

(assuming you mean, you're `now' ruining your transit machines...)

All right all right, I'll have to make a fool of myself and
say `what benchmarks', but you see, the machine I pointed to
is running INN 1.5-like k0deZ and has no history cache grafted
on, much less one that I can easily tune.

The thing is, the numbers I showed that were kinda representative
are reflected in the stats I have that show an average lookup
time of about 75us, with the minimum (and the most common) being
around 10us.  I know another hack I could make to innd to drop
the average still more by adding a new ctlinnd command.

Anyway, I don't see any improvement that would result in my
case being worth the work needed to graft on a tunable cache,
given the k0deZ I'm running are horribly obsolete and totally
unmaintainable anyway.  The hack alluded to would help a lot.

Now, if you're running old-style history with the .pag file,
you definitely want the cache if you have more than a single
incoming feed.  But my machines with either dbz v3 k0deZ or
a tunable cache have only a single feed now, so I shouldn't
gain anything from it.


Re: Expire suddenly taking 16 hours
#47389
Author: bill davidsen
Date: Thu, 13 Jul 2000 00:00
24 lines
1820 bytes
In article <Barry.Bouwsma_is@PEDOPHILE>,
IRA Agent  <ireland-hierarchy-admin@FREE-N0RP.NetScum.Dk> wrote:

| Am I just incredibly dense, or what is the point of using
| a history cache with the MD5-based history (using the .hash
| and .index files)?  Provided you don't have an overflow of
| the hash table, which shouldn't be the case on a well-set-up
| system...

  Run the benchmarks. I cranked the cache up until it stopped dropping
the "cache misses" significantly. I'm not running my transit machines
with a miss rate of ~3% and an average lookup of <200us. That's 4MB, I
worked up from 256k to 16MB and then dropped to the knee in the curve,
or "point of diminishing returns."

  YMMV.

-- 
  bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
There are those who make things happen, those who watch things happen,
and those who wonder what happened.
	-- idea from _Pickles_

Re: Expire suddenly taking 16 hours
#47391
Author: Anonymous Coward
Date: Thu, 13 Jul 2000 00:00
26 lines
2410 bytes
[13 Jul 19100, <2hk8epg4c2.fsf@swift.csulb.edu>, Jack Bryans]

> How come Matt Dillon's excellent C program, newsprune, isn't better known?
> It runs in a small fraction of the time and puts far less load on the
> newspool than any of the perl scripts.

Yeah, it's great.  I've used it often.  At least an older INN
has a problem where new articles get dumped to spool but not
added to history, and newsprune finds 'em.

I compiled a version with a 1 hour cutoff instead of the 8 hour
default, since I found myself running it as soon as the bug
revealed itself.  I can't remember if I needed to make any
other changes to handle wireformat articles with traditional
spool, but I do know I definitely had to make changes to some
of the scripts or programs that massage the output of newsprune,
to add the messages to history (and if I can't, they are genuine
duplicates to be weeded out).

The addmissing.pl skr1pT, which I also heartily recommend, will
not work properly on wireformat articles without a few tweaks.
I'm pretty sure I had to change another skr1pT too, but I can't
remember what.


Re: Expire suddenly taking 16 hours
#47393
Author: bill davidsen
Date: Thu, 13 Jul 2000 00:00
30 lines
2109 bytes
In article <ylsnthghws.fsf@windlord.stanford.edu>,
Russ Allbery  <rra@stanford.edu> wrote:
| Ronald Hello <hello@cs.utwente.nl> writes:
| 
| > How large should a innd process be under normal circumstances?  (INN
| > 2.2.2)

Running tagged hash:
  PID USER     PRI  NI  SIZE  RSS SHARE STAT  LIB %CPU %MEM   TIME COMMAND
  212 news      12   0  143M 139M 60632 D       0 21.6 55.5 29287m innd

Running default hash:
  PID USER     PRI  NI  SIZE  RSS SHARE STAT  LIB %CPU %MEM   TIME COMMAND
23469 news      11   0  277M 277M  263M D       0  9.3 54.9 249:40 innd

| Reported size will depend a lot on your history size, since the entirety
| of history.hash is mmap'd and will show up as allocated space.  Mine tends
| to run about 140MB, with a history.hash that's 55MB in size.

  Note that the 2nd machine has about double the CPU power of the 1st,
and has only been up for a week. Memory leaks on the 1st machine have
grown innd about 10% since the annnual precautionary boot.

-- 
  bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
There are those who make things happen, those who watch things happen,
and those who wonder what happened.
	-- idea from _Pickles_

Re: Expire suddenly taking 16 hours
#47406
Author: Jack Bryans
Date: Thu, 13 Jul 2000 00:00
39 lines
2116 bytes
hello@cs.utwente.nl (Ronald Hello) writes:

> In article <brad-5BE9F1.18021811072000@audrey.skynet.be>,
> 	Brad Knowles <brad@shub-internet.org> writes:
> > In article <8kefhv$6em$8@ares.cs.utwente.nl>, hello@cs.utwente.nl 
> > (Ronald Hello) wrote:
> > 
> >>                         I had to break of expire yesterday, so I
> >> better go run a findmissing.pl.
> > 
> >     Can you refresh my memory, and tell me what "findmissing.pl" does?
> 
> Finds articles which no longer have a valid entry in history (without
> which they won't expire).

How come Matt Dillon's excellent C program, newsprune, isn't better known?
It runs in a small fraction of the time and puts far less load on the
newspool than any of the perl scripts.

An extract from the front of its README:

    Newsprune is a program which *efficiently* locates article files in your
    spool which INND has lost track of (i.e. are missing from the history
    file but not deleted).

    Newsprune works by:

    (a) scanning the history file

    (b) scanning (opendir()/readdir()) the news spool

    (c) producing a list of files that exist in the spool but do not exist
        in the history file.

If it isn't in contrib, it sure ought'a be.

Jack

Re: Expire suddenly taking 16 hours
#47483
Author: bill davidsen
Date: Wed, 19 Jul 2000 00:00
49 lines
3333 bytes
In article <Open.Sewers.should.be.open.by.the.grace.of.the.newsbastard.who.controls.them-100000@FREE-Pr0n.NetScum.DK.port-143>,
Anonymous Coward  <coward@news.netscum.dk> wrote:

| All right all right, I'll have to make a fool of myself and
| say `what benchmarks', but you see, the machine I pointed to
| is running INN 1.5-like k0deZ and has no history cache grafted
| on, much less one that I can easily tune.

  I just set up my transit machines and watched the cache miss ratio and
the history lookup time. At some point doubling the cache results in
virtually no gain, and I back off to the previous size. If I see that
the performance is getting bad again I retune, or move some slow feeds
to consolidators I use just for that.

| The thing is, the numbers I showed that were kinda representative
| are reflected in the stats I have that show an average lookup
| time of about 75us, with the minimum (and the most common) being
| around 10us.  I know another hack I could make to innd to drop
| the average still more by adding a new ctlinnd command.

  I wish there were a low impact way to get median and percentiles, but
you pretty much have to save all the data, and that adds so much time
that you really have overhead distorting the data.

| Anyway, I don't see any improvement that would result in my
| case being worth the work needed to graft on a tunable cache,
| given the k0deZ I'm running are horribly obsolete and totally
| unmaintainable anyway.  The hack alluded to would help a lot.

  I have to think there's not as much development going on in 1.5, as in
"you're the development team." As much as I like to play, I'd rather run
something closer to ISC release code if I can make it serve the purpose.

| Now, if you're running old-style history with the .pag file,
| you definitely want the cache if you have more than a single
| incoming feed.  But my machines with either dbz v3 k0deZ or
| a tunable cache have only a single feed now, so I shouldn't
| gain anything from it.

  Obviously you get 100% not in cache with a single feed, unless the
feed duplicates a lot of stuff.

-- 
  bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
There are those who make things happen, those who watch things happen,
and those who wonder what happened.
	-- idea from _Pickles_

Re: Expire suddenly taking 16 hours
#47504
Author: Kjetil Torgrim Homme
Date: Wed, 19 Jul 2000 00:00
14 lines
1317 bytes
[bill davidsen]

>     I wish there were a low impact way to get median and
>   percentiles, but you pretty much have to save all the data, and
>   that adds so much time that you really have overhead distorting
>   the data.

How about doing some logarithmic binning?  It's an approximation, at
least.


Kjetil T.

Re: Expire suddenly taking 16 hours
#47506
Author: bill davidsen
Date: Wed, 19 Jul 2000 00:00
26 lines
1953 bytes
In article <1rya2yf6m3.fsf@haey.ifi.uio.no>,
Kjetil Torgrim Homme  <kjetilho@haey.ifi.uio.no> wrote:
| [bill davidsen]
| 
| >     I wish there were a low impact way to get median and
| >   percentiles, but you pretty much have to save all the data, and
| >   that adds so much time that you really have overhead distorting
| >   the data.
| 
| How about doing some logarithmic binning?  It's an approximation, at
| least.

  I have to think about that, I think I could use direct 5us bins for
counts, actually, or go to 100us for large values. Maybe just drop the
time in an array and write it out in the idle loop or some such.

  I certainly have a lightly loaded machine I could use to try a few
things when I get a bit of free time again.

-- 
  bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
There are those who make things happen, those who watch things happen,
and those who wonder what happened.
	-- idea from _Pickles_

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