Re: [PATCH v4 03/10] sched/topology: Provide cfs_overload_cpus bitmap

2018-12-08 Thread Valentin Schneider
On 07/12/2018 22:35, Steven Sistare wrote: [...] >>> + if (!sds->cfs_overload_cpus) { >>> + mask = sparsemask_alloc_node(nr_cpu_ids, 3, flags, nid); >> ^^ ^^^ >> (1)(2) >> >> (1): I

Re: [PATCH v4 03/10] sched/topology: Provide cfs_overload_cpus bitmap

2018-12-07 Thread Steven Sistare
On 12/7/2018 3:20 PM, Valentin Schneider wrote: > Hi Steve, > > On 06/12/2018 21:28, Steve Sistare wrote: > [...] >> @@ -1621,7 +1626,22 @@ static void __sdt_free(const struct cpumask *cpu_map) >> >> static int sd_llc_alloc(struct sched_domain *sd) >> { >> -/* Allocate sd->shared data here

Re: [PATCH v4 03/10] sched/topology: Provide cfs_overload_cpus bitmap

2018-12-07 Thread Valentin Schneider
Hi Steve, On 06/12/2018 21:28, Steve Sistare wrote: [...] > @@ -1621,7 +1626,22 @@ static void __sdt_free(const struct cpumask *cpu_map) > > static int sd_llc_alloc(struct sched_domain *sd) > { > - /* Allocate sd->shared data here. Empty for now. */ > + struct sched_domain_shared *sds

[PATCH v4 03/10] sched/topology: Provide cfs_overload_cpus bitmap

2018-12-06 Thread Steve Sistare
From: Steve Sistare Define and initialize a sparse bitmap of overloaded CPUs, per last-level-cache scheduling domain, for use by the CFS scheduling class. Save a pointer to cfs_overload_cpus in the rq for efficient access. Signed-off-by: Steve Sistare --- include/linux/sched/topology.h | 1 +