🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #28928

Re: Slow news server

#28928
From: Frank Ederveen
Date: Mon, 08 Jun 1998 00:00
91 lines
5287 bytes
Forrest J. Cavalier III wrote:
> 
> posted and emailed
> 
> In article <357BCADB.D10D1A16@nl.uu.net>, franke@nl.uu.net wrote...
> [snip]
> 
> >> vmstat 1
> > procs      memory     page                   disks        faults      cpu
> > r b w     avm   fre  flt  re  pi  po  fr  sr da0 da1 da2   in   sy  cs us sy id
> > 1 1 0 2171356 38320 4999   4   7   3  51 112   0   0   0  396  373 118 23 17 60
> > 1 1 0 2170740 39316  257   2   1   0 484   0   1   8   1  492  856 119 81  5 14
> > 3 0 0 2170116 39612  228   9  23   0 148   0   2  46  35  638 1584 297 44  8 48
> > 0 1 0 2349812 37736 1341  53  51   0  45   0   1  71  64 1213 4578 568 26 22 52
> > 2 0 0 2350624 36960  382   0   3   0 107   0   0   3   2  931 4360 354  6  8 86
> > 1 1 0 2350624 36920  365   0   3   0   4   0   0   4   1  365  167 104 95  5  1
> > 1 1 0 2172632 36784   67   4   6   0   3   0   0  10   7  503  468 122 87  5  8
> > 2 1 0 2170852 38328  462   5   4   0 635   0   0  15  11  452  510  95 70 11 18
> > 1 1 0 2171080 38048  784   5   5   0   2   0   0  19  11  772 2672 229 57  9 34
> > 1 1 0 2171436 37668  257   9   7   0   0   0   0  19  15  761 3249 276 22 10 68
> > 1 1 0 2171440 37424  123   2   8   0   0   0   0   3   4  552 1813 169  2  7 91
> > 218 0 2351792 36356 1039   9  34   0  47   0   0  76  55  580  585 279 91  9  0
> > 219 0 2174232 35288 1725  23  40   0  76   0   1  80  72  766 1695 416 59 21 21
> > 2 1 0 2174564 34604  787  23  36   0   3   0   0  78  73 1048 3499 485 62 12 26
> 
> What pagesize is this vmstat reporting?  1024 bytes?  If so, is it true
> you have 2G of vm used on a machine with 256Meg of RAM?  Your page faults
> are killing you, I think.
Urg.. from the man-page of vmstat:

     memory  Information about the usage of virtual and real memory.  Virtual
             pages (reported in units of 1024 bytes) are considered active if
             they belong to processes which are running or have run in the
             last 20 seconds.

             avm     active virtual pages
             fre     size of the free list

But it doesn't have so much swap:
> pstat -s
Device      1K-blocks     Used    Avail Capacity  Type
/dev/sd0s1b    143232     5216   137952     4%    Interleaved
/dev/sd1s1b    131072     5268   125740     4%    Interleaved
/dev/sd2s1b    131072     5324   125684     4%    Interleaved
/dev/sd3s1b    131072     5188   125820     4%    Interleaved
Total          536192    20996   515196     4%

> What is the spike of "218" processes marked "running"?  What else do you
I think that it should read '2 18 0' for that column, not 218 0.

> have on that machine?  INN is only taking up 30M, and 48 nnrpd's should
> be another 1-2M each (unless you have nnrpd MMAP on and allow newnews,
> which you do.)  256M is adequate, but not if you are running other
> processes on your news machine.
Nope, it's dedicated to news.
 
> Your timer stats show that INN doesn't have any idle time.  But your
> artwrite times and hissync times are low.  (The rest of the line is
> cut off....)
Oops. rety:
Jun  8 16:54:24 sucker innd: ME time 300517 idle 112787(73871) 
artwrite 15961(2488) artlink 0(0) hiswrite 26808(2774) hissync 6(99) 
sitesend 970(2488) artctrl 2202(188) artcncl 2511(204) hishave 7670(5419) 
hisgrep 349(36)

Had about 30% idle here.

> No idle time means that INN is not spending much time waiting for
> incoming NNTP commands/connections.  There are a number of
> situations which can cause this:
>     - Really high incoming connection rate.  (e.g. defective clients)
> 
>     - The system is too slow to do the INN operations, (but this would
>       usually show the INN artwrite or HIS times high.)
> 
>     - Other processes are running and pre-empting INN. (This is my
>       guess based on the information you have shown so far, especially
>       the vmstat.)
> 
> So with what you have shown so far, your INN performance is bad because
> of other things running on that machine.  Is it possible to disable
> those other processes temporarily and see if INN doesn't improve
> dramatically?
There isn't anything else running on the machine, it's probably something
with the memory. I'll try to upgrade to a later version of -stable and
repatch for CAM. I hope that helps.

FrankE

Technical Details
Message-ID: <357BFD7A.66E81080@nl.uu.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <6l3pr7$fb6$1@ultranews.duc.auburn.edu> <3575C5DA.E0C43686@pobox.com> <3577085C.7CC3@shreve.net> <nrKd1.301$Cs4.2124324@insync> <m3u360nz59.fsf@windlord.Stanford.EDU> <3577f3bd.0@131.162.2.91> <87hg1zamhe.fsf@ibm.net> <35782a7f.0@131.162.2.91> <357B6AA1.8965C021@domaintje.com> <6lgf0r$1e2$1@news1.epix.net> <357BCADB.D10D1A16@nl.uu.net> <6lgjp2$3oq$1@news1.epix.net>

Show Full Headers
Complete Article Headers
Message-ID: <357BFD7A.66E81080@nl.uu.net>
Subject: Re: Slow news server
Date: Mon, 08 Jun 1998 00:00:00 +0000
From: Frank Ederveen <franke@nl.uu.net>
References: <6l3pr7$fb6$1@ultranews.duc.auburn.edu> <3575C5DA.E0C43686@pobox.com> <3577085C.7CC3@shreve.net> <nrKd1.301$Cs4.2124324@insync> <m3u360nz59.fsf@windlord.Stanford.EDU> <3577f3bd.0@131.162.2.91> <87hg1zamhe.fsf@ibm.net> <35782a7f.0@131.162.2.91> <357B6AA1.8965C021@domaintje.com> <6lgf0r$1e2$1@news1.epix.net> <357BCADB.D10D1A16@nl.uu.net> <6lgjp2$3oq$1@news1.epix.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 360694131
Content-Transfer-Encoding: 7bit
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Organization: UUNET-NL
Newsgroups: news.software.nntp