From owner-freebsd-amd64@freebsd.org Thu Mar 23 22:33:16 2017 Return-Path: Delivered-To: freebsd-amd64@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9697BD1BB00 for ; Thu, 23 Mar 2017 22:33:16 +0000 (UTC) (envelope-from truckman@FreeBSD.org) Received: from gw.catspoiler.org (unknown [IPv6:2602:304:b010:ef20::f2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "gw.catspoiler.org", Issuer "gw.catspoiler.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 78BAC11EC; Thu, 23 Mar 2017 22:33:16 +0000 (UTC) (envelope-from truckman@FreeBSD.org) Received: from FreeBSD.org (mousie.catspoiler.org [192.168.101.2]) by gw.catspoiler.org (8.15.2/8.15.2) with ESMTP id v2NMX86u059606; Thu, 23 Mar 2017 15:33:12 -0700 (PDT) (envelope-from truckman@FreeBSD.org) Message-Id: <201703232233.v2NMX86u059606@gw.catspoiler.org> Date: Thu, 23 Mar 2017 15:33:08 -0700 (PDT) From: Don Lewis Subject: Re: FreeBSD on Ryzen To: avg@FreeBSD.org cc: freebsd-amd64@FreeBSD.org In-Reply-To: <201703231822.v2NIMp1e054314@gw.catspoiler.org> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Mar 2017 22:33:16 -0000 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%.