3 ms·
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,
by MrBuddyCasino 13y ago
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?
- etep 13y agoHardware 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.
- MrBuddyCasino 13y agoThanks, 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.
- etep 13y agoBoth would be best, but they are actually independent.