From: Kai Krakow Date: Sun, 30 Jun 2024 14:27:20 +0000 (+0200) Subject: context: demote "abandoned toxic match" to debug log level X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aaec931081deb4e5ad968f2eb1dba4c50f011dee;p=bees context: demote "abandoned toxic match" to debug log level This log message creates a overwhelmingly lot of messages in the system journal, leading to write-back flushing storms under high activity. As it is a work-around message, it is probably only useful to developers, thus demote to debug level. This fixes latency spikes in desktop usage after adding a lot of new files, especially since systemd-journal starts to flush caches if it sees memory pressure. Signed-off-by: Kai Krakow --- diff --git a/src/bees-context.cc b/src/bees-context.cc index 6d484a51..1f1ed7e9 100644 --- a/src/bees-context.cc +++ b/src/bees-context.cc @@ -534,7 +534,7 @@ BeesContext::scan_one_extent(const BeesFileRange &bfr, const Extent &e) // Hash is toxic if (found_addr.is_toxic()) { - BEESLOGWARN("WORKAROUND: abandoned toxic match for hash " << hash << " addr " << found_addr << " matching bbd " << bbd); + BEESLOGDEBUG("WORKAROUND: abandoned toxic match for hash " << hash << " addr " << found_addr << " matching bbd " << bbd); // Don't push these back in because we'll never delete them. // Extents may become non-toxic so give them a chance to expire. // hash_table->push_front_hash_addr(hash, found_addr);