From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-3.9 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id E44961F4B4; Sat, 26 Dec 2020 20:11:15 +0000 (UTC) Date: Sat, 26 Dec 2020 20:11:15 +0000 From: Eric Wong To: meta@public-inbox.org Subject: Re: [PATCH] inboxidle: avoid needless syscalls on refresh Message-ID: <20201226201115.GA30142@dcvr> References: <20201226093631.14313-1-e@80x24.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20201226093631.14313-1-e@80x24.org> List-Id: Eric Wong wrote: > We don't have to replace a bunch of existing watches > with identical new ones. On Linux with Linux::Inotify2 > installed, this avoids a storm of inotify_add_watch(2) > and inotify_rm_watch(2) syscalls on SIGHUP with -imapd > and "-extindex --watch" Addendum: this seems to fix missed wakeups after SIGHUP with many (50K) inboxes, I'm not sure if there's some other threshold that's missing or if there's a bug somewhere else...