From owner-freebsd-emulation@FreeBSD.ORG Sat Apr 4 16:26:34 2009 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 16DB71065672 for ; Sat, 4 Apr 2009 16:26:34 +0000 (UTC) (envelope-from nox@jelal.kn-bremen.de) Received: from smtp.kn-bremen.de (gelbbaer.kn-bremen.de [78.46.108.116]) by mx1.freebsd.org (Postfix) with ESMTP id 9E9E28FC1B for ; Sat, 4 Apr 2009 16:26:33 +0000 (UTC) (envelope-from nox@jelal.kn-bremen.de) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id 9F2791E005F9; Sat, 4 Apr 2009 00:40:49 +0200 (CEST) Received: from triton.kn-bremen.de (noident@localhost [127.0.0.1]) by triton.kn-bremen.de (8.14.3/8.14.3) with ESMTP id n33MNTDJ019600; Sat, 4 Apr 2009 00:23:29 +0200 (CEST) (envelope-from nox@triton.kn-bremen.de) Received: (from nox@localhost) by triton.kn-bremen.de (8.14.3/8.14.3/Submit) id n33MNTiq019599; Sat, 4 Apr 2009 00:23:29 +0200 (CEST) (envelope-from nox) Date: Sat, 4 Apr 2009 00:23:29 +0200 (CEST) From: Juergen Lock Message-Id: <200904032223.n33MNTiq019599@triton.kn-bremen.de> To: kalinoj1@iem.pw.edu.pl X-Newsgroups: local.list.freebsd.emulation In-Reply-To: Organization: home Cc: freebsd-emulation@freebsd.org Subject: Re: Recent qemu and timers issue X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Apr 2009 16:26:34 -0000 In article you write: > >Hi all, > >When running FreeBSD 8-CURRENT system inside a qemu machine (from the >latest port by nox@freebsd.org) I have strange timer problems in the >virtual machine. > What is the host running, also current? >My logs and console are full of messages like this: >calcru: runtime went backwards from 11248014678717988 usec to 119242 usec >for pid 60 (ps) > >calcru: runtime went backwards from 11248014678921829 usec to 2516605 usec >for pid 60 (ps) >calcru: runtime went backwards from 7014844 usec to 6270851 usec for pid 0 >(kernel) > >It even happens for some processes to die inside qemu guest. > Is this an smp host? You could try forcing qemu onto one cpu by doing like: cpuset -l 0 qemu ... >I tried to use all possible timers using sysctl, where I have: >TSC(800) HPET(900) ACPI-safe(850) i8254(0) dummy(-1000000) >None of these helped. > On the host or in the guest? You could also try passing `-clock dynticks' to qemu, although I kinda doubt it would make a difference... > >What's more I cannot corelate this with kern.hz value set for the system. I >tried to set it to the same value as host machine, bigger and smaller one. >It's not a kqemu issue, happens also with -no-kqemu switch. > Hmm without kqemu the tsc is emulated... weird. >I've already posted this issue on freebsd-current some time ago, but >unfortunately noone showed interest in it.. >(http://docs.freebsd.org/cgi/mid.cgi?3cd67c0d967b2464a4b40bd85582bf88) > Oh, I must have missed that one, sorry. >I would greatly appreciate any help or a hint - where should I look for >help on this issue. > If none of these help you could also try the qemu list: http://lists.nongnu.org/mailman/listinfo/qemu-devel (I think you can still post without being subscribed, altho in that case it may take a while for the post to get thru.) HTH, Juergen