Our development server is running debian 4.0 (etch) as a guest under KVM. For the longest time, it had sporadic issues where many processes would appear to just hang. We finally found the issue - the clocksource was still configured as tsc from when it was running on vmware server. I switched it to "pit" and the problems disappeared.

Unfortunately, I just discovered that under high cpu and high disk load (large number of selects/updates on a locally hosted db), we start to see clock skew on the guest. When running under high disk load and moderaly high cpu load for half an hour, we ended up with a clock skew of about 200 seconds. Just this morning I noticed a 7 second skew.

Is this related to the clocksource, and if so, which is a better choice? I haven't been able to find a lot of information online explaining the difference between each clock source.

cat /sys/devices/system/clocksource/clocksource0/available_clocksource reports:

jiffies hpet tsc pit

Due to supporting our legacy applications, I cannot upgrade this server to a newer version that includes kvm_clock.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.