🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
13 messages
13 total messages Started by Inge Hjort Thu, 10 Mar 2005 12:18
News daily takes 8 hours
#70845
Author: Inge Hjort
Date: Thu, 10 Mar 2005 12:18
22 lines
1771 bytes
Hello

What suggestions may you have if news.daily takes around 8 hours to 
complete?

All groups is stored in CNFS buffers and overviews is tradindexed.

Rebuild history & overview?


expire begin Thu Mar 10 04:41:29 CET 2005:
(-v1 -z/var/log/news/expire.rm)
     Article lines processed   469837
     Articles retained         169322
     Entries expired           300515
     Articles dropped               0
     Old entries dropped            0
     Old entries retained      767437
expire end Thu Mar 10 12:30:33 CET 2005
	all done Thu Mar 10 12:30:33 CET 2005
	expireover start Thu Mar 10 12:30:38 CET 2005
	expireover end Thu Mar 10 12:44:55 CET 2005
Re: News daily takes 8 hours
#70846
Author: Szymon Sokół
Date: Thu, 10 Mar 2005 13:27
14 lines
1859 bytes
Inge Hjort <ih.@invalid.invalid> wrote:

> What suggestions may you have if news.daily takes around 8 hours to 
> complete?
Be happy. Mine takes 14h. 

> All groups is stored in CNFS buffers and overviews is tradindexed.
CNFS+buffindexed here.

-- 
Szymon Sokół (SS316-RIPE) -- Network Manager                                B
Computer Center, AGH - University of Science and Technology, Cracow, Poland O
http://home.agh.edu.pl/szymon/ PGP key id: RSA: 0x2ABE016B, DSS: 0xF9289982 F 
Free speech includes the right not to listen, if not interested -- Heinlein H
Re: News daily takes 8 hours
#70847
Author: Inge Hjort
Date: Thu, 10 Mar 2005 14:16
10 lines
1467 bytes
Szymon Sokół skrev:
> Inge Hjort <ih.@invalid.invalid> wrote:
> 
> 
>>What suggestions may you have if news.daily takes around 8 hours to 
>>complete?
> 
> Be happy. Mine takes 14h. 

Then there is some problems.
Re: News daily takes 8 hours
#70850
Author: ruud
Date: Thu, 10 Mar 2005 17:32
16 lines
1536 bytes
Inge Hjort wrote:

> Hello
> 
> What suggestions may you have if news.daily takes around 8 hours to
> complete?

>      Articles dropped               0
>      Old entries dropped            0

Do you have "Remember" configured in expire.ctl ?
It looks like a problem that i had :-)

-- 
Gr. Ruud
news://news.nl-netwerken.com
Re: News daily takes 8 hours
#70859
Author: Russ Allbery
Date: Thu, 10 Mar 2005 20:03
53 lines
3148 bytes
Inge Hjort <ih.@invalid.invalid> writes:

> What suggestions may you have if news.daily takes around 8 hours to
> complete?

> All groups is stored in CNFS buffers and overviews is tradindexed.

> Rebuild history & overview?

That won't help.

This is taking a very long time for the size of your spool.  Compare to my
server:

> expire begin Thu Mar 10 04:41:29 CET 2005:
> (-v1 -z/var/log/news/expire.rm)
>      Article lines processed   469837
>      Articles retained         169322
>      Entries expired           300515
>      Articles dropped               0
>      Old entries dropped            0
>      Old entries retained      767437
> expire end Thu Mar 10 12:30:33 CET 2005
> 	all done Thu Mar 10 12:30:33 CET 2005
> 	expireover start Thu Mar 10 12:30:38 CET 2005
> 	expireover end Thu Mar 10 12:44:55 CET 2005

expireover start Thu Mar 10 00:14:04 PST 2005: ( -z/news/log/expire.rm -Z/news/log/expire.lowmark)
    Article lines processed  3724664
    Articles dropped          167569
    Overview index dropped    176261
expireover end Thu Mar 10 01:25:11 PST 2005
lowmarkrenumber begin Thu Mar 10 01:25:11 PST 2005: (/news/log/expire.lowmark)
lowmarkrenumber end Thu Mar 10 01:25:13 PST 2005
        expirerm start Thu Mar 10 01:25:16 PST 2005
        expirerm end Thu Mar 10 01:45:46 PST 2005
expire begin Thu Mar 10 01:46:16 PST 2005: (-v1)
    Article lines processed  3807329
    Articles retained        3586765
    Entries expired           220564
expire end Thu Mar 10 04:52:41 PST 2005
        all done Thu Mar 10 04:52:41 PST 2005

You don't seem to be using group-based expiration and you may want to,
although I don't know if that will help speed or not.  I don't remember
exactly how that affects things.  You may also want to look at your
hardware and make sure that your disks are fast enough, etc.

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

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: News daily takes 8 hours
#70865
Author: Szymon Sokół
Date: Fri, 11 Mar 2005 07:56
46 lines
3935 bytes
Russ Allbery <rra@stanford.edu> wrote:

> This is taking a very long time for the size of your spool.  Compare to my
> server:

> expireover start Thu Mar 10 00:14:04 PST 2005: ( -z/news/log/expire.rm -Z/news/log/expire.lowmark)
>     Article lines processed  3724664
>     Articles dropped          167569
>     Overview index dropped    176261
> expireover end Thu Mar 10 01:25:11 PST 2005
> lowmarkrenumber begin Thu Mar 10 01:25:11 PST 2005: (/news/log/expire.lowmark)
> lowmarkrenumber end Thu Mar 10 01:25:13 PST 2005
>         expirerm start Thu Mar 10 01:25:16 PST 2005
>         expirerm end Thu Mar 10 01:45:46 PST 2005
> expire begin Thu Mar 10 01:46:16 PST 2005: (-v1)
>     Article lines processed  3807329
>     Articles retained        3586765
>     Entries expired           220564
> expire end Thu Mar 10 04:52:41 PST 2005
>         all done Thu Mar 10 04:52:41 PST 2005

Well, any suggestions for me?

expire begin Thu Mar 10 00:37:03 CET 2005: (-v1
-z/usr/local/news/log/expire.rm)                                                
    Article lines processed 22093586                                            
    Articles retained       20923420                                            
    Entries expired          1170166                                            
    Articles dropped               0                                            
expire end Thu Mar 10 01:07:40 CET 2005                                         
        all done Thu Mar 10 01:07:40 CET 2005                                   
        expireover start Thu Mar 10 01:08:05 CET 2005                           
        expireover end Thu Mar 10 15:17:31 CET 2005                             
lowmarkrenumber begin Thu Mar 10 15:17:31 CET 2005:                             
(/usr/local/news/log/expire.lowmark)                                            
lowmarkrenumber end Thu Mar 10 15:17:57 CET 2005                                

As I said, overview is buffindexed (10 * 2GB), the machine is 2* Pentium3
@850MHz with 2GB RAM, disks are rather fast (Sun A1000 SCSI array with
hardware RAID5 on 12*17GB). I see no hardware bottleneck here.

-- 
Szymon Sokół (SS316-RIPE) -- Network Manager                                B
Computer Center, AGH - University of Science and Technology, Cracow, Poland O
http://home.agh.edu.pl/szymon/ PGP key id: RSA: 0x2ABE016B, DSS: 0xF9289982 F 
Free speech includes the right not to listen, if not interested -- Heinlein H
Re: News daily takes 8 hours
#70866
Author: Russ Allbery
Date: Fri, 11 Mar 2005 08:28
51 lines
3605 bytes
Szymon Sokół <szymon@bastard.operator.from.hell.pl> writes:

> Well, any suggestions for me?

Yeah, but not any that you're going to like.  *wry look*

> expire begin Thu Mar 10 00:37:03 CET 2005: (-v1
> -z/usr/local/news/log/expire.rm)
>     Article lines processed 22093586
>     Articles retained       20923420
>     Entries expired          1170166
>     Articles dropped               0
> expire end Thu Mar 10 01:07:40 CET 2005
>         all done Thu Mar 10 01:07:40 CET 2005
>         expireover start Thu Mar 10 01:08:05 CET 2005
>         expireover end Thu Mar 10 15:17:31 CET 2005
> lowmarkrenumber begin Thu Mar 10 15:17:31 CET 2005:
> (/usr/local/news/log/expire.lowmark)
> lowmarkrenumber end Thu Mar 10 15:17:57 CET 2005

With that large of a spool, expire is just going to take a long time
because it verifies the existence of every article.  The solution is to
rewrite how expire works so that it doesn't verify every article.  The
primary reason why it does this right now is for processing cancels and
for dealing with gaps around Expires, which means that if you don't accept
cancels and don't care about Expires, you could in theory tweak expireover
to stop checking articles as soon as it finds the first article that still
exists.  That would be much faster.

I also keep meaning to look at the CNFS code to see if I can make the
article probe faster.

A more comprehensive solution is to teach INN to expire overview entries
for cancelled messages immediately, which would also as a side effect let
us get rid of nnrpdartcheck in nearly all cases.  Combine this with
support for immediate expiry of the history entry, and expireover can be
significantly restructured in a way that would make it considerably
faster.  With a slight additional improvement, you can then get cyclic
history, with resulting significant wins for expire related to not having
to hold two history hashes in memory at the same time.

Unfortunately, this is neither a simple nor easy task, which means getting
it done is going to either continue to wait on my free time to work on INN
as a hobby or is going to require someone else stepping forward to do the
work.

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

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: News daily takes 8 hours
#70868
Author: Szymon Sokół
Date: Fri, 11 Mar 2005 11:01
14 lines
2159 bytes
Russ Allbery <rra@stanford.edu> wrote:

> Unfortunately, this is neither a simple nor easy task, which means getting
> it done is going to either continue to wait on my free time to work on INN
> as a hobby or is going to require someone else stepping forward to do the
> work.

Well, thanks anyway. If things get worse, maybe I will try your solution
with simplified expireover. For now, I can live with expireover taking 14h.
-- 
Szymon Sokół (SS316-RIPE) -- Network Manager                                B
Computer Center, AGH - University of Science and Technology, Cracow, Poland O
http://home.agh.edu.pl/szymon/ PGP key id: RSA: 0x2ABE016B, DSS: 0xF9289982 F 
Free speech includes the right not to listen, if not interested -- Heinlein H
Re: News daily takes 8 hours
#70867
Author: Bruce Esquibel
Date: Fri, 11 Mar 2005 14:08
25 lines
2259 bytes
Szymon Sok?? <szymon@bastard.operator.from.hell.pl> wrote:

: As I said, overview is buffindexed (10 * 2GB), the machine is 2* Pentium3
: @850MHz with 2GB RAM, disks are rather fast (Sun A1000 SCSI array with
: hardware RAID5 on 12*17GB). I see no hardware bottleneck here.

I don't have any suggestions on solving the problem, if there is one, but
I'm kind of stumped on your configuration now.

In an earlier message you said you were using CNFS for storage and in the
above you say it's RAID5. It's early in the morning here but I don't see how
these two mix.

Just wondering if its in the configuration you think it is, when we switched
to CNFS from tradspool, the expire dropped down to a couple hours on average
with a 8 million line history file. This is on a Sun E250, which is about
half the speed of your hardware (2x 400mHz). 

If your history file is on RAID5, that in itself could be a source of the
problem. Hardware raid over software raid is a good thing, but I still
wouldn't use it for something like a news server. Stripped volumes with a
hotspare will outrun it easily, especially on writes.

-bruce
bje@ripco.com
Re: News daily takes 8 hours
#70871
Author: Geoff Brozny
Date: Fri, 11 Mar 2005 16:20
36 lines
2660 bytes
"Bruce Esquibel" <bje@e4500.ripco.com> wrote in message 
news:d0s8pn$37d$1@e250.ripco.com...
>
> I don't have any suggestions on solving the problem, if there is one, but
> I'm kind of stumped on your configuration now.
>
> In an earlier message you said you were using CNFS for storage and in the
> above you say it's RAID5. It's early in the morning here but I don't see 
> how
> these two mix.
>
> Just wondering if its in the configuration you think it is, when we 
> switched
> to CNFS from tradspool, the expire dropped down to a couple hours on 
> average
> with a 8 million line history file. This is on a Sun E250, which is about
> half the speed of your hardware (2x 400mHz).
>
> If your history file is on RAID5, that in itself could be a source of the
> problem. Hardware raid over software raid is a good thing, but I still
> wouldn't use it for something like a news server. Stripped volumes with a
> hotspare will outrun it easily, especially on writes.
>


A couple months ago I rebuilt my reader box, it was using two RAID5 arrays, 
one contained the OS, and overview, which was buffindex, and the other array 
just had the spool,. which was 4 CNFS buffers making up the 250gb spool. 
expireover took around 13 hrs to finish. With the rebuilt box, basically the 
same layout, just using two RAID10 arrays,  tradindex, along with 20 gb CNFS 
buffers expireover is taking about 90 min to complete.

geoff 

Re: News daily takes 8 hours
#70877
Author: Szymon Sokół
Date: Sat, 12 Mar 2005 13:48
18 lines
2430 bytes
Geoff Brozny <gbrozny@glorb.columbus.oh.us> wrote:

> A couple months ago I rebuilt my reader box, it was using two RAID5 arrays, 
> one contained the OS, and overview, which was buffindex, and the other array 
> just had the spool,. which was 4 CNFS buffers making up the 250gb spool. 
> expireover took around 13 hrs to finish. With the rebuilt box, basically the 
> same layout, just using two RAID10 arrays,  tradindex, along with 20 gb CNFS 
> buffers expireover is taking about 90 min to complete.

So, essentially, you: 1) moved from buffindexed to tradindexed; 2) replaced
RAID5 with RAID10; is that right? I assume the performance improvement is
due to 2, not to 1 - I always believed buffindexed is *faster*?

-- 
Szymon Sokół (SS316-RIPE) -- Network Manager                                B
Computer Center, AGH - University of Science and Technology, Cracow, Poland O
http://home.agh.edu.pl/szymon/ PGP key id: RSA: 0x2ABE016B, DSS: 0xF9289982 F 
Free speech includes the right not to listen, if not interested -- Heinlein H
Re: News daily takes 8 hours
#70878
Author: Szymon Sokół
Date: Sat, 12 Mar 2005 13:57
20 lines
2568 bytes
Bruce Esquibel <bje@e4500.ripco.com> wrote:

> If your history file is on RAID5, that in itself could be a source of the
> problem. Hardware raid over software raid is a good thing, but I still
> wouldn't use it for something like a news server. Stripped volumes with a
> hotspare will outrun it easily, especially on writes.

Yes, the history (all the /news/db, actually) and overview is on the RAID5
volume. CNFS is on separate single disks. I will have to test how much
slower is RAID5 compared to single drives in this particular configuration -
I did not expect to have a big performance hit here, as my experience with
Sun's hardware RAID5 controllers was that the volume of 12 disks was
actually about as fast as a single drive. This is not necessarily the case
with the controller in this Intel box. Thanks for pointing this out. 

-- 
Szymon Sokół (SS316-RIPE) -- Network Manager                                B
Computer Center, AGH - University of Science and Technology, Cracow, Poland O
http://home.agh.edu.pl/szymon/ PGP key id: RSA: 0x2ABE016B, DSS: 0xF9289982 F 
Free speech includes the right not to listen, if not interested -- Heinlein H
Re: News daily takes 8 hours
#70879
Author: Geoff Brozny
Date: Sat, 12 Mar 2005 15:36
30 lines
2341 bytes
"Szymon Sokó³" <szymon@bastard.operator.from.hell.pl> wrote in message 
news:d0us0a$bf1$1@galaxy.uci.agh.edu.pl...
>
> So, essentially, you: 1) moved from buffindexed to tradindexed; 2) 
> replaced
> RAID5 with RAID10; is that right?

correct.

> I assume the performance improvement is
> due to 2, not to 1 - I always believed buffindexed is *faster*?

I think it is because of #2, yes, I did expect some improvement in the 
performance just because of getting rid of the RAID5 overhead, with RAID5, 
when the system was receiving a full text feed from my feeder box the HD 
light was almost solid, now it is off more then it is on, the readers are 
also way faster as well, I can suck articles off the box at least twice as 
fast as before.

The reason I went tradindexed is because with buffindex, if the box went 
down unclean,  the overview index would get corrupt, and I would have to 
rebuild it, and that caused me to be off-air for 4 days, and tradindexed can 
now be repaired on the fly, hopefully I will never have to do that, but 
stuff happens.


geoff 

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