Running PostgreSQL on Solaris 8

This article was first written in February 2004 for
the BeezNest technical website (

The default values for Shared Memory in Sun’s Solaris (starting from 2.6, at least) are set too low to run.

Here is how to change it (see also PostgreSQL’s Admin Guide, Managing Kernel Ressources):

The relevant settings can be changed in /etc/system, for example:

set shmsys:shminfo_shmmax=0x2000000 set shmsys:shminfo_shmmin=1 set shmsys:shminfo_shmmni=256 set shmsys:shminfo_shmseg=256 set semsys:seminfo_semmap=256 set semsys:seminfo_semmni=512 set semsys:seminfo_semmns=512 set semsys:seminfo_semmsl=32

You need to reboot to make the changes effective.

See also for information on shared memory under Solaris.


Related Posts

A few things about CakePHP, PostgreSQL and Xapian

While on part-time holidays from Dokeos, I’m looking into some of the stuff...

HOWTO Netboot a Sun machine using RARP

This article was first written in June 2005 for the BeezNest technical website...