Re: [PATCH v3 4/6] x86/MCE: Make number of MCA banks per_cpu

From: Luck, Tony
Date: Tue May 21 2019 - 16:45:20 EST


On Tue, May 21, 2019 at 10:29:02PM +0200, Borislav Petkov wrote:
>
> Can we do instead:
>
> -static DEFINE_PER_CPU_READ_MOSTLY(struct mce_bank *, mce_banks_array);
> +static DEFINE_PER_CPU_READ_MOSTLY(struct mce_bank, mce_banks_array[MAX_NR_BANKS]);
>
> which should be something like 9*32 = 288 bytes per CPU.
>

Where did you get the "9" from? struct mce_bank looks to
be over 50 bytes.

Still only 1.5K per cpu though.

-Tony