From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Perry E. Metzger" Newsgroups: gmane.emacs.devel Subject: Re: gfile-based file notifications are not immediate Date: Sun, 2 Nov 2014 10:50:59 -0500 Message-ID: <20141102105059.6522c39d@jabberwock.cb.piermont.com> References: <87mw8jg9a1.fsf@secretsauce.net> <87ioj3m6ah.fsf@gmx.de> <851tprvuvc.fsf@iznogoud.viz> <24394175.Yx8cizKBtK@descartes> <20141031172852.6e308217@jabberwock.cb.piermont.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1414943480 27761 80.91.229.3 (2 Nov 2014 15:51:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 2 Nov 2014 15:51:20 +0000 (UTC) Cc: emacs-devel@gnu.org To: Noam Postavsky Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 02 16:51:13 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XkxQv-0003HO-9C for ged-emacs-devel@m.gmane.org; Sun, 02 Nov 2014 16:51:13 +0100 Original-Received: from localhost ([::1]:57734 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkxQu-0002PK-W3 for ged-emacs-devel@m.gmane.org; Sun, 02 Nov 2014 10:51:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52896) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkxQo-0002P2-UL for emacs-devel@gnu.org; Sun, 02 Nov 2014 10:51:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XkxQk-0006kH-DN for emacs-devel@gnu.org; Sun, 02 Nov 2014 10:51:06 -0500 Original-Received: from hacklheber.piermont.com ([166.84.7.14]:36691) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkxQk-0006je-AE for emacs-devel@gnu.org; Sun, 02 Nov 2014 10:51:02 -0500 Original-Received: from snark.cb.piermont.com (localhost [127.0.0.1]) by hacklheber.piermont.com (Postfix) with ESMTP id 56BA3793; Sun, 2 Nov 2014 10:51:00 -0500 (EST) Original-Received: from jabberwock.cb.piermont.com (jabberwock.cb.piermont.com [10.160.2.107]) by snark.cb.piermont.com (Postfix) with ESMTP id E59852DE087; Sun, 2 Nov 2014 10:50:59 -0500 (EST) In-Reply-To: X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.25; x86_64-apple-darwin14.0.0) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 166.84.7.14 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:176237 Archived-At: On Sun, 2 Nov 2014 09:15:32 -0500 Noam Postavsky wrote: > On Fri, Oct 31, 2014 at 5:28 PM, Perry E. Metzger > wrote: > > On Thu, 30 Oct 2014 21:32:30 +0100 R=C3=BCdiger Sonderfeld > > wrote: > >> Glib already seems to use several hacks to work around the > >> limitations of kqueue > > > > As a aside: people keep mentioning that they believe kqueue has > > some sort of fundamental limitations. I'm curious what those are > > perceived to be. So far as I can tell, the interface is fine -- > > it is a rough equivalent to what you can do in Linux with epoll > > (which is currently preferred over select and its successors). >=20 > I don't know the details, but I gathered the limitations are > relative to *inotify*. Presumably epoll would also be a poor > substitute for inotify, which is why Linux has both. >=20 epoll and inotify are orthogonal. epoll says when a file descriptor has data on it. inotify provides a file descriptor that yields event information for file changes. kqueue implements features of both select/poll and inotify. I'm not sure what limitations kqueue might have vs. inotify, but they are unlikely to be significant in this context. Perry --=20 Perry E. Metzger perry@piermont.com