Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Feb 2009 15:16:11 -0500
From:      Bill Moran <wmoran@potentialtech.com>
To:        Christian Peron <csjp@freebsd.org>
Cc:        Kirk Strauser <kirk@strauser.com>, Garrett Cooper <yanefbsd@gmail.com>, "Brian A. Seklecki" <lavalamp@spiritual-machines.org>, freebsd-hackers@freebsd.org
Subject:   Re: shmmax tops out at 2G?
Message-ID:  <20090223151611.af79586c.wmoran@potentialtech.com>
In-Reply-To: <20090223201217.GA35374@jnz.sqrt.ca>
References:  <1235404207.31655.2085.camel@soundwave.ws.pitbpa0.priv.collaborativefusion.com> <20090223190828.GA34866@jnz.sqrt.ca> <78AACD88-3F94-4B39-9122-9C4199DFFDBA@gmail.com> <20090223201217.GA35374@jnz.sqrt.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
In response to Christian Peron <csjp@freebsd.org>:

> On Mon, Feb 23, 2009 at 11:58:09AM -0800, Garrett Cooper wrote:
> [..]
> > 
> > 	Why isn't the field an unsigned int / size_t? I don't see much value 
> > in having the size be signed...
> 
> No idea :) This code long predates me. 

It's that way because the original Sun spec for the API said so.

It makes little sense to change it just to unsigned.  The additional 2G
it would give doesn't really solve the tuning problem on a 64G system.
This is simply a spec that has become outdated by modern hardware.

-- 
Bill Moran
http://www.potentialtech.com
http://people.collaborativefusion.com/~wmoran/



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