🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
27 messages
27 total messages Started by Conrad Juleff Thu, 10 Jun 1999 00:00
Why is inn-2.2 so slow?
#37943
Author: Conrad Juleff
Date: Thu, 10 Jun 1999 00:00
22 lines
1573 bytes
I have a big problem running inn-2.2 on Linux with kernel 2.2.6. The server
accepts feeds and keeps up no problem but the reader performance is
shocking. 
Testing it with newsbench1.3 we cant get more than 7 articles/second. The
old news server can do more than 7 articles/second while it is loaded. The
old server is a Solaris machine running inn 1.4.
I have been fighting with this for weeks and no matter what I try there
doesnt seem to be any improvement. I have tried with CNFS and now with
timehash storage and there is little difference. I have also tried a 
recent snapsnot(about 1 week ago) and that made no visable difference.

My only option seems to be to "downgrade" to inn-1 and see if that helps
but I am very reluctant to use such an old version. Does anyone have any
pointers as to what the problem could be? Is there some special config
that is needed for Linux? I have done a standard configuration and gone
over it several times so I dont think I have missed anything there.


Thanks
Conrad

Re: Why is inn-2.2 so slow?
#37903
Author: Russ Allbery
Date: Wed, 09 Jun 1999 00:00
20 lines
1220 bytes
Conrad Juleff <conradj@no-spam.is.co.za> writes:

> I have a big problem running inn-2.2 on Linux with kernel 2.2.6. The
> server accepts feeds and keeps up no problem but the reader performance
> is shocking.

Known problem with overview data in INN 2.2.  Use traditional spool and
traditional overview in 2.2 if you want to use 2.2, or wait for INN 2.3
which will fix this.

> My only option seems to be to "downgrade" to inn-1 and see if that helps
> but I am very reluctant to use such an old version.

I'm still using INN 1.7.2-insync-1.1d for readers until the new 2.3 is
stable.

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

Re: Why is inn-2.2 so slow?
#37929
Author: Marc G. Fournier
Date: Thu, 10 Jun 1999 00:00
23 lines
1585 bytes
Russ Allbery <rra@stanford.edu> writes:

>Conrad Juleff <conradj@no-spam.is.co.za> writes:

>> My only option seems to be to "downgrade" to inn-1 and see if that helps
>> but I am very reluctant to use such an old version.

>I'm still using INN 1.7.2-insync-1.1d for readers until the new 2.3 is
>stable.

Its not stable? :)

I'm running the new 2.3 here (its still considered alpha-ish, since we just
integrated the new code) and compared to 2.2, its like comparing a go-cart
to a ferrari...I've actually had users email in complaining that they didn't
have time to go get coffee anymore while they wait for newsgroups to come
up *sigh*  Ya just can't please them all :)
--
Marc G. Fournier                               scrappy@hub.org
Systems Administrator @ hub.org                    
scrappy@{postgresql|isc}.org                       ICQ#7615664

Re: Why is inn-2.2 so slow?
#37932
Author: Tuuli Tuominen
Date: Thu, 10 Jun 1999 00:00
24 lines
1728 bytes
On 09 Jun 1999 23:48:23 -0700, Russ Allbery <rra@stanford.edu> wrote:
>Conrad Juleff <conradj@no-spam.is.co.za> writes:
>
>> I have a big problem running inn-2.2 on Linux with kernel 2.2.6. The
>> server accepts feeds and keeps up no problem but the reader performance
>> is shocking.
>
>Known problem with overview data in INN 2.2.  Use traditional spool and
>traditional overview in 2.2 if you want to use 2.2, or wait for INN 2.3
>which will fix this.

So is the reader performance of INN 2.2 with traditional spool okay? Our old
server is running 1.7.2 with innsync patches and has trouble keeping up with
the feed (it's an old machine with small resources) but it's reader
performance is acceptable. We have about 60 simultaneous reader connections
at most times. I really woudln't want the reader performance to suffer even
if the new server can keep up with the feed..

Tuuli.
-- 
How many hardware guys does it take to change a light bulb?
"Well the diagnostics say it's fine buddy, so it's a software problem."

Re: Why is inn-2.2 so slow?
#37937
Author: Russ Allbery
Date: Thu, 10 Jun 1999 00:00
27 lines
2000 bytes
Tuuli Tuominen <tuuli.tuominen@helsinki.fi> writes:

> So is the reader performance of INN 2.2 with traditional spool okay? Our
> old server is running 1.7.2 with innsync patches and has trouble keeping
> up with the feed (it's an old machine with small resources) but it's
> reader performance is acceptable. We have about 60 simultaneous reader
> connections at most times. I really woudln't want the reader performance
> to suffer even if the new server can keep up with the feed..

If you're already running 1.7.2 and are happy with it, I'd recommend just
leaving well enough alone until 2.3 is released.  I'm still running 1.7.2
here.  That being said, yes, I believe that 2.2 with traditional spool has
equivalent reader performance to 1.7.2.  It probably also has equivalent
feed performance to 1.7.2, though, and it's possible that the traditional
spool code by that point had undergone some bit rot.

For INN 2.3, all of the traditional spool code has been ripped out
(greatly simplifying INN) and a new tradspool storage manager has been
added via the storage API, resulting in the same level of traditional
spool support with a much nicer internal interface.  At the same time,
Clayton's done great work to fix the problem with slow overview
performance.

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

Re: Why is inn-2.2 so slow?
#37953
Author: Russ Allbery
Date: Fri, 11 Jun 1999 00:00
54 lines
2751 bytes
Tuuli Tuominen <tuuli.tuominen@helsinki.fi> writes:
> Russ Allbery wrote:

>> tradspool on disk hasn't changed; what's changed is its interface
>> inside INN.  Although now that I think about it, you may have to do a
>> makehistory if you're currently using the old traditional spool
>> support, since you won't have storage tokens in your history file.
>> Ugh.

> But if makehistory does take care of that, then it's easier than I
> thought.

If it doesn't yet, it will by the time we release 2.3.  :)  It may not
right at the moment, since I think Clayton put a lower priority on the
recovery tools.

> Doesn't makehistory take a _long_ time with a reasonable-sized news
> spool? My current history file is about 350 megs.

I don't know, actually, having never had to run makehistory on my entire
spool.  I'll have to leave that for someone else to answer.

> But do I have to rebuild the overview files if I'm using the traditional
> overview system, which I'm using now?

Yes.

> Unified overview is just for tagged hash and CNFS spools, right?

Unified overview is for anything that uses the storage API under INN 2.2
(which I think at the time of 2.2 was just those two types of storage).

> Somehow I got the impression that the overview in 2.3 is new and
> different even for trad spool.

Yup, it is.  Should be faster than traditional spool overview.  I also am
pushing a few fundamental changes to it before 2.3 ships, so the way it
looks right now may not stay the same (although the internal format of the
files probably will).

> Sorry about getting into the details.

What else is the newsgroup for?  :)

> Just want to be sure I have all the possible information before making
> any decisions. I'm planning to spend the weekend looking at and testing
> the newest 2.3.

I'm reworking INSTALL for 2.3 right now.

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

Re: Why is inn-2.2 so slow?
#37955
Author: Russ Allbery
Date: Fri, 11 Jun 1999 00:00
34 lines
2374 bytes
Tuuli Tuominen <tuuli.tuominen@helsinki.fi> writes:
> Russ Allbery wrote:

>> If it doesn't yet, it will by the time we release 2.3.  :)  It may not
>> right at the moment, since I think Clayton put a lower priority on the
>> recovery tools.

> Any idea on when it's going to be released? 

At this point, I think the best answer I can give you is "when it's done."
There are some major proposals on the table (including some of my own)
that would be fairly sweeping changes, but on the other hand getting
something solid out the door should be a pretty high priority given how
much current overview performance sucks.  But whatever we send out should
ideally be upward-compatible with what we have planned for the future or
there will be much trouble when 2.4 comes out.  :)

>> Unified overview is for anything that uses the storage API under INN
>> 2.2 (which I think at the time of 2.2 was just those two types of
>> storage).

> No, there was an option not to use storage api, if this is what you
> mean. My current test installation doesn't use storage api, so I don't
> have any of that uniover stuff. Just an empty uniover directory. :-)

No, I meant that unified overview was only used with storageapi stuff,
which at the time of 2.2 was just timehash and cnfs.  (In 2.3, there is
timehash, timecaf, cnfs, and tradspool.  Well, and trash, but it's
unlikely to be used except for testing.)

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

Re: Why is inn-2.2 so slow?
#37960
Author: Tuuli Tuominen
Date: Fri, 11 Jun 1999 00:00
20 lines
1624 bytes
On 10 Jun 1999 18:19:37 -0700, Russ Allbery <rra@stanford.edu> wrote:
>
>For INN 2.3, all of the traditional spool code has been ripped out
>(greatly simplifying INN) and a new tradspool storage manager has been
>added via the storage API, resulting in the same level of traditional
>spool support with a much nicer internal interface.  At the same time,
>Clayton's done great work to fix the problem with slow overview
>performance.

Well, this means that upgrading from 2.2 to 2.3 "on the fly" won't be easy.
This was one of the options I considered -- start using 2.2 now and upgrade
to 2.3 as soon as it is stable. Would a user-friendly, transparent upgrade
be even possible if the whole tradspool and overview struvtures have changed?

Tuuli.
-- 
"And so it begins."
        -- Kosh to Lyta in Babylon 5 (062):"Walkabout"

Re: Why is inn-2.2 so slow?
#37961
Author: Russ Allbery
Date: Fri, 11 Jun 1999 00:00
28 lines
2046 bytes
Tuuli Tuominen <tuuli.tuominen@helsinki.fi> writes:
> On 10 Jun 1999 18:19:37 -0700, Russ Allbery <rra@stanford.edu> wrote:

>> For INN 2.3, all of the traditional spool code has been ripped out
>> (greatly simplifying INN) and a new tradspool storage manager has been
>> added via the storage API, resulting in the same level of traditional
>> spool support with a much nicer internal interface.  At the same time,
>> Clayton's done great work to fix the problem with slow overview
>> performance.

> Well, this means that upgrading from 2.2 to 2.3 "on the fly" won't be
> easy.  This was one of the options I considered -- start using 2.2 now
> and upgrade to 2.3 as soon as it is stable. Would a user-friendly,
> transparent upgrade be even possible if the whole tradspool and overview
> struvtures have changed?

tradspool on disk hasn't changed; what's changed is its interface inside
INN.  Although now that I think about it, you may have to do a makehistory
if you're currently using the old traditional spool support, since you
won't have storage tokens in your history file.  Ugh.

You will definitely need to rebuild your overview files if you're
currently using unified overview.  Unified overview is gone.

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

Re: Why is inn-2.2 so slow?
#37963
Author: Tuuli Tuominen
Date: Fri, 11 Jun 1999 00:00
27 lines
2073 bytes
Russ Allbery wrote:
> 
> tradspool on disk hasn't changed; what's changed is its interface inside
> INN.  Although now that I think about it, you may have to do a makehistory
> if you're currently using the old traditional spool support, since you
> won't have storage tokens in your history file.  Ugh.

But if makehistory does take care of that, then it's easier than I
thought. Doesn't makehistory take a _long_ time with a reasonable-sized
news spool? My current history file is about 350 megs.

> You will definitely need to rebuild your overview files if you're
> currently using unified overview.  Unified overview is gone.

But do I have to rebuild the overview files if I'm using the traditional
overview system, which I'm using now? Unified overview is just for
tagged hash and CNFS spools, right? Somehow I got the impression that
the overview in 2.3 is new and different even for trad spool. 

Sorry about getting into the details. Just want to be sure I have all
the possible information before making any decisions. I'm planning to
spend the weekend looking at and testing the newest 2.3. 
-- 
Tuuli Tuominen
tuuli.tuominen@helsinki.fi

Re: Why is inn-2.2 so slow?
#37964
Author: Kjetil Torgrim Homme
Date: Fri, 11 Jun 1999 00:00
19 lines
1604 bytes
[Tuuli Tuominen]

>   But if makehistory does take care of that, then it's easier than I
>   thought. Doesn't makehistory take a _long_ time with a
>   reasonable-sized news spool? My current history file is about 350
>   megs.

It's not prohibitive in a University environment.  On my pathetically
underpowered system it takes approx. 24 hours.  My history file is 450
MB.

Disclaimer: The makehistory for INN 2.3 will be completely redone, and
the above experience stems from INN 2.2.  The process should be
I/O-bound, so I don't expect INN 2.3 to fare worse.


Kjetil T.

Re: Why is inn-2.2 so slow?
#37971
Author: Tuuli Tuominen
Date: Fri, 11 Jun 1999 00:00
29 lines
1973 bytes
Russ Allbery wrote:
> 
> If it doesn't yet, it will by the time we release 2.3.  :)  It may not
> right at the moment, since I think Clayton put a lower priority on the
> recovery tools.

Any idea on when it's going to be released? 

> > Unified overview is just for tagged hash and CNFS spools, right?
> 
> Unified overview is for anything that uses the storage API under INN 2.2
> (which I think at the time of 2.2 was just those two types of storage).

No, there was an option not to use storage api, if this is what you
mean. My current test installation doesn't use storage api, so I don't
have any of that uniover stuff. Just an empty uniover directory. :-)

> Yup, it is.  Should be faster than traditional spool overview.  I also am
> pushing a few fundamental changes to it before 2.3 ships, so the way it
> looks right now may not stay the same (although the internal format of the
> files probably will).

Sounds good.

-- 
Tuuli Tuominen
tuuli.tuominen@helsinki.fi

Re: Why is inn-2.2 so slow?
#37978
Author: T. William Wells
Date: Sat, 12 Jun 1999 00:00
11 lines
1292 bytes
In article <yld7z380h8.fsf@windlord.stanford.edu>,
Russ Allbery  <rra@stanford.edu> wrote:
: No, I meant that unified overview was only used with storageapi stuff,
: which at the time of 2.2 was just timehash and cnfs.  (In 2.3, there is
: timehash, timecaf, cnfs, and tradspool.  Well, and trash, but it's
: unlikely to be used except for testing.)

I use "trash" to filter out anything crossposted to various
groups. E.g., anything crossposted to *.warez and *.warez.*.

Re: Why is inn-2.2 so slow?
#37988
Author: Russ Allbery
Date: Sat, 12 Jun 1999 00:00
18 lines
1346 bytes
T William Wells <bill@twwells.com> writes:
> Russ Allbery  <rra@stanford.edu> wrote:

>> No, I meant that unified overview was only used with storageapi stuff,
>> which at the time of 2.2 was just timehash and cnfs.  (In 2.3, there is
>> timehash, timecaf, cnfs, and tradspool.  Well, and trash, but it's
>> unlikely to be used except for testing.)

> I use "trash" to filter out anything crossposted to various
> groups. E.g., anything crossposted to *.warez and *.warez.*.

Oh, I do that with a Perl filter.  Yeah, I keep forgetting that not
everyone uses Perl filters.  :)

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

Re: Why is inn-2.2 so slow?
#38007
Author: Marc G. Fournier
Date: Mon, 14 Jun 1999 00:00
20 lines
1712 bytes
Russ Allbery <rra@stanford.edu> writes:

>Tuuli Tuominen <tuuli.tuominen@helsinki.fi> writes:
>> Russ Allbery wrote:

>> Doesn't makehistory take a _long_ time with a reasonable-sized news
>> spool? My current history file is about 350 megs.

>I don't know, actually, having never had to run makehistory on my entire
>spool.  I'll have to leave that for someone else to answer.

	That part *really* hurt, but my history file is/was about 3x that 
size...I ended up just wiping out my alt* buffers and doing a makehistory
for everything else...
--
Marc G. Fournier                               scrappy@hub.org
Systems Administrator @ hub.org                    
scrappy@{postgresql|isc}.org                       ICQ#7615664

Re: Why is inn-2.2 so slow?
#38009
Author: Marc G. Fournier
Date: Mon, 14 Jun 1999 00:00
25 lines
2086 bytes
tuuli.tuominen@helsinki.fi (Tuuli Tuominen) writes:

>On 10 Jun 1999 18:19:37 -0700, Russ Allbery <rra@stanford.edu> wrote:
>>
>>For INN 2.3, all of the traditional spool code has been ripped out
>>(greatly simplifying INN) and a new tradspool storage manager has been
>>added via the storage API, resulting in the same level of traditional
>>spool support with a much nicer internal interface.  At the same time,
>>Clayton's done great work to fix the problem with slow overview
>>performance.

>Well, this means that upgrading from 2.2 to 2.3 "on the fly" won't be easy.
>This was one of the options I considered -- start using 2.2 now and upgrade
>to 2.3 as soon as it is stable. Would a user-friendly, transparent upgrade
>be even possible if the whole tradspool and overview struvtures have changed?

I'm using CNFS exclusively, so it might be a bit different with tradspool
users...but, for me, it was a matter of wiping out the history* and all
the uniover/overview databases, running a makehistory and I was off...
--
Marc G. Fournier                               scrappy@hub.org
Systems Administrator @ hub.org                    
scrappy@{postgresql|isc}.org                       ICQ#7615664

Re: Why is inn-2.2 so slow?
#38040
Author: hume.spamfilter
Date: Tue, 15 Jun 1999 00:00
20 lines
1754 bytes
bill davidsen <davidsen@tmr.com> wrote:
: It's already been written, called makehistory. Seriously, it's not worth
: improving a process which works reliably now and isn't overly slow. As

Yes, but does makehistory understand the concept of converting one kind of
history file to another, WITHOUT plowing through the spool?

: Until that changes, finding a better solution to a problem which has a
: viable solution alrready is poor use of time.

Depends on your definition of viable, I suppose.  Over a day of downtime...
if some people's experiences are typical... on an organizations' only
news machine for the purpose of rebuilding a database with relatively
minor differences from an already existing database might not meet that
definition.

-- 
Brandon Hume    - hume -> BOFH.Halifax.NS.Ca, http://WWW.BOFH.Halifax.NS.Ca/

Re: Why is inn-2.2 so slow?
#38046
Author: hume.spamfilter
Date: Tue, 15 Jun 1999 00:00
10 lines
1312 bytes
Marc G. Fournier <scrappy@hub.org> wrote:
: users...but, for me, it was a matter of wiping out the history* and all
: the uniover/overview databases, running a makehistory and I was off...

Would a history conversion tool be considered difficult to write?

-- 
Brandon Hume    - hume -> BOFH.Halifax.NS.Ca, http://WWW.BOFH.Halifax.NS.Ca/

Re: Why is inn-2.2 so slow?
#38058
Author: bill davidsen
Date: Tue, 15 Jun 1999 00:00
24 lines
1884 bytes
In article <7k4crh$95f$1@News.Dal.Ca>,
 <hume.spamfilter@bofh.halifax.ns.ca> wrote:
| Marc G. Fournier <scrappy@hub.org> wrote:
| : users...but, for me, it was a matter of wiping out the history* and all
| : the uniover/overview databases, running a makehistory and I was off...
| 
| Would a history conversion tool be considered difficult to write?

It's already been written, called makehistory. Seriously, it's not worth
improving a process which works reliably now and isn't overly slow. As
soon as you have two tools you have the chance to have a change to one
make the other fail, possibly in some obscure way.

There are more problems without solutions than people to solve them.
Until that changes, finding a better solution to a problem which has a
viable solution alrready is poor use of time.

-- 
bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
  The Internet is not the fountain of youth, but some days it feels like
the fountain of immaturity.


Re: Why is inn-2.2 so slow?
#38067
Author: bill davidsen
Date: Tue, 15 Jun 1999 00:00
30 lines
2065 bytes
In article <ylogin83ae.fsf@windlord.stanford.edu>,
Russ Allbery  <rra@stanford.edu> wrote:
| Tuuli Tuominen <tuuli.tuominen@helsinki.fi> writes:

| > Doesn't makehistory take a _long_ time with a reasonable-sized news
| > spool? My current history file is about 350 megs.
| 
| I don't know, actually, having never had to run makehistory on my entire
| spool.  I'll have to leave that for someone else to answer.

I won't even guess how it will run on the new stuff, but 90-120 min for
6-7M articles online is about what I see using slow CPU and fast disk
with lots of memory.

Unless they have made changes which really slow it down I would guess
you can rebuild in a few hours if you have CNFS and overview on separate
drives. If you are running traditional I wouldn't even guess, I can't
keep up with the feed under even light (200-300 readers) load. With CNFS
I keep up to about double that.

I don't think there's a problem rebuilding the whole thing from the
cycbuffs.

-- 
bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
  The Internet is not the fountain of youth, but some days it feels like
the fountain of immaturity.


Re: Why is inn-2.2 so slow?
#38068
Author: bill davidsen
Date: Tue, 15 Jun 1999 00:00
30 lines
2126 bytes
In article <7k6bj8$5l6$1@News.Dal.Ca>,
 <hume.spamfilter@bofh.halifax.ns.ca> wrote:
| bill davidsen <davidsen@tmr.com> wrote:

| : Until that changes, finding a better solution to a problem which has a
| : viable solution alrready is poor use of time.
| 
| Depends on your definition of viable, I suppose.  Over a day of downtime...
| if some people's experiences are typical... on an organizations' only
| news machine for the purpose of rebuilding a database with relatively
| minor differences from an already existing database might not meet that
| definition.

1 - rebuild should take under two hours unless you have something really
misconfigured. I can do ~6M articles in that time on a modest CPU. If it
is taking a long time, SOMETHING IS CONFIGURED WRONG and it will
continue to make your life miserable until you fix it.

2 - Unless you run "transit only" on your only machine you must rebuild
history and overview or your readers will not be able to access
articles. While this pleasantly reduces load, it increased the noise
level.

-- 
bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
  The Internet is not the fountain of youth, but some days it feels like
the fountain of immaturity.


Re: Why is inn-2.2 so slow?
#38179
Author: Russ Allbery
Date: Tue, 22 Jun 1999 00:00
15 lines
1274 bytes
bill davidsen <davidsen@tmr.com> writes:

> I assume this is a bad joke. Or is there working code somewhere? I
> thought you were talking about the code in the snapshot directory, and
> based on trying the 6-17, 6-19, and 6-21 stuff, this code is totally
> useless, since makehistory will neither create a new overview from an
> existing spool, nor a viable history on a new empty spool.

makehistory doesn't do that part of the history file stuff any more.  Use
makedbz instead.  The changes are moving ahead of the docs at the moment.

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

Re: Why is inn-2.2 so slow?
#38186
Author: bill davidsen
Date: Tue, 22 Jun 1999 00:00
39 lines
2704 bytes
In article <7jobo9$v6e$1@hub.org>, Marc G. Fournier <scrappy@hub.org> wrote:

| >I'm still using INN 1.7.2-insync-1.1d for readers until the new 2.3 is
| >stable.
| 
| Its not stable? :)
| 
| I'm running the new 2.3 here (its still considered alpha-ish, since we just
| integrated the new code) and compared to 2.2, its like comparing a go-cart
| to a ferrari...I've actually had users email in complaining that they didn't
| have time to go get coffee anymore while they wait for newsgroups to come
| up *sigh*  Ya just can't please them all :)

I assume this is a bad joke. Or is there working code somewhere? I
thought you were talking about the code in the snapshot directory, and
based on trying the 6-17, 6-19, and 6-21 stuff, this code is totally
useless, since makehistory will neither create a new overview from an
existing spool, nor a viable history on a new empty spool. At least not
on AIX 4.3.2, Linux 2.2.5, or BSD (whatever was stable in November).
Always ends with a "Can't close history file" error. On existing spool
it will also write something like "Can't write overview data {stuff}
Error 0" once on stderr for each article in spool.

And on an existing spool it seems uselessly slow, you could never
take a full spool and reindex. One test machine which rebuilds index in
90-100 minutes with 2.2 ran 14 hours without finishing. The size of
history was about 114MB, where 280-300MB is a normal history size.

If there is a version which will at least init the database please post
the location... obviously what you are running and what is in "the usual
place" are unrelated, or you have an old version of makehistory which
works.
-- 
bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
  The Internet is not the fountain of youth, but some days it feels like
the fountain of immaturity.


Re: Why is inn-2.2 so slow?
#38189
Author: bill davidsen
Date: Tue, 22 Jun 1999 00:00
38 lines
2674 bytes
In article <ylhfo0mpww.fsf@windlord.stanford.edu>,
Russ Allbery  <rra@stanford.edu> wrote:
| bill davidsen <davidsen@tmr.com> writes:
| 
| > I assume this is a bad joke. Or is there working code somewhere? I
| > thought you were talking about the code in the snapshot directory, and
| > based on trying the 6-17, 6-19, and 6-21 stuff, this code is totally
| > useless, since makehistory will neither create a new overview from an
| > existing spool, nor a viable history on a new empty spool.
| 
| makehistory doesn't do that part of the history file stuff any more.  Use
| makedbz instead.  The changes are moving ahead of the docs at the moment.

And the "Can't close history file" should be ignored?

After seeing how long the makehistory was taking I dropped back to 2.2,
took ~95 minutes to build history and overview. Could tagged hash be a
player here? I'm not using it, even though I have fairly small memory,
but the makehistory process is tiny, so I assumed there was no issue.

And here I thought that running expire on an empty history was the was
the right way to do it ;-)

Another issue is incoming article rate. This machine typically runs
40-60 art/sec in catchup mode with 2.2 (it's small, don't laugh). It's
only accepting about 15 art/sec now, is there any obvious tuning (and
why isn't it standard) to at least bring this up to match the incoming
rate off the net? Reader performance looks good, but CPU use is very
high even with no readers, and I sure hope there's a setup problem.
This machine hums with 2.2 as long as I only let about 300 users on it.
-- 
bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
  The Internet is not the fountain of youth, but some days it feels like
the fountain of immaturity.



Re: Why is inn-2.2 so slow?
#38194
Author: greg andruk
Date: Tue, 22 Jun 1999 00:00
17 lines
1649 bytes
bill davidsen <davidsen@tmr.com> writes:

> I assume this is a bad joke. Or is there working code somewhere? I
> thought you were talking about the code in the snapshot directory, and
> based on trying the 6-17, 6-19, and 6-21 stuff, this code is totally
> useless, since makehistory will neither create a new overview from an
> existing spool, nor a viable history on a new empty spool. At least not
> on AIX 4.3.2, Linux 2.2.5, or BSD (whatever was stable in November).
> Always ends with a "Can't close history file" error. On existing spool
> it will also write something like "Can't write overview data {stuff}
> Error 0" once on stderr for each article in spool.

Take a look at the new makedbz program. For now at least, it does what
makehistory originally did.  Why it's broken into two programs now, I
don't dare to guess =)

Re: Why is inn-2.2 so slow?
#38195
Author: Russ Allbery
Date: Tue, 22 Jun 1999 00:00
43 lines
2770 bytes
bill davidsen <davidsen@tmr.com> writes:

> After seeing how long the makehistory was taking I dropped back to 2.2,
> took ~95 minutes to build history and overview. Could tagged hash be a
> player here? I'm not using it, even though I have fairly small memory,
> but the makehistory process is tiny, so I assumed there was no issue.

I seem to remember the merge of the new overview stuff and the rest of
Clayton's changes introducing a slowdown in traditional makehistory.  I
don't think anyone's had a chance to revisit that part of the code again.

Not sure why you're getting an error from makedbz; are you building an
empty history file or using your existing ones?  It's working fine for me
on Solaris, starting with an empty history file, but I'm not using tagged
hash.

> Another issue is incoming article rate. This machine typically runs
> 40-60 art/sec in catchup mode with 2.2 (it's small, don't laugh). It's
> only accepting about 15 art/sec now, is there any obvious tuning (and
> why isn't it standard) to at least bring this up to match the incoming
> rate off the net? Reader performance looks good, but CPU use is very
> high even with no readers, and I sure hope there's a setup problem.
> This machine hums with 2.2 as long as I only let about 300 users on it.

There was a reason for uniover.  It's fast.  :)

With overview enabled, you're going to get fast incoming feed performance
or fast reader performance; pick one.  :/  The new overview is blazingly
fast for readers, but it takes longer to write to.

If you are running on a platform with plenty of file descriptors
available, try bumping up overcachesize in inn.conf.  It eats two file
descriptors per cache entry, so be careful.  If you have 1024 file
descriptors, though, 300 or so is a nice value.

It defaults to something like 15, which is really much smaller than you
want, but that's because it eats file descriptors like mad and not every
platform has plenty available.

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

Re: Why is inn-2.2 so slow?
#38198
Author: bill davidsen
Date: Wed, 23 Jun 1999 00:00
72 lines
4297 bytes
In article <yl3dzjn5di.fsf@windlord.stanford.edu>,
Russ Allbery  <rra@stanford.edu> wrote:
| bill davidsen <davidsen@tmr.com> writes:
| 
| > After seeing how long the makehistory was taking I dropped back to 2.2,
| > took ~95 minutes to build history and overview. Could tagged hash be a
| > player here? I'm not using it, even though I have fairly small memory,
| > but the makehistory process is tiny, so I assumed there was no issue.
| 
| I seem to remember the merge of the new overview stuff and the rest of
| Clayton's changes introducing a slowdown in traditional makehistory.  I
| don't think anyone's had a chance to revisit that part of the code again.

I'm going to see if playing with the -l size (lines? k?) make a
significant change.

| Not sure why you're getting an error from makedbz; are you building an
| empty history file or using your existing ones?  It's working fine for me
| on Solaris, starting with an empty history file, but I'm not using tagged
| hash.

Not from makedbz, the makehistory ends with an error message. I will get
a chance to test that soon as well, I'm installing 2.3 for a y2k test
box.

| > Another issue is incoming article rate. This machine typically runs
| > 40-60 art/sec in catchup mode with 2.2 (it's small, don't laugh). It's
| > only accepting about 15 art/sec now, is there any obvious tuning (and
| > why isn't it standard) to at least bring this up to match the incoming
| > rate off the net? Reader performance looks good, but CPU use is very
| > high even with no readers, and I sure hope there's a setup problem.
| > This machine hums with 2.2 as long as I only let about 300 users on it.
| 
| There was a reason for uniover.  It's fast.  :)
| 
| With overview enabled, you're going to get fast incoming feed performance
| or fast reader performance; pick one.  :/  The new overview is blazingly
| fast for readers, but it takes longer to write to.

Too long, unfortunately. If it can't accept articles as fast as the net
generates them the system is not useful. With all its faults, 2.2 will
keep up with a full feed on this little box (IBM 850 RISC).

| If you are running on a platform with plenty of file descriptors
| available, try bumping up overcachesize in inn.conf.  It eats two file
| descriptors per cache entry, so be careful.  If you have 1024 file
| descriptors, though, 300 or so is a nice value.
| 
| It defaults to something like 15, which is really much smaller than you
| want, but that's because it eats file descriptors like mad and not every
| platform has plenty available.

Yes, thanks, I cautiously upped the size to 200 (just to see if it would
make a difference at all), and the first ten minutes showed 13.95
art/sec with five feeds from one machine and two frim another. I'm doing
some tracing and stuff, but the CPU usage seems limited only by the
large wait-io time (and the disks aren't busy and the dir ops look
reasonable.

I haven't played with histcache settings, with 25-30% of the CPU in
overview it looks like a 2nd order effect, and it will all be missed
anyway, less than 1% of articles get fed from both machines.

Thanks for the additional info.

-- 
bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
  The Internet is not the fountain of youth, but some days it feels like
the fountain of immaturity.


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