mirror of
https://github.com/Zygo/bees.git
synced 2025-05-17 21:35:45 +02:00
hash: flush the table more slowly
With SIGTERM and fast exit, the trickle writeback is less important. We don't want to flood people's IO subsystems with continuous writes. This really should be configurable at runtime. Signed-off-by: Zygo Blaxell <bees@furryterror.org>
This commit is contained in:
parent
85ff543695
commit
849c071146
@ -61,8 +61,9 @@ const off_t BLOCK_SIZE_HASHTAB_BUCKET = BLOCK_SIZE_MMAP;
|
||||
// Extent size for hash table (since the nocow file attribute does not seem to be working today)
|
||||
const off_t BLOCK_SIZE_HASHTAB_EXTENT = BLOCK_SIZE_MAX_COMPRESSED_EXTENT;
|
||||
|
||||
// Bytes per second we want to flush (8GB every two hours)
|
||||
const double BEES_FLUSH_RATE = 8.0 * 1024 * 1024 * 1024 / 7200.0;
|
||||
// Bytes per second we want to flush from hash table
|
||||
// Optimistic sustained write rate for SD cards
|
||||
const double BEES_FLUSH_RATE = 128 * 1024;
|
||||
|
||||
// Interval between writing crawl state to disk
|
||||
const int BEES_WRITEBACK_INTERVAL = 900;
|
||||
|
Loading…
x
Reference in New Issue
Block a user