2013-02-08 00:55:51 +01:00
|
|
|
# Shared memory settings for PostgreSQL
|
|
|
|
|
|
|
|
# Maximum total size of shared memory in pages (normally 4096 bytes)
|
|
|
|
kernel.shmall = 1703936
|
2013-04-17 22:21:03 +02:00
|
|
|
# Maximum size of shared memory segment in bytes
|
2013-02-08 00:55:51 +01:00
|
|
|
kernel.shmmax = 6979321856
|
2013-04-17 22:21:03 +02:00
|
|
|
|
|
|
|
# Virtual memory settings
|
|
|
|
vm.swappiness = 0
|
|
|
|
vm.overcommit_memory = 2
|
|
|
|
|
|
|
|
# These are the defaults on newer kernels
|
|
|
|
vm.dirty_ratio = 10
|
|
|
|
vm.dirty_background_ratio = 5
|