mirror of
https://github.com/Zygo/bees.git
synced 2025-05-17 21:35:45 +02:00
bees: reduce extent ref limit to 9999
Originally the limit was 2730 (64KiB worth of ref pointers). This limit was a little too low for some common workloads, so it was then raised by a factor of 256 to 699050, but there are a lot of problems with extent counts that large. Most of those problems are memory usage and speed problems, but some of them trigger subtle kernel MM issues. 699050 references is too many to be practical. Set the limit to 9999, only 3-4x larger than the original 2730, to give up on deduplication when each deduped ref reduces the amount of space by no more than 0.01%. Signed-off-by: Zygo Blaxell <bees@furryterror.org>
This commit is contained in:
parent
088cbc951a
commit
8bac00433d
@ -95,8 +95,9 @@ const double BEES_TOO_LONG = 5.0;
|
||||
// Avoid any extent where LOGICAL_INO takes this much kernel CPU time
|
||||
const double BEES_TOXIC_SYS_DURATION = 0.1;
|
||||
|
||||
// Maximum number of refs to a single extent
|
||||
const size_t BEES_MAX_EXTENT_REF_COUNT = (16 * 1024 * 1024 / 24) - 1;
|
||||
// Maximum number of refs to a single extent before we have other problems
|
||||
// If we have more than 10K refs to an extent, adding another will save 0.01% space
|
||||
const size_t BEES_MAX_EXTENT_REF_COUNT = 9999; // (16 * 1024 * 1024 / 24);
|
||||
|
||||
// How long between hash table histograms
|
||||
const double BEES_HASH_TABLE_ANALYZE_INTERVAL = BEES_STATS_INTERVAL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user