Skip to content
Snippets Groups Projects
Verified Commit 17815ff3 authored by Vladimír Čunát's avatar Vladimír Čunát
Browse files

daemon/worker: drop caching of kr_request mempools

This caused a huge increase in real memory usage in case of queries
arriving to kresd while being disconnected from internet.
The usage was slowly creeping up, even over 2G.

Interesting past commits: b350d38d and two preceding.

There apparently was no real memory leak.  I assume that reusal of
long-living mempools is risky in terms of memory fragmentation,
though the extent of the issue surprised me very much.
The issue seemed the same with normal glibc and jemalloc.

I generally dislike ad-hoc optimization attempts like these freelists.
Now the allocator can better decide *itself* how to reuse memory.
parent 8ef99b1b
Branches
Tags
1 merge request!1328daemon/worker: drop caching of kr_request mempools
Pipeline #103028 failed with stages
in 30 minutes and 19 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment