The Phaseout of the Mmap() File Operation in Linux
Posted4 months agoActive3 months ago
lwn.netTechstory
calmneutral
Debate
40/100
Linux KernelMmap() System CallFile Operations
Key topics
Linux Kernel
Mmap() System Call
File Operations
The Linux kernel is phasing out the mmap() file operation, but not the mmap() system call, sparking discussion about the implications and historical context of this change.
Snapshot generated from the HN discussion
Discussion Activity
Moderate engagementFirst comment
8m
Peak period
10
96-108h
Avg / period
6
Comment distribution24 data points
Loading chart...
Based on 24 loaded comments
Key moments
- 01Story posted
Sep 25, 2025 at 5:16 PM EDT
4 months ago
Step 01 - 02First comment
Sep 25, 2025 at 5:24 PM EDT
8m after posting
Step 02 - 03Peak activity
10 comments in 96-108h
Hottest window of the conversation
Step 03 - 04Latest activity
Sep 29, 2025 at 11:47 PM EDT
3 months ago
Step 04
Generating AI Summary...
Analyzing up to 500 comments to identify key contributors and discussion patterns
ID: 45379196Type: storyLast synced: 11/20/2025, 12:29:33 PM
Want the full context?
Jump to the original sources
Read the primary article or dive into the live Hacker News thread when you're ready.
Or all sorts of things in /proc/ and /sys/.
And the sheer nastiness of PPID 0.
And ...
This is a big, big reorg even for Linux.
[1] To be fair, most of which probably don't support mapping.
Also, it's not that the core kernel is ceasing to provide a facility that drivers depended on; rather, it's ceasing to depend on a facility that drivers provided. But doing so involves adding this new mmap_prepare() thing, which is making the kernel depend on a new facility that drivers now must provide, I guess?
[0] https://en.m.wikipedia.org/wiki//dev/zero
Or was some amount heap memory always just mapped into the process in early UNIX so that the need to map more pages only appeared as programs started to demand more heap memory than whatever the standard amount was?
https://news.ycombinator.com/item?id=17532285
>DonHopkins on July 14, 2018 | parent | context | favorite | on: The everything-is-a-file principle – Linus Torvald...
>I always wanted /dev/zero, which is used to mmap zeros into memory, to be more general and use the device minor number to define which byte gets mapped, so you could mknod /dev/seven with a minor number of 7, to provide an infinite source of beeps!