From: MIke Galbraith <efault@gmx.de>
To: "Daniel K." <daniel@cluded.net>
Cc: lkml <linux-kernel@vger.kernel.org>, Ingo Molnar <mingo@elte.hu>,
Andrew Morton <akpm@osdl.org>, Con Kolivas <kernel@kolivas.org>,
Peter Williams <pwil3058@bigpond.net.au>,
Nick Piggin <nickpiggin@yahoo.com.au>
Subject: Re: [patch 2.6.16-rc4-mm1] Task Throttling V14
Date: Sun, 26 Feb 2006 14:19:35 +0100 [thread overview]
Message-ID: <1140959975.7658.9.camel@homer> (raw)
In-Reply-To: <44019075.2000205@cluded.net>
On Sun, 2006-02-26 at 11:26 +0000, Daniel K. wrote:
> MIke Galbraith wrote:
> > On Fri, 2006-02-17 at 14:45 +0100, MIke Galbraith wrote:
> > +/*
> > + * Masks for p->slice_info, formerly p->first_time_slice.
> > + * SLICE_FTS: 0x80000000 Task is in it's first ever timeslice.
> > + * SLICE_NEW: 0x40000000 Slice refreshed.
> > + * SLICE_SPA: 0x3FFF8000 Spare bits.
> > + * SLICE_LTS: 0x00007F80 Last time slice
> > + * SLICE_AVG: 0x0000007F Task slice_avg stored as percentage.
> > + */
> > +#define SLICE_AVG_BITS 7
> > +#define SLICE_LTS_BITS 10
> > +#define SLICE_SPA_BITS 13
> > +#define SLICE_NEW_BITS 1
> > +#define SLICE_FTS_BITS 1
>
> I count 8 and 15 bits in the documentation of LTS/SPA respectively, not
> 10 and 13.
Dang, fixed the stupid bug, but forgot to wipe the evidence ;-) Fixed.
>
> > }
> >
> > if (likely(sleep_time > 0)) {
> > +
>
> Extra line
Fixed.
>
> > + {
> > + .ctl_name = KERN_SCHED_THROTTLE1,
> > + .procname = "sched_g1",
> > + .data = &sched_g1,
> > + .maxlen = sizeof (int),
> > + .mode = 0644,
> > + .proc_handler = &proc_dointvec_minmax,
> > + .strategy = &sysctl_intvec,
> > + .extra1 = &zero,
> > + .extra2 = &sched_g2_max,
>
> sched_g2_max is possibly badly named, as it is used in connection with
> sched_g1 here.
>
> > + },
> > + {
> > + .ctl_name = KERN_SCHED_THROTTLE2,
> > + .procname = "sched_g2",
> > + .data = &sched_g2,
> > + .maxlen = sizeof (int),
> > + .mode = 0644,
> > + .proc_handler = &proc_dointvec_minmax,
> > + .strategy = &sysctl_intvec,
> > + .extra1 = &zero,
> > + .extra2 = &sched_g2_max,
> > + },
I suppose sched_grace_max would fit better.
Thanks for taking a look.
-Mike
prev parent reply other threads:[~2006-02-26 13:19 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-17 13:45 [patch 2.6.16-rc3-mm1] Task Throttling V9 MIke Galbraith
2006-02-24 20:29 ` [patch 2.6.16-rc4-mm1] Task Throttling V14 MIke Galbraith
2006-02-24 22:15 ` Andrew Morton
2006-02-25 1:16 ` Peter Williams
2006-02-25 2:20 ` MIke Galbraith
2006-02-25 2:42 ` Nick Piggin
2006-02-25 2:57 ` Con Kolivas
2006-02-25 3:08 ` Nick Piggin
2006-02-25 3:35 ` MIke Galbraith
2006-02-25 2:23 ` MIke Galbraith
2006-03-03 10:43 ` [patch 2.6.16-rc5-mm2] sched_cleanup-V17 - task throttling patch 1 of 2 Mike Galbraith
2006-03-03 10:58 ` [patch 2.6.16-rc5-mm2] sched_throttle-V17 - task throttling patch 2 " Mike Galbraith
2006-03-03 23:58 ` [patch 2.6.16-rc5-mm2] sched_cleanup-V17 - task throttling patch 1 " Peter Williams
2006-03-04 4:54 ` Mike Galbraith
2006-03-04 21:37 ` Peter Williams
2006-03-05 4:53 ` Mike Galbraith
2006-03-05 6:54 ` Mike Galbraith
2006-03-04 2:33 ` Peter Williams
2006-03-04 5:20 ` Mike Galbraith
2006-03-04 5:24 ` Con Kolivas
2006-03-04 5:29 ` Mike Galbraith
2006-03-04 5:40 ` Randy.Dunlap
2006-03-04 5:54 ` Con Kolivas
2006-03-04 6:05 ` Randy.Dunlap
2006-03-04 6:50 ` Mike Galbraith
2006-03-04 6:50 ` Con Kolivas
2006-03-04 7:04 ` Mike Galbraith
2006-03-05 22:29 ` Peter Williams
2006-03-04 21:44 ` Peter Williams
2006-03-04 10:53 ` Mike Galbraith
2006-02-26 11:26 ` [patch 2.6.16-rc4-mm1] Task Throttling V14 Daniel K.
2006-02-26 13:19 ` MIke Galbraith [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1140959975.7658.9.camel@homer \
--to=efault@gmx.de \
--cc=akpm@osdl.org \
--cc=daniel@cluded.net \
--cc=kernel@kolivas.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=nickpiggin@yahoo.com.au \
--cc=pwil3058@bigpond.net.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox