]> git.ipfire.org Git - thirdparty/glibc.git/commit
[PATCH v1] 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>
Wed, 19 Jul 2023 03:34:34 +0000 (22:34 -0500)
commit8b9a0af8ca012217bf90d1dc0694f85b49ae09da
tree114482c5ba541ec936bc5ed5bb7cc27995ba8623
parent47f747217811db35854ea06741be3685e8bbd44d
[PATCH v1] 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>
sysdeps/x86/dl-cacheinfo.h