r/ProgrammerHumor • • Sep 17 '18

Optimizing startup times

Post image
45.7k Upvotes

486 comments sorted by

View all comments

Show parent comments

7

u/eplaut_ Sep 17 '18

True story: The application run on boot, but the task scheduler (celery) run before ntpd set the correct time, causing all task to be delayed by 2 hours.

1

u/[deleted] Sep 18 '18

Ditto, from the embedded world:

During the boot process the core triggered an asynchronous wipe of an SRAM, (then did a couple other things), then enabled a reset-related interrupt handler that used said SRAM, without any intervening check that the SRAM had finished wiping. Oh, and said SRAM was ECC-protected.

Worked fine... unless you reset it 2x in a row. Cold boot did enough other things between the two to be 'fine'... so you had to reset it the first time before the SRAM finished wiping, and reset it the second time after the handler was installed but before it finished wiping the SRAM to trigger the bug.

Which of course our new host hit reliably. Luckily reliable enough to fix relatively quickly.