]> git.ipfire.org Git - thirdparty/glibc.git/commit
x86: Use `3/4*sizeof(per-thread-L3)` as low bound for NT threshold.
authorNoah Goldstein <goldstein.w.n@gmail.com>
Fri, 11 Aug 2023 23:47:17 +0000 (18:47 -0500)
committerNoah Goldstein <goldstein.w.n@gmail.com>
Tue, 12 Sep 2023 03:48:28 +0000 (22:48 -0500)
commit83ce856e77fc50e213195a3f59aefb1e7dde6d71
tree96e86927879349671de7dcffe06457b322bbc575
parentf578da10209603802680c5f5783d280534afa537
x86: Use `3/4*sizeof(per-thread-L3)` as low bound for NT threshold.

On some machines we end up with incomplete cache information. This can
make the new calculation of `sizeof(total-L3)/custom-divisor` end up
lower than intended (and lower than the prior value). So reintroduce
the old bound as a lower bound to avoid potentially regressing code
where we don't have complete information to make the decision.
Reviewed-by: DJ Delorie <dj@redhat.com>
(cherry picked from commit 8b9a0af8ca012217bf90d1dc0694f85b49ae09da)
sysdeps/x86/cacheinfo.c