BSDI shared mem

From: "John Henderson" <jrh(at)is(dot)com(dot)fj>
To: <pgsql-general(at)hub(dot)org>
Subject: BSDI shared mem
Date: 1999-11-28 23:16:37
Message-ID: 00a201bf39f6$a06d02e0$ea7c3eca@john.is.com.fj
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Browse pgsql-general by date

  From Date Subject
Next Message Darvin Zuch 1999-11-29 04:19:49 RE: [GENERAL] Mail to DB.
Previous Message Howie 1999-11-28 22:38:44 Re: [GENERAL] Mail to DB.