Skip to content

Commit

Permalink
Switch default clocksource to 'tsc'
Browse files Browse the repository at this point in the history
The 'tsc' clocksource is significantly faster than 'xen', and since
Qubes OS does not support VM migration, it is safe to use.
In synthetic benchmarks, it improves performance over tenfold, but
significant improvements in real world use cases is visible too.

Apply the change to in-VM kernel too.

Fixes QubesOS/qubes-issues#7404
  • Loading branch information
marmarek committed Apr 20, 2022
1 parent 83dcb66 commit 0b6cab1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions boot/grub.qubes
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX swiotlb=8192"
# add noresume - to avoid a 30 second hang on Debian HVM boot as it tries to
# locate swap space for hibernation
GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX noresume"
# switch default clocksource to 'tsc' - it's much faster, and safe under Qubes OS
GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX clocksource=tsc"
GRUB_TIMEOUT=0

0 comments on commit 0b6cab1

Please sign in to comment.