mirror of
https://github.com/samba-team/samba.git
synced 2025-01-27 14:04:05 +03:00
ntdb: reduce transaction pagesize from 64k to 16k.
The performance numbers for transaction pagesize are indeterminate: larger pagesizes means a smaller transaction array, and a better chance of having a contiguous record (more efficient for ntdb_parse_record and some internal operations inside a transaction). On the other hand, large pagesize means more I/O even if we change a few bytes. But it also controls the multiple by which we will enlarge the file, and hence the minimum db size. It's 4k for tdb1, but 16k seems reasonable in these modern times. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
35381cad1f
commit
7fae6c44e2
@ -100,7 +100,7 @@ typedef uint64_t ntdb_off_t;
|
|||||||
|
|
||||||
/* This doesn't really need to be pagesize, but we use it for similar
|
/* This doesn't really need to be pagesize, but we use it for similar
|
||||||
* reasons. */
|
* reasons. */
|
||||||
#define NTDB_PGSIZE 65536
|
#define NTDB_PGSIZE 16384
|
||||||
|
|
||||||
/* Common case of returning true, false or -ve error. */
|
/* Common case of returning true, false or -ve error. */
|
||||||
typedef int ntdb_bool_err;
|
typedef int ntdb_bool_err;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user