Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1239312
| From | Ingo Molnar <mingo@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 1/4] sched/fair: Generalize the load/util averages resolution definition |
| Date | 2015-10-05 09:10 +0200 |
| Message-ID | <qg84i-94-7@gated-at.bofh.it> (permalink) |
| References | <qg34B-187-1@gated-at.bofh.it> <qg34C-187-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
* Yuyang Du <yuyang.du@intel.com> wrote: > +# define SCHED_RESOLUTION_SHIFT 10 > #if 0 /* BITS_PER_LONG > 32 -- currently broken: it increases power usage under light load */ Might be worth fixing? Also, I noticed this: > -# define SCHED_LOAD_RESOLUTION 10 > +# define SCHED_LOAD_SHIFT (SCHED_RESOLUTION_SHIFT + SCHED_RESOLUTION_SHIFT) So in the #if 0 (inactive) section we change it from 10 to 20 ... > -# define SCHED_LOAD_RESOLUTION 0 > +# define SCHED_LOAD_SHIFT (SCHED_RESOLUTION_SHIFT) > # define scale_load(w) (w) > # define scale_load_down(w) (w) > #endif > > -#define SCHED_LOAD_SHIFT (10 + SCHED_LOAD_RESOLUTION) ... then we change the actually active definition from 20 to 10? Was that intended? Please double check the 'make allyesconfig' disassembly of kernel/sched/built-in.o before/after this patch to make sure it does not change any code. ( No full allyesconfig build needed: 'make -j16 kernel/sched' should cut down on the build time. ) Thanks, Ingo -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/4] sched/fair: Clean up sched metric definitions Yuyang Du <yuyang.du@intel.com> - 2015-10-05 03:50 +0200
[PATCH 4/4] sched/fair: Rename scale_load() and scale_load_down() Yuyang Du <yuyang.du@intel.com> - 2015-10-05 03:50 +0200
[PATCH 1/4] sched/fair: Generalize the load/util averages resolution definition Yuyang Du <yuyang.du@intel.com> - 2015-10-05 03:50 +0200
Re: [PATCH 1/4] sched/fair: Generalize the load/util averages resolution definition Ingo Molnar <mingo@kernel.org> - 2015-10-05 09:10 +0200
Re: [PATCH 1/4] sched/fair: Generalize the load/util averages resolution definition Peter Zijlstra <peterz@infradead.org> - 2015-10-05 13:00 +0200
[PATCH 2/4] sched/fair: Remove SCHED_LOAD_SHIFT and SCHED_LOAD_SCALE Yuyang Du <yuyang.du@intel.com> - 2015-10-05 03:50 +0200
[PATCH 3/4] sched/fair: Remove scale_load_down() for load_avg Yuyang Du <yuyang.du@intel.com> - 2015-10-05 03:50 +0200
csiph-web