Explore the intricacies of Kernel Samepage Merging (KSM) and its implementation at Meta in this 43-minute conference talk from the Linux Plumbers Conference. Delve into the memory de-duplication scheme that identifies and shares duplicate pages to alleviate memory bottlenecks. Discover how a real-world application utilizes KSM, its configuration for optimal performance, and the resulting memory savings. Examine the current limitations of KSM and learn about proposed future improvements aimed at reducing CPU consumption. Gain insights into "adaptive page scanning" and an advisor system for selecting optimal page scanning values. Analyze the significant reduction in CPU consumption of the ksmd background thread achieved through these enhancements.
Kernel Samepage Merging at Meta and Future Improvements - Linux Plumbers Conference
Linux Plumbers Conference via YouTube
Overview
Syllabus
Kernel Samepage Merging (KSM) at Meta and Future Improvements to KSM -Stefan Roesch
Taught by
Linux Plumbers Conference