The problem here isnt that the time drifts, its that cs1.6 servers will
stop running when he correct the drift. All system have a drift of the
time.

Looking at a strace of hldm, it does both gettimeofday() and adjtime().
So they read the system epoch time.

gettimeofday, settimeofday -- get/set date and time
adjtime -- correct the time to allow synchronization of the system clock

I dont mind getting that kind of messages in the log saying time went
backwards > 1s, its a good warning that the system is not super
configured. But it should not stop the cs-server. Even if ntpdate is
runned like once a say and the time is set 823 seconds backwards.

For the other person that says that the time is set one hour with the
daylight saving time. It will not be any different, since it is just
cosmetics and the time is always the same, counting from 1970-01-01
00:00:00 GMT. And reading time will just get you the diff from that time
to todays time.

/Bjorn

On Fri, 17 Jul 2009, Shane Arnold wrote:

> You are missing the point. Clock drift is not just "the time is wrong".
> The "clock" is just a timing mechanism for the kernel, and when this is
> changed drastically (1 second) it can do all sorts of weird things, in
> your case locking up some resource/clock-intensive software (a
> high-tickrate CSS server).
>
> Just because an application freezes doesn't mean it's the application
> with the problem. There is more to an operating system than point and click.
>
> _______________________________________________________
>
> Shane Arnold          -       [email protected]
>
> "For want of a nail, the horseshoe was lost. For want of a horseshoe, the 
> horse was lost. For want of a horse, the messenger was lost. For want of a 
> messenger, the message was not delivered. For want of an undelivered message 
> the war was lost."
>
>
>
> Ronny Schedel wrote:
> > If hlds would work in this way, it would be a serious design flaw. Imagine
> > what happens when the time change for daylight saving time occurs. The time
> > went back 60 minutes! Believe, it does not need to stop when a time drift
> > occurs, HL2/OB based servers can handle such a time drift without stopping
> > the server.
> >
> >
> >
> >> Because time/ticks is how the game server knows what players did in the
> >> last
> >> second, and how to predict for the next second of gameplay (at a very high
> >> level).
> >>
> >> The error is serious enough to warrant stopping the server - if they
> >> removed
> >> this error message, your next complaint would be that the game begins to
> >> suffer horrible prediction/lag every time this message would have
> >> appeared.
> >>
> >> The error message is just a symptom of the bigger problem (your clock is
> >> drifting too much too quickly). I would research further in to why you are
> >> having this time sync problem (maybe the ntp server you are using is
> >> lousy?
> >> Try another - or maybe even try and update the clock more often before it
> >> gets too out of sync).
> >>
> >> - Andrew
> >>
> >> -----Original Message-----
> >> From: [email protected]
> >> [mailto:[email protected]] On Behalf Of Ronny
> >> Schedel
> >> Sent: Thursday, 16 July 2009 11:55 PM
> >> To: Half-Life dedicated Linux server mailing list
> >> Subject: Re: [hlds_linux] Counter-Strike 1.6 Update Available
> >>
> >>
> >> Why a server has to stop working when the time went back 1 second? Yes,
> >> because it is a bug in the hlds update. And yes, they will fix it.
> >>
> >>
> >>
> >>> Lo0l Valve don't need to fix anything, that you have time drift on your
> >>> server and use ntp to correct it is your problem not valves. Either
> >>> disable
> >>> ntp or reboot the server with the stock kernel as your high tic kernel is
> >>> causing your drift.
> >>>
> >>> -----Original Message-----
> >>> From: [email protected]
> >>> [mailto:[email protected]] On Behalf Of Ronny
> >>> Schedel
> >>> Sent: 16 July 2009 14:31
> >>> To: Half-Life dedicated Linux server mailing list
> >>> Subject: Re: [hlds_linux] Counter-Strike 1.6 Update Available
> >>>
> >>>
> >>> I reverted the binaries back to the previuos version and it runs fine. So
> >>> Valve has time to fix it, because this update is optional.
> >>>
> >>>
> >>>
> >>>> What he said, it's much easier for you to disable the NTP service than
> >>>> it is to wait for another CS1.6 update. Unless there is something
> >>>> hellishly wrong with your server you shouldn't need NTP anyway.
> >>>>
> >>>> _______________________________________________________
> >>>>
> >>>> Shane Arnold - [email protected]
> >>>>
> >>>> "For want of a nail, the horseshoe was lost. For want of a horseshoe,
> >>>> the
> >>>> horse was lost. For want of a horse, the messenger was lost. For want of
> >>>> a
> >>>>
> >>>> messenger, the message was not delivered. For want of an undelivered
> >>>> message the war was lost."
> >>>>
> >>>>
> >>>>
> >>>> [email protected] wrote:
> >>>>
> >>>>> Remove the ntp service,
> >>>>>
> >>>>> -----Original Message-----
> >>>>> From: [email protected]
> >>>>> [mailto:[email protected]] On Behalf Of Ronny
> >>>>> Schedel
> >>>>> Sent: Thursday, 16 July 2009 10:02 PM
> >>>>> To: Half-Life dedicated Linux server mailing list
> >>>>> Subject: Re: [hlds_linux] Counter-Strike 1.6 Update Available
> >>>>>
> >>>>>
> >>>>> I don't care what happens, the fact is the server stops and does not
> >>>>> respond
> >>>>>
> >>>>> after this. I get these messages also in HL2/OB based servers and they
> >>>>> run
> >>>>> without any problem. So we need a fix for this.
> >>>>>
> >>>>>
> >>>>>
> >>>>>> Looks like ntp drift to me,
> >>>>>>
> >>>>>> Must be running high ticrate?
> >>>>>>
> >>>>>> -----Original Message-----
> >>>>>> From: [email protected]
> >>>>>> [mailto:[email protected]] On Behalf Of Ronny
> >>>>>> Schedel
> >>>>>> Sent: Thursday, 16 July 2009 8:52 PM
> >>>>>> To: Half-Life dedicated Linux server mailing list
> >>>>>> Subject: Re: [hlds_linux] Counter-Strike 1.6 Update Available
> >>>>>>
> >>>>>>
> >>>>>> There is a seriuos problem with this update, the server stops after
> >>>>>> the
> >>>>>> message:
> >>>>>> Warning: system time went backward by 1 seconds
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> An optional update for Counter-Strike/Condition Zero is now
> >>>>>>> available.
> >>>>>>> Please run hldsupdatetool to receive.  This update was previously
> >>>>>>> available as a beta.  The specific changes are:
> >>>>>>>
> >>>>>>> Half-Life Engine
> >>>>>>> - Added -sys_ticrate command line option to allowed forced override
> >>>>>>> of
> >>>>>>> ticrate
> >>>>>>> - Prevent more cases of server redirection
> >>>>>>>
> >>>>>>> CS/CZ
> >>>>>>> - Added -nobots option to allow forced override of bots on servers
> >>>>>>>
> >>>>>>> Jason
> >>>>>>>
> >>>>>>> _______________________________________________
> >>>>>>> To unsubscribe, edit your list preferences, or view the list
> >>>>>>> archives,
> >>>>>>> please visit:
> >>>>>>> http://list.valvesoftware.com/mailman/listinfo/hlds_linux
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>> _______________________________________________
> >>>>>> To unsubscribe, edit your list preferences, or view the list archives,
> >>>>>> please visit:
> >>>>>> http://list.valvesoftware.com/mailman/listinfo/hlds_linux
> >>>>>>
> >>>>>>
> >>>>>> _______________________________________________
> >>>>>> To unsubscribe, edit your list preferences, or view the list archives,
> >>>>>> please visit:
> >>>>>> http://list.valvesoftware.com/mailman/listinfo/hlds_linux
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>> _______________________________________________
> >>>>> To unsubscribe, edit your list preferences, or view the list archives,
> >>>>> please visit:
> >>>>> http://list.valvesoftware.com/mailman/listinfo/hlds_linux
> >>>>>
> >>>>>
> >>>>> _______________________________________________
> >>>>> To unsubscribe, edit your list preferences, or view the list archives,
> >>>>> please visit:
> >>>>> http://list.valvesoftware.com/mailman/listinfo/hlds_linux
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>> _______________________________________________
> >>>> To unsubscribe, edit your list preferences, or view the list archives,
> >>>> please visit:
> >>>> http://list.valvesoftware.com/mailman/listinfo/hlds_linux
> >>>>
> >>>>
> >>> _______________________________________________
> >>> To unsubscribe, edit your list preferences, or view the list archives,
> >>> please visit:
> >>> http://list.valvesoftware.com/mailman/listinfo/hlds_linux
> >>>
> >>>
> >>> _______________________________________________
> >>> To unsubscribe, edit your list preferences, or view the list archives,
> >>> please visit:
> >>> http://list.valvesoftware.com/mailman/listinfo/hlds_linux
> >>>
> >>>
> >> _______________________________________________
> >> To unsubscribe, edit your list preferences, or view the list archives,
> >> please visit:
> >> http://list.valvesoftware.com/mailman/listinfo/hlds_linux
> >>
> >>
> >> _______________________________________________
> >> To unsubscribe, edit your list preferences, or view the list archives,
> >> please visit:
> >> http://list.valvesoftware.com/mailman/listinfo/hlds_linux
> >>
> >>
> >
> >
> > _______________________________________________
> > To unsubscribe, edit your list preferences, or view the list archives, 
> > please visit:
> > http://list.valvesoftware.com/mailman/listinfo/hlds_linux
> >
> >
> >
>
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives, please 
> visit:
> http://list.valvesoftware.com/mailman/listinfo/hlds_linux
>

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux

Reply via email to