From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sean Devlin Newsgroups: gmane.emacs.devel Subject: Re: igc, macOS avoiding signals Date: Sun, 29 Dec 2024 11:21:59 +0900 Message-ID: <3A7135F0-64AD-4577-BDA7-ACE1E60B7364@toadstyle.org> References: <799DDBC5-2C14-4476-B1E0-7BA2FE9E7901@toadstyle.org> <87h66ng4bf.fsf@protonmail.com> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.400.113.1.2\)) 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="31986"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gerd.moellmann@gmail.com, emacs-devel@gnu.org To: Pip Cet Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Dec 29 06:39:33 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 1tRm1U-0008CW-G9 for ged-emacs-devel@m.gmane-mx.org; Sun, 29 Dec 2024 06:39:32 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tRm0K-0004CX-3S; Sun, 29 Dec 2024 00:38:20 -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 1tRiwb-0001Gv-1F for emacs-devel@gnu.org; Sat, 28 Dec 2024 21:22:17 -0500 Original-Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tRiwZ-0004x5-20 for emacs-devel@gnu.org; Sat, 28 Dec 2024 21:22:16 -0500 Original-Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-21a1e6fd923so42687975ad.1 for ; Sat, 28 Dec 2024 18:22:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toadstyle-org.20230601.gappssmtp.com; s=20230601; t=1735438933; x=1736043733; darn=gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=KHFppFQrhYzKlvnMoNs+KbESg2Jo7TfNAvyOnAOA5mI=; b=2iDmoABaytqJBem/+0mqwpdEuyHS/aGhQ6WMK0B/rk8vb0U1u8imeDyvI+1wjRv4pU WwzHyifW8eNy1irGGEc6afE81mqU3peVA4qt8SiAdbSMDPyLVjGIsWvCsnj3E2BtDPlB L3RMH0M8dRjz2Njo9uX3q0jaxk67bpJZegYSzfJmUKUCitSf61dpVB72XQKBfGv7L17U qEW/UP4JOVvZnB+kBYuAlYyLLBnZ4zRVyp/GMgc9Jxa+ZH67rbgh8iIIh9JBhX5MSY0Z zDvJqL+YbOw+KZEIRjvkO6hzHwO/bw+zd+3yEKYBhfhjWiwyrV2YbNXMj+TtcpVuTh6x d1qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735438933; x=1736043733; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=KHFppFQrhYzKlvnMoNs+KbESg2Jo7TfNAvyOnAOA5mI=; b=eELKizyHHx85b93z/pXSKWt/E7JBE3uqgQwMHfZVUNOmsMdraxlXy/YQmcV+cf1vou vnH9F+8CvbgJkHXlItE/fEJtrKTV2UsIBH5x7SEtRfgjPMlTP/zPZI7JRduowlO+p3d/ 4adty3V5jm7edbj9iihCKPdLelAHvYIyuw/mpx7zMnlm2cPbwhau1wtljp7y1CA4IiiW QhXF+ZwMIY8TVS+R3I3WDxVleHYNXQEs/xT+7v+WgdlEVIsPXYgvUF6lR3z1WD3ys7cL xrNZ30IB8swICiKOwPR8XT6V7OmXZEyz823QXvh8HEkSUzDhw25RyHULrMgyrqEiZ/Rp 6YzQ== X-Forwarded-Encrypted: i=1; AJvYcCXY7fJpMA84GvVep64QbW6xx+oyjMUYpiw3ngkAjykwdIlndNGD5TKYaT9lTMXBG2JKEQVbHdAT3paOlg==@gnu.org X-Gm-Message-State: AOJu0YwqULEGxugtYn0XSS8Xox+ubN51r6ERx3/MSqCwNdK18C+Yb18b VADG3DDJDjDBpgpswwS4rTyylOhjODwr/wbV76drF/uqq3YDKYWoOAO6hCDewfs= X-Gm-Gg: ASbGncuDUkdLaTiCUv8qHQrSciuDqbC4yo1LAfRR3S7hpmv3iq1hmLyfwYoJFhP26n+ HF4mF/1lpqAV0zz1qW63qEEe900zeAQCQYA9TCIGx6DCkpLA0M6nWg/6JAZIWzqAm1Qq4z/fn/F XwwnAxXzv9GjJa0LX4c+Xbgf5m9ZScX9kV1bdg0wFTwq6H8wb+HiYz18SI++n5H767knl3pB4Df EUpQ4rntv3SOBSRNq8W4Sjd3Gl0coq+9vIDDe5iGP3NUjDFC+l4pm2lDwxJafXyrjAtIHR7rZ4t tcaj07AGKeXaZSjScIfzWRp0E/u4z8juUZtyjRQy X-Google-Smtp-Source: AGHT+IERaDQiEPg8ZNoNy28bhlOAzRIENdvHc9wio8n2HFQbJdPKAlyPtuW0kcDdQNGK3uz0bbGRZQ== X-Received: by 2002:a05:6a00:1706:b0:726:f7c9:7b36 with SMTP id d2e1a72fcca58-72abdd7bacdmr53797750b3a.8.1735438932645; Sat, 28 Dec 2024 18:22:12 -0800 (PST) Original-Received: from smtpclient.apple (111101095029.userreverse.wvs2.kddi.ne.jp. [111.101.95.29]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72aad8dbb70sm16858654b3a.98.2024.12.28.18.22.10 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 28 Dec 2024 18:22:11 -0800 (PST) In-Reply-To: <87h66ng4bf.fsf@protonmail.com> X-Mailer: Apple Mail (2.3826.400.113.1.2) Received-SPF: pass client-ip=2607:f8b0:4864:20::62a; envelope-from=spd@toadstyle.org; helo=mail-pl1-x62a.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 29 Dec 2024 00:38:16 -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:327309 Archived-At: Hi Pip, > On Dec 29, 2024, at 1:29=E2=80=AFAM, Pip Cet = wrote: >=20 >> I'll try to come up with a patch. >=20 > This should provide some data (on stderr) about which signals we = delay, > and for how long (the "delayed" messages). It also includes some > information on additional points at which we can detect whether = signals > are pending (the "delaying" messages); it's probably safe to run them = at > that point, but the code might need some changes because other signals > (or even the signal in question) might be legitimately blocked when we > reach that point. >=20 > If the "delaying" messages indicate acceptable (initial) delays, we > might get away with simply calling gc_maybe_quit more often. If they > don't, further fixes will be necessary, or we need to find more such > points. >=20 > On POSIX systems where we can spare an additional signal, we can run a > separate thread to ask us to retry running signal handlers when the > arena lock might be available again. >=20 > Or we could move to a separate thread for slow-path allocations. >=20 I=E2=80=99ve built Emacs with your patch. After running Emacs -Q for a = few minutes, I can confirm I see a few log statements: delaying 20 for 0.066594 sec delaying 20 for 0.066612 sec delayed 20 for 0.066614 sec Please let me know if there are any particular tasks you=E2=80=99d like = me to try, or if I should just collect the logs in the background during = general usage. Cheers.=