diff options
| author | Dan Engelbrecht <[email protected]> | 2022-12-02 16:56:51 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-12-02 07:56:51 -0800 |
| commit | 921078b38bfa91424c27ff707d950e26c18d3cd3 (patch) | |
| tree | e71446e3ebc29f7ff8ad47c0c23d8b2e49211dbe /zenstore/filecas.cpp | |
| parent | reduce gc log spam (INFO -> DEBUG) (#199) (diff) | |
| download | zen-921078b38bfa91424c27ff707d950e26c18d3cd3.tar.xz zen-921078b38bfa91424c27ff707d950e26c18d3cd3.zip | |
Size based gc trigger (#197)
- Feature: Disk size triggered GC, a soft disk usage limit for cache data.
- Feature: New option `--gc-disk-size-soft-limit` (command line), `gc.cache.disksizesoftlimit` (lua config) controlling limit for soft disk usage limit. Defaults to zero which disables soft disk usage limit.
- Improvement: Disk write pressure in GC log and cleaned up clutter in GC logging.
Diffstat (limited to 'zenstore/filecas.cpp')
| -rw-r--r-- | zenstore/filecas.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/zenstore/filecas.cpp b/zenstore/filecas.cpp index 1d3542f62..38d7898cf 100644 --- a/zenstore/filecas.cpp +++ b/zenstore/filecas.cpp @@ -912,7 +912,7 @@ FileCasStrategy::CollectGarbage(GcContext& GcCtx) if (GcCtx.IsDeletionMode() == false) { - ZEN_INFO("NOTE: not actually deleting anything since deletion is disabled"); + ZEN_DEBUG("NOTE: not actually deleting anything since deletion is disabled"); return; } @@ -1050,7 +1050,7 @@ TEST_CASE("cas.file.gc") { InsertChunks(); - GcContext Ctx; + GcContext Ctx(GcClock::Now() - std::chrono::hours(24)); FileCas.CollectGarbage(Ctx); for (const IoHash& Key : Keys) @@ -1066,7 +1066,7 @@ TEST_CASE("cas.file.gc") { InsertChunks(); - GcContext Ctx; + GcContext Ctx(GcClock::Now() - std::chrono::hours(24)); for (const IoHash& Key : Keys) { |