From: François Tigeot Date: Mon, 20 Aug 2012 06:17:29 +0000 (+0200) Subject: kernel: Set kern.ipc.shm_use_phys to 1 by default X-Git-Tag: v3.2.0~313 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/4f1a160352ca979cc8782a05c4afe079a1ea9240?ds=sidebyside kernel: Set kern.ipc.shm_use_phys to 1 by default * The only known user of SYSV shared memory is PostgreSQL * It really needs physical allocation to perform well with high numbers of clients * Physical allocation is now used by default --- diff --git a/sys/kern/sysv_shm.c b/sys/kern/sysv_shm.c index 42768f32f0..985472841b 100644 --- a/sys/kern/sysv_shm.c +++ b/sys/kern/sysv_shm.c @@ -117,7 +117,7 @@ struct shminfo shminfo = { 0 }; -static int shm_use_phys; +static int shm_use_phys = 1; TUNABLE_LONG("kern.ipc.shmmin", &shminfo.shmmin); TUNABLE_LONG("kern.ipc.shmmni", &shminfo.shmmni);