Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Mar 2017 15:33:08 -0700 (PDT)
From:      Don Lewis <truckman@FreeBSD.org>
To:        avg@FreeBSD.org
Cc:        freebsd-amd64@FreeBSD.org
Subject:   Re: FreeBSD on Ryzen
Message-ID:  <201703232233.v2NMX86u059606@gw.catspoiler.org>
In-Reply-To: <201703231822.v2NIMp1e054314@gw.catspoiler.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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%.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703232233.v2NMX86u059606>