BSDI shared mem - Mailing list pgsql-general

From John Henderson
Subject BSDI shared mem
Date
Msg-id 00a201bf39f6$a06d02e0$ea7c3eca@john.is.com.fj
Whole thread Raw
List pgsql-general
Hi,
Perhaps this is useful for the FAQ as it was very difficult for me to
discover...

To increase shared mem and semaphores on BSDI
(courtesy of Sin'ichiro Miyatani on bsdi-users list)

  In /usr/src/sys/sys/sem.h,

#ifndef SEMMNI
#define SEMMNI  10              /* # of semaphore identifiers */
#endif
#ifndef SEMMNS
#define SEMMNS  60              /* # of semaphores in system */
#endif

So 10 and 60 are default values.  To increase # of semaphore, add next
line into kernel configuration file and recompile your kernel.

options "SEMMNI=XX"
options "SEMMNS=YY"

XX and YY are number you need.

  And in /usr/src/sys/sys/shm.h:

#define SHMMAXPGS       1024    /* max hardware pages for shared memory */

It seems this value is hard coded and there is no kernel configuration
option.

John Henderson


pgsql-general by date:

Previous
From: Bill Sneed
Date:
Subject: Quoting/Escaping
Next
From: Howie
Date:
Subject: Re: [GENERAL] Mail to DB.