m00nman Posted February 28, 2023 Share Posted February 28, 2023 (edited) I've described most of these settings/features extensively here: However, it would be great if these were added to the image by default: 1. Add <timer name='hypervclock' present='yes'/> along with the reset of prerequisites to Windows 10/11 VMs by default. This will dramatically reduce idle CPU usage of these VMs 2. Add "ksmtuned" daemon to the image for controlling KSM (kernel samepage merging) to reduce RAM usage for those with multiple similar VMs and enable it by default. It only gets triggered at 80% RAM utilization by default. It's really just a shell script. 3. Add ability to limit maximum number of cores for a VM without actually pinning the cores to physical cores to let the host kernel distribute the load. Edited April 21, 2023 by m00nman 1 4 Quote Link to comment
SimonF Posted March 26, 2023 Share Posted March 26, 2023 On 2/28/2023 at 5:16 AM, m00nman said: I've described most of these settings/features extensively here: However, it would be great if these were added to the image by default: 1. Add <timer name='hypervclock' present='yes'/> along with the reset of prerequisites to Windows 10/11 VMs by default. This will dramatically reduce idle CPU usage of these VMs 2. Add "ksmtuned" daemon to the image for controlling KSM (kernel samepage merging) to reduce RAM usage for those with multiple similar VMs and enable it by default. It only gets triggered at 80% RAM utilization by default. It's really just a shell script. 3. Add ability to have maximum number of cores for a VM without actually pinning the cores to physical cores to let the host kernel distribute the load. Hi I will review and look to see if we can add to next release after 6.12. Do you need hyperv as you can disable that also. Quote Link to comment
m00nman Posted April 7, 2023 Author Share Posted April 7, 2023 On 3/26/2023 at 6:13 AM, SimonF said: Hi I will review and look to see if we can add to next release after 6.12. Do you need hyperv as you can disable that also. Thank you for looking into this. Yes, hyperv enligtenments need to be on for hypervclock to work Quote Link to comment
huntastikus Posted August 5, 2023 Share Posted August 5, 2023 +1 vote for this feature! 1 Quote Link to comment
slidermike Posted August 15, 2023 Share Posted August 15, 2023 +1 vote from me. 1 Quote Link to comment
SimonF Posted August 28, 2023 Share Posted August 28, 2023 On 2/28/2023 at 5:16 AM, m00nman said: I've described most of these settings/features extensively here: However, it would be great if these were added to the image by default: 1. Add <timer name='hypervclock' present='yes'/> along with the reset of prerequisites to Windows 10/11 VMs by default. This will dramatically reduce idle CPU usage of these VMs 2. Add "ksmtuned" daemon to the image for controlling KSM (kernel samepage merging) to reduce RAM usage for those with multiple similar VMs and enable it by default. It only gets triggered at 80% RAM utilization by default. It's really just a shell script. 3. Add ability to limit maximum number of cores for a VM without actually pinning the cores to physical cores to let the host kernel distribute the load. Hi mOOnman, I have looked at the code and point 1 should already be there. Which version where you running the tests on? if ($domain['hyperv'] == 1 && $os_type == "windows") { $hyperv = "<hyperv> <relaxed state='on'/> <vapic state='on'/> <spinlocks state='on' retries='8191'/> <vendor_id state='on' value='none'/> </hyperv>"; $clock = "<clock offset='" . $domain['clock'] . "'> <timer name='hypervclock' present='yes'/> <timer name='hpet' present='no'/> </clock>"; } Do these need to be added also? <vpindex state='on'/> <synic state='on'/> <stimer state='on'/> Quote Link to comment
m00nman Posted August 29, 2023 Author Share Posted August 29, 2023 (edited) On 8/28/2023 at 6:25 AM, SimonF said: Hi mOOnman, I have looked at the code and point 1 should already be there. Which version where you running the tests on? if ($domain['hyperv'] == 1 && $os_type == "windows") { $hyperv = "<hyperv> <relaxed state='on'/> <vapic state='on'/> <spinlocks state='on' retries='8191'/> <vendor_id state='on' value='none'/> </hyperv>"; $clock = "<clock offset='" . $domain['clock'] . "'> <timer name='hypervclock' present='yes'/> <timer name='hpet' present='no'/> </clock>"; } Do these need to be added also? <vpindex state='on'/> <synic state='on'/> <stimer state='on'/> Hi SimonF, I believe it was version 6.11.x, the version that was current at the time of writing OP. Yes, it is my understanding that that you need all of the following options <vpindex state='on'/> <synic state='on'/> <stimer state='on'/>, additionally some people reported settings migratable='off' resolved issues with GPU PCIe passthrough stutter. migratable='on' is only useful when miograting VM from one host to another, and unraid does not support it anyway so it's safe to turn it off for everyone. Edited August 29, 2023 by m00nman Quote Link to comment
SimonF Posted November 5, 2023 Share Posted November 5, 2023 On 8/29/2023 at 7:05 PM, m00nman said: Hi SimonF, I believe it was version 6.11.x, the version that was current at the time of writing OP. Yes, it is my understanding that that you need all of the following options <vpindex state='on'/> <synic state='on'/> <stimer state='on'/>, additionally some people reported settings migratable='off' resolved issues with GPU PCIe passthrough stutter. migratable='on' is only useful when miograting VM from one host to another, and unraid does not support it anyway so it's safe to turn it off for everyone. I have created a PR to address these and make timers available from the GUI to change. https://github.com/unraid/webgui/pull/1494 migratable is on PR https://github.com/unraid/webgui/pull/1474 1 2 Quote Link to comment
aarontry Posted February 29 Share Posted February 29 I just found this post through google search but I couldn't find the settings on the GUI. @SimonF Are these changes in the official release of 6.12.8? Quote Link to comment
SimonF Posted February 29 Share Posted February 29 3 hours ago, aarontry said: I just found this post through google search but I couldn't find the settings on the GUI. @SimonF Are these changes in the official release of 6.12.8? Next release i.e. 6.13 1 Quote Link to comment
aarontry Posted March 1 Share Posted March 1 Oh ok thanks. I thought the next release will be the 7. Quote Link to comment
SimonF Posted March 1 Share Posted March 1 2 hours ago, aarontry said: Oh ok thanks. I thought the next release will be the 7. Yes it maybe release as 7. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.