logoalt Hacker News

ori_byesterday at 1:07 AM2 repliesview on HN

It's 4k on x86 as well. Doesn't seem to hurt so bad -- at least, not enough to explain the risc-v performance gap.


Replies

twoodfinyesterday at 1:47 AM

Hmm? x86 has supported much larger “huge” page sizes for ages.

show 1 reply
jablyesterday at 11:00 AM

x86 has decades of knowhow and a zillion transistors to spend on making the memory pipeline, TLB caching & prefetching etc. etc. really really good. They work as well as they do despite the 4k base page size, not because of it.

If you'd start from a clean sheet today you'd probably end up with a somewhat bigger base page size. Not hugely larger though, as that wastes a lot of memory for most applications. Maybe 16k like some ARM chips use?