bee icon indicating copy to clipboard operation
bee copied to clipboard

extremely slow leveldb iteration during cache eviction

Open istae opened this issue 1 year ago • 3 comments

The leveldb iterator in the the cache.RemoveOldest function is extremely slow.

To remove one single entry, close to half a second is used. To remove a 1000 entries, close to 45 seconds is used.

As a result, some gateway nodes are struggling to fall under the allowed 1 million chunk capacity. image

image

istae avatar Feb 01 '24 14:02 istae

Attached is the cpu profile of bee 2 pprof.bee.samples.cpu.071.pb.gz cache_profile

istae avatar Feb 01 '24 14:02 istae

image

istae avatar Feb 01 '24 14:02 istae

one clue is localstore size may affect things as well.

istae avatar Feb 01 '24 15:02 istae