quickemu-project / quickemu

Quickly create and run optimised Windows, macOS and Linux virtual machines
MIT License
10.73k stars 470 forks source link

Add support for hugepage #191

Closed hurleychin closed 2 years ago

hurleychin commented 2 years ago

Hugepages can greatly improve performance.

Screenshot_win10_2021-10-30_02:55:18 核心硬件评测_hugepage

github-actions[bot] commented 2 years ago

Hello there 👋 Thanks for submitting your first issue to the Quickemu project 🐛 We'll try and take a look at your issue soon ⏲

In the meantime you might want to join the Wimpys World Discord 🗣 where we have a large community of Linux 🐧 enthusiasts and passionate open source developers 🧑‍💻

You might also be interested in following Wimpys World Twitch 📡 channel where Wimpy streams let's code video, including this project, several times a week. A back catalog of past live stream and other Linux related content is available on Wimpys World YouTube 📺 channel.

flexiondotorg commented 2 years ago

I've looked into this and hugepages is managed via KVM. Many distros automatically enable feasible hugepage moutpoints via qemu/KVM system configuration or systemd by default. For example, Ubuntu and Debian report Hugepagesize: 2048 kB by default.

Therefore adding hugepage management via quickemu is risky since it is will be possible to tread on pre-existing hugepage configuration.

Therefore, if you are using a distribution that doesn't enable hugepages by default, it is left as an exercise for the user to configure hugepage appropriately if so desired.