From: Bruce Momjian Date: Mon, 13 Oct 2014 21:23:36 +0000 (-0400) Subject: doc: mention more changes needed to use huge pages X-Git-Tag: REL9_5_ALPHA1~1362 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ebd33f27ab023ef0e72ba162f2974ec49d96e8e3;p=postgresql doc: mention more changes needed to use huge pages Report by Laurence Parry --- diff --git a/doc/src/sgml/runtime.sgml b/doc/src/sgml/runtime.sgml index 639b288e06..026850a1cf 100644 --- a/doc/src/sgml/runtime.sgml +++ b/doc/src/sgml/runtime.sgml @@ -1360,6 +1360,13 @@ $ sysctl -w vm.nr_hugepages=3170 this setting through reboots. + + It is also necessary to give the database server operating system + user permission to use huge pages by setting + vm.hugetlb_shm_group via sysctl, and + permission to lock memory with ulimit -l. + + The default behavior for huge pages in PostgreSQL is to use them when possible and