]> 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:07 +0000 (22:48 -0500)
commit1ebb55d5f406cb1f3427798daa17220cd7da5b9f
tree720581b923d0243406d666104fbd477197d677b0
parent863fc577db623c4d14a889d38c5f73e2d61dc8e5
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