/[glibc-bsd]/trunk/kfreebsd-9/debian/patches/906_grow_sysv_ipc_limits.diff
ViewVC logotype

Contents of /trunk/kfreebsd-9/debian/patches/906_grow_sysv_ipc_limits.diff

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3599 - (show annotations) (download)
Sat Jul 16 21:27:36 2011 UTC (3 years, 4 months ago) by rmh
File size: 2113 byte(s)
Remove SEMMAP setting from config (see r224016 in upstream SVN)
1 Status: Rejected in upstream (kern/77353)
2
3 postgresql documentation encourages to grow SysV IPC limits on *BSD systems
4 (which obviously applies to GNU/k*BSD ones too):
5
6 <quote>
7 The options SYSVSHM and SYSVSEM need to be enabled when the kernel is compiled. (They are by default.) The maximum size of shared memory is determined by the option SHMMAXPGS (in pages). The following shows an example of how to set the various parameters:
8
9 options SYSVSHM
10 options SHMMAXPGS=4096
11 options SHMSEG=256
12
13 options SYSVSEM
14 options SEMMNI=256
15 options SEMMNS=512
16 options SEMMNU=256
17 options SEMMAP=256
18
19 (On NetBSD and OpenBSD the key word is actually option singular.)
20
21 You might also want to configure your kernel to lock shared memory into RAM and prevent it from being paged out to swap. Use the sysctl setting kern.ipc.shm_use_phys.
22 </quote>
23
24 --- a/sys/amd64/conf/GENERIC
25 +++ b/sys/amd64/conf/GENERIC
26 @@ -55,6 +55,11 @@
27 options SYSVSHM # SYSV-style shared memory
28 options SYSVMSG # SYSV-style message queues
29 options SYSVSEM # SYSV-style semaphores
30 +options SHMMAXPGS=4096
31 +options SHMSEG=256
32 +options SEMMNI=256
33 +options SEMMNS=512
34 +options SEMMNU=256
35 options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
36 options PRINTF_BUFR_SIZE=128 # Prevent printf output being interspersed.
37 options KBD_INSTALL_CDEV # install a CDEV entry in /dev
38 --- a/sys/i386/conf/GENERIC
39 +++ b/sys/i386/conf/GENERIC
40 @@ -56,6 +56,11 @@
41 options SYSVSHM # SYSV-style shared memory
42 options SYSVMSG # SYSV-style message queues
43 options SYSVSEM # SYSV-style semaphores
44 +options SHMMAXPGS=4096
45 +options SHMSEG=256
46 +options SEMMNI=256
47 +options SEMMNS=512
48 +options SEMMNU=256
49 options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
50 options PRINTF_BUFR_SIZE=128 # Prevent printf output being interspersed.
51 options KBD_INSTALL_CDEV # install a CDEV entry in /dev

  ViewVC Help
Powered by ViewVC 1.1.5