Menu

#159 Timer of guest is inaccurate

closed
nobody
None
5
2012-10-09
2007-11-05
yunfeng
No

I tried to build kernel on a linux guest with 2 vcpus, and measured the time by both guest timer and network timer.
The result is guest timer lower than network timer by 30% after about 3 minutes.

The time cost of the kernel build:
Guest timer: 181s
Network timer: 137s

Discussion

  • yunfeng

    yunfeng - 2007-11-29

    Logged In: YES
    user_id=1283543
    Originator: YES

    Here are some new test results for guest timer

    On rhel5 UP guest with 1G memory
    Realtime 3min
    Guesttime 21s

    On rhel5 guest with 4vcpus with 1G memory:
    Realtime 3min
    Guest 28s

    On 32e rhel4 UP guest and run workload
    Realtime 3min
    Guest 3min

    On IA32e RHEL4 guest with
    Realtime 3min
    Guest 3min15s

     
  • karmapolis

    karmapolis - 2008-01-10

    Logged In: YES
    user_id=1978506
    Originator: NO

    Also affects Windows XP guests. This bug wasn't present in kvm-35 but appeared shortly after that.

     
  • karmapolis

    karmapolis - 2008-01-10

    Logged In: YES
    user_id=1978506
    Originator: NO

    Also happens with only one vcpu.

     
  • yunfeng

    yunfeng - 2008-01-14

    Logged In: YES
    user_id=1283543
    Originator: YES

    on IA32e RHEL5 guest the timer is about 5x faster than network timer!
    If measure kernel build with both guest timer and network timer, data collected by guest timer is 55s but by network timer it's 281s.

     
  • stevie1024

    stevie1024 - 2008-02-23

    Logged In: YES
    user_id=2017347
    Originator: NO

    I filed a new bug (1900228) that I think is a more general bug description that causes this bug's behaviour.

     
  • yunfeng

    yunfeng - 2008-03-19

    Logged In: YES
    user_id=1283543
    Originator: YES

    This issue has been fixed after patches of kernel pit were checked in.

     

Log in to post a comment.

MongoDB Logo MongoDB