3 ms·
"Android mandates 4kb page sizes" I think the language they used is misleading. It's more likely Android has introduced some bugs from assuming page sizes are
by tyingq 6y ago
"Android mandates 4kb page sizes"
I think the language they used is misleading. It's more likely Android has introduced some bugs from assuming page sizes are always 4kb.
"Whilst Ubuntu and other standard distros don't care?"
Many of the various different architectures Linux runs on have page sizes that aren't 4kb. It's typically defined in a constant called "PAGE_SHIFT" in the arch/<ARCH>/include/asm/page.h file for the architecture.
For example, PAGE_SHIFT is 13 for OpenRisc: https://github.com/torvalds/linux/blob/fcadab740480e0e0e9fa9bd272acd409884d431a/arch/openrisc/include/asm/page.h#L21 https://github.com/torvalds/linux/blob/fcadab740480e0e0e9fa9...
A quick way to convert that to the page size:
$ echo "2^13" | bc
8192