From nobody Mon Jun 5 07:21:21 2023 X-Original-To: desktop@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 4QZQ5G51PZz4b5xy 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 4QZQ5G3ySQz3ncP 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=YoXRcBnplk/sCwimZn9G8dHEQkARU6/XwZR+IIvRRxI=; b=bvy00/88PnF3kjMpzP5VbfBxHnM59b8ZF9rgdNT29U87nuChUBLldCL0V8BzVyImXHZ4SE Sw5cvEDQBkisiFcmuMx+DuzO5dxatdzK3hXqGoofQmHALn269h1vNasKg/9TVU6/IVZcMw q8YewK8UOMlQzvbNyVsTyUiBgC30c6z9+r1zIWYEoi6fJnKNF8TQYsPCUZk3cIkYgG59sm WkllWn7gf1j6lKy/bYjsUfZyUbiWRcbpwrTBqlfsBmWQRDiYwgfLYecCeG4kmuGkXcKd+m iPwDMa5Kh5+mPTPFrvCizpKUQNjeN4XB7pf0toZBSFwayK7J1zRvOhaon3HJ6A== 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=gxNI7R+QZyUJSWlO5IjYko40H8M862hU1alAFZM4UkElXZZfB62yfo7gGqr9Dij+Q45xcg NXcxVGVs5AP7cKBg29AVdiI+JFXXERFhK4X3aK+UdFsmhtz7mKjHZzoy3ya+oIxcFtQUVi g1tAOvLiiQRIE9ZHz0oY88pigHZE7FyvU74M2Os23y3OIAUobUhcMDY22YJghWOs9D5C3s Pgd5O4dkXMY8oSto1NfLDmaCTz00G1UacnQ4CQDfxAy9J6NeQwhLkU5XyiCa0UmxKCfM88 galcTKr/9cDY3HSgqmpuHRIbPlP98kj3GTdgGvHF9lhRlk/djjEJQnsOCh/jww== 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 4QZQ5G3451zf17 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 3557LMFj073188 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 3557LM6g073163 for desktop@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: desktop@FreeBSD.org Subject: [Bug 258010] kqueue shortcoming for desktop usage Date: Mon, 05 Jun 2023 07:21:21 +0000 X-Bugzilla-Reason: CC 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: Using and improving FreeBSD on the desktop List-Archive: https://lists.freebsd.org/archives/freebsd-desktop List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-desktop@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 on the CC list for the bug.=