Instructions for Linux ipc config
От | Mark Kirkwood |
---|---|
Тема | Instructions for Linux ipc config |
Дата | |
Msg-id | 4202AE60.6000706@coretech.co.nz обсуждение исходный текст |
Ответы |
Re: Instructions for Linux ipc config
|
Список | pgsql-docs |
Glancing over these as I was doing the FreeBSD patch, I noticed some scope for modernization there plus a possible error to correct: i) we could standardize the change method to use sysctl instead of echo'ing things into /proc/kernel/* structures (unless there is some reason for this to be preferable?) ii) we are recommending setting kernel.shmall equal to kernel.shmmax. I think this is incorrect or strange anyway : examining 2.6.10 src I see ./include/linux/shm.h:16: #define SHMALL (SHMMAX/PAGE_SIZE*(SHMMNI/16)) /* max shm system wide (pages) */ i.e. kernel.shmall really is in pages. So our suggested settings of: kernel.shmall = 134217728 kernel.shmmax = 134217728 allow PAGE_SIZE 128M segments to be created... thats 4096 of 'em on most common HW. This is probably more than most systems would need or want (and does setting this value too high have a performance impact?). One option is to follow what we have said for the BSD's i.e: kernel.shmall = 32768 or leave shmall at its default (commonly 2097152). What do people think? regards Mark
В списке pgsql-docs по дате отправления: