FreeBSD on Ryzen

Don Lewis truckman at FreeBSD.org
Thu Mar 23 22:33:16 UTC 2017


On 23 Mar, Don Lewis wrote:
> On 23 Mar, Andriy Gapon wrote:
>> On 03/23/2017 06:05, Don Lewis wrote:
>>> Package ID shift: 4
>>> L3 cache ID shift: 3
>>> L2 cache ID shift: 1
>>> L1 cache ID shift: 1
>>> Core ID shift: 0
>>> INTR: Adding local APIC 1 as a target
>>> INTR: Adding local APIC 2 as a target
>>> INTR: Adding local APIC 3 as a target
>>> INTR: Adding local APIC 4 as a target
>>> INTR: Adding local APIC 5 as a target
>>> INTR: Adding local APIC 6 as a target
>>> INTR: Adding local APIC 7 as a target
>>> INTR: Adding local APIC 8 as a target
>>> INTR: Adding local APIC 9 as a target
>>> INTR: Adding local APIC 10 as a target
>>> INTR: Adding local APIC 11 as a target
>>> INTR: Adding local APIC 12 as a target
>>> INTR: Adding local APIC 13 as a target
>>> INTR: Adding local APIC 14 as a target
>>> INTR: Adding local APIC 15 as a target
>>> FreeBSD/SMP: Multiprocessor System Detected: 16 CPUs
>>> FreeBSD/SMP: 1 package(s) x 16 core(s)
>> 
>> Don,
>> 
>> thank you!
>> Could you please test this patch https://paste.debian.net/923675/ and
>> see if it allows to detect SMT threads?
> 
> It took some doing since we don't have the AMDID2_NODE_ID code, but with
> the patch applied, I do see SMT threads.
> 
> FreeBSD/SMP: Multiprocessor System Detected: 16 CPUs
> FreeBSD/SMP: 1 package(s) x 8 core(s) x 2 hardware threads

This patch improved make -j8 buildworld performance by about 0.9% and
-j16 by about 1.3%.



More information about the freebsd-amd64 mailing list