Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(517)

Issue 6879062: Add boot-services milestone marker for boot; fixed udev-addon init time. (Closed)

Created:
9 years, 8 months ago by diandersAtChromium
Modified:
9 years, 6 months ago
Reviewers:
jrbarnette
CC:
chromium-os-reviews_chromium.org
Visibility:
Public.

Description

Add boot-services milestone marker for boot; fixed udev-addon init time. This fixes problems where udev-addon could start before udev did if the system boot was very slow (like on ARM boards today). Now, we prevent the failsafe delay and system-services from starting until critical boot services (like udev, dbus, and syslog) have finished starting. Now, services that depend on failsafe can assume that boot-services are present, which seems like a good idea. This speficially solves problems where USB Ethernet and Camera weren't being properly setup on some ARM-based boards. BUG=chromium-os:14299 TEST=Several Test #1: Validate that my ARM device now consistently brings up the network and other peripherals. -- Test #2: Ran bootperf before and after (x86-generic on a CR-48). Before: (on 10 cycles): time s% dt s% event 1619 3% +1619 3% startup 1899 2% +280 4% startup_done 3401 9% +1502 22% x_started 3792 5% +391 57% chrome_exec 5004 1% +1212 14% chrome_main 5988 1% +984 5% login 11607 1% +5619 1% network After: (on 10 cycles): time s% dt s% event 1632 3% +1632 3% startup 1905 3% +273 10% startup_done 3566 8% +1661 17% x_started 3839 5% +273 54% chrome_exec 4956 2% +1117 19% chrome_main 5961 2% +1005 12% login 11612 1% +5651 1% network ...all differences are within margins... -- Test #3: Added a bunch of debug code into my startup scripts, then saw: [ 63.789794] chromeos_startu used greatest stack depth: 4868 bytes left init: nvrm main process (823) terminated with status 113 DOUG: dbus pre-start DOUG: udev prestart DOUG: syslog prestart Developer Console [ ...cut... ] DOUG: dbus pre-start end DOUG: dbus start [ 123.583095] cfg80211: Calling CRDA to update world regulatory domain [ 153.516623] brcmfmac: module is from the staging directory, the quality is unknown, you have been warned. [ ...cut... ] [ 153.889371] modprobe used greatest stack depth: 4852 bytes left DOUG: udev prestart end DOUG: udev start [ 153.922999] udevd (927): /proc/927/oom_adj is deprecated, please use /proc/927/oom_score_adj instead. DOUG: failsafe delay start [ 167.548024] Firmware version = wl0: Sep 7 2010 10:38:12 version 4.218.248.5 DOUG: boot-complete done DOUG: udev-addon start DOUG: iptables start [ 170.580429] Linux video capture interface: v2.00 [ ...cut... ] [ 174.037514] eth1: link up, 100Mbps, full-duplex, lpa 0xCDE1 DOUG: failsafe delay done -- Test #4: Boot using 'init --verbose' for upstart and look at logs (not included here). -- Test #5: Ran smoke_Suite. Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=e26585f

Patch Set 1 #

Total comments: 8

Patch Set 2 : Address jrbarnette review feedback. #

Total comments: 2

Patch Set 3 : Removed 'stop on' line for dbus and udev. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -10 lines) Patch
A boot-services.conf View 1 1 chunk +26 lines, -0 lines 0 comments Download
M dbus.conf View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M failsafe.conf View 1 1 chunk +4 lines, -0 lines 0 comments Download
M failsafe-delay.conf View 1 2 chunks +6 lines, -2 lines 0 comments Download
M syslog.conf View 1 1 chunk +2 lines, -2 lines 0 comments Download
M system-services.conf View 1 2 chunks +5 lines, -2 lines 0 comments Download
M udev.conf View 1 2 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
diandersAtChromium
Richard, Does this look like what you were thinking of? Thanks! :)
9 years, 8 months ago (2011-04-19 23:22:49 UTC) #1
jrbarnette
One general comment: The copyright date on all files needs to be updated to 2011, ...
9 years, 8 months ago (2011-04-20 00:04:39 UTC) #2
diandersAtChromium
Thanks for your quick feedback on this. It is definitely appreciated! :) I think I ...
9 years, 8 months ago (2011-04-20 16:10:02 UTC) #3
diandersAtChromium
NOTE: Two comments about things I'm not sure are right. I noticed some errors in ...
9 years, 8 months ago (2011-04-20 16:36:44 UTC) #4
jrbarnette
On Apr 20, 2011, at 9:36 AM, dianders@chromium.org wrote: > NOTE: Two comments about things ...
9 years, 8 months ago (2011-04-20 16:57:18 UTC) #5
diandersAtChromium
...confirmed: commenting out the two 'stop on' clauses that were added prevents the errors. They ...
9 years, 8 months ago (2011-04-20 17:04:53 UTC) #6
diandersAtChromium
Don't see the flimflam one, but to be complete, I see the following before the ...
9 years, 8 months ago (2011-04-20 17:11:16 UTC) #7
jrbarnette
On 2011/04/20 17:11:16, diandersAtChromium wrote: > Don't see the flimflam one, but to be complete, ...
9 years, 8 months ago (2011-04-20 17:31:47 UTC) #8
diandersAtChromium
PTAL. smoke_Suite is still pending, but bootperf test finished (I ran it with patch set ...
9 years, 8 months ago (2011-04-20 17:57:06 UTC) #9
diandersAtChromium
Here are smoke test results (x86-generic on Cr-48). I think we're good. ...just looking for ...
9 years, 8 months ago (2011-04-20 18:31:34 UTC) #10
jrbarnette
9 years, 8 months ago (2011-04-20 18:49:46 UTC) #11
On 2011/04/20 18:31:34, diandersAtChromium wrote:
> Here are smoke test results (x86-generic on Cr-48).  
> 
> I think we're good.  ...just looking for LGTM now.  ;)  Thanks again for all
> your help on this one.
> 
LGTM!

Thanks!


> ---
> 
> INFO    : Test results:
> ----------------------------------------------------
> suite_Smoke                                    PASS
> suite_Smoke/build_RootFilesystemSize           PASS
>   bytes_rootfs_prod                            549810176.0
>   bytes_rootfs_test                            549908480.0
> suite_Smoke/desktopui_ChromeFirstRender        PASS
>   seconds_chrome_first_tab                     1.96
> suite_Smoke/desktopui_FlashSanityCheck         PASS
> suite_Smoke/desktopui_KillRestart.chrome       PASS
> suite_Smoke/desktopui_KillRestart.session      PASS
> suite_Smoke/logging_CrashSender                PASS
> suite_Smoke/logging_UserCrash                  PASS
> suite_Smoke/login_BadAuthentication            PASS
> suite_Smoke/login_CryptohomeIncognitoMounted   PASS
> suite_Smoke/login_CryptohomeIncognitoUnmounted PASS
> suite_Smoke/login_CryptohomeMounted            PASS
> suite_Smoke/login_CryptohomeUnmounted          PASS
> suite_Smoke/login_LoginSuccess.apps            PASS
> suite_Smoke/login_LoginSuccess.default         PASS
> suite_Smoke/login_OwnershipNotRetaken          PASS
> suite_Smoke/login_OwnershipTaken               PASS
> suite_Smoke/platform_FilePerms                 PASS
> suite_Smoke/platform_OSLimits                  PASS
> ----------------------------------------------------
> Total PASS: 19/19 (100%)
> 
> No crashes detected during testing.
> Elapsed time: 5m57s

Powered by Google App Engine
This is Rietveld 408576698