Date: Wed, 23 Sep 2020 12:24:01 +0200 From: Alexander Leidinger <Alexander@leidinger.net> To: freebsd-hackers@freebsd.org Subject: Re: RFC: copy_file_range(3) Message-ID: <20200923122401.Horde.uXmEqpCzVbCyXTuyukZeRwU@webmail.leidinger.net> In-Reply-To: <YTBPR01MB3966BA18F43F7B6353171E67DD380@YTBPR01MB3966.CANPRD01.PROD.OUTLOOK.COM> References: <CAOtMX2iFZZpoj%2Bap21rrju4hJoip6ZoyxEiCB8852NeH7DAN0Q@mail.gmail.com> <YTBPR01MB39666188FC89399B0D632FE8DD3D0@YTBPR01MB3966.CANPRD01.PROD.OUTLOOK.COM> <CAOtMX2gMYdcx0CUC1Mky3ETFr1JkBbYzn17i11axSW=HRTL7OA@mail.gmail.com> <YTBPR01MB3966C1D4D10BE836B37955F5DD3D0@YTBPR01MB3966.CANPRD01.PROD.OUTLOOK.COM> <CAOtMX2jHMRD0Hno03f2dqjJToR152u8d-_40GM_%2BBvNPkN_smA@mail.gmail.com> <YTBPR01MB3966BA18F43F7B6353171E67DD380@YTBPR01MB3966.CANPRD01.PROD.OUTLOOK.COM>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <rmacklem@uoguelph.ca> (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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200923122401.Horde.uXmEqpCzVbCyXTuyukZeRwU>