Re: [PATCH 11/11] perf/x86/intel: Perform rotation on Intel CQM RMIDs

From: Matt Fleming
Date: Wed Oct 08 2014 - 16:05:10 EST


On Wed, 08 Oct, at 08:10:44PM, Peter Zijlstra wrote:
> On Wed, Sep 24, 2014 at 03:04:15PM +0100, Matt Fleming wrote:
> > + limbo_bitmap = kmalloc(sizeof(long) * BITS_TO_LONGS(nr_bits) *
> > + nr_cpumask_bits, GFP_KERNEL);
>
> That's going to be a _huge_ amount of memory on SGI class systems. Do we
> really need per-cpu storage for this?

Ah, no we don't.

Allocating it the above way just makes things easier because you can
index the array directly using your cpu.

I'll shrink this down to the minimum memory needed.

--
Matt Fleming, Intel Open Source Technology Center
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/