Click to See Complete Forum and Search --> : scripting to correct double time on hyper-threaded machine


r3n0
08-07-2003, 10:51 AM
Hi All

Have a new dedicated server that is hyper-theard enabled, as a result the system time is running at double speed!!!

The providers are trying to sort this but mean time it's making my logs unusable.

Does anyone have an idea how I might use cron and date or anything else to reset the system time.

I was thingking of somehting like a cron.hourly that would make the system time = system time - one hour. But I have no knowledge of programming cron jobs and don't know where to start.

Any ideas greatly apprciated.

Thanks

bwkaz
08-07-2003, 08:01 PM
Tell whoever owns the server to use an SMP kernel on it, instead of a UP kernel.

Even if you set up an hourly cron job, the time in your logs will be off by up to a half hour between the times the job runs. About the best way to do it would be to set up a cron job that runs every two minutes, and have it subtract one minute from the time.

Or, set up an NTP client and run it once a minute or so.

But, this all sounds unlikely to begin with. The time *should* be based off the TSC's on the processor, which means that nothing in the way the processor works should affect it.