ZONE_DEVICE and the future of struct page
ZONE_DEVICE and the future of struct page
Posted Mar 21, 2017 19:28 UTC (Tue) by roc (subscriber, #30627)Parent article: ZONE_DEVICE and the future of struct page
Posted Mar 21, 2017 21:49 UTC (Tue)
by willy (subscriber, #9762)
[Link]
We wouldn't let, say, FR-V or Alpha disrupt persistent memory features, but I think SPARC64 is still relevant.
Posted Mar 22, 2017 6:33 UTC (Wed)
by flussence (guest, #85566)
[Link] (4 responses)
Posted Mar 22, 2017 22:04 UTC (Wed)
by roc (subscriber, #30627)
[Link] (3 responses)
Suppose for the sake of argument that the only two options are #1 drop SPARC64 support or #2 all architectures must waste 64 bytes per 4K page. If the "don't break things" rule forces choice #1 then that means Linux performance on much more common systems is being dragged down by legacy baggage (especially after more similar decisions accumulate).
Now suppose there's another option, #3 waste no memory and do a bunch of rearchitecting of the SPARC64 port to handle it. That sounds good, but what if the SPARC64 maintainer doesn't want to do the work? If you're 100% committed to "don't break things" then you can't motivate them by threatening to drop SPARC64 support. Instead the burden of reworking SPARC64 falls on whoever's implementing the core feature. That really sucks for various reasons, but in particular you're making core development that benefits many users much more difficult for the sake of some relatively very small number of users.
"Lazy" is a pejorative term implying moral deficiency. There's nothing morally deficient about being honest about taking these tradeoffs seriously.
Posted Mar 23, 2017 22:25 UTC (Thu)
by djbw (subscriber, #78104)
[Link] (2 responses)
Once we mandate struct page for DAX this appears to open up several clean up opportunities like re-using more of the the core page cache implementation and unifying device-DAX / filesystem-DAX.
Posted Mar 23, 2017 23:39 UTC (Thu)
by Cyberax (✭ supporter ✭, #52523)
[Link] (1 responses)
Posted Mar 24, 2017 0:15 UTC (Fri)
by djbw (subscriber, #78104)
[Link]
ZONE_DEVICE and the future of struct page
ZONE_DEVICE and the future of struct page
ZONE_DEVICE and the future of struct page
ZONE_DEVICE and the future of struct page
ZONE_DEVICE and the future of struct page
ZONE_DEVICE struct page != ZONE_NORMAL struct page in terms of write rate