🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #23420

Re: Buffers/Tuning and Linux

#23420
From: Brian
Date: Wed, 19 Nov 1997 00:00
241 lines
8742 bytes
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

---825223348-1717468692-879991238=:30635
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Tue, 18 Nov 1997, Mike Horwath wrote:

> In article <Pine.LNX.3.96.971118220630.23327A-100000@mercury.shreve.net> you 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.
> 
> Brian, I have been the one beating you up about your box...as you
> probably remember.
> 
> But now that we are onto something else, I can try to help you :)
> 
> : 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.
> 
> Make sure you have enough file descriptors (which you probably do).

I am not really sure how to "set" max file descriptors in
Linux.......there is usually not a need to adjust this, but a news box
would be an exception:

news:~# cat /proc/sys/kernel/file-max
1024
news:~# cat /proc/sys/kernel/file-nr
300

Anyone know how to up these? What should they be set at? I beleive
file-max is the maximum files descriptors........

> 
> Make sure there are no memory limits on the news user, I used to do
> this:
> 
> 	in ~news/etc/rc.news:
> 
> 		#!/bin/csh
> 		ulimit unlimited
> 		exec ~news/bin/rc.news
> 


When I go into csh, I get this:

%limit
cputime         unlimited
filesize        1048576 kbytes
datasize        unlimited
stacksize       8192 kbytes
coredumpsize    2097151 kbytes
memoryuse       unlimited
descriptors     256
memorylocked    unlimited
maxproc         256

(is that saying 256 file descriptors?!!?)

so, as root, I try to change this:

%unlimit
unlimit: descriptors: Can't remove limit
%limit
cputime         unlimited
filesize        unlimited
datasize        unlimited
stacksize       unlimited
coredumpsize    unlimited
memoryuse       unlimited
descriptors     256
memorylocked    unlimited
maxproc         unlimited

it cant remove the limit on the descriptors, must be something I need to
do in the kernel.....but where is this set? Any help would be appreciated,
I think thats why I get so much file blocking......

> This would remove all process limits and then fire up news for me. > 
> : 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.
> 
> How is your disk subsystem configured?
> 

overviews striped accross 2 2gig drives, spool striped accross 5 4gb
drives, / on a 2gb drive, /var/news/etc on a 2gb drive.  This is all
accross 2 buses on the dpt.

> Do you have swap on multiple physical drives?  (or in the case of DPT
> controller, an area of swap for the system?)
> 

no, swap is not striped.  However, I don't swap :)

> : ---------------------------------------------------------------------
> : 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
> 
> Notice that crosspost and overchan are niced?
> 
> You can fix this inside your config.data and rebuild the system:
> 
> 	##  Should sub-processes get a nice(2) value?  Pick DO or DONT.
> 	#### =()<INND_NICE_KIDS         @<INND_NICE_KIDS>@>()=
> 	INND_NICE_KIDS          DO
> 	##  Value for nice(2) call in innd.
> 	#### =()<INND_NICE_VALUE                @<INND_NICE_VALUE>@>()=
> 	INND_NICE_VALUE         0
> 
> The INND_NICE_VALUE is the item I am talking about...

Thanks, I had it at 4.......maybe this will stop some overchan
blocking.......

> 
> Also, are you running innfeed via channel or funnel file?  I would run
> it via a funnel-file if I were you, much better in my opinion.
> 

channel:

innfeed!:!*\
        :Tc,Wnm*\
        :/usr/news/local/startinnfeed

> Oh, and by turning off the 'nice' stuff, your reader processes will
> actually get some CPU :)
> 

Ahh, so your saying that innd nices the nnrpd's as well with that
NICE_VALUE?

> The list below has multiple ncmspool processes running as well, why?

This is how nocem on spool works..........its actually normal yet messy
for it to look like this.

> 
> Your INN process is also niced, why?
> 


I have no idea, do you know?  I start it with a normal rc.news, and I am
not sure where INN would get niced if anywhere.  Do you think it could be
using the "4" I had set for the NICE_VALUE in the config.data file?

Perhaps running rc.news with the "limits" unlimited will help this from
being niced?  I really need my file descriptors uped!

> : news     20499 19.0  0.0     0     0  ?  DWN 22:31   0:00
> : /usr/news/bin/innd -p4 -r -i0 -c7 -L
> 
> INN should *not* be niced at all.

I agree..........I will try to find where it gets niced, if anyone knows,
let me know!
> : root        79  0.0  0.3  1556   940  ?  S  Nov 16   0:29 /etc/gated
> 
> Why do you run gated?

We have our servers on a /24, and our dialup users on another /24.  To
prevent packets from having to go thru the router (users->servers and
vice-versa) we run gated to allow them to have less hops, and shave a few
ms from the latency.
> 
> How is your nnrp configured?

What do you mean by configured?
> 
> Hmm..
> 
> What about the MMAP stuff for nnrpd?  I know 1.7 has it, but did you
> enable it?  send me your config.data and I can check it out...

All MMAP should be turned on, config.data is attached......appreciate you
looking at it for me.

> 
> : innfeed 0.10.1.6
> : gfilter
> : NOCEM
> 
> I don't run NOCEM on my system, I just let cancels do the work, just a
> datapoint...

noted

> 
> -- 
> Mike Horwath    IRC: Drechsau    LIFE: Lover    drechsau@yuck.net
> Visi:  info@visi.com                           drechsau@Geeks.ORG
> Twin Cities area Internet Access:  612-288-0880 for more info
> The founding member of Minn. Coalition for Internet Accessibility
> 

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



---825223348-1717468692-879991238=:30635
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="config.data"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.3.96.971119200038.30635A@mercury.shreve.net>
Content-Description: ShreveNet INN config.data

<encoded_portion_removed>
ZmlsdGVyX25ucnBkLnBsDQo=
---825223348-1717468692-879991238=:30635--

Technical Details
Message-ID: <Pine.LNX.3.96.971119193746.29837A-200000@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
References: <199711190557.XAA27276@tiny.net>

Show Full Headers
Complete Article Headers
Message-ID: <Pine.LNX.3.96.971119193746.29837A-200000@mercury.shreve.net>
Subject: Re: Buffers/Tuning and Linux
Date: Wed, 19 Nov 1997 00:00:00 +0000
From: Brian <signal@shreve.net>
References: <199711190557.XAA27276@tiny.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: 291077115
To: Mike Horwath <drechsau@tiny.net>
Organization: ShreveNet
Reply-To: Brian <signal@shreve.net>
Newsgroups: news.software.nntp,comp.os.linux.misc