Linux Patches Would Allow RISC-V To Use A 64K Page Size
([RISC-V] 6 Hours Ago
RISC-V 64K Page Size)
- Reference: 0001510415
- News link: https://www.phoronix.com/news/Linux-RFC-v2-64K-RISC-V-PS
- Source link:
Patches from a Bytedance engineer for the Linux kernel allow for overcoming the current 4K page size limitation of RISC-V and introduce a new 64K page size option.
The "request for comments" patches from Bytedance engineer Xu Lu allow for overcoming the limitation of the MMU and allow for a larger bage size on RISC-V beyond the current 4K page size.
"This patch series attempts to break through the limitation of MMU and supports larger base page on RISC-V, which only supports 4K page size now. The key idea is to always manage and allocate memory at a granularity of 64K and use SVNAPOT to accelerate address translation."
No performance benchmarks were shown of this new 64K page size option for RISC-V, but on ARM it can [1]equate to a significant performance improvement for a 64K vs. 4K page size.
Those interested can find the 64K RISC-V page size kernel patch series with all 21 patches in full via [2]the kernel mailing list .
[1] https://www.phoronix.com/review/ampereone-64k-linux611
[2] https://lore.kernel.org/lkml/20241205103729.14798-1-luxu.kernel@bytedance.com/
The "request for comments" patches from Bytedance engineer Xu Lu allow for overcoming the limitation of the MMU and allow for a larger bage size on RISC-V beyond the current 4K page size.
"This patch series attempts to break through the limitation of MMU and supports larger base page on RISC-V, which only supports 4K page size now. The key idea is to always manage and allocate memory at a granularity of 64K and use SVNAPOT to accelerate address translation."
No performance benchmarks were shown of this new 64K page size option for RISC-V, but on ARM it can [1]equate to a significant performance improvement for a 64K vs. 4K page size.
Those interested can find the 64K RISC-V page size kernel patch series with all 21 patches in full via [2]the kernel mailing list .
[1] https://www.phoronix.com/review/ampereone-64k-linux611
[2] https://lore.kernel.org/lkml/20241205103729.14798-1-luxu.kernel@bytedance.com/
phoronix