From nobody Mon Jun 05 07:21:21 2023 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 4QZQ5G3Y2Fz4b67k for ; Mon, 5 Jun 2023 07:21:22 +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 4QZQ5G2TdKz3nb0 for ; Mon, 5 Jun 2023 07:21:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1685949682; 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: in-reply-to:in-reply-to:references:references; bh=D3Apj8QnmSJIfRytIJtPUzoyriF2g9mZu64TQu43XNg=; b=qSYYb+Jh2KboqolLkbRsY2acOM9E8pJp4WToqHrRPmnB3B1ujYvoHXmFFpgVEnHnDm2clS w/wwdrWFLbYBIgTXJ62yNvuCCpo/hawT8kA+SCqMdPHaOdw18hTs1MFUeZE7/Oxas02KNM DmLG4Gpm0mKAxGVrtth5uzcFzDYafWzeHQ4if6+xOlxm+YjtqMiUwIbD3RFTp/xCoQ2tkv JKqndh7MZJblT4AAOUumj9ylYHydmAoTEsUOgG38Lu2Wtd6xCJCDTop0kZvSbDfP5xR1c6 mB4k3byiYwusst6bqKPP6m8kzdey6dxZxkaZ37HX9KQwrTWVlMmPKUkxTjO+zg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1685949682; a=rsa-sha256; cv=none; b=wM3X9XUmdE7uBYrr589ebU3Azgw++ZyQJZaAuTzghqkoOG8DLYMCHyPeQkEdBeUtWBqXKy QpXXFC4y0oBf4NflOHBRVuX5eCZ/53MP6uC/QAK6oKqyXdQ396de6HRs9g3emCrnYkEOQ3 JHyGe9DRdNvR90cZJSTfOO380idVZhZpIlInlh34nEMeRbkDgxkAVUDhp9fV1MRHlWSMAj 4U5gkhaxzUH2WrdC8bBhpIq1IpWbDlYeZDP4nT02r2DnFm/u0ky0qrri11oEXwQgEClnP4 Z+DtoDY3f9LcaM6o6MMANXF7ZLlc+qjRqy9kmtiJ7fMxXz8z/rGSdKJZrBU8yw== 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 4QZQ5G1ZhlzfBM for ; Mon, 5 Jun 2023 07:21:22 +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 3557LMt3072918 for ; Mon, 5 Jun 2023 07:21:22 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3557LMB0072889 for bugs@FreeBSD.org; Mon, 5 Jun 2023 07:21:22 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 258010] kqueue shortcoming for desktop usage Date: Mon, 05 Jun 2023 07:21:21 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: needs-patch, needs-qa X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: fbsd@peralex.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: 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 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D258010 Mark C changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fbsd@peralex.com --- Comment #4 from Mark C --- This is an issue that I've been struggling with lately too, also with syncthing. The kqueue workaround works for smaller directory trees, but is unworkable for large collections of files. The number of file descriptors = can be increased, but with millions of files to watch, the system quickly becom= es unusable. There was at least one previous attempt to add inotify-type functionality to FreeBSD in a GSoC project, but I don't know what happened with that: https://www.freebsd.org/status/report-2010-04-2010-06.html#File-System-Chan= ges-Notification A long-running discussion on the forums of the differences between inotify (Linux), fsevents (Mac), and kqueue is here: https://forums.freebsd.org/threads/inotify-for-freebsd.38162/page-3 I also wonder if something could be implemented based on the existing audit framework, which seems to allow file alterations to be watched, although it doesn't have an easy API to use from code. --=20 You are receiving this mail because: You are the assignee for the bug.=