]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] Introduce CONFIG_DEFAULT_MIGRATION_COST
authorIngo Molnar <mingo@elte.hu>
Fri, 17 Feb 2006 21:52:44 +0000 (13:52 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 17 Feb 2006 21:59:26 +0000 (13:59 -0800)
commit0f7e2e932d72b4ebbf19c20f6eb9db881d3d9424
tree2f8ed8aa42a1645a9cb3306ce93c9e4b63536630
parente7ad00a6750053e0055d125d9c19964954e6d266
[PATCH] Introduce CONFIG_DEFAULT_MIGRATION_COST

Heiko Carstens <heiko.carstens@de.ibm.com> wrote:

  The boot sequence on s390 sometimes takes ages and we spend a very long
  time (up to one or two minutes) in calibrate_migration_costs.  The time
  spent there differs from boot to boot.  Also the calculated costs differ
  a lot.  I've seen differences by up to a factor of 15 (yes, factor not
  percent).  Also I doubt that making these measurements make much sense on
  a completely virtualized architecture where you cannot tell how much cpu
  time you will get anyway.

So introduce the CONFIG_DEFAULT_MIGRATION_COST method for an architecture
to set the scheduler migration costs.  This turns off automatic detection
of migration costs.  Makes sense on virtual platforms, where migration
costs are hard to measure accurately.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/s390/Kconfig
kernel/sched.c