From nobody Tue Jul 30 22:54:17 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 4WYVsR6nCGz5S8kF for ; Tue, 30 Jul 2024 22:54:19 +0000 (UTC) (envelope-from bacon4000@gmail.com) Received: from mail-qk1-x72c.google.com (mail-qk1-x72c.google.com [IPv6:2607:f8b0:4864:20::72c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WYVsR50t5z43gQ for ; Tue, 30 Jul 2024 22:54:19 +0000 (UTC) (envelope-from bacon4000@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-qk1-x72c.google.com with SMTP id af79cd13be357-7a1df0a93eeso286973785a.1 for ; Tue, 30 Jul 2024 15:54:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722380059; x=1722984859; darn=freebsd.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=R/XcHkmziDOFbYwFtE9zgAQsY+7/3FLSK5sYRuEvzuA=; b=cLLofk3LbL4PrCGtOhtYqpMwP5thRxnX+huhPEBmQ7QKUh0RSbfmVnGWLPIIJjZizw /JJoDUstYVJ77XsAkeGiD7bvdbNAKNtODomxW/q/TkxTD5uZ7zenKN/GThxmrdnVuhUR NhMgZUSHseT07Vgz/xb+L6H8zwR7624EK8+0Sh1jVf2xMd5Dg2jlfdvi7FYTxdkANZXO Mr1tcWKNJ+wqP1jjMyI1YS7JvX81wwKRUKVgLnbSPAze2WQYMOWyg/oZW8klxo5j7KEC gSrTL5Mf67ULDGo+TGiIcGW9yS18MXWf/nrDeGx1w9h5cJRLuuzxpBLGj/0LlBqaJpEO Ey+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722380059; x=1722984859; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=R/XcHkmziDOFbYwFtE9zgAQsY+7/3FLSK5sYRuEvzuA=; b=IRof2oxyr74gylvGnQ+91UQco7Dqjp1UEBhLVhig55p6c8ggtfijd9T1qB1jYKWt27 JqbOwPKlsoK9wYKVmHEV743hg9MmBbsIsl65B/QdRzFTi81QQ07xsPzon0c6CCZIXefE 5KDfR7krYMrqNbLKeYBgx3ctTz2eUoYRQLtM+2KC/IJe6fPCNC0nOqGCnrbTCiOYIxfu Lne74ZJd4jA8nHb+VWrq8km6qEa3n1btBTxF/SdapbiggOzn0zephSTlY2wySiBDPLCI t5dkQCorCuoPLchr6GYdmrfK+1b9yzWBrBeRkRrbI3R8vmIgRdJIySDUh9f2QdWTUbxX cfgA== X-Forwarded-Encrypted: i=1; AJvYcCXhlnG0lxQg2wsbwzf4Hye5tR+V83smU+NbiD/3WIN6AdPbdV28F07TBViz4ngrQvpe137Ht0m4zryPpI2naB9wwK4gU0nCAGbCTbk= X-Gm-Message-State: AOJu0YygOtTfdQ/QY/9VfSMP4hl4wUyOxqVL1JXK9O8DkmvIbyvpn8Ly f/UjmQr2gPrOPPhB2tedFbcE027t26zfWvhGd1HybM33Qbhkbg7/eGGtoQ== X-Google-Smtp-Source: AGHT+IFp+jkTznPOovrAWZg+xVzfS1P1xsfcywmBMrsAhFF7S9FHIy5qGw9/LzmvZgv2DtmbfBraeQ== X-Received: by 2002:a05:620a:f11:b0:79f:190a:8ad7 with SMTP id af79cd13be357-7a1e526549bmr1113409685a.33.1722380058678; Tue, 30 Jul 2024 15:54:18 -0700 (PDT) Received: from [192.168.1.8] (syn-174-097-140-229.res.spectrum.com. [174.97.140.229]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7a1eec80b0esm351863985a.117.2024.07.30.15.54.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 30 Jul 2024 15:54:18 -0700 (PDT) Message-ID: Date: Tue, 30 Jul 2024 17:54:17 -0500 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: Diagnosing virtual machine network issues To: Alex Arslan Cc: mike tancsa , freebsd-hackers@freebsd.org References: <4a5a177a-5356-453c-8a09-f1d63d5d2e16@sentex.net> <4AB1C33B-DD93-4484-B63A-9FF8FE612B15@comcast.net> <799c7a15-52b8-4b44-bcbd-5ab6a3ef97a6@gmail.com> <0747ED5F-2ED6-461C-9C0B-CFD0EE480D82@comcast.net> Content-Language: en-US From: Jason Bacon In-Reply-To: <0747ED5F-2ED6-461C-9C0B-CFD0EE480D82@comcast.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spamd-Bar: ---- 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:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4WYVsR50t5z43gQ On 7/30/24 16:11, Alex Arslan wrote: > >> Can you provide more context? I'm not seeing earlier messages anywhere in my email folders. Is this a Qemu issue? > > The original message is from just over a month ago, archived here: > https://lists.freebsd.org/archives/freebsd-hackers/2024-June/003378.html > Basically, we have FreeBSD 13.2 VMs running under KVM on a Linux machine. > Some code is using libcurl to make a request to an invalid domain and is > testing that the error is a resolution failure. This test passes on all > platforms except specifically in these FreeBSD VMs; I can't reproduce > locally on FreeBSD. That made me think that there's an issue with how the > VM was set up, prompting the original message and discussion. Then what > I recently found was that we set a 30-second timeout for the libcurl > request, which FreeBSD hits in the VM, as it evidently spends a full > 30 seconds attempting to resolve the host, while e.g. Linux reports a > resolution failure immediately. > >> Coincidentally, I'm experimenting with FreeBSD under Qemu on my Mac Mini M1 and seeing about 93 mbits/sec in iperf, regardless of the NIC configured. ( VM to bare metal host ) Bare metal to bare metal shows 930 mbits/sec. > > > That's interesting, can you show how you did that? I'm not familiar with > iperf (or most things in the realm of networking). Do you know why it's > so much slower? Typical use is very simple: One one machine: iperf -s On the other: iperf -c hostname-of-1st-machine The iperf man page shows other options if you want to fine-tune. -- Life is a game. Play hard. Play fair. Have fun.