summaryrefslogtreecommitdiffstats
path: root/ctdb/include/ctdb_private.h
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronniesahlberg@gmail.com>2012-05-25 12:27:59 +1000
committerRonnie Sahlberg <ronniesahlberg@gmail.com>2012-05-25 12:34:06 +1000
commite7d21834ae3b514210ced5f71de5d8fb4ae74b95 (patch)
tree2ad0cf12f97f5a0996c6e7e8e22792f76304026e /ctdb/include/ctdb_private.h
parent7d9acaeb3700e28617e514cd61d00660b035fffb (diff)
downloadsamba-e7d21834ae3b514210ced5f71de5d8fb4ae74b95.tar.gz
samba-e7d21834ae3b514210ced5f71de5d8fb4ae74b95.tar.xz
samba-e7d21834ae3b514210ced5f71de5d8fb4ae74b95.zip
RECOVER: When we pull databases during recovery, we used to reallocate the databuffer for each entry added. This would normally not be an issue, but for cases where memory is fragmented, this could start to cost significant cpu if we need to reallocate and move to a different region.
Change this to instead preallocate , by default, 10MByte chunks to the data buffer. This significantly reduces the number of potential reallocate and move operations that may be required. Create a tunable to override/change how much preallocation should be used. (This used to be ctdb commit 1f262deaad0818f159f9c68330f7fec121679023)
Diffstat (limited to 'ctdb/include/ctdb_private.h')
-rw-r--r--ctdb/include/ctdb_private.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ctdb/include/ctdb_private.h b/ctdb/include/ctdb_private.h
index 0f494b4b2b0..7c3fdf0953b 100644
--- a/ctdb/include/ctdb_private.h
+++ b/ctdb/include/ctdb_private.h
@@ -134,6 +134,7 @@ struct ctdb_tunable {
uint32_t db_record_count_warn;
uint32_t db_record_size_warn;
uint32_t db_size_warn;
+ uint32_t pulldb_preallocation_size;
};
/*