]> 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>
Tue, 18 Jul 2023 15:27:59 +0000 (10:27 -0500)
committerNoah Goldstein <goldstein.w.n@gmail.com>
Tue, 5 Sep 2023 22:17:52 +0000 (17:17 -0500)
commita07ab67a8815fd4b1b6029850b880f7880ec845f
tree000ef6c9210982b90e1aac9b5720800c2c44fc0f
parent521afc963799681dd2ff8309d7cd0cf6dc4bc0c3
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/dl-cacheinfo.h