From nobody Sun Sep 25 07:29:48 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 4MZyFn13Rgz4cXhb for ; Sun, 25 Sep 2022 07:29:49 +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 4MZyFm6VQRz3MQZ for ; Sun, 25 Sep 2022 07:29:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 4MZyFm5YbSzLl2 for ; Sun, 25 Sep 2022 07:29:48 +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 28P7Tmg4073538 for ; Sun, 25 Sep 2022 07:29:48 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 28P7Tm6Y073537 for bugs@FreeBSD.org; Sun, 25 Sep 2022 07:29:48 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 266592] diff(1): 'diff -rl' called on 2 large directories opens too many files Date: Sun, 25 Sep 2022 07:29:48 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: yuri@freebsd.org 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664090988; 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=kKKtzGHUZh3sR0zRvfVuGF9h3yHuEFgixThtPYiThzs=; b=N/gO+d0zasQFfk6vsRkFljYx97av+esbuYhSDQGbhHv2lefy1VlRPnc823zKCALW3QU6V4 n/U8LUQQxco90hriP84SD1gIudvlqkwZdSzsnYRrSp4Y3Szd4HfZ4tv3jOFkEhjIIHRP+F c7qxD1euK2hm49Cw+FCQGhs6/81BZD7bJOxje7lpBg2UebeucitG7zLFxTnX3IHf2zgltS +0VLOEiqHsqP48mxIgDP8X0YJ1e6BZUxo1fA6hKfghtUrq3s9s9bJd9h1Ny8lcHra11wii kME/0YXcqdePSn9dXy8tiNtQm1N1pXInJpWvbKFMTbvRAne6x3QTc6Vkok6m8g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1664090988; a=rsa-sha256; cv=none; b=j0SXaboe5TfccYzq+aPifzdB0vsmTLeNLa5lc9w2A8guZOfTiYMfYrzQKD345ggqabxKIA UaNoimE5A0WvjaXsfw5JrXkCuXZY6jfsvpDzrK/SOj29oryrzpAWB2XZ62Rp/IqwUnDL2I 6pjvWjJ0scB+02NQ7B77+lo/tTd/uXhz+9n9HXzjMLgBhsUAXTudknc9cdcyFaNWfIESgb L0r2PNDpAclUNwS57qgF585WNo29EGShttfr59q15+2FqyS7z+2EK2yF2YDfB3l13TN6JH BmbeoDtBP9XlX0euXnilosXFD8p+kS8rf1Ea1U67hJ6S+dcv48G1INKyLcZ5kg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266592 Bug ID: 266592 Summary: diff(1): 'diff -rl' called on 2 large directories opens too many files Product: Base System Version: 13.1-STABLE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: yuri@freebsd.org I've ran this command and it failed: > $ diff -rl work.test1 work > diff: kqueue: Too many open files in system Both work and work.test1 are build directories of one port. ktrace(1) shows that the file descriptor value grows continuously until the above error occurs. Correct behavior: the above command shouldn't keep many files open. It is supposed to find differences between files, and can have 2 compared files o= pen and perhaps also 2 compared directories open. There should be no need to keep a large number of files open. 13.1-STABLE --=20 You are receiving this mail because: You are the assignee for the bug.=