[DragonFlyBSD - Bug #3299] DragonFlyBSD reports utterly wrong uptime (most of the time, right after booting in)

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Tue Aug 19 23:32:05 PDT 2025


Issue #3299 has been updated by liweitianux.


daftaupe wrote in #note-8:
> I could reproduce on a KVM vm of mine after a random reboot
> 
> [...]
> 
> I will try to keep it on for some time see if that resolves by itself after some time, but time is already synchronized and accurate
> [...]
> 
> Here is the full dmesg output
> [...]
> 
> And the full qemu command line 
> [...]
> 
> It's running on Linux 6.1.3 with qemu 7.2.0

Hi daftaupe,

Could you still reproduce this bug?

I'd like to know some more information. Please test:

1. Disable dntpd, and show the output of

<pre>
$ date
$ uptime
$ sysctl kern.boottime
$ sysctl kern.cputimer
$ sysctl -a | grep tsc
$ dmesg | grep -Ei 'cputimer|TSC|i8254|HPET|APIC|clock|timer|rtc|warning'
</pre>

2. Add @hw.tsc_cputimer_force=1@ to @/boot/loader.conf@, then retry to reproduce the bug, and gather the above information.

Thanks.

Aaron

----------------------------------------
Bug #3299: DragonFlyBSD reports utterly wrong uptime (most of the time, right after booting in)
http://bugs.dragonflybsd.org/issues/3299#change-14598

* Author: adrian
* Status: In Progress
* Priority: Normal
* Category: Userland
* Target version: 6.4
* Start date: 2021-10-25
----------------------------------------
System environment:

<pre>
root at dragonflybsd /home/adrian
# uname -a
DragonFly dragonflybsd.v-zone.lan.dac 6.0-RELEASE DragonFly v6.0.1-RELEASE #1: Thu Oct 14 18:25:27 CEST 2021     adrian at dragonflybsd.v-zone.lan.dac:/usr/obj/usr/src/sys/X86_64_GENERIC  x86_64
</pre>

Running DragonFlyBSD inside a Debian KVM(qemu) virtualization as a guest with hardware acceleration,
the system reports a very wrong uptime, issuing "uptime".

Gkrellm even reports a negative, very strange uptime! Check by running gkrellm from the pkg system.

After ~2 days of uptime, I see this wrong uptime:

<pre>
root at dragonflybsd /home/adrian
# uptime
6:35PM  up 42954 days, 10:01, 2 users, load averages: 0,00 0,00 0,00
</pre>

The error also was present with Version 6.0.0. This is now Version 6.0.1 and the bug is still there.

Happens about three of four times, the bug is present right after booting into the system.

Thank you for taking the time reading this.

Sincerely,

Adrian Kieß





-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account


More information about the Bugs mailing list