Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
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.