BSD Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsBSD Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old December 4th, 2003, 05:40 AM
a.koepke's Avatar
a.koepke a.koepke is offline
Second highest poster :p
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Jul 2001
Posts: 7,323 a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 8 h 8 m 45 sec
Reputation Power: 27
FreeBSD 5 clock run at double speed - Solution!

I have been having an issue with my FreeBSD 5.1 RELEASE box. The clock was running fast, at exactly twice the speed it should be running at. Each time I reset the box the time would come good again so it wasnt a BIOS issue.

Now FreeBSD doesn't do via the BIOS clock while running, it does its own time keeping. In version 4 I did not have this issue, in version 5 I did. I found out in version 4 they used TSC for clocking, in 5 they updated it to use ACPI. ACPI is a better choice but they have been having issues with certain motherboards (mine is one of them) where it runs at double speed. To fix this problem you need to make the system go back to using TSC.

Edit your /etc/sysctl.conf and add kern.timecounter.hardware=TSC. This will make the clock run correctly after a reboot. To enforce this setting without rebooting type sysctl kern.timecounter.hardware="TSC"

That will fix the issue.

EDIT: Removed quotes as per notice below

Last edited by a.koepke : February 8th, 2004 at 08:52 PM.

Reply With Quote
  #2  
Old January 31st, 2004, 11:31 AM
gren gren is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 1 gren User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
whoa, sweet, this is exactly what I was looking for...

the only thing I noticed, is that in /etc/sysctl.conf it wants kern.timecounter.hardware=TSC that is, without the quotes.

thanks a million !!

Reply With Quote
  #3  
Old February 8th, 2004, 08:54 PM
a.koepke's Avatar
a.koepke a.koepke is offline
Second highest poster :p
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Jul 2001
Posts: 7,323 a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 8 h 8 m 45 sec
Reputation Power: 27
Thanks for that correction, the other day we had to cut the power to house while doing some electical work. When we turned it back on I noticed my server was running clock at double speed again, because I had to quotes in the config file

Last edited by a.koepke : February 8th, 2004 at 08:56 PM.

Reply With Quote
  #4  
Old August 25th, 2004, 01:55 PM
ldusanic ldusanic is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 1 ldusanic User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Another option is i8254

My install chose TSC by default, running sysctl -w kern.timecounter.hardware=i8254
fixed this on a AMD64.. thanks for this.. took 3 days to find this solution..

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsBSD Help > FreeBSD 5 clock run at double speed - Solution!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway