Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Jul 2003 23:33:43 -0700
From:      Terry Lambert <tlambert2@mindspring.com>
To:        Christopher Weimann <cweimann@k12hq.com>
Cc:        Tom Samplonius <tom@sdf.com>
Subject:   Re: Tuning for PostGreSQL Database
Message-ID:  <3F2220C7.F0179FC4@mindspring.com>
References:  <20030724173910.GA9364@smtp.k12us.com> <Pine.BSF.4.05.10307242358580.16986-100000@misery.sdf.com> <20030725162601.GA35378@smtp.k12us.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Christopher Weimann wrote:
> So I have conflicting documentation.
> 
> I have machine with 4Gig of ram.  What is the maximum
> value of SHMMAX on FreeBSD?

Ideally, you would use memory mapped files for this, and not System V
shared memory, so that the OS could implement swapping policies as it
saw fit, and could actually swap the data, if nevcessary, instead of
it sucking up huge amounts of wired memory.

In any case, POSIX deprecated SysV shared memory years ago, and
recommends that all code utilize shm_open instead, these days, if
you insist on using an interface that sucks up huge amounts of
wired pages and KVA space.

-- Terry



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