Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[FIXED] Time is running slow on Gentoo machine
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
wichtounet
Tux's lil' helper
Tux's lil' helper


Joined: 17 Mar 2012
Posts: 116

PostPosted: Fri Jul 10, 2015 10:00 am    Post subject: [FIXED] Time is running slow on Gentoo machine Reply with quote

Hi guys,

I've a problem on one of my Gentoo server. After some time, the clock starts running very very slow. It takes about one minute for one second to go.

The major problem is that not only the clock is impacted but the system is running slow as well. If I run top, it takes more than 10 seconds to open. A sleep 1 takes about a minute. Every command that depends on time takes much longer than it should. cron is also impacted as well since time goes too slow.

There is no load on the system, almost nothing is running. I'm running the kernel 4.0.5. The hardware clock is running fine. If I reboot, this goes away, but goes back after some time.

What could be the source of such problem ? How can I fix this ?

Sorry, for the lack of information, but I don't really know what information can be relevant to such an issue :(

Thanks

Quote:
# cat /sys/devices/system/clocksource/clocksource0/available_clocksource
refined-jiffies jiffies tsc
# cat /sys/devices/system/clocksource/clocksource0/current_clocksource
refined-jiffies


Last edited by wichtounet on Sun Jul 12, 2015 3:09 pm; edited 1 time in total
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7132
Location: almost Mile High in the USA

PostPosted: Fri Jul 10, 2015 3:26 pm    Post subject: Reply with quote

Yeah this is machine specific. Some machines are "broken", including my tablet that suffers from the same problem.

If you set current_clocksource (just echo tsc > current_clocksource) it should temporarily fix this. Apparently the machine changed to refined jiffies because it thought tsc was unstable.

If using tsc doesn't work, this will be harder to fix as you'll have to do kernel hacking with whatever hardware docs you have (what machine is it? can you get detailed specs for it?) and hack up some other clock source to work. At one point I had HPET working on my tablet but it no longer works... HPET too is kind of broken on this machine.
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
wichtounet
Tux's lil' helper
Tux's lil' helper


Joined: 17 Mar 2012
Posts: 116

PostPosted: Fri Jul 10, 2015 3:30 pm    Post subject: Reply with quote

Thanks for the answer. I'll try running for some time with tsc as clocksource and see if the problem comes back.
Back to top
View user's profile Send private message
wichtounet
Tux's lil' helper
Tux's lil' helper


Joined: 17 Mar 2012
Posts: 116

PostPosted: Sun Jul 12, 2015 3:09 pm    Post subject: Reply with quote

It seems to be working fine. I'm running with the tsc clocksource from 2 days and there is no delay at all on the server. Thanks :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum