🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
11 messages
11 total messages Started by Frank Fegert Thu, 12 Jul 2007 21:26
Overview accessing article spool?
#76230
Author: Frank Fegert
Date: Thu, 12 Jul 2007 21:26
17 lines
1713 bytes
Hello all,

we've recently been upgrading our (rather old) news server with
some more RAM and bigger/more disks. Being optimistic, we tuned
up the expiration times to actually use some of the additional
disk storage. Now with about 10M articles in the spool the NNRPs
take considerably more time loading the groups overview. After
truss'ing a NNRP of a test connection it seems that its not only
gathering the overview data from the ovdb, but also heavily walk-
ing over the article spool. Although this would explain the in-
crease in loading time, i'm a bit confused why this is happening
in the first place. Isn't the ovdb supposed to contain all headers
necessary to build the overview?

Thanks,

	Frank
Re: Overview accessing article spool?
#76233
Author: Maurice Janssen
Date: Thu, 12 Jul 2007 21:49
19 lines
2040 bytes
On Thu, 12 Jul 2007 23:26:38 +0200, Frank Fegert wrote:
>Hello all,
>
>we've recently been upgrading our (rather old) news server with
>some more RAM and bigger/more disks. Being optimistic, we tuned
>up the expiration times to actually use some of the additional
>disk storage. Now with about 10M articles in the spool the NNRPs
>take considerably more time loading the groups overview. After
>truss'ing a NNRP of a test connection it seems that its not only
>gathering the overview data from the ovdb, but also heavily walk-
>ing over the article spool. Although this would explain the in-
>crease in loading time, i'm a bit confused why this is happening
>in the first place. Isn't the ovdb supposed to contain all headers
>necessary to build the overview?

Perhaps nnrpdcheckart is set to true in inn.conf?

-- 
Maurice
Re: Overview accessing article spool?
#76234
Author: Frank Fegert
Date: Fri, 13 Jul 2007 05:58
20 lines
1901 bytes
On 2007-07-12, Maurice Janssen <mauricej@xs4all.nl> wrote:
> On Thu, 12 Jul 2007 23:26:38 +0200, Frank Fegert wrote:
>>[...] Although this would explain the in-
>>crease in loading time, i'm a bit confused why this is happening
>>in the first place. Isn't the ovdb supposed to contain all headers
>>necessary to build the overview?
>
> Perhaps nnrpdcheckart is set to true in inn.conf?

Thanks for the fast pointer! Actually 'nnrpdcheckart' is
set to true, which would answer my initial question, but
immediately raise another one ;-) Since i'm kind of a INN-
Newbie, i'm now wondering how much "damage" i'd have to
expect by setting 'nnrpdcheckart' to false? Is this kind
of a "better safe than sorry" setting and can be set to
false without regretting this immediately?

Thanks,

	Frank
Re: Overview accessing article spool?
#76235
Author: Maurice Janssen
Date: Fri, 13 Jul 2007 08:17
29 lines
2642 bytes
On Fri, 13 Jul 2007 07:58:46 +0200, Frank Fegert wrote:
>On 2007-07-12, Maurice Janssen <mauricej@xs4all.nl> wrote:
>> On Thu, 12 Jul 2007 23:26:38 +0200, Frank Fegert wrote:
>>>[...] Although this would explain the in-
>>>crease in loading time, i'm a bit confused why this is happening
>>>in the first place. Isn't the ovdb supposed to contain all headers
>>>necessary to build the overview?
>>
>> Perhaps nnrpdcheckart is set to true in inn.conf?
>
>Thanks for the fast pointer! Actually 'nnrpdcheckart' is
>set to true, which would answer my initial question, but
>immediately raise another one ;-) Since i'm kind of a INN-
>Newbie, i'm now wondering how much "damage" i'd have to
>expect by setting 'nnrpdcheckart' to false? Is this kind
>of a "better safe than sorry" setting and can be set to
>false without regretting this immediately?

The only downside I've ever experienced, is that a news client can
receive overview data for articles that are no longer available.  So
when the clients wants to receive that article, it gets an error message
that the article is not available.  IIRC this is fixed when you run the
expire process (the missing article well be removed from overview), but
until then the above might happen.
For me, this is not a big problem.  And if you don't honor cancel
messages, then I suppose it won't happen at all.

-- 
Maurice
Re: Overview accessing article spool?
#76236
Author: Frank Fegert
Date: Sat, 14 Jul 2007 13:12
40 lines
3076 bytes
On 2007-07-13, Maurice Janssen <mauricej@xs4all.nl> wrote:
> The only downside I've ever experienced, is that a news client can
> receive overview data for articles that are no longer available.  So
> when the clients wants to receive that article, it gets an error message
> that the article is not available.  IIRC this is fixed when you run the
> expire process (the missing article well be removed from overview), but
> until then the above might happen.
> For me, this is not a big problem.  And if you don't honor cancel
> messages, then I suppose it won't happen at all.

We do allow certain cancels, so the situation you described will
probably occur.
Let my try to explain the original problem, maybe there's another
solution i'm not seeing. We recently updated our server:
  Solaris 8 -> Solaris 10
  INN 2.3.2 -> 2.4.3
  1 GB      -> 4 GB RAM
  4x 36GB   -> 8x 73GB mirrored stripe disk spool
  UFS       -> ZFS

With the additional disk space it seemed like a good thing for
the users to up the expire times (approx. factor 5). Now with
about twice as many timecaf-files (~80k) and about 10M articles
in spool things get a little slow if you're opening a groups
overview. Especially if the group contains a large number of
unread articles. CPU, memory and even disk I/O do not seem to
be the cause, everything is at or below 15% (20% max) usage.
truss'ing a Test-NNRPD showed that it spends most of its time
reading lots of timecaf files, which i now know is due to the
nnrpdcheckart option. What puzzles me is that although it seems
the reads/seeks of the timcaf files are the bottleneck, the I/O
on the machine is nowhere near the machines limit. A test with
a much bigger server and some fast SAN storage showed the same
behaviour - the overview is just crawling if nnrpdcheckart is
set to true. Might this be an Solaris oddity, or has someone
similar experiences?

Thanks,

	Frank
Re: Overview accessing article spool?
#76239
Author: Julien ÉLIE
Date: Sat, 14 Jul 2007 18:22
48 lines
3303 bytes
En réponse à Frank Fegert :
> Let my try to explain the original problem, maybe there's another
> solution i'm not seeing. We recently updated our server:
>  Solaris 8 -> Solaris 10
>  INN 2.3.2 -> 2.4.3

Well, I do not know whether my post will be of help but according
to what you say, I have checked what changed regarding overview:

[2.4.0] A new option, tradindexedmmap, has been added to inn.conf. If set to true
(the default), then the tradindexed overview method will use mmap() to access
its overview data (in 2.3 you couldn't control this; it always used mmap).

-> perhaps you do not currently use it.  Check if it is set to false
   (the default is true so, if you changed nothing, it is not the problem)


[2.4.3] Previous versions of INN had an optimization for handling XHDR Newsgroups
that used the Xref header from overview. While this does make the command much faster,
it doesn't produce accurate results and breaks the NNTP protocol, so this optimization
has been removed.

-> do you send XHDR requests?


Other things to check would be overcachesize (I for one put 384, instead of the
default 15) and nfsreader if you use NFS storage.

If nothing changes, could you enable nnrpdoverstats and see whether there is
something wrong?



> Might this be an Solaris oddity, or has someone similar experiences?

Regarding Solaris, did you check the file descriptor limit?

http://www.eyrie.org/~eagle/software/inn/docs/install.html#S12


I am not sure whether my suggestions can solve your problem (and even if they
are linked to it) but I believe it is better to say it.

-- 
Julien ÉLIE

« À vaincre sans péril, on évite des ennuis ! » (légionnaire romain) 
Re: Overview accessing article spool?
#76240
Author: Frank Fegert
Date: Sun, 15 Jul 2007 10:29
71 lines
4283 bytes
On 2007-07-14, Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> wrote:
> En réponse à Frank Fegert :
>> Let my try to explain the original problem, maybe there's another
>> solution i'm not seeing. We recently updated our server:
>>  Solaris 8 -> Solaris 10
>>  INN 2.3.2 -> 2.4.3
>
> Well, I do not know whether my post will be of help but according
> to what you say, I have checked what changed regarding overview:
>
> [2.4.0] A new option, tradindexedmmap, has been added to inn.conf. If set to true
> (the default), then the tradindexed overview method will use mmap() to access
> its overview data (in 2.3 you couldn't control this; it always used mmap).
>
> -> perhaps you do not currently use it.  Check if it is set to false
>    (the default is true so, if you changed nothing, it is not the problem)

No, we're using ovdb which in itself is pretty fast: 30k article
overview with "nnrpdcheckart: false" in ~5 sec. With "nnrpdcheckart:
true" well over 4 Min. :-(

> [2.4.3] Previous versions of INN had an optimization for handling XHDR Newsgroups
> that used the Xref header from overview. While this does make the command much faster,
> it doesn't produce accurate results and breaks the NNTP protocol, so this optimization
> has been removed.
>
> -> do you send XHDR requests?

I didn't see those in truss/strace, but that doesn't necessarily
mean they weren't sent ;-)

> Other things to check would be overcachesize (I for one put 384, instead of the
> default 15) and nfsreader if you use NFS storage.

The storage is directly attached and according to the inn.conf man-
page overcachesize seems only to be used for tradindexed: "This
setting is ignored unless ovmethod is set to tradindexed."

>> Might this be an Solaris oddity, or has someone similar experiences?
>
> Regarding Solaris, did you check the file descriptor limit?
>
> http://www.eyrie.org/~eagle/software/inn/docs/install.html#S12

The default FD-limit for Solaris has been 256 for quite a while now.
Since Solaris would complain very much about running out of FDs and
since during the overview the timecaf files are accessed in a serial
manner rather than parallel, i'd think FDs aren't the cause of the
problem.

> I am not sure whether my suggestions can solve your problem (and even if they
> are linked to it) but I believe it is better to say it.

Thanks for your hints. Even if they don't apply directly it's a
good thing to make sure and double check ;-)

In the meantime i talked to some newsadmins running similar sized
servers. Some have set "nnrpdcheckart: false" a long time ago,
others (also) use other storage methods. Since ZFS (being a flat
nonbalanced tree) *should* perform way better on a large number
of files than the old Solaris UFS, i think i'll go ahead and do
a comparison of the different storage methods. Even if that does
not yield good results, i always have the option to go ahead and
turn off nnrpdcheckart.

Still, if someone has a bright idea on the subject please don't
hesitate to followup ;-)

Thanks,

	Frank
Re: Overview accessing article spool?
#76244
Author: Russ Allbery
Date: Sun, 15 Jul 2007 17:04
21 lines
2110 bytes
Frank Fegert <fra.nospam.nk@gmx.de> writes:

> truss'ing a Test-NNRPD showed that it spends most of its time reading
> lots of timecaf files, which i now know is due to the nnrpdcheckart
> option. What puzzles me is that although it seems the reads/seeks of the
> timcaf files are the bottleneck, the I/O on the machine is nowhere near
> the machines limit.

Yeah, but nnrpd serializes all of those operations, so you lose potential
I/O performance to system call overhead.  timecaf is about the worst
possible storage mechanism to use from the nnrpdcheckart perspective; I
think every other storage mechanism would be faster.

It still sounds like it's slower than I would expect, but it's not
horribly surprising.

-- 
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: Overview accessing article spool?
#76245
Author: Frank Fegert
Date: Sun, 15 Jul 2007 18:48
26 lines
2278 bytes
On 2007-07-15, Russ Allbery <rra@stanford.edu> wrote:
> Frank Fegert <fra.nospam.nk@gmx.de> writes:
>
>> truss'ing a Test-NNRPD showed that it spends most of its time reading
>> lots of timecaf files, which i now know is due to the nnrpdcheckart
>> option. What puzzles me is that although it seems the reads/seeks of the
>> timcaf files are the bottleneck, the I/O on the machine is nowhere near
>> the machines limit.
>
> Yeah, but nnrpd serializes all of those operations, so you lose potential
> I/O performance to system call overhead.  timecaf is about the worst
> possible storage mechanism to use from the nnrpdcheckart perspective; I
> think every other storage mechanism would be faster.
>
> It still sounds like it's slower than I would expect, but it's not
> horribly surprising.

Thanks for explaining! I was already wondering where the avg.
3k/s and max. 10-20k/s syscalls were coming from ;-)
So converting the timecafs to CNFS or tradspool seems the way
to go. I'll start some tests on monday, to see which one works
better with ZFS.

Thanks,

	Frank
Re: Overview accessing article spool?
#76247
Author: Frank Fegert
Date: Tue, 17 Jul 2007 07:30
18 lines
2021 bytes
On 2007-07-15, Frank Fegert <fra.nospam.nk@gmx.de> wrote:
> So converting the timecafs to CNFS or tradspool seems the way
> to go. I'll start some tests on monday, to see which one works
> better with ZFS.

Following up on the ZFS subject. I'm currently feeding the existing
spool on my test machine (~10M articles) into a new tradspool. This
is done via innxmit - probably not the preferred method, but the one
obvious to me ;-) The tradspool is residing on a ZFS-mirrored-stripe
(2 way mirror of 4 striped 70GB disks). The ZFS record size is set
to 32k.
Now innstat tells me the inn is processing about 160 Arts/sec., with
CPU about 10% and disk I/O about 10-20% busy evenly on all disks.
Has someone a Arts/sec. value for comparison?

Thanks,

	Frank
Re: Overview accessing article spool?
#76248
Author: Russ Allbery
Date: Tue, 17 Jul 2007 15:54
28 lines
2494 bytes
Frank Fegert <fra.nospam.nk@gmx.de> writes:

> Following up on the ZFS subject. I'm currently feeding the existing
> spool on my test machine (~10M articles) into a new tradspool. This
> is done via innxmit - probably not the preferred method, but the one
> obvious to me ;-)

It's the way I prefer to do it too.

> The tradspool is residing on a ZFS-mirrored-stripe (2 way mirror of 4
> striped 70GB disks). The ZFS record size is set to 32k.  Now innstat
> tells me the inn is processing about 160 Arts/sec., with CPU about 10%
> and disk I/O about 10-20% busy evenly on all disks.

Note that you'll get better performance with a real-world server than you
do with innxmit since with innxmit you're probably bound by network
latency and you'll get better performance with multiple simultaneous
article streams.

innd still blocks on I/O, though, so there's a limit to how good of
performance you can get out of it at the moment.  (The really fast news
servers are multithreaded.)

-- 
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.
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