Date: Sat, 2 Jan 2021 21:42:11 +0000 From: Rick Macklem <rmacklem@uoguelph.ca> To: Alan Somers <asomers@freebsd.org>, Matthias Apitz <guru@unixarea.de> Cc: FreeBSD CURRENT <freebsd-current@freebsd.org>, Konstantin Belousov <kib@FreeBSD.org>, Kirk McKusick <mckusick@mckusick.com> Subject: Re: cp(1) of large files is causing 100% CPU utilization and poor transfer Message-ID: <YQXPR0101MB096840F865CBD05DFC931A8BDDD40@YQXPR0101MB0968.CANPRD01.PROD.OUTLOOK.COM> In-Reply-To: <X/DSHeynpeIxjs3w@c720-r368166.fritz.box> References: <X/CKQFbpbWDdLXvw@c720-r368166.fritz.box> <CAOtMX2gd6vaBF=6Z6stefGRN8A7S4Gtf4drO-YgAbd=KXPwKNg@mail.gmail.com> <X/CY/kuKUJHUVEbB@c720-r368166.fritz.box> <CAOtMX2hFupzf-MD84eo_-n9OzfYX6b6tWRsHPECZGKaq5QCUVw@mail.gmail.com> <X/CbUu4tVQG81ItJ@c720-r368166.fritz.box> <CAOtMX2iRS6XVLkABSMQdcDCUHRXhEHEjyzuOqkMHudK=he33GA@mail.gmail.com> <YQXPR0101MB0968022D574AA673BB80DEC6DDD40@YQXPR0101MB0968.CANPRD01.PROD.OUTLOOK.COM> <X/C7RQmjHISfRMA/@c720-r368166.fritz.box> <CAOtMX2hVZHFLOJ5fOJJqT18uc_g3wcFnM1h3vp_e_O-_h8PzBQ@mail.gmail.com>, <X/DSHeynpeIxjs3w@c720-r368166.fritz.box>
next in thread | previous in thread | raw e-mail | index | archive | help
--_002_YQXPR0101MB096840F865CBD05DFC931A8BDDD40YQXPR0101MB0968_ Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 VGhlIGF0dGFjaGVkIHNtYWxsIHBhdGNoIHNlZW1zIHRvIGZpeCB0aGUgcHJvYmxlbS4NCk15IGh1 bmNoIGlzIHRoYXQsIGZvciBhIGxhcmdlIG5vbi1zcGFyc2UgZmlsZSwgU0VFS19EQVRBDQpTRUV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ZWEuZGUsIGh0dHA6Ly93d3cudW5p eGFyZWEuZGUvICs0OS0xNzYtMzg5MDIwNDUNClB1YmxpYyBHbnVQRyBrZXk6IGh0dHA6Ly93d3cu dW5peGFyZWEuZGUva2V5LnB1Yg0KwqFDb24gQ3ViYSBubyB0ZSBtZXRhcyEgIMKrwrsgIERvbid0 IG1lc3Mgd2l0aCBDdWJhISAgwqvCuyAgTGVnIERpY2ggbmljaHQgbWl0IEt1YmEgYW4hDQpodHRw Oi8vd3d3LmN1YmFkZWJhdGUuY3Uvbm90aWNpYXMvMjAyMC8xMi8yNS9lbi12aWRlby1jb24tY3Vi YS1uby10ZS1tZXRhcy8NCl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fDQpmcmVlYnNkLWN1cnJlbnRAZnJlZWJzZC5vcmcgbWFpbGluZyBsaXN0DQpodHRwczov L2xpc3RzLmZyZWVic2Qub3JnL21haWxtYW4vbGlzdGluZm8vZnJlZWJzZC1jdXJyZW50DQpUbyB1 bnN1YnNjcmliZSwgc2VuZCBhbnkgbWFpbCB0byAiZnJlZWJzZC1jdXJyZW50LXVuc3Vic2NyaWJl QGZyZWVic2Qub3JnIg0K --_002_YQXPR0101MB096840F865CBD05DFC931A8BDDD40YQXPR0101MB0968_ Content-Type: application/octet-stream; name="cp.patch" Content-Description: cp.patch Content-Disposition: attachment; filename="cp.patch"; size=685; creation-date="Sat, 02 Jan 2021 21:42:06 GMT"; modification-date="Sat, 02 Jan 2021 21:42:06 GMT" Content-Transfer-Encoding: base64 LS0tIGJpbi9jcC91dGlscy5jLnNhdgkyMDIwLTA5LTI2IDE4OjE1OjQwLjA3MjYzMTAwMCAtMDcw MAorKysgYmluL2NwL3V0aWxzLmMJMjAyMC0wOS0yNyAxNzozOTo1Ny40MDQzMjUwMDAgLTA3MDAK QEAgLTc3LDcgKzc3LDcgQEAgX19GQlNESUQoIiRGcmVlQlNEOiBoZWFkL2Jpbi9jcC91dGlscy5j IDM2NTY0MyAyMDIwLTA5CiBzdGF0aWMgaW50CiBjb3B5X2ZhbGxiYWNrKGludCBmcm9tX2ZkLCBp bnQgdG9fZmQsIGNoYXIgKmJ1Ziwgc2l6ZV90IGJ1ZnNpemUpCiB7Ci0JaW50IHJjb3VudDsKKwlz c2l6ZV90IHJjb3VudDsKIAlzc2l6ZV90IHdyZXNpZCwgd2NvdW50ID0gMDsKIAljaGFyICpidWZw OwogCkBAIC0yMzYsNyArMjM2LDcgQEAgY29weV9maWxlKGNvbnN0IEZUU0VOVCAqZW50cCwgaW50 IGRuZSkKIAkJCWRvIHsKIAkJCQlpZiAodXNlX2NvcHlfZmlsZV9yYW5nZSkgewogCQkJCQlyY291 bnQgPSBjb3B5X2ZpbGVfcmFuZ2UoZnJvbV9mZCwgTlVMTCwKLQkJCSAgICAJCSAgICB0b19mZCwg TlVMTCwgYnVmc2l6ZSwgMCk7CisJCQkgICAgCQkgICAgdG9fZmQsIE5VTEwsIFNTSVpFX01BWCwg MCk7CiAJCQkJCWlmIChyY291bnQgPCAwICYmIGVycm5vID09IEVJTlZBTCkgewogCQkJCQkJLyog UHJvYiBhIG5vbi1zZWVrYWJsZSBGRCAqLwogCQkJCQkJdXNlX2NvcHlfZmlsZV9yYW5nZSA9IDA7 Cg== --_002_YQXPR0101MB096840F865CBD05DFC931A8BDDD40YQXPR0101MB0968_--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?YQXPR0101MB096840F865CBD05DFC931A8BDDD40>