Show Your Support: Did you know that the hundreds of articles written on Phoronix each month are mostly authored by one individual? Phoronix.com doesn't have a whole news room with unlimited resources and relies upon people reading our content without blocking ads and alternatively by people subscribing to Phoronix Premium for our ad-free service with other extra features.
Tencent Updates Their "Direct Memory File-System" Proposal For Linux
The focus of Tencent's DMEMFS is all about avoiding the bits of memory saved by removing the struct page that is traditionally associated with each physical memory. It's tiny and not much overhead for even high-end desktops today, but when it comes to massive servers and other deployments by hyperscalers, the memory savings can be beneficial. Tencent engineers estimate that by avoiding the struct page for each physical page for guest memory on a server with 320G of RAM, they can save roughly 5G of memory with DMEMFS.
DMEMFS allows carving out a defined portion of the system memory that is then reserved and can be mounted for user-space access like a traditional Linux file-system. QEMU can then be configured to use that mounted DMEMFS area as the memory backing store when launching virtual machines.
With this first updated patch-set to DMEMFS since October, the Direct Memory File-System patches have been re-based against Linux 5.10 Git and other low-level improvements made.
This implementation amounts to just over 3k lines of code. That's where things are at right now while awaiting a second round of review on these patches for possible inclusion into mainline in the future.