Re: HMP patches v2

2013-01-02 Thread Morten Rasmussen
On 02/01/13 10:29, Vincent Guittot wrote: On 2 January 2013 06:28, Viresh Kumar viresh.ku...@linaro.org wrote: On 20 December 2012 13:41, Vincent Guittot vincent.guit...@linaro.org wrote: On 19 December 2012 11:57, Morten Rasmussen morten.rasmus...@arm.com wrote: If I understand the new

Re: HMP patches v2

2012-12-19 Thread Morten Rasmussen
On 19/12/12 09:34, Viresh Kumar wrote: On 19 December 2012 14:53, Vincent Guittot vincent.guit...@linaro.org wrote: Le 19 déc. 2012 07:34, Viresh Kumar viresh.ku...@linaro.org a écrit : Can we resolve this issue now? I don't want anything during the release period this time. The new version

[HMP][PATCH 0/1] Global balance

2012-12-07 Thread Morten Rasmussen
in the MP branch for the 12.12 release? Testing with sysbench and coremark show significant performance improvements for parallel workloads as all cpus can now be used for cpu intensive tasks. Thanks, Morten Morten Rasmussen (1): sched: Basic global balancing support for HMP kernel/sched/fair.c

[HMP][PATCH 1/1] sched: Basic global balancing support for HMP

2012-12-07 Thread Morten Rasmussen
is under-utilized. Signed-off-by: Morten Rasmussen morten.rasmus...@arm.com --- kernel/sched/fair.c | 101 +-- 1 file changed, 97 insertions(+), 4 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 1cfe112..7ac47c9 100644

Re: [HMP][PATCH 0/1] Global balance

2012-12-07 Thread Morten Rasmussen
wrote: On Fri, Dec 7, 2012 at 5:33 PM, Morten Rasmussen morten.rasmus...@arm.com wrote: Hi Viresh, Here is a patch that introduces global load balancing on top of the existing HMP patch set. It depends on the HMP patches already present in your task-placement-v2 branch. It can

Re: [HMP][PATCH 0/1] Global balance

2012-12-07 Thread Morten Rasmussen
On 07/12/12 14:54, Viresh Kumar wrote: On 7 December 2012 18:43, Morten Rasmussen morten.rasmus...@arm.com wrote: I should have included the numbers in the cover letter. Here are numbers for TC2. sysbench (normalized execution time, lower is better) threads 2 4 8 HMP

Re: HMP patches v2

2012-12-05 Thread Morten Rasmussen
On 05/12/12 11:01, Viresh Kumar wrote: On 5 December 2012 16:28, Liviu Dudau liviu.du...@arm.com wrote: The revert request came at Morten's suggestion. He has comments on the code and technical reasons why he believes that the approach is not the best one as well as some scenarios where

Re: HMP patches v2

2012-12-05 Thread Morten Rasmussen
On 05/12/12 11:35, Viresh Kumar wrote: On 5 December 2012 16:58, Morten Rasmussen morten.rasmus...@arm.com wrote: I tested Vincent's fix (sched: pack small tasks: fix update packing domain) for the buddy selection some weeks ago and confirmed that it works. So my quick fixes are no longer

Re: [RFC 3/6] sched: pack small tasks

2012-11-20 Thread Morten Rasmussen
Hi Vincent, On Mon, Nov 12, 2012 at 01:51:00PM +, Vincent Guittot wrote: On 9 November 2012 18:13, Morten Rasmussen morten.rasmus...@arm.com wrote: Hi Vincent, I have experienced suboptimal buddy selection on a dual cluster setup (ARM TC2) if SD_SHARE_POWERLINE is enabled at MC level

Re: [HMP tunables v2][PATCH 3/7] ARM: TC2: Re-enable SD_SHARE_POWERLINE

2012-11-19 Thread Morten Rasmussen
Hi Vincent, On 19/11/12 09:20, Vincent Guittot wrote: Hi, On 16 November 2012 19:32, Liviu Dudau liviu.du...@arm.com wrote: From: Morten Rasmussen morten.rasmus...@arm.com Re-enable SD_SHARE_POWERLINE to reflect the power domains of TC2. --- arch/arm/kernel/topology.c |2 +- 1 file

Re: [HMP tunables v2][PATCH 3/7] ARM: TC2: Re-enable SD_SHARE_POWERLINE

2012-11-19 Thread Morten Rasmussen
On 19/11/12 12:23, Vincent Guittot wrote: On 19 November 2012 13:08, Morten Rasmussen morten.rasmus...@arm.com wrote: Hi Vincent, On 19/11/12 09:20, Vincent Guittot wrote: Hi, On 16 November 2012 19:32, Liviu Dudau liviu.du...@arm.com wrote: From: Morten Rasmussen morten.rasmus

Re: [HMP tunables v2][PATCH 3/7] ARM: TC2: Re-enable SD_SHARE_POWERLINE

2012-11-19 Thread Morten Rasmussen
On 19/11/12 14:09, Vincent Guittot wrote: On 19 November 2012 14:36, Morten Rasmussen morten.rasmus...@arm.com wrote: On 19/11/12 12:23, Vincent Guittot wrote: On 19 November 2012 13:08, Morten Rasmussen morten.rasmus...@arm.com wrote: Hi Vincent, On 19/11/12 09:20, Vincent Guittot wrote

Re: [RFC 3/6] sched: pack small tasks

2012-11-09 Thread Morten Rasmussen
On Fri, Nov 02, 2012 at 10:53:47AM +, Santosh Shilimkar wrote: On Monday 29 October 2012 06:42 PM, Vincent Guittot wrote: On 24 October 2012 17:20, Santosh Shilimkar santosh.shilim...@ti.com wrote: Vincent, Few comments/questions. On Sunday 07 October 2012 01:13 PM, Vincent

Re: [RFC 3/6] sched: pack small tasks

2012-11-09 Thread Morten Rasmussen
Hi Vincent, I have experienced suboptimal buddy selection on a dual cluster setup (ARM TC2) if SD_SHARE_POWERLINE is enabled at MC level and disabled at CPU level. This seems to be the correct flag settings for a system with only cluster level power gating. To me it looks like

Re: Fix for HMP scheduler crash [ Re: [GIT PULL]: big LITTLE MP v10]

2012-10-12 Thread Morten Rasmussen
hmp_domain), GFP_KERNEL); cpumask_copy(domain-cpus, hmp_fast_cpu_mask); -- 1.7.10.4 From 9f241c37bb7316eeea56e6c93541352cf5c9b8a8 Mon Sep 17 00:00:00 2001 From: Morten Rasmussen morten.rasmus...@arm.com Date: Fri, 12 Oct 2012 15:25:02 +0100 Subject: [PATCH] sched: Only down migrate low

Re: Fix for HMP scheduler crash [ Re: [GIT PULL]: big LITTLE MP v10]

2012-10-12 Thread Morten Rasmussen
On Fri, Oct 12, 2012 at 04:33:19PM +0100, Jon Medhurst (Tixy) wrote: On Fri, 2012-10-12 at 16:11 +0100, Morten Rasmussen wrote: Hi Tixy, Thanks for the patch. I think this patch is the right way to solve this issue. There is still a problem with the priority filter

Re: [RFC PATCH 06/10] ARM: sched: Use device-tree to provide fast/slow CPU list for HMP

2012-10-10 Thread Morten Rasmussen
On Thu, Oct 04, 2012 at 07:49:32AM +0100, Viresh Kumar wrote: On 22 September 2012 00:02, morten.rasmus...@arm.com wrote: From: Morten Rasmussen morten.rasmus...@arm.com We can't rely on Kconfig options to set the fast and slow CPU lists for HMP scheduling if we want a single kernel

Re: [RFC PATCH 06/10] ARM: sched: Use device-tree to provide fast/slow CPU list for HMP

2012-10-10 Thread Morten Rasmussen
Hi Tixy, Could you have a look at my code stealing patch below? Since it is basically a trimmed version of one of your patches I would prefer to put you as author and have your SOB on it. What is your opinion? Thanks, Morten On Fri, Sep 21, 2012 at 07:32:21PM +0100, Morten Rasmussen wrote

Re: [RFC PATCH 07/10] ARM: sched: Setup SCHED_HMP domains

2012-10-10 Thread Morten Rasmussen
On Thu, Oct 04, 2012 at 07:58:45AM +0100, Viresh Kumar wrote: On 22 September 2012 00:02, morten.rasmus...@arm.com wrote: diff --git a/arch/arm/kernel/topology.c b/arch/arm/kernel/topology.c +void __init arch_get_hmp_domains(struct list_head *hmp_domains_list) +{ + struct cpumask

Re: [RFC PATCH 02/10] sched: Task placement for heterogeneous systems based on task load-tracking

2012-10-09 Thread Morten Rasmussen
Hi Viresh, On Thu, Oct 04, 2012 at 07:02:03AM +0100, Viresh Kumar wrote: Hi Morten, On 22 September 2012 00:02, morten.rasmus...@arm.com wrote: From: Morten Rasmussen morten.rasmus...@arm.com This patch introduces the basic SCHED_HMP infrastructure. Each class of cpus is represented

Re: [RFC PATCH 04/10] sched: Introduce priority-based task migration filter

2012-10-09 Thread Morten Rasmussen
On Thu, Oct 04, 2012 at 07:27:00AM +0100, Viresh Kumar wrote: On 22 September 2012 00:02, morten.rasmus...@arm.com wrote: +config SCHED_HMP_PRIO_FILTER + bool (EXPERIMENTAL) Filter HMP migrations by task priority + depends on SCHED_HMP Should it depend on EXPERIMENTAL?

[RFC PATCH 09/10] sched: Add HMP task migration ftrace event

2012-09-21 Thread morten . rasmussen
From: Morten Rasmussen morten.rasmus...@arm.com Adds ftrace event for tracing task migrations using HMP optimized scheduling. Signed-off-by: Morten Rasmussen morten.rasmus...@arm.com --- include/trace/events/sched.h | 28 kernel/sched/fair.c | 15

[RFC PATCH 05/10] ARM: Add HMP scheduling support for ARM architecture

2012-09-21 Thread morten . rasmussen
From: Morten Rasmussen morten.rasmus...@arm.com Adds Kconfig entries to enable HMP scheduling on ARM platforms. Currently, it disables CPU level sched_domain load-balacing in order to simplify things. This needs fixing in a later revision. HMP scheduling will do the load-balancing at this level

[RFC PATCH 08/10] sched: Add ftrace events for entity load-tracking

2012-09-21 Thread morten . rasmussen
From: Morten Rasmussen morten.rasmus...@arm.com Adds ftrace events for key variables related to the entity load-tracking to help debugging scheduler behaviour. Allows tracing of load contribution and runqueue residency ratio for both entities and runqueues as well as entity CPU usage ratio

[RFC PATCH 00/10] sched: Task placement for heterogeneous MP systems

2012-09-21 Thread morten . rasmussen
From: Morten Rasmussen morten.rasmus...@arm.com Hi Paul, Paul, Peter, Suresh, linaro-sched-sig, and LKML, As a follow-up on my Linux Plumbers Conference talk about my experiments with scheduling on heterogeneous systems I'm posting a proof-of-concept patch set with my modifications

[RFC PATCH 07/10] ARM: sched: Setup SCHED_HMP domains

2012-09-21 Thread morten . rasmussen
From: Morten Rasmussen morten.rasmus...@arm.com SCHED_HMP requires the different cpu types to be represented by an ordered list of hmp_domains. Each hmp_domain represents all cpus of a particular type using a cpumask. The list is platform specific and therefore must be generated by platform code

[RFC PATCH 06/10] ARM: sched: Use device-tree to provide fast/slow CPU list for HMP

2012-09-21 Thread morten . rasmussen
From: Morten Rasmussen morten.rasmus...@arm.com We can't rely on Kconfig options to set the fast and slow CPU lists for HMP scheduling if we want a single kernel binary to support multiple devices with different CPU topology. E.g. TC2 (ARM's Test-Chip-2 big.LITTLE system), Fast Models, or even

[RFC PATCH 04/10] sched: Introduce priority-based task migration filter

2012-09-21 Thread morten . rasmussen
From: Morten Rasmussen morten.rasmus...@arm.com Introduces a priority threshold which prevents low priority task from migrating to faster hmp_domains (cpus). This is useful for user-space software which assigns lower task priority to background task. Signed-off-by: Morten Rasmussen morten.rasmus

[RFC PATCH 03/10] sched: Forced task migration on heterogeneous systems

2012-09-21 Thread morten . rasmussen
From: Morten Rasmussen morten.rasmus...@arm.com This patch introduces forced task migration for moving suitable currently running tasks between hmp_domains. Task behaviour is likely to change over time. Tasks running in a less capable hmp_domain may change to become more demanding and should

[RFC PATCH 02/10] sched: Task placement for heterogeneous systems based on task load-tracking

2012-09-21 Thread morten . rasmussen
From: Morten Rasmussen morten.rasmus...@arm.com This patch introduces the basic SCHED_HMP infrastructure. Each class of cpus is represented by a hmp_domain and tasks will only be moved between these domains when their load profiles suggest it is beneficial. SCHED_HMP relies heavily on the task

[RFC PATCH 10/10] sched: SCHED_HMP multi-domain task migration control

2012-09-21 Thread morten . rasmussen
From: Morten Rasmussen morten.rasmus...@arm.com We need a way to prevent tasks that are migrating up and down the hmp_domains from migrating straight on through before the load has adapted to the new compute capacity of the CPU on the new hmp_domain. This patch adds a next up/down migration delay

[RFC PATCH 01/10] sched: entity load-tracking load_avg_ratio

2012-09-21 Thread morten . rasmussen
From: Morten Rasmussen morten.rasmus...@arm.com This patch adds load_avg_ratio to each task. The load_avg_ratio is a variant of load_avg_contrib which is not scaled by the task priority. It is calculated like this: runnable_avg_sum * NICE_0_LOAD / (runnable_avg_period + 1). Signed-off

Re: [GIT PULL] bit-LITTLE-MP-v7 - IMPORTANT

2012-09-05 Thread Morten Rasmussen
Hi Viresh, On Mon, Sep 03, 2012 at 06:21:26AM +0100, Viresh Kumar wrote: On 28 August 2012 10:37, Viresh Kumar viresh.ku...@linaro.org wrote: I have updated https://wiki.linaro.org/WorkingGroups/PowerManagement/Process/bigLittleMPTree as per our last discussion. Please see if i have