qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [patch] option -no-tsc for i386 with speedstep


From: Taras Glek
Subject: Re: [Qemu-devel] [patch] option -no-tsc for i386 with speedstep
Date: Mon, 25 Apr 2005 15:45:51 -0700
User-agent: Mozilla Thunderbird 1.0.2 (X11/20050404)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Filip Navara wrote:

> Jonas Maebe wrote:
>
>> On 25 Apr 2005, at 22:17, Massimo Dal Zotto wrote:
>>
>>> In the meantime until we find a better solution could you give
>>> us some explanation on why using a microseconds clock from
>>> gettimeofday instead of rdtsc the guest os clock runs always
>>> 20% slower?
>>
>>
>> Because a system call (which gettimeofday is) is very slow (two
>> context switches).
>
>
> I remember there was a Linux patch which changed the gettimeofday
> function to read the info from user mode shared page (which is
> updated by the kernel) and thus avoided the syscall overhead. Not
> sure if/when it was integrated into the official sources...
>
> (Once again Windows NT were ahead of time with this idea
> implemented way earlier ;-)

Another *solution* is to use kernel mode linux =). See
http://web.yl.is.s.u-tokyo.ac.jp/~tosh/kml/
It makes already low Linux syscall overhead much lower.

Tara
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCbXMfmzwUPloTW30RAg+7AKCh0jGnYhvRp0/qtwm36wXDrCxd2ACgpdMi
LBQsxo56m98yPvkAPFJ0PAQ=
=jpKR
-----END PGP SIGNATURE-----





reply via email to

[Prev in Thread] Current Thread [Next in Thread]