🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #23421

Re: Buffers/Tuning and Linux

#23421
From: Jeff Binkley
Date: Wed, 19 Nov 1997 00:00
217 lines
10888 bytes

> Xref: news.asacomp.com news.software.nntp:9272 comp.os.linux.misc:71442
> 
> I was wondering if anyone knew of any buffers or tuning that can be done
> to Linux to allow it to behave better as a news server.
> 
> I am always seeing posts about admins changing various kernel limits and
> buffers, to fine tune there news setups with BSD.  I was wondering if
> anyone knew of anything that could be done with Linux in that respect.
> 
> I truely beleive that the limit of our news server is the OS.  We run
> Linux.  I am not saying Linux can't handle it, I am just wondering tuning
> can be done.  I am not interested in tuning the news subsystem, I have
> already tuned it nicely.  The only thing I have done Linux wise for tuning
> is basically "noatime", and that seems to help.
> 
> Please don't reply and tell me to run BSD.  I would run BSD, but I have
> invested considerable money into our news server and the hardware is
> supported by Linux.  I do not beleive BSD has a stable DPT driver at this
> time.......also I beleive there is something to be said in "making things
> work" and figuring out situations, rather than just going to BSD.  
> 
> It's not a kernel problem.  I have run 1.x kernels and all the 2.x
> kernels, and they all perform the same with regards to the problem I am
> talking about.  I am not even talking about stability, I am talking about
> fast response times from nnrpd upon a connect, fast serving of articles,
> little to no overchan blocking, and a decent load average.
> 
> Anything that can be done to the kernel, file system, etc is what I am
> looking for.  I have read almost all the "INN tuning" pages out there, and
> as I said, I feel my server should be tuned to smoke.  I have eliminated
> almost all hardware as being the culprit, trying different vendors of disk
> controllers, multiple controller configurations, using nothing but name
> brand hardware, fast processors, etc.
> 
> Some things I am seeing are for example, high load averages:
> ---------------------------------------------------------------------
> news:/proc# w
>  10:26pm  up 2 days,  8:09,  2 users,  load average: 2.47, 2.71, 2.75
> 
> It generally fluctuates between 1.8 and 5.
> ---------------------------------------------------------------------
> Also, I see alot of blocking:
> 
> Nov 18 16:33:50 news innd: overview!:44:proc:4359 blocked sleeping 120
> Nov 18 16:36:02 news innd: overview!:44:proc:4359 blocked sleeping 120
> Nov 18 16:38:45 news innd: overview!:44:proc:4359 blocked sleeping 120
> Nov 18 16:40:59 news innd: overview!:44:proc:4359 blocked sleeping 240
> Nov 18 16:45:07 news innd: overview!:44:proc:4359 blocked sleeping 360
> Nov 18 16:52:06 news innd: overview!:44:proc:4359 blocked sleeping 480
> Nov 18 17:00:12 news innd: overview!:44:proc:4359 blocked sleeping 120
> Nov 18 17:02:23 news innd: overview!:44:proc:4359 blocked sleeping 120
> Nov 18 17:04:33 news innd: overview!:44:proc:4359 blocked sleeping 240
> Nov 18 17:08:31 news innd: overview!:44:proc:4359 blocked sleeping 360
> Nov 18 21:18:04 news innd: overview!:39:proc:7911 blocked sleeping 120
> Nov 18 21:20:08 news innd: overview!:39:proc:7911 blocked sleeping 240
> Nov 18 21:26:22 news innd: overview!:39:proc:7911 blocked sleeping 120
> 
> (gfilter and NOCEM block also)
> ---------------------------------------------------------------------
> a typical ps -auxw output on our server, usually only about 10
> simultaneous sessions:
> 
> USER       PID %CPU %MEM  SIZE   RSS TTY STAT START   TIME COMMAND
> bin         61  0.0  0.1   840   308  ?  S  Nov 16   0:00
> /usr/sbin/rpc.portmap
> news        88  1.0  1.3  4244  3484   1 S  Nov 16  34:34
> /usr/local/bin/actived
> news       108  8.0 48.8 141792 125580  ?  D  Nov 16 269:54
> /usr/news/bin/innd -p4 -r -i0 -c7 -L
> news       110  0.0  0.2  1136   540   1 S  Nov 16   0:00 sh
> /usr/news/bin/rc.news
> news       141  0.0  0.2  1176   568   1 S  Nov 16   1:38 sh
> /usr/news/bin/innwatch
> news      7910  1.2  0.1   848   296  ?  S N 17:18   4:00
> /usr/news/bin/crosspost -s -
> news      7911  1.1  0.1   848   288  ?  D N 17:18   3:44
> /usr/news/bin/overchan
> news      7912  0.0  0.1  1116   480  ?  S N 17:18   0:02 /bin/sh -c
> /usr/lib/news/ncmsp/chan2prog /usr/lib/news/ncmsp/ncmspool |logger -p
> news.notice -t ncmsp
> news      7913  0.2  0.1   872   296  ?  S N 17:18   0:38
> /usr/news/local/gfilter
> news      7914  5.2  1.4  4256  3788  ?  D N 17:19  16:28
> /usr/news/local/innfeed
> news      7935  0.0  0.0   824   240  ?  S N 17:19   0:00
> /usr/lib/news/ncmsp/chan2prog /usr/lib/news/ncmsp/ncmspool
> news      7936  0.0  0.1   836   316  ?  S N 17:19   0:00 logger -p
> news.notice
> -t ncmspool
> news      8688  0.1  0.2 36380   624  ?  S N 17:37   0:30 -208.214.44.53
> ARTICLE
> news     17337  0.0  0.2  1008   584  ?  S N 21:11   0:03 -208.214.44.156
> XOVER
> 
> news     17661  0.2  0.2  1028   600  ?  S N 21:18   0:10 -208.214.44.168
> ARTICLE
> news     19304  0.4  0.2  1028   600  ?  S N 21:57   0:09 -208.214.44.45
> ARTICLE
> news     20067  0.4  0.2  1008   584  ?  S N 22:18   0:03 -208.214.44.148
> ARTICLE
> news     20225  0.0  0.2  1148   556  ?  S N 22:25   0:00 sh
> /usr/lib/news/ncmsp/ncmspool
> /var/news/spool/articles/news/lists/filters/122096
> news     20253  0.2  0.1   840   280  ?  S N 22:25   0:00
> /usr/lib/news/ncmsp/ncmspcancel
> news     20472  0.0  0.0   820   248   1 S   22:25   0:00 sleep 600
> news     20474  1.3  0.2  1188   760  ?  S N 22:26   0:04 -208.214.44.65
> ARTICLE
> news     20489  2.2  0.2   992   568  ?  S N 22:29   0:02 -208.214.44.36
> ARTICLE
> news     20490  2.5  0.2  1008   580  ?  S N 22:29   0:02 -208.214.44.84
> ARTICLE
> news     20499 19.0  0.0     0     0  ?  DWN 22:31   0:00
> /usr/news/bin/innd -p4 -r -i0 -c7 -L
> root         1  0.0  0.1   844   328  ?  S  Nov 16   0:18 init [3]
> root         2  0.3  0.0     0     0  ?  SW Nov 16  12:58 (kflushd)
> root         3  0.0  0.0     0     0  ?  SW<Nov 16   0:04 (kswapd)
> root         9  0.7  0.0   820   244  ?  D  Nov 16  24:11 /sbin/update
> root        11  0.0  0.1   832   304  ?  S  Nov 16   0:00 /sbin/kerneld
> root        58  0.0  0.1   844   348  ?  S  Nov 16   0:00 /usr/sbin/klogd
> root        60  0.5  0.1   860   408  ?  S  Nov 16  20:13
> /usr/sbin/syslogd
> root        63  0.0  0.1   836   328  ?  S  Nov 16   0:00 /usr/sbin/inetd
> root        65  0.0  0.1   840   332  ?  S  Nov 16   0:00 /usr/sbin/crond
> -l10
> root        73  0.0  0.2  1172   628   1 S  Nov 16   0:00 -bash
> root        74  0.0  0.1   836   292   2 S  Nov 16   0:00 /sbin/agetty
> 38400 tty2 linux
> root        75  0.0  0.1   836   300   3 S  Nov 16   0:00 /sbin/agetty
> 38400 tty3 linux
> root        76  0.0  0.1   836   300   4 S  Nov 16   0:00 /sbin/agetty
> 38400 tty4 linux
> root        77  0.0  0.1   836   300   5 S  Nov 16   0:00 /sbin/agetty
> 38400 tty5 linux
> root        78  0.0  0.1   836   300   6 S  Nov 16   0:00 /sbin/agetty
> 38400 tty6 linux
> root        79  0.0  0.3  1556   940  ?  S  Nov 16   0:29 /etc/gated
> root     17338  0.0  0.1  1096   508  ?  S   21:11   0:00 in.telnetd
> root     17349  0.0  0.2  1172   628  p0 S   21:12   0:00 bash
> root     20500  0.0  0.1   872   368  p0 R   22:31   0:00 ps -auxw
> signal   17339  0.0  0.2  1172   640  p0 S   21:11   0:00 -bash
> ---------------------------------------------------------------------
> Memory:
> 
>              total       used       free     shared    buffers     cached
> Mem:        257324     254244       3080      85964      28992     104944
> -/+ buffers:           120308     137016
> Swap:       130196          0     130196
> ---------------------------------------------------------------------
> We have about 10 news peers.
> 
> Here is my configuration:
> 
> Tyan Tomcat IV dual processor motherboard
> 2 Intel 200mhz matched cpus (SMP currently disabled)
> 256MB ECC memory
> Linux 2.0.31 (2.0.32 by tommorow)
> 
> Kingston Data Silo 500 RAID chassis holds:
> 	DPT 3334UW Bus #1
> 		5x4GB /var/news/spool (RAID0, Wide, noatime)
> 	DPT 3334UW Bus #2
> 		2x2GB /var/news/spool/over.view (RAID0, Wide, noatime)
> 		2GB   /
> 		2GB   /var/news/etc
> 
> 2GB drives are Seagate ST32272W Barracuda
> 4GB drives are Seagate ST34572W Barracuda
> SCSI buses are well within spec for a 10mhz wide chain, properly terminated
> 
> Kingston 100BaseT Fast Switched Ethernet
> 
> INN-1.7
> patches:
>  expireover patch            
>  Joe Greco's Timer patch     
>  C ONeill's history cache    
>  his_cache fix                
>  Joe Greco cancel patch            
>  Joe Greco cancel patch fix        
>  socket buff increase to 32K       
>  actived                           
> 
> innfeed 0.10.1.6
> gfilter
> NOCEM
> 
> Perhaps someone can post some similar information about there linux news
> box (mem, ps -auxw, patches, load avg, etc) so that I can
> compare........or you can email it to me.  BSD is probably a better OS to
> be doing a news server on, but I do beleive this task can be handled by
> linux, and would like to try to get this done anyways.
> 
> 
> 
> /-------------------------- signal@shreve.net -----------------------------\
> | Brian Feeny                | USR TC Hubs | ShreveNet Inc. (318)222-2638  |
> | Systems Administrator      | Perl, Linux | Web hosting, online stores,   |
> | ShreveNet Inc.             |  USR Pilot  | Dial-Up 14.4-56k, ISDN & LANs |
> | 89 CRX DX w/MPFI, lots of  |-=*:Quake:*=-| http://www.shreve.net/        |
> | mods/Homepage coming soon  |LordSignal/SN| Quake server: 208.206.76.3    |
> \-------------------------- 318-222-2638 x109 -----------------------------/
> 

Ok. Stupid question time.  I run a much simpler configuration problem and am 
not having any problems but I have no idea how I compare in volume.  The 
stupid question is, how do you get the load average figures ?  I keep seeing 
it talked about but don't know how to invoke it.  I am still running 1.4 with 
a few security patches.

Jeff Binkley
ASA Network Computing


Technical Details
Message-ID: <NEWTNews.879936630.437.jb3boc@node4>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <Pine.LNX.3.96.971118220630.23327A-100000@mercury.shreve.net>

Show Full Headers
Complete Article Headers
Message-ID: <NEWTNews.879936630.437.jb3boc@node4>
Subject: Re: Buffers/Tuning and Linux
Date: Wed, 19 Nov 1997 00:00:00 +0000
From: Jeff Binkley <jeff.binkley@asacomp.com>
References: <Pine.LNX.3.96.971118220630.23327A-100000@mercury.shreve.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 290685994
Distribution: inet
Organization: ASA Network Computing
Newsgroups: news.software.nntp,comp.os.linux.misc