On Sat, Oct 19, 2024 at 03:14:15AM +0000, All wrote:
> I see,I appreciate all the help.  I did try clocksource=tsc tsc=reliable.
> Added it to extlinux.conf and ran extlinux --update /boot
>
>
> Both
> /sys/devices/system/clocksource/clocksource0/current
> _clocksource
> and
> /sys/devices/system/clocksource/clocksource0/availab
> le_clocksource
> both show "tsc" now
>
> Drift is still there.
>
> Building virtio_vmmci failed with
>   The kernel was built by: gcc (Alpine 13.2.1_git20231014) 13.2.1 20231014
>   You are using:           gcc (Alpine 14.2.0) 14.2.0
>
> So, not sure, what way to proceed from here.
>


virtio_vmmci is not needed for vmm_clock

>
>
>
>
>
>
>
> On Saturday, October 19, 2024 at 09:58:31 a.m. GMT+9, Mike Larkin 
> <mlar...@nested.page> wrote:
>
>
>
>
>
> On Fri, Oct 18, 2024 at 06:37:00PM -0500, Brian Conway wrote:
>
> > On Fri, Oct 18, 2024, at 5:24 PM, All wrote:
> > > Hi,
> > >
> > > Alpine guest has a pretty bad time drift. I saw that a while back,
> > > 7.3(?) there were
> > > people facing similar issue with vmd guests.
> > > I did search for solution and saw some workarounds.
> > > Playing with kern time hardware under sysctl.
> > > No luck though.
> > >
> > > Does anyone faced this problem? How did you fix it?
> >
> > You are correct, there have been many threads on this topic over the years 
> > on bugs@ and misc@. Here's one, but you can find others by searching for 
> > some combination of 'clocksource' and 'tsc':
> >
> > https://marc.info/?t=169787365000001
> >
> > I prefer the follow Linux kernel parameters, versus the installable kernel 
> > module, on my Alpine guests to achieve reliable time:
> >
> > clocksource=tsc tsc=reliable
> >
> > I'm currently on Alpine 3.20 without any time skew, and no changes have 
> > been made to the host system. Success *may* vary by host system, in this 
> > case that guest lives on an Intel NUC8i5BEH.
> >
> > Brian Conway
> > Owner
> > RCE Software, LLC
>
> >
>
> dv@ also maintains a pv clock driver for linux that I personally use on all
> my linux VMs:
>
> https://github.com/voutilad/vmm_clock
> https://github.com/voutilad/virtio_vmmci
>
>

Reply via email to