Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Oct 1996 16:27:48 -0500 (EST)
From:      John Dyson <dyson@dyson.iquest.net>
To:        robh@imdb.com
Cc:        freebsd-questions@freebsd.org
Subject:   Re: server death when swap space is all gone.
Message-ID:  <199610282127.QAA00722@dyson.iquest.net>
In-Reply-To: <199610281957.TAA10074> from "Rob Hartill" at Oct 28, 96 07:57:03 pm

next in thread | previous in thread | raw e-mail | index | archive | help
(The "humor" in this message is not directed to the original poster, but
 perhaps is slightly misguided Linux oriented friend :-)).

> 
> On a related note, a Linux using friend takes pleasure in telling me
> that FreeBSD is brian-dead w.r.t memory management because it can't diff
> a couple of 20Mb files on a machine with ample memory and swap (combined).
> 
Didn't know that diff used mmap?  Linux is brain-dead because it doesn't
push unused pages out to swapspace, until memory needs to be freed. :-).
You know that it is faster to free up the memory, thereby letting the
system utilize the ram, as opposed to tying it up with stuff that should
be on swap? :-).  Many of the complaints are due to people not
understanding this bit of info (or perhaps Linux fervor)...

>
> Are there any kernel tweaks in the area that could be useful ?
> 
No tweaks, but you do need enough swap space.  The swap space calculation
is most easily described as the total amount of program space that you
have...  That is unlikely to change without a serious impact on performance.

John





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610282127.QAA00722>