From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 19724 invoked from network); 5 Feb 2022 07:41:35 -0000 Received: from 4ess.inri.net (216.126.196.42) by inbox.vuxu.org with ESMTPUTF8; 5 Feb 2022 07:41:35 -0000 Received: from mail-pl1-f181.google.com ([209.85.214.181]) by 4ess; Fri Feb 4 21:04:17 -0500 2022 Received: by mail-pl1-f181.google.com with SMTP id t9so4412573plg.13 for <9front@9front.org>; Fri, 04 Feb 2022 18:04:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mforney.org; s=google; h=mime-version:from:date:message-id:subject:to; bh=hEO1G9ZiQK4dwBAeapC94C7Mo50v9QhJkoRO3SmXyXs=; b=zDPEXuOg3QirklWX2l/wkHQlCbaZ9CN7aVFJAY8KuZEWr998xXY37fLKF3WYEYZvTq aI0+n5Mxo9JoGmD4APbkVySdns1omg8GcRVMz8IeZHhmENGA/HFIRCvCwDkvh7seQNSL JLnKBSijTc/kpP6Bvk2HC81Hf6cyhveRH4TI0KqiQizkloyuenA92IejEeNGe0qy29lA 9t3dpQfwGo15HBQEcPN211M9Qrk/7aK1DcDJXkuGZeRowHhyubHOm2v8qTXiEof4iKKj nNULUZmq0luo2atnPwFObfNArWgZT3K0oMz7l4uS5Pjk/tRX/viS0f81r9ixzKFEqd0F bkNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=hEO1G9ZiQK4dwBAeapC94C7Mo50v9QhJkoRO3SmXyXs=; b=IMZNchuIaF8X0IQSEhhPT/F2nxdEdhjlAHDZ4TiHBcQUPcunO2sq/KPpL73Kx23as4 j9sDSA+uuPFpg1AGSu57BHlRiAL2oUg2ZgoqrPdaTA1cwLQV/kj3p1ZzeGBFkEy45uXe ptk0v4feRkDYeOtEmTvPHu2tma9nERfFSXrNr10O8DOriOK5G5yHmfr3WUBja1HszE4/ 9jexmp3wWcmZz/4T3wcoOxq4vxu95ii9V5eB4cq+1uh1j1eRv6bGD7+4hi3HA+j8s0KB IoGjwYb1HOjNybEVPk9pNV99N3tnPoVT69pct/XP5VFQbOc/ToxO9H0ZiZ94wOQlAc2Q Za9w== X-Gm-Message-State: AOAM532G/AzUkDNGG8nIuo/ljtxVhYBGn+64CHoSIYWcbtC6m0k0Z45e nQwRJnItHipIYkZP2uoqJ+Jhse8X495CAV+rERx2aUV02WEBmcyQ X-Google-Smtp-Source: ABdhPJzveahsmC2G+XMjP6pKaGMsxJ/aC4XrAClMNNXDFdIfedcNwrD/ht7LfZMOCaxa8x6F3RIt+Uqf6H8usp1dYg0= X-Received: by 2002:a17:90b:38ce:: with SMTP id nn14mr6270314pjb.159.1644026650504; Fri, 04 Feb 2022 18:04:10 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a05:7300:57a0:b0:4c:5985:ead1 with HTTP; Fri, 4 Feb 2022 18:04:09 -0800 (PST) X-Originating-IP: [98.45.152.168] From: Michael Forney Date: Fri, 4 Feb 2022 18:04:09 -0800 Message-ID: To: 9front@9front.org Content-Type: text/plain; charset="UTF-8" List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: leveraged virtualized SQL over AJAX markup enhancement Subject: [9front] qemu clock/timer issue Reply-To: 9front@9front.org Precedence: bulk I was recently running 9front in a VM on linux (qemu, with -enable-kvm), and noticed several weird timing/clock issues. The date command gives wildly varying results +- 1 minute: cpu% date Fri Feb 4 17:39:23 PST 2022 cpu% date Fri Feb 4 17:39:12 PST 2022 cpu% date Fri Feb 4 17:40:19 PST 2022 cpu% date Fri Feb 4 17:39:18 PST 2022 `sleep 1` exits pretty much instantly, stats moves through the entire width in a second or two, and clicking in scrollbars starts repeating immediately. I notice the following messages in my dmesg: kvm: vcpu 3: requested 38141 ns lapic timer period limited to 200000 ns kvm: vcpu 1: requested 9449 ns lapic timer period limited to 200000 ns kvm: vcpu 2: requested 51204 ns lapic timer period limited to 200000 ns kvm: vcpu 0: requested 74421 ns lapic timer period limited to 200000 ns I don't remember this problem last time I ran 9front in qemu (around a year ago), so I looked through commit history and found one commit that seemed like it might be related: http://git.9front.org/plan9front/plan9front/a05bab362f66ddd6fa65f2e7cda9eaaa0217ec08/commit.html To check, I tried setting *nohpet=1 in my plan9.ini, which *seems* to have solved the problem, though I still see those same messages in dmesg on the linux host (but now the requested lapic timer period is always around 100000 ns or greater). Anyone know what's going on here?