pi4b4gb time drifts large amounts per hour but not on pi3b

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
nalbee
Posts: 5
Joined: Tue Apr 06, 2021 2:55 pm

pi4b4gb time drifts large amounts per hour but not on pi3b

Post by nalbee »

I have a pi4b4gb.

Time is drifting as much as 10 min per hour when it is on and unplugged form the network. I switched to chrony to try to resolve it, but I have to force a chronyc -a makestep every 10 min to keep it close to the real time. When the network is not online and the pi is still running time drifts in a major way.

If I take the sd card out of the pi4 and put it in a pi3b time doesn't seem to drift. I have it running for the night to see if in the am it's significantly different time.

I have tested this on multiple pi4's and have the same problem on everyone.

Anyone have any ideas on why or how to fix it?

Thanks,
User avatar
trendy
Posts: 340
Joined: Tue Feb 25, 2020 2:54 pm

Re: pi4b4gb time drifts large amounts per hour but not on pi3b

Post by trendy »

Is "connect it to the network and let ntp handle it" out of the question?
User avatar
Joulinar
Posts: 5090
Joined: Sat Nov 16, 2019 12:49 am

Re: pi4b4gb time drifts large amounts per hour but not on pi3b

Post by Joulinar »

Hi,

I did a test on my RPi4B 8GB aarch64. The system was running for 10 hours over night without Ethernet connected and it stayed fully in sync. It even did not deviate by a second. :?

But it was an empty system, without any application running on top

@nalbee
Are you able to perform a similar test using Raspberry OS?
Do you have any applications running on your system causing heavy load?
Are you running 32 or 64bit?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
nalbee
Posts: 5
Joined: Tue Apr 06, 2021 2:55 pm

Re: pi4b4gb time drifts large amounts per hour but not on pi3b

Post by nalbee »

So today. I check back on the pi3. after about 20 hrs its still keeping time. no network. pi4 same sd card. looses time like crazy. not running any applications on it at all. so there is no load.

Its just the craziest thing. I'm going to download a new version of dietpi and try a fresh install.

I also have ubuntu 20.x. and that one is keeping time on a pi4 and a raspian that is keeping time.

Also, I have some diet pis that do keep time. they are ones I have had setup a few months back and didn't apply any updates to them. Maybe something in updating from messed them up.

It's weird it works fine on a pi3 when i put the pi4 card in one.
User avatar
Joulinar
Posts: 5090
Joined: Sat Nov 16, 2019 12:49 am

Re: pi4b4gb time drifts large amounts per hour but not on pi3b

Post by Joulinar »

Running Raspberry OS, did you update all apt packages or just used the RPI OS as flashed? Because on DietPi we will update all packages on first boot.

On the other hand it sounds like this https://github.com/MichaIng/DietPi/issues/4455

If I understood right, it has something to do with CPU frequency :?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 3088
Joined: Sat Nov 18, 2017 6:21 pm

Re: pi4b4gb time drifts large amounts per hour but not on pi3b

Post by MichaIng »

Yes, did you lower you idle/min CPU frequency below 600 MHz?
Post Reply