From nobody Tue Apr 22 07:57:02 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 4ZhZMb1ZZNz5tlCR for ; Tue, 22 Apr 2025 07:57:15 +0000 (UTC) (envelope-from SRS0=4zWH=XI=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4ZhZMX1JXrz3xVR for ; Tue, 22 Apr 2025 07:57:12 +0000 (UTC) (envelope-from SRS0=4zWH=XI=quip.cz=000.fbsd@elsa.codelab.cz) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=quip.cz header.s=private header.b=MMd0zFGK; dkim=pass header.d=quip.cz header.s=private header.b=MMd0zFGK; dmarc=none; spf=none (mx1.freebsd.org: domain of "SRS0=4zWH=XI=quip.cz=000.fbsd@elsa.codelab.cz" has no SPF policy when checking 94.124.105.4) smtp.mailfrom="SRS0=4zWH=XI=quip.cz=000.fbsd@elsa.codelab.cz" Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id CD67AD7899 for ; Tue, 22 Apr 2025 09:57:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quip.cz; s=private; t=1745308623; bh=VXZw1joMmxj0fWtA8P8sIiSAxV2pw2zYAZALODkgv+c=; h=Date:Subject:To:References:From:In-Reply-To; b=MMd0zFGKFs4B8YZN83J9YGaKmSSDJeuEfqrjB4VI5Ln7BcgjS/1CXYImmQqfHqcr1 hjx5nbtMIEQItVjrA6yD2w306D+CKbLm+cMXAWjMxUUeeiwkm51DbSJaH2+R/mO3IE oyGK4SBZzXKkLqG967H9Qd/3Yas4oJJIBb3xXzlM= Received: from [192.168.145.49] (ip-89-177-27-225.bb.vodafone.cz [89.177.27.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 0552AD7897 for ; Tue, 22 Apr 2025 09:57:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quip.cz; s=private; t=1745308623; bh=VXZw1joMmxj0fWtA8P8sIiSAxV2pw2zYAZALODkgv+c=; h=Date:Subject:To:References:From:In-Reply-To; b=MMd0zFGKFs4B8YZN83J9YGaKmSSDJeuEfqrjB4VI5Ln7BcgjS/1CXYImmQqfHqcr1 hjx5nbtMIEQItVjrA6yD2w306D+CKbLm+cMXAWjMxUUeeiwkm51DbSJaH2+R/mO3IE oyGK4SBZzXKkLqG967H9Qd/3Yas4oJJIBb3xXzlM= Message-ID: <9e938a6f-f577-4f21-9cd0-2862d7a3773f@quip.cz> Date: Tue, 22 Apr 2025 09:57:02 +0200 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 User-Agent: Mozilla Thunderbird Subject: Re: methods of hyperthreading on or off To: freebsd-hackers@freebsd.org References: <238B56E3-F603-4967-98E6-5B321B529A5F@jnielsen.net> Content-Language: en-US From: Miroslav Lachman <000.fbsd@quip.cz> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spamd-Result: default: False [-3.55 / 15.00]; RBL_SENDERSCORE_REPUT_9(-1.00)[94.124.105.4:from]; NEURAL_HAM_SHORT(-0.97)[-0.975]; NEURAL_HAM_LONG(-0.97)[-0.967]; NEURAL_HAM_MEDIUM(-0.61)[-0.610]; FORGED_SENDER(0.30)[000.fbsd@quip.cz,SRS0=4zWH=XI=quip.cz=000.fbsd@elsa.codelab.cz]; R_DKIM_ALLOW(-0.20)[quip.cz:s=private]; MIME_GOOD(-0.10)[text/plain]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; ASN(0.00)[asn:42000, ipnet:94.124.104.0/21, country:CZ]; MID_RHS_MATCH_FROM(0.00)[]; MIME_TRACE(0.00)[0:+]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; R_SPF_NA(0.00)[no SPF record]; DMARC_NA(0.00)[quip.cz]; RCVD_COUNT_TWO(0.00)[2]; FROM_NEQ_ENVFROM(0.00)[000.fbsd@quip.cz,SRS0=4zWH=XI=quip.cz=000.fbsd@elsa.codelab.cz]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[quip.cz:+] X-Rspamd-Queue-Id: 4ZhZMX1JXrz3xVR X-Spamd-Bar: --- On 22/04/2025 00:09, void wrote: [..] > My context is a little different, but same sort of things happening. > > It's a freebsd server (dual xeon processors) running bhyve instances. > It doesn't do much else. I noticed throughput freebsd guest on freebsd > server to be less than (any linux) guest on freebsd server. Did some > testing > a few months ago, didn't really get anywhere, then saw the above paper, and > so am looking into it again. As for network throughput, I prefer to use ifconfig to tune some NICs HW functions like TSO, LRO, TX/RXCSUM (in bhyve guest and host) In my cases it always made a huge difference (disabling these functions gives better throughput). Try to disable one at a time, do some testing, disable another... Kind regards Miroslav Lachman