From owner-freebsd-hackers@freebsd.org Wed Sep 23 10:24:31 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 9071C3F4E35 for ; Wed, 23 Sep 2020 10:24:31 +0000 (UTC) (envelope-from Alexander@leidinger.net) Received: from mailgate.Leidinger.net (bastille.leidinger.net [89.238.82.207]) (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 4BxDn96nH7z4ZVZ for ; Wed, 23 Sep 2020 10:24:29 +0000 (UTC) (envelope-from Alexander@leidinger.net) Received: from outgoing.leidinger.net (p5b165e4a.dip0.t-ipconnect.de [91.22.94.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (Client did not present a certificate) by mailgate.Leidinger.net (Postfix) with ESMTPSA id 645C027C84 for ; Wed, 23 Sep 2020 12:24:06 +0200 (CEST) Received: from webmail.leidinger.net (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (Client did not present a certificate) by outgoing.leidinger.net (Postfix) with ESMTPS id 8F70F7385 for ; Wed, 23 Sep 2020 12:24:01 +0200 (CEST) Date: Wed, 23 Sep 2020 12:24:01 +0200 Message-ID: <20200923122401.Horde.uXmEqpCzVbCyXTuyukZeRwU@webmail.leidinger.net> From: Alexander Leidinger To: freebsd-hackers@freebsd.org Subject: Re: RFC: copy_file_range(3) References: In-Reply-To: Accept-Language: de,en Content-Type: multipart/signed; boundary="=_T-00OrdGI7S8EnwxWySsbl8"; protocol="application/pgp-signature"; micalg=pgp-sha1 MIME-Version: 1.0 X-Rspamd-Queue-Id: 4BxDn96nH7z4ZVZ X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.98 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[leidinger.net:s=outgoing-alex]; NEURAL_HAM_MEDIUM(-1.01)[-1.010]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.03)[-1.031]; RCVD_COUNT_THREE(0.00)[3]; NEURAL_SPAM_SHORT(0.16)[0.162]; DKIM_TRACE(0.00)[leidinger.net:+]; DMARC_POLICY_ALLOW(-0.50)[leidinger.net,quarantine]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:34240, ipnet:89.238.64.0/18, country:DE]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-hackers]; RECEIVED_SPAMHAUS_PBL(0.00)[91.22.94.74:received] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Sep 2020 10:24:31 -0000 This message is in MIME format and has been PGP signed. --=_T-00OrdGI7S8EnwxWySsbl8 Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Quoting Rick Macklem (from Wed, 23 Sep 2020=20=20 01:18:18=20+0000): > Well, I ran some quick benchmarks using the attached programs, plus "cp" = both > before and with your copy_file_range() patch. > copya - Does what I think your plan is above, with a limit of=20=20 >=202Mbytes for "len". > copyb -Just uses copy_file_range() with 128Mbytes for "len". > > I first created the sparse file with createsparse.c. It is=20=20 >=20admittedly a worst case, > creating alternating holes and data blocks of the minimum size supported = by > the file system. (I ran it on a UFS file system created with=20=20 >=20defaults, so the minimum > hole size is 32Kbytes.) Not related to the topic of changing cp, but related to the topic of=20=20 copy_file_range:=20does nullfs support (as in pass-through to the=20=20 underlying=20FS) copy_file_range? Bye, Alexander. --=20 http://www.Leidinger.net=20Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0x8F31830F9F2772BF --=_T-00OrdGI7S8EnwxWySsbl8 Content-Type: application/pgp-signature Content-Description: Digitale PGP-Signatur Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAABAgAGBQJfayJBAAoJEBINsJsD+NiGgo8P/A/Ung4yq0mE/BqBAfeTLlT+ HYu096g1fS31A65swMLFJ4QrrJi/TDUWCGd+YLulcDrtoHoS2TSDZBKGH9XJTl+W JSRq6/f5Mm+swA1276AbHz7SKiUsZh942bTGeDmPPUYtRKKhbMjUTTMY72jH7xJn hUUlakNlChUn6CD9qFv0FMO7Y1SxOUNDhs/bXXuyxisyuVDHpVAsOHCIXAPBvmlt V0suqNeEu8svWRrKiAbCgElcwBWRuWXgHdx0iZmsCHopVD09BXCwIadP/QXtUCvP Q+rUZQPuFjBhCtm2Zic+xlK9I/pvhFpXEYK1zIoDnNohKmqULlkRJr7gyZi/ELJ0 4umFy2+VeeHI3SBspsi/LhnQKrqvfUuYznYahfK2hnpJOGBvWVfaHvsUiPN40kS7 BvLRQUjYo2trEmq2YNI99bYfFJlzGztBEiK4grfoRMDRVavSxexuvY3IEBXWfcHT 7JRTcwPxwOIDyf6hqDa7WN90JwGXvf7TQnkVF54rYqn5Z/SkPvafGYM82CclDayh 9pUR4jF3nrKe7Ii/klVEhZNjiAyuEkrC1XbL8JIzqvZ6SBA7kbET4XYgh+7oEg77 bW51fqKEy1ej6cRcF4hf6YaeVg3DXAktvWWWKGzK2fZe48nLKw43hdu7WspoNG7o lNhXCXRlIKyH6pv/tdUy =WsXE -----END PGP SIGNATURE----- --=_T-00OrdGI7S8EnwxWySsbl8--