Correction : etc/sysctl.d/local-kernel-shm.conf : adapte pour 2G de RAM .
authorJulien Moutinho <julm+burette@autogeree.net>
Wed, 20 Mar 2013 15:45:54 +0000 (16:45 +0100)
committerJulien Moutinho <julm+burette@autogeree.net>
Wed, 20 Mar 2013 16:25:54 +0000 (17:25 +0100)
etc/sysctl.d/local-kernel-shm.conf

index 700cc85..b94d01b 100644 (file)
@@ -1,3 +1,6 @@
 # DOC: http://www.postgresql.org/docs/9.1/static/kernel-resources.html
-kernel.shmmax = 17179869184
-kernel.shmall = 4194304
+kernel.shmall = 393216
+       # NOTE: 1.5G en pages de (getconf PAGESIZE = 4096 octets) = 3 * (1024 * 1024 * 1024) / 2 / 4096
+       # NOTE: kernel.shmall doit valoir au moins kernel.shmmax / 4096
+kernel.shmmax = 1073741824
+       # NOTE: 1G en octets = 1 * (1024 * 1024 * 1024)