4 ms·
struct page in Linux is this taken to its logical conclusion. https://github.com/torvalds/linux/blob/89be9a83ccf1f88522317ce02f854f30d6115c41/include/linux/mm_
by rwmj 1y ago
struct page in Linux is this taken to its logical conclusion.
https://github.com/torvalds/linux/blob/89be9a83ccf1f88522317ce02f854f30d6115c41/include/linux/mm_types.h#L73 https://github.com/torvalds/linux/blob/89be9a83ccf1f88522317...
Edit: A bit of background: https://lwn.net/Articles/565097/ https://lwn.net/Articles/565097/
- tux3 1y agoFun fact: With the advent of folios, struct page is starting to undergo some major changes, with the eventual goal of shrinking it into a single 64bit number. But not to worry, the unreadable mess of C unions is not going away. struct folio will eventually absorb all those fields, and more. The only difference is there's a single folio for a whole set of pages, so moving the data there will save a significant amount of memory. https://github.com/torvalds/linux/blob/89be9a83ccf1f88522317ce02f854f30d6115c41/include/linux/mm_types.h#L381 https://github.com/torvalds/linux/blob/89be9a83ccf1f88522317...