From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.1 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id F0D7A1F47A for ; Thu, 9 Mar 2023 19:28:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1678390123; bh=EzfAsVXKzzkBiRQtkTkVqiZYeL+FReDwuC6aGZ9O6EM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=hZmWCG5w9NoJ+Im/ou+i4EwUnqc/hj58HtpJQE/K5uNLSJgFcYh/FuhFn88VrKp4+ iI48CkPSqwntg/Pn44BvLdedXMegQkKfdhG1QKw4ZznfNtGZuB45PRNCcw6TiiGA7y uBglcUKZL/Mv5/ub5bsPRiaNeg5bh8iIh1TVs6Xk= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 2/6] doc: technical/ds: update blurb to note more daemons Date: Thu, 9 Mar 2023 19:28:38 +0000 Message-Id: <20230309192842.625820-3-e@80x24.org> In-Reply-To: <20230309192842.625820-1-e@80x24.org> References: <20230309192842.625820-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: And add a note about the various wakeup modes of kqueue|epoll while we're at it; we use all of them! --- Documentation/technical/ds.txt | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Documentation/technical/ds.txt b/Documentation/technical/ds.txt index 89cc05af..4cfb62fe 100644 --- a/Documentation/technical/ds.txt +++ b/Documentation/technical/ds.txt @@ -1,9 +1,14 @@ PublicInbox::DS - event loop and async I/O base class -Our PublicInbox::DS event loop which powers public-inbox-nntpd -and public-inbox-httpd diverges significantly from the -unmaintained Danga::Socket package we forked from. In fact, -it's probably different from most other event loops out there. +Our PublicInbox::DS event loop which powers most of our long-lived +processes(*) diverges significantly from the unmaintained Danga::Socket +package we forked from. In fact, it's probably different from most +other event loops out there. + +Most notably, it uses one-shot, level-trigger, and edge-trigger mode +modes of kqueue|epoll depending on the situation. + +(*) public-inbox-netd,(-httpd,-imapd,-nntpd,-pop3d,-watch) + lei-daemon Most notably: