Red HatThis forum is for the discussion of Red Hat Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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'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.
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.
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.
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.)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.