Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Nov 2000 17:40:54 -0500 (EST)
From:      Mitch Collinsworth <mitch@ccmr.cornell.edu>
To:        Doug Barton <DougB@FreeBSD.org>
Cc:        freebsd-questions@FreeBSD.org, Mitch Collinsworth <mitch@mercury.ccmr.cornell.edu>
Subject:   Re: Linux malloc better on FreeBSD than FreeBSD malloc?
Message-ID:  <Pine.LNX.4.10.10011111736170.16421-100000@dragon.ccmr.cornell.edu>
In-Reply-To: <3A0DC4EC.509A982C@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Well I did include the version, but you clipped it from the text you
included in your message:

> The system the tests are being run on is a 900 MHz Xeon running
> FreeBSD 4.1-R with 1 GB RAM and 18 GB swap:

I have not yet done any special kernel tuning but I'll try some of
the options suggested.  None of this explains however, why the Linux
binary running on FreeBSD was able to do what the FreeBSD binary
could not.  That was my first question.

-Mitch

On Sat, 11 Nov 2000, Doug Barton wrote:

> Mitch Collinsworth wrote:
> > 
> > Well I hope that subject was provocative enough to generate some
> > interest!  :-)  Here's a strange situation that's bugging me.  I
> > recently changed jobs, into a dept that's heavily Linux-based.  I
> > of course have different preferences, but need to demonstrate
> > technical superiority if any changes are going to happen.  An
> > opportunity just arose to make some comparisons between Linux and
> > FreeBSD in maximum process size.  We have some new systems with
> > 4 GB RAM each that will be made available for running large batch
> > jobs.
> > 
> > We have a very simple test program that malloc's successively larger
> > and larger blocks of memory until it fails, freeing the current blocks
> > after each successful trial.  The strange thing is that the test
> > program runs much farther on FreeBSD using the Linux binary in
> > compatibility mode than it does using the binary compiled on FreeBSD!
> > Included below are the output from each binary and the source.  Can
> > anyone explain these results?
> > 
> > A second question, which is the primary issue we were trying to
> > discover is if it is possible for a single process to malloc more than
> > 2 GB of memory.  FreeBSD supposedly supports up to 4 GB (on Intel
> > hardware), but does anyone know if there is still a 2 GB per process
> > limit?  And if a single process can be larger than 2 GB, is there a
> > 2 GB limit on any single malloc with that process?
> 
> 	You've left out several important details, namely what version of
> freebsd you're using and what kind of, if any kernel tuning you've done.
> If you haven't already, read through LINT/NOTES to learn about some of
> the options available. In particulary I'm guessing you will need to take
> advantage of MAXDSIZ and possibly DFLDSIZE. You may also want to play
> around with some of the other VM options, but a lot of that stuff is
> really poorly documented. If you can contribute hard data regarding
> performance with any of those options (or combinations) enabled, I'm
> sure it will be well appreciated. 
> 
> Good luck,
> 
> Doug



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.10.10011111736170.16421-100000>