VirtualBox

Changeset 100003 in vbox for trunk/src/VBox/VMM/VMMR3


Ignore:
Timestamp:
May 30, 2023 6:18:41 AM (20 months ago)
Author:
vboxsync
Message:

VMM/NEMR3Native-darwin-armv8: Lower the timespan when to start halting, bugref:10390

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/NEMR3Native-darwin-armv8.cpp

    r100001 r100003  
    10551055                uint64_t cNanoSecsVTimerToExpire = ASMMultU64ByU32DivByU32(cTicksVTimerToExpire, RT_NS_1SEC, (uint32_t)pVM->nem.s.u64CntFrqHz);
    10561056
    1057                 /* Our halt method doesn't work with sub millisecond granularity at the moment causing a huge slowdown. */
    1058                 if (cNanoSecsVTimerToExpire < 20 * RT_NS_1MS)
     1057                /*
     1058                 * Our halt method doesn't work with sub millisecond granularity at the moment causing a huge slowdown
     1059                 * + scheduling overhead which would increase the wakeup latency.
     1060                 * So only halt when the threshold is exceeded (needs more experimentation but 5ms turned out to be a good compromise
     1061                 * between CPU load when the guest is idle and performance).
     1062                 */
     1063                if (cNanoSecsVTimerToExpire < 5 * RT_NS_1MS)
    10591064                    return VINF_SUCCESS;
    10601065
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette