From nobody Tue Nov 8 02:12:56 2022 X-Original-To: bugs@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 4N5s7s1XCZz4h2lR for ; Tue, 8 Nov 2022 02:12:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4N5s7r4sXCz3Ygg for ; Tue, 8 Nov 2022 02:12:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1667873576; a=rsa-sha256; cv=none; b=V2pzrqBhJZ1Bo9y7b6uPJQXy+q2IhR104zr27lo7Yc5KX89R5KIO535CgFb5GvuV9isyJ+ ANZGIWqno9J11DgjQPLiY5XNV75y2Z2TATXflsDqhUHDTBRaD5YUfu0WqzkCwwqCNKtYhG pXCUrgarrCBHdkRTeu685kAR8DcgvlPFs1WtakIMEEpdNr5ibXVBlJcghf2y7ra+FOGsFm KNHHXpmU3V5hwNtqJwXnbGncXrRswkxBNW6lTTu+TRviLeHqxjBr1jbv3Ee8nFhrR32opf L5xeupNHW7FidCjf0FKxz08RWgjeHPBAl3lcqV2UemmcTExk78vc2kV6xys6jg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667873576; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zUB76wXdxoHoLk3GWjoT28vw4I0meD4qz4G8mcEvF1A=; b=M0PfPC8Z5o6NlRzgQ/IKgSQBs/K8w0/12ZUeoCq6buHqSxUj5SmnvYFIbbDNJ2RbXqKfHo QUlN+PJGAyauFz5KIe6MkRsKMZUNaJPq4GWgpbhyBk2fqNlL3224S/2MeWce+zGGk6YLkE LWbk2DOjq48P+OHlqKywUGuQWLTZx8Qlp4xvoR4eLV2QBZT0LrbF1Pln+herouFJPClYhW G6bIK7hhjZ/HgJtt6QXIUOyK3uTQQB9gcVi46Qbl3wSoXV9utQ7iYigr+a2nSVVopv0S7+ SYLIP3iYddxXu4gXdv0uTPOmTXHq8e3+7txRGOx0HmNcc8ce1FU1zbNf+dAXWg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4N5s7r3xBBzPM9 for ; Tue, 8 Nov 2022 02:12:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 2A82Cu7B047850 for ; Tue, 8 Nov 2022 02:12:56 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2A82Cukj047849 for bugs@FreeBSD.org; Tue, 8 Nov 2022 02:12:56 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 267631] slow nfs from FreeBSD guest/client to linux host/server Date: Tue, 08 Nov 2022 02:12:56 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: andrew.cagney@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267631 Bug ID: 267631 Summary: slow nfs from FreeBSD guest/client to linux host/server Product: Base System Version: 13.0-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: andrew.cagney@gmail.com First the numbers: FreeBSD: real 11m53.066s user 0m36.488s sys 0m5.237s NetBSD (9.99.something): real 3m52.182s user 0m46.372s sys 0m19.655s OpenBSD (7.2): real 3m24.953s user 0m42.260s sys 0m9.800s now the details: The test is to use build libreswan over NFS on a BSD KVM guest using a Linux host as the NFS server. FreeBSD and NetBSD both use GCC so I don't think i= t is the compiler (Open uses llvm). Visually, linking is slower; all binaries are in the same ballpark: -rwxr-xr-x. 1 cagney qemu 9400760 Nov 7 19:13 OBJ.kvm.fedora/programs/pluto/pluto -rwxr-xr-x. 1 cagney cagney 9079352 Nov 7 19:24 OBJ.kvm.freebsd/programs/pluto/pluto -rwxr-xr-x. 1 cagney cagney 9817860 Nov 7 19:36 OBJ.kvm.netbsd/programs/pluto/pluto -rwxr-xr-x. 1 cagney cagney 7869320 Nov 7 20:04 OBJ.kvm.openbsd/programs/pluto/pluto KVM Host and NFS server: Linux 6.0.5-200.fc36.x86_64 KVM Guest and NFS client (the KVM gets are configured the same way): FreeBSD freebsd 13.0-RELEASE FreeBSD 13.0-RELEASE The vm was created using: sudo virt-install \ --connect=3Dqemu:///system --check=3Dpath_in_use=3Doff --graphics= =3Dnone --virt-type=3Dkvm --noreboot --console=3Dpty,target_type=3Dserial --vcpus= =3D4 --memory=3D5120 --cpu=3Dhost-passthrough --network=3Dnetwork:swandefault,model=3Dvirtio --rng=3Dtype=3Drandom,device= =3D/dev/random --security=3Dtype=3Dstatic,model=3Ddac,label=3D'1000:107',relabel=3Dyes \ =20=20=20=20=20=20=20 --filesystem=3Dtarget=3Dbench,type=3Dmount,accessmode=3Dsquash,source=3D/ho= me/libreswan/wip-misc \ --filesystem=3Dtarget=3Dpool,type=3Dmount,accessmode=3Dsquash,sourc= e=3D/home/pool \ =20=20=20=20=20=20=20 --filesystem=3Dtarget=3Dsource,type=3Dmount,accessmode=3Dsquash,source=3D/h= ome/libreswan/wip-misc \ =20=20=20=20=20=20=20 --filesystem=3Dtarget=3Dtesting,type=3Dmount,accessmode=3Dsquash,source=3D/= home/libreswan/wip-misc/testing \ --name=3Dm.freebsd \ --os-variant=3Dfreebsd13.1 \ --disk=3Dcache=3Dwriteback,path=3D/home/pool/m.freebsd.qcow2 \ --import \ --noautoconsole FreeBSD's network interface is: vtnet0: flags=3D8863 metric 0 mtu= 1500 options=3D4c07bb ether 52:54:00:11:50:39 inet 192.168.234.153 netmask 0xffffff00 broadcast 192.168.234.255 media: Ethernet autoselect (10Gbase-T ) status: active nd6 options=3D29 so it should be virtualized. FreeBSD's fstab looks like: # Device Mountpoint FStype Options Dump Pass# /dev/vtbd0s1a / ufs rw 1 1 /dev/vtbd0s1b none swap sw 0 0 192.168.234.1:/home/pool /pool nfs rw 192.168.234.1:/home/libreswan/wip-webkvm /bench nfs rw 192.168.234.1:/home/libreswan/wip-webkvm /source nfs rw 192.168.234.1:/home/libreswan/wip-webkvm/testing /testing nfs rw so nothing custom (presumably it is using TCP). Linux's exportfs shows entries such as: /home/libreswan/wip-webkvm/testing 192.168.234.0/24(sync,wdelay,hide,no_subtree_check,anonuid=3D1000,anongid= =3D1000,sec=3Dsys,rw,secure,root_squash,all_squash) Presumably I've mis-configured FreeBSD but I'm at a loss as to what. --=20 You are receiving this mail because: You are the assignee for the bug.=