[Bug 279901] glibc-2.39-2 and above on the host segfault

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 05 Mar 2025 09:39:19 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279901

--- Comment #73 from Koichiro Iwao <meta@FreeBSD.org> ---
(In reply to Konstantin Belousov from comment #72)
> In what sense this is wrong?
> 32MB is relatively reasonable number.  What misbehavior do you see?

The processor actually has only 16MB L3 cache but  bhyve reports the doubled
value. Maybe you meant that it's normal for the cache size not to be the same
as the physical CPU? Sorry about that if it is absolutely normal.

On my other hardware which has Intel CPU, it reports exactly the same cache
sizes with physical CPU. That's the reason why I considered it is still wrong. 

(AlmaLinux 9 on vanilla bhyve 14.2-RELEASE on Intel Celeron N5105)
$ ld.so --list-diagnostics | grep cache
x86.cpu_features.data_cache_size=0x8000
x86.cpu_features.shared_cache_size=0x400000
x86.cpu_features.level1_icache_size=0x8000
x86.cpu_features.level1_icache_linesize=0x40
x86.cpu_features.level1_dcache_size=0x8000
x86.cpu_features.level1_dcache_assoc=0x8
x86.cpu_features.level1_dcache_linesize=0x40
x86.cpu_features.level2_cache_size=0x180000
x86.cpu_features.level2_cache_assoc=0xc
x86.cpu_features.level2_cache_linesize=0x40
x86.cpu_features.level3_cache_size=0x400000
x86.cpu_features.level3_cache_assoc=0x10
x86.cpu_features.level3_cache_linesize=0x40
x86.cpu_features.level4_cache_size=0xffffffffffffffff
x86.cpu_features.cachesize_non_temporal_divisor=0x4

-- 
You are receiving this mail because:
You are the assignee for the bug.