3 ms·
Linux has remap_file_pages to create non-linear address space mappings. You can do the magic ring buffer dance with a single anon mmap + a single call to remap.
by gpderetta 11y ago
Linux has remap_file_pages to create non-linear address space mappings. You can do the magic ring buffer dance with a single anon mmap + a single call to remap.
On recent kernels the fast implementation of remap_file_pages has been removed because keeping non linear mapping from regressing was too much of a burden; instead a slow emulation has been added. The emulation should still be faster than doing the mmap dance by hand.