qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Timing/Clock problem with a Windows Host
@ 2005-08-25  7:50 vdr
  2005-08-25  9:46 ` Andreas Mohr
  2005-08-25 11:40 ` Stefan Kisdaroczi
  0 siblings, 2 replies; 5+ messages in thread
From: vdr @ 2005-08-25  7:50 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 241 bytes --]

Hi List,
I am working with a Linux client ( kernel 2.6.12 ) on a Win2K QEMU Host.
On the client the clock is "crawling" with factor 0.1 (it takes about 10 seconds for a "sleep 1"). Any hints how to correct this behaviour ?
Bye
Helmut


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] Timing/Clock problem with a Windows Host
  2005-08-25  7:50 [Qemu-devel] Timing/Clock problem with a Windows Host vdr
@ 2005-08-25  9:46 ` Andreas Mohr
  2005-08-25 11:40 ` Stefan Kisdaroczi
  1 sibling, 0 replies; 5+ messages in thread
From: Andreas Mohr @ 2005-08-25  9:46 UTC (permalink / raw)
  To: qemu-devel

Hi,

On Thu, Aug 25, 2005 at 09:50:16AM +0200, vdr@helmutauer.de wrote:
> Hi List,
> I am working with a Linux client ( kernel 2.6.12 ) on a Win2K QEMU Host.
> On the client the clock is "crawling" with factor 0.1 (it takes about 10 seconds for a "sleep 1"). Any hints how to correct this behaviour ?

Could be APIC: try "noapic" boot parameter. Also try the troubleshooting
mentioned in various Linux dynticks discussions, e.g. the CK kernel list.

Toggling ACPI/APM use ("acpi=on/off", "apm=on/off"?) on boot might also help.

Time factor 10 sounds familiar to me, from recent discussions somewhere.

A modern PC has various timer sources (PIT, ACPI timers, CPU timers, ...),
so you need to make sure to experiment with Linux using different ones,
in the kernel configuration.

Andreas Mohr

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] Timing/Clock problem with a Windows Host
  2005-08-25  7:50 [Qemu-devel] Timing/Clock problem with a Windows Host vdr
  2005-08-25  9:46 ` Andreas Mohr
@ 2005-08-25 11:40 ` Stefan Kisdaroczi
  2005-08-25 14:03   ` Adrian Smarzewski
  1 sibling, 1 reply; 5+ messages in thread
From: Stefan Kisdaroczi @ 2005-08-25 11:40 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 942 bytes --]

Hi,

AFAIK, the linux clocktick changed from linux 2.4 to 2.6 from 100hz to 1khz, but im not sure.
However, there is a patch[2] on a japanese site[1], which worked for me for a other OS where i had the same problem.
You have to start qemu with the option "-hitimer" after you patched and built it.

[1] http://www.h7.dion.ne.jp/~qemu-win/
[2] http://www.h7.dion.ne.jp/~qemu-win/download/qemu-200412xx-w32pit1ms-test4.patch

bye kisda

vdr@helmutauer.de wrote:
> Hi List,
> I am working with a Linux client ( kernel 2.6.12 ) on a Win2K QEMU Host.
> On the client the clock is "crawling" with factor 0.1 (it takes about 10 seconds for a "sleep 1"). Any hints how to correct this behaviour ?
> Bye
> Helmut
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 187 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] Timing/Clock problem with a Windows Host
@ 2005-08-25 13:55 vdr
  0 siblings, 0 replies; 5+ messages in thread
From: vdr @ 2005-08-25 13:55 UTC (permalink / raw)
  To: Qemu-devel

[-- Attachment #1: Type: text/plain, Size: 732 bytes --]

> Hi,
> 
> AFAIK, the linux clocktick changed from linux 2.4 to 2.6 from 100hz to 1khz, but im not sure.
> However, there is a patch[2] on a japanese site[1], which worked for me for a other OS where i had the same problem.
> You have to start qemu with the option "-hitimer" after you patched and built it.
> 
> [1] http://www.h7.dion.ne.jp/~qemu-win/
> [2] http://www.h7.dion.ne.jp/~qemu-win/download/qemu-200412xx-w32pit1ms-test4.patch
> 
> bye kisda
> 
>

Thanks that did the trick. Unfortunately that causes a cpu load of 99 percent, so it's not really useful. I also tried some other kernel parameters like noapic or acpi but without sussess. It looks like the BIOS is not able to deal with ACPI.

ByeHelmut


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] Timing/Clock problem with a Windows Host
  2005-08-25 11:40 ` Stefan Kisdaroczi
@ 2005-08-25 14:03   ` Adrian Smarzewski
  0 siblings, 0 replies; 5+ messages in thread
From: Adrian Smarzewski @ 2005-08-25 14:03 UTC (permalink / raw)
  To: qemu-devel

Stefan Kisdaroczi wrote:
> AFAIK, the linux clocktick changed from linux 2.4 to 2.6 from 100hz to 1khz, but im not sure.

Maybe that's why my winxp host timer goes much faster than original?
even taskbar-clock time is incorrect.
how can I fix it? I'm using -localtime option.

-- 
Pozdrowienia,
Adrian Smarzewski

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-08-25 14:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-25  7:50 [Qemu-devel] Timing/Clock problem with a Windows Host vdr
2005-08-25  9:46 ` Andreas Mohr
2005-08-25 11:40 ` Stefan Kisdaroczi
2005-08-25 14:03   ` Adrian Smarzewski
  -- strict thread matches above, loose matches on Subject: below --
2005-08-25 13:55 vdr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).