Skip to content
  • Marcelo Tosatti's avatar
    cpuidle: add haltpoll governor · 2cffe9f6
    Marcelo Tosatti authored
    The cpuidle_haltpoll governor, in conjunction with the haltpoll cpuidle
    driver, allows guest vcpus to poll for a specified amount of time before
    halting.
    This provides the following benefits to host side polling:
    
            1) The POLL flag is set while polling is performed, which allows
               a remote vCPU to avoid sending an IPI (and the associated
               cost of handling the IPI) when performing a wakeup.
    
            2) The VM-exit cost can be avoided.
    
    The downside of guest side polling is that polling is performed
    even with other runnable tasks in the host.
    
    Results comparing halt_poll_ns and server/client application
    where a small packet is ping-ponged:
    
    host                                        --> 31.33
    halt_poll_ns=300000 / no guest busy spin    --> 33.40   (93.8%)
    halt_poll_ns=0 / guest_halt_poll_ns=300000  --> 32.73   (95.7%)
    
    For the SAP HANA benchmarks (where idle_spin is a parameter
    of the previous version of the patch, results should be the
    same):
    
    hpns ...
    2cffe9f6