back

by MrBuddyCasino·12y ago·view on hn ↗
Interesting, if one ever needs to boost a memcache/Redis instance, this might actually work.

But what about virtualization? Can I use 1GB pages in a guest OS, or will the host OS still handle everything with 4k pages, nullifying any advantages?

1 comments
Hardware support for virtualization is actually one of the main things driving huge pages. For a TLB miss in a guest, you end up doing a nested page table walk. This is much more expensive with 4 KB pages (i.e. as opposed to 2 MB).

Short answer: huge pages are a big win for virtualization.

Thanks, but do I have to enable them on the host or the guest OS? Or both? Sorry, I'm not familiar with the details of HW virtualization.
Both would be best, but they are actually independent.