From nobody Tue Feb 07 14:09:26 2023 X-Original-To: freebsd-stable@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PB4kc368jz3n2F3 for ; Tue, 7 Feb 2023 14:09:28 +0000 (UTC) (envelope-from mike@karels.net) Received: from mail2.karels.net (mail2.karels.net [3.19.118.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "freebsd", Issuer "freebsd" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PB4kc2gpwz3hgd for ; Tue, 7 Feb 2023 14:09:28 +0000 (UTC) (envelope-from mike@karels.net) Authentication-Results: mx1.freebsd.org; none Received: from mail2.karels.net (localhost [IPv6:0:0:0:0:0:0:0:1]) by mail2.karels.net (8.16.1/8.16.1) with ESMTP id 317E9QCq031104; Tue, 7 Feb 2023 08:09:27 -0600 (CST) (envelope-from mike@karels.net) Received: from [10.0.2.130] ([73.62.165.147]) by mail2.karels.net with ESMTPSA id C5LfN5Zb4mN+eQAAs/W3XQ (envelope-from ); Tue, 07 Feb 2023 08:09:26 -0600 From: Mike Karels To: mike tancsa Cc: FreeBSD-STABLE Mailing List Subject: Re: Raptor Lake / Alder lake on RELENG_13 ? Date: Tue, 07 Feb 2023 08:09:26 -0600 X-Mailer: MailMate (1.14r5937) Message-ID: <3E515D30-958F-4483-B02C-C124C6D108F5@karels.net> In-Reply-To: <8b609a35-cd3c-b191-ec8e-a0819cfc013e@sentex.net> References: <0600fbab-035f-fd23-a6d7-27cd2f58665e@sentex.net> <8b609a35-cd3c-b191-ec8e-a0819cfc013e@sentex.net> List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4PB4kc2gpwz3hgd X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:16509, ipnet:3.16.0.0/14, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On 7 Feb 2023, at 7:41, mike tancsa wrote: > On 2/7/2023 8:29 AM, Mike Karels wrote: >> On 6 Feb 2023, at 16:04, mike tancsa wrote: >> >>> Hi All, >>> >>> =C2=A0=C2=A0=C2=A0 I have seen a couple of commits around these CPUs= , but wondering if anyone is running 13 on these newer hybrid CPUs ? Do t= he slower cores just get disabled or are they made use of somehow ? >>> >>> =C2=A0=C2=A0=C2=A0 ---Mike >> I have been testing the changes on -current, and they are working fine= =2E I have not tested on 13, but I would expect the same result. The wo= rkaround is on 13-stable, but not yet a RELENG branch. Presumably it wil= l be in 13.2 when it is branched. If no one else has reported, I will te= st the 13.2 branch. Also, I haven=E2=80=99t heard of tests on Raptor Lak= e, but I have heard that the behavior should be the same as Alder Lake. >> >> The E-cores are not disabled. They are forced to use a less efficient= method of page invalidation. They are scheduled as if they were P-cores= without threads, but they are less used because of the shared cache amon= g 4 cores rather than 2. I have some preliminary scheduler changes that = recognize the slower cores, but there are still issues to be dealt with. >> > Thank you very much for the detailed update!=C2=A0 Apart from some perf= ormance tweaking, would you say performance overall is pretty good, or wi= ll the scheduler enhancements need to be made still ? > > =C2=A0=C2=A0=C2=A0 ---Mike Performance seems very good to me. As far as I can tell, the E-cores are= slower than P-cores with a single thread, but faster than the second thr= ead on a P-core. Hopefully scheduler improvements will help more for a w= orkload that uses fewer than all hardware threads. Software threading co= uld in theory be handled better by putting threads where they will share = cache, but that is not a simple addition. Mike