From nobody Mon Apr 21 18:56:35 2025 X-Original-To: freebsd-hackers@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 4ZhF3J1R3dz5st4D for ; Mon, 21 Apr 2025 18:57:00 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from webmail5.jnielsen.net (webmail5.jnielsen.net [IPv6:2607:f170:34:11::b0]) (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 "mail.freebsdsolutions.net", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ZhF3H4Gxdz4DXG for ; Mon, 21 Apr 2025 18:56:59 +0000 (UTC) (envelope-from lists@jnielsen.net) Authentication-Results: mx1.freebsd.org; none Received: from smtpclient.apple ([50.207.241.62]) (authenticated bits=0) by webmail5.jnielsen.net (8.17.2/8.17.2) with ESMTPSA id 53LIujJx007311 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 21 Apr 2025 12:56:48 -0600 (MDT) (envelope-from lists@jnielsen.net) X-Authentication-Warning: webmail5.jnielsen.net: Host [50.207.241.62] claimed to be smtpclient.apple Content-Type: text/plain; charset=utf-8 List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.500.181.1.5\)) Subject: Re: methods of hyperthreading on or off From: John Nielsen In-Reply-To: Date: Mon, 21 Apr 2025 12:56:35 -0600 Cc: freebsd-hackers@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <238B56E3-F603-4967-98E6-5B321B529A5F@jnielsen.net> References: To: void X-Mailer: Apple Mail (2.3826.500.181.1.5) X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:6364, ipnet:2607:f170:30::/44, country:US] X-Rspamd-Queue-Id: 4ZhF3H4Gxdz4DXG X-Spamd-Bar: ---- On Apr 21, 2025, at 5:34=E2=80=AFAM, void wrote: >=20 >=20 > I'd like to turn off hyperthreading on some (most) freebsd machines, > the rationale being greater network throughput. >=20 > HT can be turned off in the bios and/or via a read-only sysctl > in /boot/loader.conf (machdep.hyperthreading_allowed=3D"0") >=20 > Which method is superior, and why? =E2=80=9CSuperior=E2=80=9D is entirely subjective in this case. The = outcome will the largely the same with either method; your machine will = not use hyperthreads. If you disable it in the BIOS then the OS will = never see them. If you disable it via the tunable then the OS will never = use them. The one benefit I can think of is that the tunable is easier = to change remotely since you typically need console access to manage = BIOS settings. As to whether this will help whatever network throughput issue you=E2=80=99= re seeing (or if there could be a better way to approach that) I have no = idea. JN