tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit f3cd1035288b26777583ab044348625c94e3922a
parent 15ea338ad57912ec302d9ae2dc6e9a489ab63ac9
Author: Mike Perry <mikeperry-git@torproject.org>
Date:   Thu,  5 Jun 2025 15:12:32 +0000

Add ratelimit log for hsdesc pruning during oomkiller

Diffstat:
Msrc/core/or/relay.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/core/or/relay.c b/src/core/or/relay.c @@ -2943,6 +2943,11 @@ cell_queues_check_size(void) removed = hs_cache_handle_oom(bytes_to_remove); oom_stats_n_bytes_removed_hsdir += removed; alloc -= removed; + static ratelim_t hs_cache_oom_ratelim = RATELIM_INIT(600); + log_fn_ratelim(&hs_cache_oom_ratelim, LOG_NOTICE, LD_REND, + "HSDir cache exceeded limit (%zu > %"PRIu64" bytes). " + "Pruned %zu bytes during cell_queues_check_size.", + hs_cache_total, get_options()->MaxHSDirCacheBytes, removed); } if (geoip_client_cache_total > get_options()->MaxMemInQueues / 5) { const size_t bytes_to_remove =