🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
6 messages
6 total messages Started by Brian Tue, 18 Nov 1997 00:00
Buffers/Tuning and Linux
#23378
Author: Brian
Date: Tue, 18 Nov 1997 00:00
205 lines
9925 bytes
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 -----------------------------/



Re: Buffers/Tuning and Linux
#23421
Author: 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


Re: Buffers/Tuning and Linux
#23438
Author: bill davidsen
Date: Thu, 20 Nov 1997 00:00
97 lines
4539 bytes
In article <Pine.LNX.3.96.971118220630.23327A-100000@mercury.shreve.net>,
Brian   <signal@shreve.net> wrote:
| 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.

root can write /proc/sys/kernel/file-max as well as read, but even
root can't change the max files open per process (at least up). Do
you really have more than 256 file/proc open at a time? I don't
remember having a problem with that, but I confess I never checked.

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

I'm not sure what problem you think you have with load average, I
wouldn't worry much about that as long as it is that low and you
have CPU left. Of course a high load average and lots of idle is a
hint at io backlog, but your LA is not unreasonable.

Have you run top to see where the cpu is going? Maybe some vmstat
output would be useful here.

| Tyan Tomcat IV dual processor motherboard
| 2 Intel 200mhz matched cpus (SMP currently disabled)

Good grief, why?

| 256MB ECC memory
| Linux 2.0.31 (2.0.32 by tommorow)

Use a little care here, I have had great luck with 2.0.32pre5, and
problems with 2.0.32pre6. I've run pre5 on a number of machines,
single and SMP, pentium, 486 and PPro. YMMV.

| 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

Did you tune the SCSI driver to up the number of commands in the
command queue? I'm not familiar with this RAID box, but if it looks
like a single large drive to Linux you may find that it's being used
inefficiently. I tried a Core array configured like that and it
performed poorly. I upped the queue and it got better, then I
reconfigured to look like four drives, used the md driver to do
RAID0 in software, and it ran better yet, although only slightly.

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

How hard is this beating your disk? Have you looked there?
| 
| 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.

I have seen no indication that BSD will do any better than Linux on
equal hardware. I have some reservatins about the BSD stability,
although I'm going to get the new OpenBSD for eval when it comes out
next month.
--
	-bill davidsen (davidsen@tmr.com)
"As a software development model, Anarchy does not scale well."
		-Dave Welch

Re: Buffers/Tuning and Linux
#23481
Author: coneill
Date: Fri, 21 Nov 1997 00:00
92 lines
6124 bytes
Requests for Further Spamming <abuse@coredump.int.tele.dk> writes:
>     I've just migrated a news swerver from Linux to FreeBSD, after doing a
> test migration under Linux to a faster CPU, and there are indeed
> differences.  Where my load average under Linux with the 486 would vary
> between 2 and 5 most of the time, and between 1 and 3 with the f00fc7c8
> chip, the identical software running under FreeBSD tends to report a load
> of 0.10 to 0.30.  However, I've heard the load is calculated in a way on
> Linux so that it appears higher to the bean counters.  The only thing that
> matters to me is that the box answers the phone immediately.

Linux does calculate load differently.  I believe it factors in the
number of dirty pages in the page cache into the load calculation.

>     Actually, I do see some significant differences now that I'm running
> on BSD.  For example, the size of the innd process is about 1/3 of what it
> had been reported as on Linux, while innfeed's processes are roughly the
> same as previously.  I seem to be using a larger amount of swap space
> after being up for a while, and whereas previously with the 486, I had a
> problem where innd had to buffer data being fed to a channel inpaths feed,
> the f00fc7c8 chip is fast enough that it's never fallen behind when it was
> running Linux (some people suspect pipes between processes to be less than
> optimal).  Plus the lower load average noted.

I believe that FreeBSD doesn't include mmap'ed pages in the RSS, so
you're probably not seeing the results of mmap'ing the .pag file in
the RSS.

>     I had an experience with flaky hardware though, which was only
> revealed by FreeBSD's (and NetBSD's) failure to install properly, whereas
> Linux had no problem until it came time to do real work, then after some
> hours, things got ugly and unstable-looking.  The problem was a SIMM
> which refused to let the FreeBSD installation get anywhere until it was
> pulled out.  So it was of benefit to use multiple OSen on that marginal
> hardware, else I'd be cursing Linux for something it wasn't responsible
> for.  Flaky hardware is a common problem causing apparent instability.

I seriously doubt that this was a intentional design decision when
designing the FreeBSD or NetBSD vm system.

>     A further problem that I noted (and other people have reported in the
> news.software.nntp group some weeks back) is that Linux was logging
> completely bogus addresses for some connections.  I traced several
> thousand of these daily to one peer, yet they continued at a rate of a
> dozen or so daily when I asked that peer to cease and desist for a spell.
> I have not logged a single connection that nnrpd reports as a ? (transport
> endpoint is not connected) since starting the news swerver under FreeBSD.

I've seen this problem and have no idea where it's coming from.
Appears to be totally bogus, but I also haven't seen the problem recently.

>     Another admin kindly looked into this by analyzing the network traffic
> to the news port on my Linux machine and observed that certain peers (he
> listed about five or so) were sending packets with apparently bogus header
> data.  (I don't have the precise details.)  Most or all of these machines
> were running FreeBSD.  Apparently Linux can't handle these packets from
> the FreeBSD machines (and FreeBSD shouldn't be sending out these), whereas
> when those feeders are talking to my FreeBSD swerver, there are no
> problems.  Similar problems were not seen when the same peers were feeding
> SGI IRIX news swervers.
> 
>     So apparently there's a bug in the TCP code in FreeBSD, and even if
> there isn't, Linux isn't capable of handling it properly all the time
> while other OSen don't have problems.  I'll see if I can get more
> information about this and report it to the responsible developers, or
> even the irresponsible ones.

Hmm, I wonder if the TTCP support in FreeBSD is causing this.

>     There will be some instability you observe at first with a default
> FreeBSD setup, and given that I am running one of the 3.0 kernel
> snapshots, I expect my machine to be not completely stable, and indeed,
> I'm having problems with some of the filesystem support that shouldn't
> affect normal people like you.  However, I had experienced sufficient
> instability in the past under Linux with the 2.0.30 kernel as well as it
> taking a dislike to innd every week or so, thus I'll be happier if the
> system, which is now hours away, can stay up for a month without problems
> beyond those brought about by the initial installation, kernel rebuilding,
> and general tweaking.  As a bonus, it appears that I'm doing somewhat
> better in terms of memory usage and TCP stability, although this could
> very well be mere artifacts of the differences between the two platforms.
> 
>     Like they say, the only way to find out is to run 'em both and see
> what the weaknesses are, and fix 'em.

I also ran into a lot of problems with 2.0.30, and there were some
fairly major bugs in 2.0.29 also.  I've been running 2.0.31 in
production for a few months now w/no problems though.  Looks like
we've finally gotten a stable release for 2.0.x


Re: Buffers/Tuning and Linux
#23511
Author: Marc Slemko
Date: Fri, 21 Nov 1997 00:00
49 lines
2869 bytes
In <Pine.BSF.3.96.971121172258.28456C-100000@coredump.int.tele.dk> Requests for Further Spamming <abuse@coredump.int.tele.dk> writes:

[...]

>of 0.10 to 0.30.  However, I've heard the load is calculated in a way on
>Linux so that it appears higher to the bean counters.  The only thing that

Correct.

[...]

>    Actually, I do see some significant differences now that I'm running
>on BSD.  For example, the size of the innd process is about 1/3 of what it
>had been reported as on Linux, while innfeed's processes are roughly the
>same as previously.  I seem to be using a larger amount of swap space
>after being up for a while, and whereas previously with the 486, I had a

Size difference is probably related to mmap()ing history and what
gets counted.  Swap allocation is done differently, so you may well
expect to see more swap.

[...]

>    Another admin kindly looked into this by analyzing the network traffic
>to the news port on my Linux machine and observed that certain peers (he
>listed about five or so) were sending packets with apparently bogus header
>data.  (I don't have the precise details.)  Most or all of these machines
>were running FreeBSD.  Apparently Linux can't handle these packets from
>the FreeBSD machines (and FreeBSD shouldn't be sending out these), whereas
>when those feeders are talking to my FreeBSD swerver, there are no
>problems.  Similar problems were not seen when the same peers were feeding
>SGI IRIX news swervers.

>    So apparently there's a bug in the TCP code in FreeBSD, and even if
>there isn't, Linux isn't capable of handling it properly all the time
>while other OSen don't have problems.  I'll see if I can get more
>information about this and report it to the responsible developers, or
>even the irresponsible ones.

Due to my cynical nature, I really have to suggest that there is 
probably nothing wrong with what FreeBSD was sending.  Could be 
simply that the person looking didn't fully understand it.
There are bugs in FreeBSD's TCP stack, however I have seen nothing
like that.  I would certainly like to know further details about
claims in this area.


Re: Buffers/Tuning and Linux
#23516
Author: Requests for Further Spamming
Date: Fri, 21 Nov 1997 00:00
92 lines
5760 bytes
On 20 Nov 1997, bill davidsen wrote:

> I'm not sure what problem you think you have with load average, I
> wouldn't worry much about that as long as it is that low and you
> have CPU left. Of course a high load average and lots of idle is a
> hint at io backlog, but your LA is not unreasonable.

    I've just migrated a news swerver from Linux to FreeBSD, after doing a
test migration under Linux to a faster CPU, and there are indeed
differences.  Where my load average under Linux with the 486 would vary
between 2 and 5 most of the time, and between 1 and 3 with the f00fc7c8
chip, the identical software running under FreeBSD tends to report a load
of 0.10 to 0.30.  However, I've heard the load is calculated in a way on
Linux so that it appears higher to the bean counters.  The only thing that
matters to me is that the box answers the phone immediately.


> | [...]  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.
> 
> I have seen no indication that BSD will do any better than Linux on
> equal hardware. I have some reservatins about the BSD stability,
> although I'm going to get the new OpenBSD for eval when it comes out
> next month.

    Actually, I do see some significant differences now that I'm running
on BSD.  For example, the size of the innd process is about 1/3 of what it
had been reported as on Linux, while innfeed's processes are roughly the
same as previously.  I seem to be using a larger amount of swap space
after being up for a while, and whereas previously with the 486, I had a
problem where innd had to buffer data being fed to a channel inpaths feed,
the f00fc7c8 chip is fast enough that it's never fallen behind when it was
running Linux (some people suspect pipes between processes to be less than
optimal).  Plus the lower load average noted.

    I had an experience with flaky hardware though, which was only
revealed by FreeBSD's (and NetBSD's) failure to install properly, whereas
Linux had no problem until it came time to do real work, then after some
hours, things got ugly and unstable-looking.  The problem was a SIMM
which refused to let the FreeBSD installation get anywhere until it was
pulled out.  So it was of benefit to use multiple OSen on that marginal
hardware, else I'd be cursing Linux for something it wasn't responsible
for.  Flaky hardware is a common problem causing apparent instability.

    A further problem that I noted (and other people have reported in the
news.software.nntp group some weeks back) is that Linux was logging
completely bogus addresses for some connections.  I traced several
thousand of these daily to one peer, yet they continued at a rate of a
dozen or so daily when I asked that peer to cease and desist for a spell.
I have not logged a single connection that nnrpd reports as a ? (transport
endpoint is not connected) since starting the news swerver under FreeBSD.

    Another admin kindly looked into this by analyzing the network traffic
to the news port on my Linux machine and observed that certain peers (he
listed about five or so) were sending packets with apparently bogus header
data.  (I don't have the precise details.)  Most or all of these machines
were running FreeBSD.  Apparently Linux can't handle these packets from
the FreeBSD machines (and FreeBSD shouldn't be sending out these), whereas
when those feeders are talking to my FreeBSD swerver, there are no
problems.  Similar problems were not seen when the same peers were feeding
SGI IRIX news swervers.

    So apparently there's a bug in the TCP code in FreeBSD, and even if
there isn't, Linux isn't capable of handling it properly all the time
while other OSen don't have problems.  I'll see if I can get more
information about this and report it to the responsible developers, or
even the irresponsible ones.

    There will be some instability you observe at first with a default
FreeBSD setup, and given that I am running one of the 3.0 kernel
snapshots, I expect my machine to be not completely stable, and indeed,
I'm having problems with some of the filesystem support that shouldn't
affect normal people like you.  However, I had experienced sufficient
instability in the past under Linux with the 2.0.30 kernel as well as it
taking a dislike to innd every week or so, thus I'll be happier if the
system, which is now hours away, can stay up for a month without problems
beyond those brought about by the initial installation, kernel rebuilding,
and general tweaking.  As a bonus, it appears that I'm doing somewhat
better in terms of memory usage and TCP stability, although this could
very well be mere artifacts of the differences between the two platforms.

    Like they say, the only way to find out is to run 'em both and see
what the weaknesses are, and fix 'em.


Barry Bouwsma
I got yer fixit sledgehammer right here...


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