From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pip Cet via "Emacs development discussions." Newsgroups: gmane.emacs.devel Subject: Re: igc, macOS avoiding signals Date: Sat, 28 Dec 2024 18:40:30 +0000 Message-ID: <87a5cffy8n.fsf@protonmail.com> References: <799DDBC5-2C14-4476-B1E0-7BA2FE9E7901@toadstyle.org> <87ldvzg7vi.fsf@protonmail.com> <868qrzsojd.fsf@gnu.org> Reply-To: Pip Cet Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31354"; mail-complaints-to="usenet@ciao.gmane.io" Cc: spd@toadstyle.org, gerd.moellmann@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Dec 28 20:01:22 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tRc3t-00082m-Sr for ged-emacs-devel@m.gmane-mx.org; Sat, 28 Dec 2024 20:01:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tRc3S-0003th-Eu; Sat, 28 Dec 2024 14:00:54 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tRbjp-0001Dx-VR for emacs-devel@gnu.org; Sat, 28 Dec 2024 13:40:38 -0500 Original-Received: from mail-4322.protonmail.ch ([185.70.43.22]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tRbjo-00009B-8w for emacs-devel@gnu.org; Sat, 28 Dec 2024 13:40:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1735411234; x=1735670434; bh=yId2UQKZ+rXWxg2D8HaTbBgfGRH76cQlcVdUt6MyUJM=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector:List-Unsubscribe:List-Unsubscribe-Post; b=Rqtgf8HutJYpTo6amO7aVqgBDnV8Y3Pcl32REypJ6MXyP3xUTnE6Hd0wiH2ho8gn5 ti/y8wKzskTnAXU5ah6l+4KgOT0uVA+wYpzHWz0y9rqTC46D7WEqUQVGjmE+Z1gRLP lURBa2VA3Asno2P8ePqH8uCV5mlck9qxCatkM/VFjPI+kVT3m+OUznxWPmxNVvuMd9 +8zmB2MKShTcBjolVL5frrYKI0CbZFokNt/NwP6WTE2wDOO5nueSOB4uXGIbszqI91 4ICuM1LPn9tvHB1Ur8UtfsqFfY7zQhZjGa6JU1KFeuq+NXzG4MEVCMHSF5OMq/JHER 5okvUKXUmNDtg== In-Reply-To: <868qrzsojd.fsf@gnu.org> Feedback-ID: 112775352:user:proton X-Pm-Message-ID: 3c4bb99693fd7acd80cd90a4220513a112251aaa Received-SPF: pass client-ip=185.70.43.22; envelope-from=pipcet@protonmail.com; helo=mail-4322.protonmail.ch X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 28 Dec 2024 14:00:49 -0500 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:327285 Archived-At: "Eli Zaretskii" writes: >> Date: Sat, 28 Dec 2024 15:12:23 +0000 >> Cc: gerd.moellmann@gmail.com, emacs-devel@gnu.org >> From: Pip Cet via "Emacs development discussions." >> >> I think we probably need to put instrumentation in the source code, so >> we gain some idea of how long signals are delayed for when we mark them >> pending. > > What do we expect to learn from this, It tests the current code, which does this: When a signal arrives, and we can't handle it because we might have interrupted MPS, we mark the signal as pending in the igc structure. At some point later, we check the igc structure for pending signals, reraise them, and unmask them. Gerd's experience suggests that the "some point later" happens too late. This patch gives us measurements. It's unrelated to the OS scheduler, AFAICS. Pip