Re: Qemu/nvmm - time in NetBSD guest system lags behind (with estd on host)

2022-09-19 Thread Matthias Petermann
Hello Michael and Paul, Am 05.09.2022 um 07:29 schrieb Michael van Elst: p...@whooppee.com (Paul Goyette) writes: You would have to modify the appropriate module's Makefile to add the HZ=1000 definition. ZFS doesn't use HZ, but in osnet/sys/sys/time.h it uses a value hz=100 to compute the

Re: Qemu/nvmm - time in NetBSD guest system lags behind (with estd on host)

2022-09-12 Thread Matthias Petermann
Hello all, On 12.09.22 15:00, Matthias Petermann wrote: CONCLUSION - Due to the root cause (well explained in [1]) the clocks in the VMs are potentially running slow. - The root cause can be mitigated by a higher HZ in the host kernel compared to the guest kernel. - ntpd can be

Re: Qemu/nvmm - time in NetBSD guest system lags behind (with estd on host)

2022-09-12 Thread Matthias Petermann
Hello all, Am 31.08.2022 um 11:29 schrieb Matthias Petermann: Hello all, I have a NetBSD 9.3 host that hosts multiple virtual machines (Qemu with nvmm acceleration). One peculiarity: I use estd on the host to control down the power consumption of the whole system via frequency scaling when

Re: Qemu/nvmm - time in NetBSD guest system lags behind (with estd on host)

2022-09-04 Thread Michael van Elst
p...@whooppee.com (Paul Goyette) writes: >You would have to modify the appropriate module's Makefile to add >the HZ=1000 definition. ZFS doesn't use HZ, but in osnet/sys/sys/time.h it uses a value hz=100 to compute the lbolt time. Does this help ? Index: external/cddl/osnet/sys/sys/time.h

Re: Qemu/nvmm - time in NetBSD guest system lags behind (with estd on host)

2022-09-04 Thread Paul Goyette
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, 5 Sep 2022, Robert Elz wrote: Date:Sun, 4 Sep 2022 10:52:31 +0200 From:Matthias Petermann Message-ID: <06b5d183-36c7-30bf-56be-8e507dffd...@petermann-it.de> | This is a cryptographically signed message in MIME

Re: Qemu/nvmm - time in NetBSD guest system lags behind (with estd on host)

2022-09-04 Thread Robert Elz
Date:Sun, 4 Sep 2022 10:52:31 +0200 From:Matthias Petermann Message-ID: <06b5d183-36c7-30bf-56be-8e507dffd...@petermann-it.de> | This is a cryptographically signed message in MIME format. | | --ms090201020102010003020302 | Content-Type:

Re: Qemu/nvmm - time in NetBSD guest system lags behind (with estd on host)

2022-09-04 Thread Matthias Petermann
Hi Robert, please allow me one mor more question On 04.09.22 10:42, Matthias Petermann wrote: Hi Robert, On 04.09.22 02:58, Robert Elz wrote: if that implies that you rebuilt the kernel with HZ=1000 and then used the zfs module built with HZ=100 then I think the first thing I would try

Re: Qemu/nvmm - time in NetBSD guest system lags behind (with estd on host)

2022-09-04 Thread Matthias Petermann
Hi Robert, On 04.09.22 02:58, Robert Elz wrote: if that implies that you rebuilt the kernel with HZ=1000 and then used the zfs module built with HZ=100 then I think the first thing I would try would be to rebuild the module(s?) with HZ=1000 Good point... I'll try that right away. This might

Re: Qemu/nvmm - time in NetBSD guest system lags behind (with estd on host)

2022-09-04 Thread Matthias Petermann
Hello, On 03.09.22 13:51, Matthias Petermann wrote: it took a while - in the meantime I could test the 1000HZ kernel on my system. Unfortunately I had an effect right at the first test, which forced me to roll back the change first. I hope I'll get around to recreating this on a less critical

Re: Qemu/nvmm - time in NetBSD guest system lags behind (with estd on host)

2022-09-03 Thread Robert Elz
Date:Sat, 3 Sep 2022 13:51:25 +0200 From:Matthias Petermann Message-ID: <8c9bbdbc-5583-7f2d-4e04-ab550b6ee...@petermann-it.de> I cannot really help with zfs issues, I know nothing about it, but: | The zfs module was loaded though, I also built the kernel with

Re: Qemu/nvmm - time in NetBSD guest system lags behind (with estd on host)

2022-09-03 Thread Matthias Petermann
Hello Robert, On 31.08.22 16:57, Robert Elz wrote: Date:Wed, 31 Aug 2022 13:42:13 +0200 From:Matthias Petermann Message-ID: | I'm also curious about the effect on energy consumption - i.e., whether | it's measurable. I'm sure its measurable, but I

Re: Qemu/nvmm - time in NetBSD guest system lags behind (with estd on host)

2022-08-31 Thread Robert Elz
ps: arithmetic has never really been my thing, the 10.1ms I mentioned should probably have been 11ms instead. kre

Re: Qemu/nvmm - time in NetBSD guest system lags behind (with estd on host)

2022-08-31 Thread Robert Elz
Date:Wed, 31 Aug 2022 13:42:13 +0200 From:Matthias Petermann Message-ID: | I'm also curious about the effect on energy consumption - i.e., whether | it's measurable. I'm sure its measurable, but I suspect you'd need a highly accurate and very precise ammeter

Re: Qemu/nvmm - time in NetBSD guest system lags behind (with estd on host)

2022-08-31 Thread Matthias Petermann
Hello Robert, Am 31.08.2022 um 13:03 schrieb Robert Elz: [...] About the rtc, no no idea. But to deal with the problem, aside from major NetBSD code rewrites (the so called tickless kernel) the one solution that should work is to run the host with HZ set a lot higher, and leave the guest(s)

Re: Qemu/nvmm - time in NetBSD guest system lags behind (with estd on host)

2022-08-31 Thread Robert Elz
Date:Wed, 31 Aug 2022 11:29:06 +0200 From:Matthias Petermann Message-ID: | The guests' time increasingly lags behind with continued operation. Also | the ntpd seems to have no compensating effect in the guests here. This is a well known issue, ntp in the guest

Qemu/nvmm - time in NetBSD guest system lags behind (with estd on host)

2022-08-31 Thread Matthias Petermann
Hello all, I have a NetBSD 9.3 host that hosts multiple virtual machines (Qemu with nvmm acceleration). One peculiarity: I use estd on the host to control down the power consumption of the whole system via frequency scaling when there is no load. The time of the host is synchronized via