X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=doc%2Fguide%2Fadmin%2Ftuning.sdf;h=6ad12a67cff70c8ede4336e044451a91a72540c3;hb=beca9bbb153ae03fb34acfdb57c53144ac2166fc;hp=d394420a5c7ced1d387ee6ca58f09500b41b2379;hpb=321b0fa93e6a8841cba23fac8663802d2d17a8c7;p=openldap diff --git a/doc/guide/admin/tuning.sdf b/doc/guide/admin/tuning.sdf index d394420a5c..6ad12a67cf 100644 --- a/doc/guide/admin/tuning.sdf +++ b/doc/guide/admin/tuning.sdf @@ -1,5 +1,5 @@ # $OpenLDAP$ -# Copyright 1999-2012 The OpenLDAP Foundation, All Rights Reserved. +# Copyright 1999-2013 The OpenLDAP Foundation, All Rights Reserved. # COPYING RESTRICTIONS APPLY, see COPYRIGHT. H1: Tuning @@ -27,13 +27,20 @@ H3: Memory Scale your cache to use available memory and increase system memory if you can. -See {{SECT:Caching}} +See {{SECT:Caching}} for BDB cache tuning hints. +Note that LMDB uses no cache of its own and has no tuning options, so the Caching +section can be ignored when using LMDB. H3: Disks -Use fast subsystems. Put each database and logs on separate disks configurable -via {{DB_CONFIG}}: +Use fast filesystems, and conduct your own testing to see which filesystem +types perform best with your workload. (On our own Linux testing, EXT2 and JFS +tend to provide better write performance than everything else, including +newer filesystems like EXT4, BTRFS, etc.) + +Use fast subsystems. Put each database and logs on separate disks +(for BDB this is configurable via {{DB_CONFIG}}): > # Data Directory > set_data_dir /data/db @@ -315,9 +322,9 @@ it is generally recommended to be 3x"cachesize". {NOTE: The idlcachesize setting directly affects search performance} -H3: {{slapd}}(8) Threads +H2: {{slapd}}(8) Threads -{{slapd}}(8) can process requests via a configurable number of thread, which +{{slapd}}(8) can process requests via a configurable number of threads, which in turn affects the in/out rate of connections. This value should generally be a function of the number of "real" cores on