mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-30 13:30:57 +08:00
ITS#7725 add nordahead envflag
This commit is contained in:
parent
1d81f01b13
commit
80d8c56afd
@ -54,7 +54,7 @@ A separate directory must be specified for each database.
|
|||||||
The default is
|
The default is
|
||||||
.BR LOCALSTATEDIR/openldap\-data .
|
.BR LOCALSTATEDIR/openldap\-data .
|
||||||
.TP
|
.TP
|
||||||
\fBenvflags \fR{\fBnosync\fR,\fBnometasync\fR,\fBwritemap\fR,\fBmapasync\fR}
|
\fBenvflags \fR{\fBnosync\fR,\fBnometasync\fR,\fBwritemap\fR,\fBmapasync\fR,\fBnordahead\fR}
|
||||||
Specify flags for finer-grained control of the LMDB library's operation.
|
Specify flags for finer-grained control of the LMDB library's operation.
|
||||||
.RS
|
.RS
|
||||||
.TP
|
.TP
|
||||||
@ -94,6 +94,14 @@ has not been set. It also has no effect if
|
|||||||
.I nosync
|
.I nosync
|
||||||
is set.
|
is set.
|
||||||
.RE
|
.RE
|
||||||
|
.RS
|
||||||
|
.TP
|
||||||
|
.B nordahead
|
||||||
|
Turn off file readahead. Usually the OS performs readahead on every read
|
||||||
|
request. This usually boosts read performance but can be harmful to
|
||||||
|
random access read performance if the system's memory is full and the DB
|
||||||
|
is larger than RAM. This option is not implemented on Windows.
|
||||||
|
.RE
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
\fBindex \fR{\fI<attrlist>\fR|\fBdefault\fR} [\fBpres\fR,\fBeq\fR,\fBapprox\fR,\fBsub\fR,\fI<special>\fR]
|
\fBindex \fR{\fI<attrlist>\fR|\fBdefault\fR} [\fBpres\fR,\fBeq\fR,\fBapprox\fR,\fBsub\fR,\fI<special>\fR]
|
||||||
|
@ -104,6 +104,7 @@ static slap_verbmasks mdb_envflags[] = {
|
|||||||
{ BER_BVC("nometasync"), MDB_NOMETASYNC },
|
{ BER_BVC("nometasync"), MDB_NOMETASYNC },
|
||||||
{ BER_BVC("writemap"), MDB_WRITEMAP },
|
{ BER_BVC("writemap"), MDB_WRITEMAP },
|
||||||
{ BER_BVC("mapasync"), MDB_MAPASYNC },
|
{ BER_BVC("mapasync"), MDB_MAPASYNC },
|
||||||
|
{ BER_BVC("nordahead"), MDB_NORDAHEAD },
|
||||||
{ BER_BVNULL, 0 }
|
{ BER_BVNULL, 0 }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user