Efficiently merging non-identical pages in kernel same-page merging (ksm) for efficient and improved memory deduplication and security
AssigneeIntel Corporation
InventorsReese KUPER, Ren WANG, Yifan YUAN
Life of this patent
Estimating the term…
Loading patent…
AssigneeIntel Corporation
InventorsReese KUPER, Ren WANG, Yifan YUAN
Estimating the term…
Methods and apparatus for efficiently merging non-identical pages in Kernel Same-page Merging (KSM) for efficient and improved memory deduplication and security. The methods and apparatus identify memory pages with similar data and selectively merge those pages based on criteria such as a threshold. Memory pages in memory for a computing platform are scanned to identify pages storing similar but not identical data. A delta record between the similar memory pages is created, and it is determined whether a size of the delta (i.e., amount of content that is different) is less than a threshold. If so, the delta record is used to merge the pages. In one aspect, operations for creating delta records and merging the content of memory pages using delta records is offloaded from a platform's CPU. Support for memory reads and memory writes are provided utilizing delta records, including merging and unmerging pages under applicable conditions.
A method for performing Kernel Same-page Merging (KSM), comprising:
A computing platform comprising:
A non-transitory machine-readable medium have instructions stored thereon configured to be executed on central processor unit (CPU) of a System on a Chip (Soc) in a computing platform, the SoC including an accelerator enabled to create delta records between first and second buffers and produce merged buffers using delta records, wherein execution of the instructions enables the computing platform to:
Dependencies are inferred from the claim text.