🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #23481

Re: Buffers/Tuning and Linux

#23481
From: 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


Technical Details
Message-ID: <86lnyi80qz.fsf@blah.erols.com>
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> <651of0$sm2$1@newssvr03-int.news.prodigy.com> <Pine.BSF.3.96.971121172258.28456C-100000@coredump.int.tele.dk>

Show Full Headers
Complete Article Headers
Message-ID: <86lnyi80qz.fsf@blah.erols.com>
Subject: Re: Buffers/Tuning and Linux
Date: Fri, 21 Nov 1997 00:00:00 +0000
From: coneill@blah.erols.com
References: <Pine.LNX.3.96.971118220630.23327A-100000@mercury.shreve.net> <651of0$sm2$1@newssvr03-int.news.prodigy.com> <Pine.BSF.3.96.971121172258.28456C-100000@coredump.int.tele.dk>
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: 291402876
X-Complaints-To: abuse@erols.com
X-Trace: winter.news.erols.com 880143170 1449 207.172.25.192 (21 Nov 1997 20:12:50 GMT)
Organization: Erol's Internet Services
Newsgroups: news.software.nntp,comp.os.linux.misc