mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-11-28 23:19:00 +00:00
While investigating performance problems around 'docker run' times, it was observed that a large amount of time was spent in network namespace creation. Of that time, a large portion involved waiting for RCU grace periods to elapse. Increasing HZ causes the periodic timer to check for quiesced periods more frequently, which consequently reduces the amount of time RCU callers spend waiting for grace periods and in barrier waits. By itself, this change took the amount of time to execute a 'docker run hello-world' down to 570ms from over 2000ms on 4.14, and down to 390ms from 1260 on 4.17 and 4.18. Signed-off-by: Krister Johansen <krister.johansen@oracle.com>
See ../docs/kernels.md for more information on kernel builds.