hannes has quit [Remote host closed the connection]
<koga>
ha. he can run, but he cant hide...
hannes has joined #mirage
<koga>
changed frag cache size to 16kb, deployed in backup role
<hannes>
as i tried to explain, this is _capacity_, not _allocated memory_... but whatever
<koga>
saw that, and yes, whatevs. :)
<koga>
its an easy a/b test to pull
<hannes>
and as usual my brain was wrong ;) thanks to talex5 to provide some sample code ;)
<koga>
"real world memory footprint of an lru cache" is a good one though
<hannes>
i think my aversion against OCaml's hashtables is only growing... ;)
<koga>
use thinly wrapped C++ implementation instead?
<koga>
*hides*
<hannes>
yes of course you get better complexity bounds for common operations than in maps (balanced binary trees) (O(1) -- well, O(hashfn) -- against O(log n)), but its mutable nature and unexpected memory consumption (on create/resize) is just too hard to reason about
<koga>
the main impact of changing the cache size to 16k seems to be that it doesnt work anymore _and_ doesnt print mem stats. (pretends to be working, but there is no relevant throughput)
<hannes>
oh?
<hannes>
i don't believe you
<koga>
(but i guess i can stop my random flailing around)
<hannes>
?
<koga>
cranking the size up/down was a test to see if it is related to the cache. i think talexs example shows that is the case.
<koga>
(stalling was traffic dest running out of space)
<hannes>
ah, good :)
<koga>
sortof. i am not sure i want to know why sometimes zfs stalls instead of returning EITSTOOBIG ...
<hannes>
(well, not "good", rather good that reducing it to 16k lead to non-functionality / less performance)
Desetude has joined #mirage
Desetude has quit [Ping timeout: 265 seconds]
Desetude has joined #mirage
koga has quit [Ping timeout: 265 seconds]
dobson has quit [Quit: Leaving]
dobson has joined #mirage
Desetude has quit [Quit: WeeChat 2.7]
jnavila has joined #mirage
enma has joined #mirage
Haudegen has quit [Quit: Bin weg.]
mahmudov has joined #mirage
raboof has quit []
raboof has joined #mirage
Hrundi_V_Bakshi has joined #mirage
Hrundi_V_Bakshi has quit [Quit: No Ping reply in 180 seconds.]
Hrundi_V_Bakshi has joined #mirage
jnavila has quit [Remote host closed the connection]