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

Issue 5868004: init: Update boot-complete to run at login-prompt-visible. (Closed)

Created:
10 years ago by Daniel Erat
Modified:
9 years, 7 months ago
CC:
chromium-os-reviews_chromium.org, DaveMoore, Nick Sanders
Visibility:
Public.

Description

init: Update boot-complete to run at login-prompt-visible. This saves us 2-3 seconds at boot. It appears that the jobs that were started when boot-complete finishes were greatly slowing down Chrome while it was painting the login windows after mapping them. The window manager now notifies the session manager after the windows are painted, at which point the login-prompt-visible Upstart signal is emitted. Here are some timings showing the seconds since power-on at which the various signals are fired without and with this change. before: login-prompt-ready 6.74 6.77 6.49 login-prompt-visible 10.69 10.61 10.21 after: login-prompt-ready 6.37 6.78 6.65 login-prompt-visible 7.54 7.94 7.61 This also makes it write a boot-complete event (I have a separate change to make the session manager log login-prompt-ready and login-prompt-visible) and fixes a typo in the logic that was supposed to prevent the job from running a second time if the user logged out. Change-Id: Ib11cac2ccba2a54180e1d9d8849352e1cf7b99af BUG=chromium-os:10349 TEST=tried it. checked that boot-complete runs and that /tmp/uptime-* files are written correctly Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=ec11517

Patch Set 1 #

Patch Set 2 : report boot-complete instead of login-prompt-ready #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -11 lines) Patch
M boot-complete.conf View 1 chunk +11 lines, -10 lines 0 comments Download
M send_boot_metrics View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
Daniel Erat
I'll send out changes to update the factory scripts that patch this file before checking ...
10 years ago (2010-12-17 03:28:17 UTC) #1
Chris Masone
I wonder what impact this will have on login time for users who put in ...
10 years ago (2010-12-17 04:48:24 UTC) #2
Daniel Erat
I'm seeing wifi consistently come up before the UI is onscreen. I haven't noticed any ...
10 years ago (2010-12-17 19:26:56 UTC) #3
Chris Masone
On Fri, Dec 17, 2010 at 11:26 AM, Daniel Erat <derat@chromium.org> wrote: > I'm seeing ...
10 years ago (2010-12-17 19:38:20 UTC) #4
jrbarnette
On 2010/12/17 03:28:17, Daniel Erat wrote: > I'll send out changes to update the factory ...
10 years ago (2010-12-17 20:11:14 UTC) #5
Daniel Erat
Yes, there are probably a bunch of things that are still using login-prompt-ready that will ...
10 years ago (2010-12-17 20:15:15 UTC) #6
jrbarnette
On 2010/12/17 20:15:15, Daniel Erat wrote: > Yes, there are probably a bunch of things ...
10 years ago (2010-12-17 20:35:51 UTC) #7
jrbarnette
On 2010/12/17 20:15:15, Daniel Erat wrote: > Yes, there are probably a bunch of things ...
10 years ago (2010-12-17 20:35:53 UTC) #8
jrbarnette
On 2010/12/17 20:15:15, Daniel Erat wrote: > Yes, there are probably a bunch of things ...
10 years ago (2010-12-17 20:35:54 UTC) #9
jrbarnette
On 2010/12/17 20:35:54, jrbarnette wrote: > On 2010/12/17 20:15:15, Daniel Erat wrote: > > Yes, ...
10 years ago (2010-12-17 21:33:58 UTC) #10
Daniel Erat
10 years ago (2010-12-17 22:02:24 UTC) #11
On Fri, Dec 17, 2010 at 1:33 PM,  <jrbarnette@chromium.org> wrote:
> On 2010/12/17 20:35:54, jrbarnette wrote:
>>
>> On 2010/12/17 20:15:15, Daniel Erat wrote:
>> > Yes, there are probably a bunch of things that are still using
>> > login-prompt-ready that will need to be updated.  Since the signal is
>> > still getting emitted with this change, they should continue being
>> > just as wrong as they already are, right?
>> >
>> Ah, yes.  I hadn't internalized the changes elsewhere.
>
>> LGTM!
>
> Ah, I just realized one other small issue:  send_boot_metrics
> uses the login-prompt-ready stat rather than the new boot-complete
> stat.  It should probably be updated now, if it's not too late.

Good catch.  I've added this to the change.

> OTOH, it can also wait, if necessary.
>
>
> http://codereview.chromium.org/5868004/
>

Powered by Google App Engine
This is Rietveld 408576698