riscv-privileged-20211203.pdf P74
For many applications, the choice of page size has a substantial performance impact.
对于许多应用程序,页面大小的选择对性能有很大影响。
A large page size increases TLB reach and loosens the associativity constraints on virtually indexed, physically tagged caches.
较大的页面大小会增加TLB覆盖范围,并放松对虚拟索引、物理标记缓存的关联性约束。
At the same time, large pages exacerbate internal fragmentation, wasting physical memory and possibly cache capacity.
同时,大页面加剧了内部碎片,浪费了物理内存,可能还浪费了缓存容量。
After much deliberation, we have settled on a conventional page size of 4 KiB for both RV32 and RV64.
经过深思熟虑,我们在RV32和RV64上,固定了页面大小为 常规页面大小(4KB)
We expect this decision to ease the porting of low-level runtime software and device drivers.
我们希望这一决定能够简化低级运行时软件和设备驱动程序的移植。
The TLB reach problem is ameliorated by transparent superpage support in modern operating systems [2].
现代操作系统中的透明超页支持改善了TLB到达问题[2]。
Additionally, multi-level TLB hierarchies are quite inexpensive relative to the multi-level cache hierarchies whose address space they map.
此外,与映射其地址空间的多级缓存层次相比,多级TLB层次相当便宜。