[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240326114945.GEZgK2WUJRKexfQomR@fat_crate.local>
Date: Tue, 26 Mar 2024 12:49:45 +0100
From: Borislav Petkov <bp@...en8.de>
To: Tony Luck <tony.luck@...el.com>
Cc: "Naik, Avadhut" <avadnaik@....com>,
"Mehta, Sohil" <sohil.mehta@...el.com>,
Yazen Ghannam <yazen.ghannam@....com>, x86@...nel.org,
linux-edac@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v3] x86/mce: Dynamically size space for machine check
records
On Thu, Mar 07, 2024 at 11:27:04AM -0800, Tony Luck wrote:
> - ret = gen_pool_add(tmpp, (unsigned long)gen_pool_buf, MCE_POOLSZ, -1);
> + mce_numrecords = max(MCE_MIN_ENTRIES, num_possible_cpus() * MCE_PER_CPU);
> + mce_poolsz = mce_numrecords * (1 << order);
So, on a big fat machine with 8K CPUs that's, what
8192 * 2 * (1 << 8) = ~4M
buffer?
Well, if you have a fat machine, you get fat buffers too.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette
Powered by blists - more mailing lists