๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
21 messages
21 total messages Started by Frank Kloeker Wed, 10 May 2000 00:00
nnrp post is very slow
#46373
Author: Frank Kloeker
Date: Wed, 10 May 2000 00:00
17 lines
1274 bytes
Hi,

since one week I have problems with local posting with nnrpd. INN2.2.2
is running with innfeed (2 uplinks), traditional spool, overview and
controlchan. The history is not to large (~500 MB) and the spool have
150 GB at the moment. Solaris2.7 is running on a Sparc Ultra II with
512MB Memory. 
Last time I`m very happy with this configuration, but now I'm waiting
very long of the request "OK" if I`m posting a article. Whats wrong?
What can I check for misstakes and errors? And any ideas?

bye

-- 
take your life

Re: nnrp post is very slow
#46381
Author: Frank Kloeker
Date: Thu, 11 May 2000 00:00
19 lines
1306 bytes
Urs Jan๏ฟฝen wrote:
> 
> In <8fcka4$cvd$1@news.germany.net>,
>     Frank Kloeker <eumel@germany.net> wrote:
> > What can I check for misstakes and errors? And any ideas?
> 
> is nnrpd spawned form innd? put the innd to another port and use
> [x]inetd to fork the nnrpds.

nnrpd is already starting from inetd on port 119
innd is running on port 433
there are not too many readers on this machine (~15-20 at the same time)

thx

-- 
Don't dream your life, live your dream!

Re: nnrp post is very slow
#46392
Author: Kjetil Torgrim Homme
Date: Thu, 11 May 2000 00:00
17 lines
1248 bytes
[Frank Kloeker]

>   Last time I`m very happy with this configuration, but now I'm
>   waiting very long of the request "OK" if I`m posting a
>   article. Whats wrong?  What can I check for misstakes and errors?
>   And any ideas?

Try to truss the nnrpd to see where it spends its time.

Finding the right nnrpd can be a bit tricky, you first need to use
netstat to find the port which is used on the workstation end of the
NNTP connection, then run "lsof -i :47927" or similar.


Kjetil T.

Re: nnrp post is very slow
#46409
Author: Jeremy
Date: Fri, 12 May 2000 00:00
16 lines
1172 bytes
Kjetil Torgrim Homme  <kjetilho@haey.ifi.uio.no> wrote:

> Try to truss the nnrpd to see where it spends its time.
> 
> Finding the right nnrpd can be a bit tricky, you first need to use
> netstat to find the port which is used on the workstation end of the
> NNTP connection, then run "lsof -i :47927" or similar.

Or stick it in inetd.conf on another port for testing, with a different
name for the executable so you can find it in the process list.  Or run
it under truss from the command line and post to it by hand.

-- 
Jeremy  (  jeremy@exit109.com  |  bofh@netscum.dk  )

Re: nnrp post is very slow
#46468
Author: Frank Kloeker
Date: Wed, 17 May 2000 00:00
23 lines
1735 bytes
Jeremy wrote:
> 
> Kjetil Torgrim Homme  <kjetilho@haey.ifi.uio.no> wrote:
> 
> > Try to truss the nnrpd to see where it spends its time.
> >
> > Finding the right nnrpd can be a bit tricky, you first need to use
> > netstat to find the port which is used on the workstation end of the
> > NNTP connection, then run "lsof -i :47927" or similar.
> 
> Or stick it in inetd.conf on another port for testing, with a different
> name for the executable so you can find it in the process list.  Or run
> it under truss from the command line and post to it by hand.

I`m using now "nnrpd -o" in inetd.conf with "rnews -U" in crontab for a
fast posting but without checking the new article.
The spool-raidsystem is probably too slowly for writing article on disc.
Have someone an idea for tuning unixfilesystem (ufs) on Solaris?

-- 
Don't dream your life, live your dream!

Re: nnrp post is very slow
#46509
Author: Kjetil Torgrim Homme
Date: Fri, 19 May 2000 00:00
22 lines
1417 bytes
[Frank Kloeker]

>   I`m using now "nnrpd -o" in inetd.conf with "rnews -U" in crontab
>   for a fast posting but without checking the new article.  The
>   spool-raidsystem is probably too slowly for writing article on
>   disc.  Have someone an idea for tuning unixfilesystem (ufs) on
>   Solaris?

logging, noatime are essential for a traditional spool.  Both require
Solaris 7 or higher.

Check the file system performance with 

  iostat -xn 5

The column to watch is wait, if that is non-zero much of the time,
that disk is a bottleneck.


Kjetil T.

Re: nnrp post is very slow
#46566
Author: Frank Kloeker
Date: Wed, 24 May 2000 00:00
24 lines
1544 bytes
Kjetil Torgrim Homme schrob:

[...]
> Check the file system performance with
> 
>   iostat -xn 5
> 
> The column to watch is wait, if that is non-zero much of the time,
> that disk is a bottleneck.

I found some waitstates 0.5 to 7.2 on the diskaray for newsspool. At
next I`m using "tunefs", but the filesystem is already optimized. In the
next few weeks I can split the newsspool to 2 raids and I hope this make
the machine faster (it`s a Ultra-Sparc II running Solaris 2.7  with
patches from 09/99).
A last question: How much is a traditional newsspool on ufs slower as a
CNFS-System?

thx

-- 
sig

Re: nnrp post is very slow
#46567
Author: Russ Allbery
Date: Wed, 24 May 2000 00:00
14 lines
1370 bytes
Frank Kloeker <eumel@germany.net> writes:

> Yes, wait-time is now 0.0, but postings with nnrpd waiting 30 per 60
> seconds to success.

It sounds like innd is taking an extremely long time to service the local
socket.  Is innd severely overloaded?  What does the internal performance
timer report?  (If you don't already have it turned on, set the timer key
in inn.conf to something like 600.)

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

Re: nnrp post is very slow
#46573
Author: Kjetil Torgrim Homme
Date: Wed, 24 May 2000 00:00
15 lines
1295 bytes
[Frank Kloeker]

>   Yes, wait-time is now 0.0, but postings with nnrpd waiting 30 per 60
>   seconds to success.
>   
>   any ideas?

No, I can't imagine why it is so slow.  It sounds like there is some
timeout or alarm.  Did you manage to truss the nnrpd while it accepts
and delivers the posting?


Kjetil T.

Re: nnrp post is very slow
#46575
Author: Frank Kloeker
Date: Wed, 24 May 2000 00:00
70 lines
4763 bytes
Kjetil Torgrim Homme wrote:
[...]
> No, I can't imagine why it is so slow.  It sounds like there is some
> timeout or alarm.  Did you manage to truss the nnrpd while it accepts
> and delivers the posting?
> 

ok, here is my truss-output:

Base time stamp:  959198871.6735  [ Wed May 24 22:07:51 MET DST 2000 ]
poll(0xFFBED8B8, 1, 600000)     (sleeping...)
 3.1896 poll(0xFFBED8B8, 1, 600000)                     = 1
 3.1900 read(0, " P O S T\r\n", 1024)                   = 6
 3.1908 write(1, " 3 4 0   O k\r\n", 8)                 = 8
 3.4147 poll(0xFFBED740, 1, 300000)                     = 1
 3.4151 read(0, " D a t e :   W e d ,   2".., 1024)     = 331
 3.4769 poll(0xFFBED740, 1, 300000)                     = 1
 3.4773 read(0, "\r\n .\r\n", 1024)                     = 5
 3.4781 getpid()                                        = 29720 [135]
 3.4784 time()                                          = 959198875
 3.4786 getpid()                                        = 29720 [135]
 3.4790 open("/usr/local/news/etc/distrib.pats", O_RDONLY) = 5
 3.4794 fstat64(5, 0xFFBECB00)                          = 0
 3.4799 ioctl(5, TCGETA, 0xFFBECA8C)                    Err#25 ENOTTY
 3.4802 read(5, " # #     $ R e v i s i o".., 8192)     = 495
 3.4806 read(5, 0x0061100C, 8192)                       = 0
 3.4808 lseek(5, 0, SEEK_SET)                           = 0
 3.4810 read(5, " # #     $ R e v i s i o".., 8192)     = 495
 3.4814 read(5, 0x0061100C, 8192)                       = 0
 3.4817 llseek(5, 0, SEEK_CUR)                          = 495
 3.4819 close(5)                                        = 0
 3.4825 getcontext(0xFFBECDC0)
 3.4835 so_socket(1, 2, 0, "", 1)                       = 5
 3.4840 connect(5, 0xFFBED160, 110, 1)                  = 0
 3.4843 fstat64(5, 0xFFBECE00)                          = 0
 3.4845 ioctl(5, TCGETA, 0xFFBECD8C)                    Err#22 EINVAL
read(5, 0x0061100C, 8192)       (sleeping...)
10.1787 read(5, " 2 0 0   n e w s . g e r".., 8192)     = 70
10.1802 dup(5)                                          = 6
10.1806 fstat64(6, 0xFFBEC328)                          = 0
10.1811 ioctl(6, TCGETA, 0xFFBEC2B4)                    Err#22 EINVAL
10.1815 write(6, " i h a v e   < 8 g h c q".., 39)      = 39
read(5, 0x0061100C, 8192)       (sleeping...)
14.9761 read(5, " 3 3 5\r\n", 8192)                     = 5
14.9772 write(6, " P a t h :   n o t - f o".., 578)     = 578
14.9778 write(6, " i g n o r e\r\n .\r\n", 11)          = 11
read(5, 0x0061100C, 8192)       (sleeping...)
19.5464 read(5, " 2 3 5\r\n", 8192)                     = 5
19.5472 write(6, " q u i t\r\n", 6)                     = 6
19.5500 close(6)                                        = 0
read(5, 0x0061100C, 8192)       (sleeping...)
23.0353 read(5, " 2 0 5   .\r\n", 8192)                 = 7
23.0358 llseek(5, 0, SEEK_CUR)                          Err#29 ESPIPE
23.0365 close(5)                                        = 0
23.0370 fstat(3, 0xFFBED610)                            = 0
23.0374 time()                                          = 959198894
23.0378 getpid()                                        = 29720 [135]
23.0384 putmsg(3, 0xFFBECCC8, 0xFFBECCBC, 0)            = 0
23.0394 open("/etc/.syslog_door", O_RDONLY)             = 5
23.0401 door_info(5, 0xFFBECC00)                        = 0
23.0407 getpid()                                        = 29720 [135]
23.0410 door_call(5, 0xFFBECBE8)                        = 0
23.0413 close(5)                                        = 0
23.0416 write(1, " 2 4 0   A r t i c l e  ".., 20)      = 20
poll(0xFFBED8B8, 1, 600000)     (sleeping...)

-- 
Don't dream your life, live your dream!

Re: nnrp post is very slow
#46580
Author: Kjetil Torgrim Homme
Date: Wed, 24 May 2000 00:00
17 lines
1263 bytes
[Frank Kloeker]

>   I found some waitstates 0.5 to 7.2 on the diskaray for
>   newsspool. At next I`m using "tunefs", but the filesystem is
>   already optimized.

You have mounted the filesystem with logging and noatime?

>   A last question: How much is a traditional newsspool on ufs slower
>   as a CNFS-System?

Much slower.


Kjetil T.

Re: nnrp post is very slow
#46582
Author: Frank Kloeker
Date: Wed, 24 May 2000 00:00
19 lines
1381 bytes
Kjetil Torgrim Homme schrob:
> 
> [Frank Kloeker]
> 
> >   I found some waitstates 0.5 to 7.2 on the diskaray for
> >   newsspool. At next I`m using "tunefs", but the filesystem is
> >   already optimized.
> 
> You have mounted the filesystem with logging and noatime?

Yes, wait-time is now 0.0, but postings with nnrpd waiting 30 per 60
seconds to success.

any ideas?

-- 
sig

Re: nnrp post is very slow
#46584
Author: Frank Kloeker
Date: Thu, 25 May 2000 00:00
28 lines
2172 bytes
Russ Allbery schrieb:
[...]
> CNFS will help dramatically.  Dropping binary newsgroups will help, as
> they take considerably longer to write out to disk, if that's feasible for
> you.  Moving the overview to a separate disk will also help a reasonable
> amount.

CNFS is surely the better way for handling big spool, but I will in the
next time split the spool to 2 raids or split the overview to another
disk. Not reading binary groups are already dropped.
 
> You should also check for excessively large directories, since they'll
> dramatically slow down any writes to those directories on most file
> systems.  Standard suspects are control/cancel (or control, if you've not
> broken up control messages), news/lists/filters, and misc/jobs/*
> (particularly misc/jobs/offered).  Lowering the expire time of problem
> groups can help a decent amount.

Large directories (control.cancel) have already a short expire time and
"*jobs*" was filtered on newsfeed. I think, export spool to CNFS is the
best.

thx

-- 
sig

Re: nnrp post is very slow
#46589
Author: Kjetil Torgrim Homme
Date: Thu, 25 May 2000 00:00
20 lines
1593 bytes
[Frank Kloeker]

>   ok, here is my truss-output:

Great!

>    3.4845 ioctl(5, TCGETA, 0xFFBECD8C)                    Err#22 EINVAL
>   read(5, 0x0061100C, 8192)       (sleeping...)
>   10.1787 read(5, " 2 0 0   n e w s . g e r".., 8192)     = 70

As you can see, it took 6 seconds before the main innd process
accepted the connection from nnrpd.  (You should get the same slow
response when using just "telnet localhost 119".)  So innd is
overloaded for some reason.  Follow Russ' advice to hopefully pinpoint
the bottleneck.


Kjetil T.

Re: nnrp post is very slow
#46600
Author: Frank Kloeker
Date: Thu, 25 May 2000 00:00
52 lines
2922 bytes
Russ Allbery wrote:
> 
> Frank Kloeker <eumel@germany.net> writes:
> 
> > Yes, wait-time is now 0.0, but postings with nnrpd waiting 30 per 60
> > seconds to success.
> 
> It sounds like innd is taking an extremely long time to service the local
> socket.  Is innd severely overloaded?  What does the internal performance
> timer report?  (If you don't already have it turned on, set the timer key
> in inn.conf to something like 600.)

Here is the output from INND timer (300 seconds interval)

INND timer:
Code region                   Time    Pct    Invoked  Min(ms)  Avg(ms) 
Max(ms)
article cancel        00:13:28.454   3.3%      14323   27.000   56.444 
144.685
article control       00:13:25.134   3.2%      14646   18.000   54.973 
141.111
article link          00:00:00.742   0.0%      21558    0.000   
0.034    0.899
article write         05:18:23.008  76.9%     117543   98.125  162.519 
266.525
history grep          00:01:07.883   0.3%       8246    0.000    8.232  
38.355
history lookup        00:18:47.781   4.5%     187216    2.415    6.024  
16.069
history sync          00:00:02.574   0.0%      11807    0.077   
0.218    1.742
history write         00:22:04.779   5.3%     117547    0.658   11.270  
21.629
idle                  00:05:01.556   1.2%       9276    0.228   32.509
4630.746
perl filter           00:03:57.952   1.0%     117547    0.773   
2.024    7.462
site send             00:01:41.576   0.4%     239235    0.071   
0.425    1.272

TOTAL: 06:54:02.575   06:38:01.439  96.1%          -        -       
-        -

Traditional spool and overview are on the same device
History & active are on a local disc and logging on a other local disc.
One way I would convert traditional spool to CNFS or otherwise I`ll take
overviews to a new device separate from the news articles.

-- 
sig

Re: nnrp post is very slow
#46603
Author: Russ Allbery
Date: Thu, 25 May 2000 00:00
28 lines
2077 bytes
Frank Kloeker <eumel@germany.net> writes:

> Here is the output from INND timer (300 seconds interval)

Yup, this is your problem.  innd has almost no idle time, and therefore
will be slow in servicing connections, and even worse it's I/O bound
(which is the worst case for INN in general).

You really want to get this down:

> article write       05:18:23.008  76.9%     117543   98.125  162.519 266.525

CNFS will help dramatically.  Dropping binary newsgroups will help, as
they take considerably longer to write out to disk, if that's feasible for
you.  Moving the overview to a separate disk will also help a reasonable
amount.

You should also check for excessively large directories, since they'll
dramatically slow down any writes to those directories on most file
systems.  Standard suspects are control/cancel (or control, if you've not
broken up control messages), news/lists/filters, and misc/jobs/*
(particularly misc/jobs/offered).  Lowering the expire time of problem
groups can help a decent amount.

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

Re: nnrp post is very slow
#46736
Author: bill davidsen
Date: Wed, 31 May 2000 00:00
27 lines
1897 bytes
In article <1rd7mblh1p.fsf@haey.ifi.uio.no>,
Kjetil Torgrim Homme  <kjetilho@haey.ifi.uio.no> wrote:
| [Frank Kloeker]
| 
| >   ok, here is my truss-output:
| 
| Great!
| 
| >    3.4845 ioctl(5, TCGETA, 0xFFBECD8C)                    Err#22 EINVAL
| >   read(5, 0x0061100C, 8192)       (sleeping...)
| >   10.1787 read(5, " 2 0 0   n e w s . g e r".., 8192)     = 70
| 
| As you can see, it took 6 seconds before the main innd process
| accepted the connection from nnrpd.  (You should get the same slow
| response when using just "telnet localhost 119".)  So innd is
| overloaded for some reason.  Follow Russ' advice to hopefully pinpoint
| the bottleneck.

  My first thought on all slow socket opens is DNS, for what it's worth.

-- 
bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
  "Doing interesting things with little computers since 1979"(tm)
The hardest test of maturity is knowing the difference between
resisting temptation and missing a once-in-a-lifetime opportunity.

Re: nnrp post is very slow
#46763
Author: Andrew Gierth
Date: Fri, 02 Jun 2000 00:00
18 lines
1592 bytes
>>>>> "bill" == bill davidsen <davidsen@tmr.com> writes:

 > | As you can see, it took 6 seconds before the main innd process
 > | accepted the connection from nnrpd.  (You should get the same slow
 > | response when using just "telnet localhost 119".)  So innd is
 > | overloaded for some reason.  Follow Russ' advice to hopefully pinpoint
 > | the bottleneck.

 bill>   My first thought on all slow socket opens is DNS, for what
 bill>   it's worth.

innd does not do DNS lookups when accepting a socket connection, and in
any case nnrpd should be using the local socket to talk to innd.

-- 
Andrew.

Re: nnrp post is very slow
#46798
Author: Kai Henningsen
Date: Sun, 04 Jun 2000 00:00
39 lines
2600 bytes
eumel@germany.net (Frank Kloeker)  wrote on 25.05.00 in <8gjdga$31e$1@news.germany.net>:

> Russ Allbery schrieb:
> [...]
> > CNFS will help dramatically.  Dropping binary newsgroups will help, as
> > they take considerably longer to write out to disk, if that's feasible for
> > you.  Moving the overview to a separate disk will also help a reasonable
> > amount.
>
> CNFS is surely the better way for handling big spool, but I will in the
> next time split the spool to 2 raids or split the overview to another
> disk. Not reading binary groups are already dropped.
>
> > You should also check for excessively large directories, since they'll
> > dramatically slow down any writes to those directories on most file
> > systems.  Standard suspects are control/cancel (or control, if you've not
> > broken up control messages), news/lists/filters, and misc/jobs/*
> > (particularly misc/jobs/offered).  Lowering the expire time of problem
> > groups can help a decent amount.
>
> Large directories (control.cancel) have already a short expire time and
> "*jobs*" was filtered on newsfeed. I think, export spool to CNFS is the
> best.

Note that it's still necessary to make sure the directories themselves  
aren't too large, even if they don't contain all that many files. It's the  
time spent scanning the directory for duplicate names that does most of  
the slow-down, and that doesn't go down until you reduce directory size.

Under Unix, that's usually only possibly by rmdir-ing and recreating the  
directory.

Kai
-- 
http://www.westfalen.de/private/khms/
"... by God I *KNOW* what this network is for, and you can't have it."
  - Russ Allbery (rra@stanford.edu)

Re: nnrp post is very slow
#46953
Author: Andrew Gierth
Date: Mon, 19 Jun 2000 00:00
23 lines
1734 bytes
>>>>> "bill" == bill davidsen <davidsen@tmr.com> writes:

 bill>   My first thought on all slow socket opens is DNS, for what
 bill>   it's worth.

 >> innd does not do DNS lookups when accepting a socket connection,
 >> and in any case nnrpd should be using the local socket to talk to
 >> innd.

 bill>   How is the value of postinghost in inn.conf converted to an
 bill> IP for socket open if not by DNS?

irrelevent - the posted trace showed a delay in innd accepting the
connection and responding with the banner, not a delay in nnrpd doing
DNS lookups or anything else.

And on a single (non-slaved) box, nnrpdposthost should be empty anyway,
causing nnrpd to use the local socket as I said above.

-- 
Andrew.

Re: nnrp post is very slow
#46969
Author: bill davidsen
Date: Mon, 19 Jun 2000 00:00
29 lines
2186 bytes
In article <87zop3bvem.fsf@erlenstar.demon.co.uk>,
Andrew Gierth  <andrew@erlenstar.demon.co.uk> wrote:
| >>>>> "bill" == bill davidsen <davidsen@tmr.com> writes:
| 
|  > | As you can see, it took 6 seconds before the main innd process
|  > | accepted the connection from nnrpd.  (You should get the same slow
|  > | response when using just "telnet localhost 119".)  So innd is
|  > | overloaded for some reason.  Follow Russ' advice to hopefully pinpoint
|  > | the bottleneck.
| 
|  bill>   My first thought on all slow socket opens is DNS, for what
|  bill>   it's worth.
| 
| innd does not do DNS lookups when accepting a socket connection, and in
| any case nnrpd should be using the local socket to talk to innd.

  How is the value of postinghost in inn.conf converted to an IP for
socket open if not by DNS? My reader slaves see a FQDN there and it
works.

-- 
bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
  "Doing interesting things with little computers since 1979"(tm)
It doesn't bother me that people make flavored yogurt with fruits. It
doesn't bother me that someone makes carmel broccoli yogurt. It doesn't
even bother me that people buy it to rub on each other's naked bodies.
What DOES bother me is that people buy it to EAT!

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