[Bug 441106] New: boot: wasted second
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.
https://bugzilla.novell.com/show_bug.cgi?id=441106
Stephan Kulow
https://bugzilla.novell.com/show_bug.cgi?id=441106
User werner@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=441106#c1
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=441106
User mmeeks@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=441106#c2
Michael Meeks
https://bugzilla.novell.com/show_bug.cgi?id=441106
User werner@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=441106#c3
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=441106
User mkoenig@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=441106#c4
Matthias Koenig
https://bugzilla.novell.com/show_bug.cgi?id=441106
User garloff@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=441106#c5
Kurt Garloff
https://bugzilla.novell.com/show_bug.cgi?id=441106
User garloff@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=441106#c6
--- Comment #6 from Kurt Garloff
https://bugzilla.novell.com/show_bug.cgi?id=441106
User garloff@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=441106#c7
--- Comment #7 from Kurt Garloff
https://bugzilla.novell.com/show_bug.cgi?id=441106
User garloff@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=441106#c8
--- Comment #8 from Kurt Garloff
https://bugzilla.novell.com/show_bug.cgi?id=441106
User garloff@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=441106#c9
--- Comment #9 from Kurt Garloff
https://bugzilla.novell.com/show_bug.cgi?id=441106
User garloff@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=441106#c10
--- Comment #10 from Kurt Garloff
https://bugzilla.novell.com/show_bug.cgi?id=441106
User garloff@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=441106#c11
--- Comment #11 from Kurt Garloff
https://bugzilla.novell.com/show_bug.cgi?id=441106
User werner@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=441106#c12
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=441106
User werner@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=441106#c13
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=441106
User mmeeks@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=441106#c14
Michael Meeks
https://bugzilla.novell.com/show_bug.cgi?id=441106
User werner@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=441106#c15
--- Comment #15 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=441106
User mmeeks@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=441106#c16
--- Comment #16 from Michael Meeks
I see a problem with the time stamps set within the SB and inodes of the file systems set during mount. The problem is if the system clock jumps backward and the order of the mounts are not the same as the apparent order given by those time stamps.
Which is why the change is designed -never- to jump the system clock backwards - only forwards. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=441106
User garloff@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=441106#c17
--- Comment #17 from Kurt Garloff
https://bugzilla.novell.com/show_bug.cgi?id=441106
User garloff@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=441106#c18
Kurt Garloff
https://bugzilla.novell.com/show_bug.cgi?id=441106
User garloff@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=441106#c19
Kurt Garloff
https://bugzilla.novell.com/show_bug.cgi?id=441106
User garloff@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=441106#c20
Kurt Garloff
https://bugzilla.novell.com/show_bug.cgi?id=441106
User garloff@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=441106#c21
--- Comment #21 from Kurt Garloff
https://bugzilla.novell.com/show_bug.cgi?id=441106
User garloff@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=441106#c22
Kurt Garloff
https://bugzilla.novell.com/show_bug.cgi?id=441106
User garloff@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=441106#c23
Kurt Garloff
https://bugzilla.novell.com/show_bug.cgi?id=441106
Kurt Garloff
https://bugzilla.novell.com/show_bug.cgi?id=441106
User garloff@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=441106#c24
Kurt Garloff
https://bugzilla.novell.com/show_bug.cgi?id=441106
User garloff@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=441106#c25
--- Comment #25 from Kurt Garloff
https://bugzilla.novell.com/show_bug.cgi?id=441106
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=441106
User mkoenig@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=441106#c26
Matthias Koenig
https://bugzilla.novell.com/show_bug.cgi?id=441106
User garloff@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=441106#c27
--- Comment #27 from Kurt Garloff
https://bugzilla.novell.com/show_bug.cgi?id=441106
User hvogel@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=441106#c29
Hendrik Vogelsang
participants (1)
-
bugzilla_noreply@novell.com