Subject: Upping SystemV smem?
To: None <port-mac68k@netbsd.org>
From: Roger Espinosa <roger@umich.edu>
List: port-mac68k
Date: 10/14/1998 09:33:27
I seem to have latched on a common quest, building postgres for a 68K
NetBSD box, and as has been common, not getting there :-)

The other day, though, I started hacking in parts of the Debian postgres
diffs and -- between that and junking the spinlock code in postgres -- it
*built*! And even better, "initdb" didn't come back with that blasted
"cannot find function 0" error message.

Alas, while postmaster started, I can't connect to it with psql, as it's
now grousing about shared memory. As the FAQ says:

   You either do not have shared memory configured properly in kernel or
   you need to enlarge the shared memory available in the kernel. The
   exact amount you need depends on your architecture and how many
   buffers you configure postmaster to run with. For most systems, with
   default buffer sizes, you need a minimum of ~760K.

...I've downloaded the kernel sources, but the scan of them and the
documentation leaves me a bit confused (kernel modifications were never my
forte) -- the only shared memory options I saw talk in "pages" (with a
deafult of "1024"), and I'm can't tell how that number relates to the
"760K" postgres is talking to.

So -- if anyone can shed some light on this relationship, I'd appreciate
it, and I'll let you know how it all turns out :-)

Thanks!
Roger

---------------------------------------------------------------------------
Roger Espinosa                         roger@umich.edu
Office of Instructional Technology     313/763-4677 (FAX: 313/763-4663)
University of Michigan                 http://www.oit.itd.umich.edu/