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

Issue 6719026: Fix faulty renice: -ve priority numbers mean more scheduling priority. (Closed)

Created:
9 years, 9 months ago by gauravsh
Modified:
9 years, 6 months ago
CC:
chromium-os-reviews_chromium.org, sosa+cc_chromium.org, seano+cc_chromium.org, ericli
Visibility:
Public.

Description

Fix faulty renice: -ve priority numbers mean more scheduling priority. Get rid of re-nice completely since it is not needed. BUG=chromium-os:12846 TEST=(man renice) Change-Id: I664bfe643c0ad682605505de03abaf6eeb184985 Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=43c7779

Patch Set 1 #

Patch Set 2 : get rid of renice completely #

Patch Set 3 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -24 lines) Patch
M client/cros/login.py View 1 2 2 chunks +16 lines, -24 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
gauravsh
9 years, 9 months ago (2011-03-28 00:43:44 UTC) #1
Chris Masone
If we've been nicing in the wrong direction, then perhaps this code isn't actually doing ...
9 years, 9 months ago (2011-03-28 02:00:47 UTC) #2
gauravsh
I will let Dale comment on why this was added in the first place. But ...
9 years, 9 months ago (2011-03-28 02:32:33 UTC) #3
DaleCurtis
Whoops. The code definitely fixes the interrupted key presses however; I ran a lot of ...
9 years, 9 months ago (2011-03-28 15:52:46 UTC) #4
gauravsh
On Mon, Mar 28, 2011 at 8:52 AM, <dalecurtis@chromium.org> wrote: > Whoops. The code definitely ...
9 years, 9 months ago (2011-03-28 21:27:54 UTC) #5
DaleCurtis
I'm hesitant to remove it completely as we dealt with the repeated keystrokes problem for ...
9 years, 9 months ago (2011-03-28 21:39:35 UTC) #6
gauravsh
On Mon, Mar 28, 2011 at 2:39 PM, <dalecurtis@chromium.org> wrote: > I'm hesitant to remove ...
9 years, 9 months ago (2011-03-28 21:43:19 UTC) #7
DaleCurtis
Okay, I will just cycle in the lab for 20 iterations and okay the change ...
9 years, 9 months ago (2011-03-28 21:45:37 UTC) #8
DaleCurtis
9 years, 9 months ago (2011-03-28 22:50:45 UTC) #9
LGTM. 20 runs in the lab without failure and no nice. I wish I knew what was
fixed, but the code looks unnecessary right now.

On 2011/03/28 21:45:37, dalec wrote:
> Okay, I will just cycle in the lab for 20 iterations and okay the change if it
> passes.
> 
> On 2011/03/28 21:43:19, gauravsh wrote:
> > On Mon, Mar 28, 2011 at 2:39 PM,  <mailto:dalecurtis@chromium.org> wrote:
> > > I'm hesitant to remove it completely as we dealt with the repeated
> > > keystrokes
> > > problem for weeks before fixing it with this change... though your testing
> > > seems
> > > to indicate the issue is no longer present.
> > >
> > > Can you run one last test? Take an R12 test image from go/chromeos-images
> > > and
> > 
> > I am actually using an official 0.12.313 test image for this.
> > 
> > > run the login_LoginSuccess test against it another 20 times. I want to
make
> > > sure
> > > there isn't a discrepancy between your dev build and an official test
image.
> > > I'll also spin a cycle up on my end with your patch.
> > >
> > > On 2011/03/28 21:27:54, gauravsh wrote:
> > >>
> > >> On Mon, Mar 28, 2011 at 8:52 AM, &nbsp;<mailto:dalecurtis@chromium.org>
> wrote:
> > >> > Whoops. The code definitely fixes the interrupted key presses however;
I
> > >> > ran
> > >> > a
> > >> > lot of A/B testing with a faulty image. I imagine it still works since
> > >> > the
> > >> > system runs max priority (+20) only when nothing else wants to run.
> > >> > Which
> > >> > likely
> > >> > indicates the original problem was indeed one of interruption.
> > >
> > >> I don't think that changing the priority to effectively be the minimum
> > >> possible would help things at all. A process running at a nice value
> > >> of 20 is more likely to be interrupted. Tt will start running when
> > >> nothing else wants to run but that doesn't mean something else would
> > >> want to run very soon (and there is always something).
> > >
> > >> In any case, I ran 20 iterations of login_LoginSuccess on a Cr-48 with
> > >> the following results:
> > >
> > >> renice to -20: &nbsp;All iterations PASS. Time taken = 22m
> > >> renice to 0 (aka no-op): All iterations PASS. Time taken = 23m51s
> > >> no renice: 25m25s
> > >
> > >> I think the variation is just noise and given this, I'd vote for
> > >> removing the renice completely unless there is a compelling reason not
> > >> to. I have uploaded a new patchset that does so. PTAL.
> > >
> > >
> > >
> > >
> > > http://codereview.chromium.org/6719026/
> > >
> > 
> > 
> > 
> > -- 
> > -g

Powered by Google App Engine
This is Rietveld 408576698