← Back to feed

A neat trick I found for reusing physical memory

IT ยท 2026-10-23 07:01

The author demonstrates using memfd_create to create an in-memory file, mmap it with template content, and leverage copy-on-write to duplicate memory blocks on demand, avoiding upfront allocation overhead.

Source: sebsite.pw


Auto-generated summary for reference only. RSS