From: Heiko Carstens <heiko.carstens@de.ibm.com>
To: Andrew Morton <akpm@osdl.org>
Cc: Hannes Reinecke <hare@suse.de>,
linux-kernel@vger.kernel.org, Ingo Molnar <mingo@elte.hu>
Subject: Re: calibrate_migration_costs takes ages on s390
Date: Thu, 16 Feb 2006 07:27:27 +0100 [thread overview]
Message-ID: <20060216062727.GB9241@osiris.boeblingen.de.ibm.com> (raw)
In-Reply-To: <20060213104645.GA17173@elte.hu>
> 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>
>
> ----
>
> arch/s390/Kconfig | 4 ++++
> kernel/sched.c | 13 ++++++++++++-
> 2 files changed, 16 insertions(+), 1 deletion(-)
>
> Index: linux-robust-list.q/arch/s390/Kconfig
> ===================================================================
> --- linux-robust-list.q.orig/arch/s390/Kconfig
> +++ linux-robust-list.q/arch/s390/Kconfig
> @@ -80,6 +80,10 @@ config HOTPLUG_CPU
> can be controlled through /sys/devices/system/cpu/cpu#.
> Say N if you want to disable CPU hotplug.
>
> +config DEFAULT_MIGRATION_COST
> + int
> + default "1000000"
> +
> config MATHEMU
> bool "IEEE FPU emulation"
> depends on MARCH_G5
> Index: linux-robust-list.q/kernel/sched.c
> ===================================================================
> --- linux-robust-list.q.orig/kernel/sched.c
> +++ linux-robust-list.q/kernel/sched.c
> @@ -5159,7 +5159,18 @@ static void init_sched_build_groups(stru
> #define MAX_DOMAIN_DISTANCE 32
>
> static unsigned long long migration_cost[MAX_DOMAIN_DISTANCE] =
> - { [ 0 ... MAX_DOMAIN_DISTANCE-1 ] = -1LL };
> + { [ 0 ... MAX_DOMAIN_DISTANCE-1 ] =
> +/*
> + * Architectures may override the migration cost and thus avoid
> + * boot-time calibration. Unit is nanoseconds. Mostly useful for
> + * virtualized hardware:
> + */
> +#ifdef CONFIG_DEFAULT_MIGRATION_COST
> + CONFIG_DEFAULT_MIGRATION_COST
> +#else
> + -1LL
> +#endif
> +};
>
> /*
> * Allow override of migration cost - in units of microseconds.
> -
This one should be applied then.
Thanks,
Heiko
prev parent reply other threads:[~2006-02-16 6:27 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-13 10:26 Heiko Carstens
2006-02-13 10:34 ` David S. Miller
2006-02-13 10:54 ` Ingo Molnar
2006-02-13 20:57 ` David S. Miller
2006-02-13 10:46 ` Ingo Molnar
2006-02-13 16:13 ` Heiko Carstens
2006-02-13 23:42 ` Olaf Hering
2006-02-14 0:08 ` Olaf Hering
2006-02-14 8:09 ` Heiko Carstens
2006-02-14 10:56 ` Heiko Carstens
2006-02-14 12:35 ` Ingo Molnar
2006-02-14 12:37 ` Ingo Molnar
2006-02-16 6:27 ` Heiko Carstens [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=20060216062727.GB9241@osiris.boeblingen.de.ibm.com \
--to=heiko.carstens@de.ibm.com \
--cc=akpm@osdl.org \
--cc=hare@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
/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
all inboxes | Powered by JetHome®