LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 04-16-2007, 11:43 AM   #1
jr8rdt
LQ Newbie
 
Registered: Oct 2006
Posts: 17

Rep: Reputation: 0
System Time keeps changing back and forth


We have a brand new machine Quad Dual Core AMD Opteron Processor 8218. We installed RH AS 3 Update 7 then upgrade it to Update 8. We use rhel-3-u8-i386-as-disc(X).iso to upgrade.

[root@STLMDH4UOF /]# uname -a
Linux STLMDH4UOF 2.4.21-47.ELsmp #1 SMP Wed Jul 5 20:30:47 EDT 2006 i686 athlon i386 GNU/Linux

[root@STLMDH4UOF /]# cat /etc/redhat-release
Red Hat Enterprise Linux AS release 3 (Taroon Update 8)
[root@STLMDH4UOF /]#

no ntpd running
the system time keeps changing back and forth

running this script
while (true)
do
echo `date` >> April13th.date.out
done

I get

Mon Apr 16 10:43:56 CDT 2007
Mon Apr 16 10:43:55 CDT 2007
Mon Apr 16 10:43:55 CDT 2007
Mon Apr 16 10:43:57 CDT 2007
Mon Apr 16 10:43:56 CDT 2007
Mon Apr 16 10:43:56 CDT 2007
Mon Apr 16 10:43:55 CDT 2007
Mon Apr 16 10:43:55 CDT 2007
Mon Apr 16 10:43:55 CDT 2007
Mon Apr 16 10:43:57 CDT 2007
Mon Apr 16 10:43:57 CDT 2007
Mon Apr 16 10:43:57 CDT 2007
Mon Apr 16 10:43:56 CDT 2007
Mon Apr 16 10:43:57 CDT 2007
Mon Apr 16 10:43:55 CDT 2007
Mon Apr 16 10:43:57 CDT 2007
Mon Apr 16 10:43:56 CDT 2007
Mon Apr 16 10:43:56 CDT 2007
Mon Apr 16 10:43:56 CDT 2007
Mon Apr 16 10:43:56 CDT 2007
Mon Apr 16 10:43:57 CDT 2007
Mon Apr 16 10:43:56 CDT 2007
Mon Apr 16 10:43:56 CDT 2007
Mon Apr 16 10:43:56 CDT 2007


can you please help?
am I using the correct load for this particular hardware ?

THanks !!!!
 
Old 04-16-2007, 11:57 AM   #2
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,024
Blog Entries: 5

Rep: Reputation: 789Reputation: 789Reputation: 789Reputation: 789Reputation: 789Reputation: 789Reputation: 789
I'd insert a "sleep 1" into the script. The while loop is spawning multiple date commands and due to the way time slicing is done it is possible that a later date command could complete and display to the screen before an earlier one. That is to say you may have run that got the date (Epoch) before another one did but then displayed the human readable conversion of Epoch AFTER the other one had displayed its conversion. The sleep 1 gives each date command time to complete.
 
Old 04-16-2007, 12:06 PM   #3
jr8rdt
LQ Newbie
 
Registered: Oct 2006
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks for the reply. Yes actually I did both sleep 1 and without sleep. the result is essentially the same.

here is with sleep 1

Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:03 CDT 2007
Mon Apr 16 11:08:03 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:03 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:03 CDT 2007
Mon Apr 16 11:08:03 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:03 CDT 2007
Mon Apr 16 11:08:03 CDT 2007
Mon Apr 16 11:08:03 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:03 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:03 CDT 2007
Mon Apr 16 11:08:03 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:03 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:03 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:03 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:03 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:03 CDT 2007
Mon Apr 16 11:08:03 CDT 2007
Mon Apr 16 11:08:03 CDT 2007
Mon Apr 16 11:08:03 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:03 CDT 2007
Mon Apr 16 11:08:03 CDT 2007
Mon Apr 16 11:08:03 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:04 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:04 CDT 2007
Mon Apr 16 11:08:04 CDT 2007
Mon Apr 16 11:08:04 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:04 CDT 2007
Mon Apr 16 11:08:04 CDT 2007
Mon Apr 16 11:08:04 CDT 2007
Mon Apr 16 11:08:04 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:04 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:04 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:04 CDT 2007
Mon Apr 16 11:08:04 CDT 2007
Mon Apr 16 11:08:04 CDT 2007
Mon Apr 16 11:08:04 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:04 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:04 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:04 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:04 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:04 CDT 2007
Mon Apr 16 11:08:04 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:04 CDT 2007
Mon Apr 16 11:08:04 CDT 2007
Mon Apr 16 11:08:04 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:04 CDT 2007
Mon Apr 16 11:08:04 CDT 2007
Mon Apr 16 11:08:04 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:04 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:04 CDT 2007
Mon Apr 16 11:08:04 CDT 2007
Mon Apr 16 11:08:04 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:04 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:04 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:04 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:04 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:04 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:04 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:04 CDT 2007
Mon Apr 16 11:08:04 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:04 CDT 2007
Mon Apr 16 11:08:04 CDT 2007
Mon Apr 16 11:08:04 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:04 CDT 2007
Mon Apr 16 11:08:04 CDT 2007
Mon Apr 16 11:08:04 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:04 CDT 2007
Mon Apr 16 11:08:04 CDT 2007
Mon Apr 16 11:08:04 CDT 2007
Mon Apr 16 11:08:04 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:02 CDT 2007
Mon Apr 16 11:08:04 CDT 2007
Mon Apr 16 11:08:04 CDT 2007
 
Old 04-16-2007, 01:22 PM   #4
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,024
Blog Entries: 5

Rep: Reputation: 789Reputation: 789Reputation: 789Reputation: 789Reputation: 789Reputation: 789Reputation: 789
You might want to run top and see how heavily loaded your CPU is. I doubt anything could CHANGE the system clock that quickly (even NTP) so it may be the date commands aren't actually finishing even in 1 second though that would be unusual. With a heavily loaded system I could see it occuring though.

I tried it on my FC4 system with the sleep 1 and didn't see the result you get.
 
Old 04-16-2007, 02:00 PM   #5
jr8rdt
LQ Newbie
 
Registered: Oct 2006
Posts: 17

Original Poster
Rep: Reputation: 0
this is a brand new machine. new installation. no load at all.
tried with sleep 2, 5, 10. same result.
I am just wondering if I used the right load? am I suppose to use AMD64 load. I don't think I need it.
 
Old 04-16-2007, 02:11 PM   #6
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,024
Blog Entries: 5

Rep: Reputation: 789Reputation: 789Reputation: 789Reputation: 789Reputation: 789Reputation: 789Reputation: 789
Can't answer that because I've not used an AMD load for anything. All I've done is "Genuine Intel" in the x86 space. (Do have Debian on a PA-RISC box.).

You might want to check a couple of other things first.

First boot the system and go into the BIOS setup (usually hitting F2 or DEL when prompted) to check for settings on the hardware clock. If it gives choice for using UTC (Universal Time Code) go ahead and set it that way.

After booting back into the OS run "hwclock" to see the hardware clock time. Run date to see the "system" time. Set your system time with the date command then run "hwclock -systohc" to set your hardware clock to your system time.

Look through your cron files to insure nothing is running ntpdate (this is a command line to set date rather than requiring you to have ntpd running).

Do "ps -ef |grep ntp" just to be sure you don't see any ntp processes running. (I know you said it isn't configured but it never hurts to check.)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
changing the time in the system tray alejan74 General 1 06-30-2005 08:55 PM
Changing system date and time from KDE yapp Linux - General 4 04-17-2005 04:40 AM
System Time keeps going back to Moscow hongman Linux - Newbie 7 03-08-2005 04:05 PM
Changing System Time rjshirts Linux - Software 4 01-24-2005 04:48 PM
Changing system time on FreeBSD 4.8 tmakobu *BSD 5 03-31-2004 08:25 AM


All times are GMT -5. The time now is 10:02 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration