AsukaMilet
10/28/2024, 8:41 AMcriccomini
10/29/2024, 12:00 AMcriccomini
10/29/2024, 12:01 AMAsukaMilet
10/29/2024, 4:47 AMlru-rs is good enough, but does not support size aware eviction.AsukaMilet
10/29/2024, 4:49 AMlru-rs, you will get my implementation.AsukaMilet
10/29/2024, 4:52 AMAsukaMilet
10/29/2024, 4:52 AMAsukaMilet
10/29/2024, 4:54 AMAsukaMilet
10/29/2024, 4:59 AMAsukaMilet
10/29/2024, 5:00 AMflaneur233
10/29/2024, 5:58 AMflaneur233
10/29/2024, 6:19 AMAsukaMilet
10/29/2024, 7:40 AMlru-rs does not support size aware eviction. Using it also requires the introduction of a new crate.AsukaMilet
10/29/2024, 7:40 AMAsukaMilet
10/29/2024, 7:42 AMlru-rs, and modify it, we will get my implementation.๐
In fact, I donโt want to manually implement the data structure myself.
But there is no other particularly good way.AsukaMilet
10/29/2024, 7:46 AMflaneur233
10/29/2024, 7:59 AMAsukaMilet
10/29/2024, 8:08 AMAsukaMilet
10/29/2024, 8:08 AMAsukaMilet
10/29/2024, 8:10 AMAsukaMilet
10/29/2024, 8:12 AMAsukaMilet
10/29/2024, 8:14 AMmax_cache_size_bytes is 16GB, then the ghost queue is initialized to 1.6GB
Obviously, if there is no size aware eviction, our LRU is too big to hold a bunch of Paths. Doesn't work as a filter at allflaneur233
10/29/2024, 8:16 AMflaneur233
10/29/2024, 8:20 AMAsukaMilet
10/29/2024, 8:20 AMflaneur233
10/29/2024, 8:21 AMAsukaMilet
10/29/2024, 8:22 AMflaneur233
10/29/2024, 8:22 AMflaneur233
10/29/2024, 8:23 AMflaneur233
10/29/2024, 8:25 AMghost_queue_size config might already makes senses to me instead of calculating it with max_cache_size_bytes ๐คAsukaMilet
10/29/2024, 8:25 AMflaneur233
10/29/2024, 8:27 AMghost_queue_size config could make it works for me ๐คAsukaMilet
10/29/2024, 8:30 AMAsukaMilet
10/29/2024, 8:31 AMAsukaMilet
10/29/2024, 8:32 AMAsukaMilet
10/29/2024, 8:34 AMflaneur233
10/29/2024, 8:37 AMAsukaMilet
10/29/2024, 8:38 AM