lkml.org 
[lkml]   [2010]   [Sep]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [RFC PATCH 1/2] perf_events: add support for per-cpu per-cgroup monitoring (v2)
From
On Wed, Sep 8, 2010 at 3:52 PM, Peter Zijlstra <peterz@infradead.org> wrote:
> On Wed, 2010-09-08 at 15:30 +0200, Stephane Eranian wrote:
>> +       } times[NR_CPUS] ____cacheline_aligned_in_smp;
>
> That's fail! NR_CPUS can be like 4k for distro configs.
>
How do you do this on struct that are dynamically allocated?
The number of css is dynamic.

> Use proper per-cpu allocations.
>
--
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/

\
 
 \ /
  Last update: 2010-09-08 15:59    [W:0.042 / U:0.308 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site