From nobody Tue Oct 15 12:20:03 2024 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 4XSY8J1HYVz5Yrj0 for ; Tue, 15 Oct 2024 12:20:16 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Received: from www121.sakura.ne.jp (www121.sakura.ne.jp [153.125.133.21]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4XSY8H3nmPz4jQg for ; Tue, 15 Oct 2024 12:20:14 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Authentication-Results: mx1.freebsd.org; none Received: from kalamity.joker.local (123-1-21-232.area1b.commufa.jp [123.1.21.232]) (authenticated bits=0) by www121.sakura.ne.jp (8.17.1/8.17.1/[SAKURA-WEB]/20201212) with ESMTPA id 49FCK4UJ043372; Tue, 15 Oct 2024 21:20:05 +0900 (JST) (envelope-from junchoon@dec.sakura.ne.jp) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dec.sakura.ne.jp; s=s2405; t=1728994805; bh=3W/hcuzjI7ih9zOA0Rg8kiRXUiKOAp0nq7kYP8BMUag=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=NZmJdw0r83QaVft9MmB2j+7RuEapl0bjsFZnXyEhc8wOwdLV7saAbG8c4Kg7PCK8l Am7RqtCDoJOaR4qXqhatwju7D+szqDST9Glp//2AAfaqqbKT7W3LLfgiCSkXqsIkqj Xce9kCUAj8tNvHYzU4fHwsqO68f0U7s6KTbzqFmQ= Date: Tue, 15 Oct 2024 21:20:03 +0900 From: Tomoaki AOKI To: void Cc: freebsd-hackers@freebsd.org Subject: Re: polling interval Message-Id: <20241015212003.888c87d24bf6ec6dfc3fc549@dec.sakura.ne.jp> In-Reply-To: References: <20241015000117.8a731ab66a1af876879f5ca8@dec.sakura.ne.jp> <9513c9d9-8f7c-4842-a535-b387082e4e3e@sentex.net> <20241015174135.14866b319a49ddafeca6e3bb@dec.sakura.ne.jp> Organization: Junchoon corps X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd14.1) 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 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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:7684, ipnet:153.125.128.0/18, country:JP] X-Rspamd-Queue-Id: 4XSY8H3nmPz4jQg X-Spamd-Bar: ---- On Tue, 15 Oct 2024 11:25:39 +0100 void wrote: > On Tue, Oct 15, 2024 at 05:41:35PM +0900, Tomoaki AOKI wrote: > > >FYI, I'm configuring kern.hz=4096 in /boot/loader.conf. Lost where I've > >seen, but recommended by somewhere. > > all offloading at source, host and destination turned off, default kern.hz in vm > ================================================================================ > - - - - - - - - - - - - - - - - - - - - - - - - - > [ ID] Interval Transfer Bitrate Retr > [ 5] 0.00-60.06 sec 4.46 GBytes 637 Mbits/sec 1326 sender > [ 5] 0.00-60.07 sec 4.45 GBytes 637 Mbits/sec receiver > > same as above, but with kern.hz=8 > - - - - - - - - - - - - - - - - - - - - - - - - - > [ ID] Interval Transfer Bitrate Retr > [ 5] 0.00-60.02 sec 4.45 GBytes 637 Mbits/sec 1148 sender > [ 5] 0.00-60.02 sec 4.45 GBytes 637 Mbits/sec receiver > > as above, kern.hz=4096 > - - - - - - - - - - - - - - - - - - - - - - - - - > [ ID] Interval Transfer Bitrate Retr > [ 5] 0.00-60.07 sec 3.09 GBytes 441 Mbits/sec 1013 sender > [ 5] 0.00-60.07 sec 3.09 GBytes 441 Mbits/sec receiver > > With all offloading turned off, not seeing incorrect checksums at the > destination now. > -- Maybe kern.hz=4096 would be too large (short time per tick) for your VMs, as VMs basically need more time than bare metal for emulated (virtualized) syscalls or some instructions by mature. And possibly (as I don't use offloading on VirtualBox that is the only VM I tried) interactions between host (emulated hardware) and guests about offloading has some issues. -- Tomoaki AOKI