Setting Clock Source for VMs on Linux x86-64
Oracle recommends that you set the clock source to tsc for better performance in virtual environments (VM) on Linux x86-64.
As the
rootuser, check if thetscclock source is available on your system.# cat /sys/devices/system/clocksource/clocksource0/available_clocksource kvm-clock tsc acpi_pmIf the
tscclock source is available, then settscas the current clock source.# echo "tsc">/sys/devices/system/clocksource/clocksource0/current_clocksourceVerify that the current clock source is set to
tsc.# cat /sys/devices/system/clocksource/clocksource0/current_clocksource tscUsing any text editor, append the
clocksourcedirective to theGRUB_CMDLINE_LINUXline in the/etc/default/grubfile to retain this clock source setting even after a reboot.GRUB_CMDLINE_LINUX="rd.lvm.lv=ol/root rd.lvm.lv=ol/swap rhgb quiet numa=off transparent_hugepage=madvise clocksource=tsc"Run the following command to update
GRUBand ensure that these settings are retained even after a reboot:# grub2-mkconfig -o /boot/grub2/grub.cfg