From nobody Sat Mar 25 22:05:13 2023 X-Original-To: freebsd-current@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 4PkY6L5gtTz41mrX for ; Sat, 25 Mar 2023 22:05:14 +0000 (UTC) (envelope-from jamie@catflap.org) Received: from donotpassgo.dyslexicfish.net (donotpassgo.dyslexicfish.net [IPv6:2001:19f0:300:2185:123::1]) by mx1.freebsd.org (Postfix) with ESMTP id 4PkY6L5GW8z435x for ; Sat, 25 Mar 2023 22:05:14 +0000 (UTC) (envelope-from jamie@catflap.org) Authentication-Results: mx1.freebsd.org; none X-Catflap-Envelope-From: Received: from donotpassgo.dyslexicfish.net (donotpassgo.dyslexicfish.net [104.207.135.49]) by donotpassgo.dyslexicfish.net (8.14.5/8.14.5) with ESMTP id 32PM5DCX073710; Sat, 25 Mar 2023 22:05:14 GMT (envelope-from jamie@donotpassgo.dyslexicfish.net) Received: (from jamie@localhost) by donotpassgo.dyslexicfish.net (8.14.5/8.14.5/Submit) id 32PM5DoW073709; Sat, 25 Mar 2023 22:05:13 GMT (envelope-from jamie) From: Jamie Landeg-Jones Message-Id: <202303252205.32PM5DoW073709@donotpassgo.dyslexicfish.net> Date: Sat, 25 Mar 2023 22:05:13 +0000 Organization: Dyslexic Fish To: jamie@catflap.org, freebsd-current@FreeBSD.org Subject: Re: diff(1) goes into cpu-hogging endless loop References: <202303252155.32PLtEPF072349@donotpassgo.dyslexicfish.net> In-Reply-To: <202303252155.32PLtEPF072349@donotpassgo.dyslexicfish.net> User-Agent: Heirloom mailx 12.4 7/29/08 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.7 (donotpassgo.dyslexicfish.net [104.207.135.49]); Sat, 25 Mar 2023 22:05:14 +0000 (GMT) X-Rspamd-Queue-Id: 4PkY6L5GW8z435x X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:20473, ipnet:2001:19f0::/38, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N Just to add, that whilst the "diff" succeeded with the files split into 10Mb chunks, the time taken to run was really high, up to 10 times longer than gnu diff: + /usr/bin/time diff 1.aa 2.aa 16.74 real 16.70 user 0.03 sys + /usr/bin/time diff 1.ab 2.ab 16.53 real 16.45 user 0.07 sys + /usr/bin/time diff 1.ac 2.ac 21.58 real 21.51 user 0.06 sys + /usr/bin/time diff 1.ad 2.ad 22.37 real 22.25 user 0.11 sys + /usr/bin/time diff 1.ae 2.ae 25.93 real 25.81 user 0.11 sys + /usr/bin/time diff 1.af 2.af 26.63 real 26.53 user 0.09 sys + /usr/bin/time diff 1.ag 2.ag 0.98 real 0.96 user 0.02 sys + /usr/bin/time gdiff 1.aa 2.aa 2.44 real 2.37 user 0.06 sys + /usr/bin/time gdiff 1.ab 2.ab 4.09 real 4.06 user 0.03 sys + /usr/bin/time gdiff 1.ac 2.ac 2.24 real 2.22 user 0.01 sys + /usr/bin/time gdiff 1.ad 2.ad 1.99 real 1.98 user 0.00 sys + /usr/bin/time gdiff 1.ae 2.ae 2.63 real 2.60 user 0.02 sys + /usr/bin/time gdiff 1.af 2.af 2.62 real 2.59 user 0.03 sys + /usr/bin/time gdiff 1.ag 2.ag 0.12 real 0.11 user 0.00 sys