Learning Slab Classes to Alleviate Memory Holes in Memcached
Devang Jhabakh Jai, Sudeep Das

TL;DR
This paper introduces a greedy algorithm that dynamically reconfigures slab classes in Memcached to reduce memory wastage caused by memory holes, improving memory efficiency based on learned traffic patterns.
Contribution
The paper presents a novel greedy algorithm that adapts slab class configurations in Memcached to minimize memory holes, a problem not effectively addressed by previous static approaches.
Findings
Significant reduction in memory wastage observed.
Effective adaptation to traffic pattern changes.
Improved memory utilization in Memcached.
Abstract
We consider the problem of memory holes in slab allocators, where an item entered into memory occupies more memory than it actually requires due to a difference between the nearest larger slab class size and the size of the entered item. We solve this problem by using a greedy algorithm that analyses the pattern of the sizes of items previously entered into the memory and accordingly re-configuring the default slab classes to better suit the learned traffic pattern to minimize memory holes. Using this approach for a consistent data pattern, in our findings, has yielded significant reductions in memory wastage. We consider Memcached as it is one of the most widely used implementations of slab allocators today, and has native support to reconfigure its default slab classes.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsParallel Computing and Optimization Techniques · Advanced Neural Network Applications · Optimization and Search Problems
