https://bugzilla.novell.com/show_bug.cgi?id=441106 Summary: boot: wasted second Product: openSUSE 11.1 Version: Beta 3 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: mmeeks@novell.com QAContact: qa@suse.de CC: coolo@suse.de Found By: --- So - as we boot, we call /etc/init.d/boot.clock - this does two calls to hwclock, each of which does: rc = synchronize_to_clock_tick(); /* this takes up to 1 second */ if (rc) return rc; The overall cost is around 1 -> 1.5 seconds and this is independent of machine performance - ie. this is a big / slow beastie ;-) While investigating I poked at boot.clock, and I was surprised to find my /etc/adjtime to be all zeros: 0.0 0 0.0 0 UTC ie. what the boot.clock script creates (apparently). And running on the commandline with debug I see fun like this: /sbin/hwclock --systohc -u -D .. Time elapsed since reference time has been 0.302102 seconds. Delaying further to reach the next full second. Setting Hardware Clock to 15:16:03 = 1225725363 seconds since 1969 ioctl(RTC_SET_TIME) was successful. Not adjusting drift factor because last calibration time is zero, so history is bad and calibration startover is necessary. and so on - which seems odd; I've booted & shutdown this machine several times - though I guess it's crashed a good few times too. I was hoping to special-case this 0 clock adjustment to speed things up, but now I play with hwclock more - it starts to give me real values there. So - questions: * Why do we wait this half second on average twice ? * Do we really need the clock to be this accurate ? - ie. why wait ? * Do we even need adjtime on modern machines - has this problem gone away ? * Can we not adjust the time (perhaps just the seconds) asynchronously while the boot process continues ? + What about NTP ? can we use this by default instead & avoid this - presumably NTP has a good way of adjusting the time safely later in the day (?) Anyhow - sorry for the staggering ignorance - hopefully they're easy questions to answer :-) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.