From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Gerd_M=C3=B6llmann?= Newsgroups: gmane.emacs.devel Subject: Re: MPS: User GC customizations Date: Thu, 04 Jul 2024 19:06:17 +0200 Message-ID: References: <87v81pbgzi.fsf@localhost> <87y16khvhy.fsf@localhost> <87frspqwhr.fsf@localhost> <87tth5pdqc.fsf@localhost> <86sewp8djd.fsf@gnu.org> 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="10409"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , yantar92@posteo.net, emacs-devel@gnu.org, eller.helmut@gmail.com To: Pip Cet Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jul 04 19:06:50 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 1sPPv0-0002Ve-4c for ged-emacs-devel@m.gmane-mx.org; Thu, 04 Jul 2024 19:06:50 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPPud-0000p9-0f; Thu, 04 Jul 2024 13:06:27 -0400 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 1sPPuZ-0000nU-SD for emacs-devel@gnu.org; Thu, 04 Jul 2024 13:06:24 -0400 Original-Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPPuY-00066v-CB; Thu, 04 Jul 2024 13:06:23 -0400 Original-Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-a7523f0870cso98134066b.3; Thu, 04 Jul 2024 10:06:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720112779; x=1720717579; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=5AfDhJh6tp/ui5hPumTaX1uGGHcB2nlvP23M40vO/fg=; b=WJ3qYfMyZoIXPB0IXBk+GoOqIy2fVQjhwePxuqYtGCGQFoJLGOSOsevxxzQ3Wq6T+m WYx2j+boISeHALMGQoABSdgxZV9sPZv8ikUpTNgELLleUaLU62MZ8q1xQpS5xS8yBKHE JYPJsrRagmrJ64b1QyaStqcskP9UFYxvUMVz9Xf/sIO0ktHC6sqGShdnsb3RgXqwmlTt HkRHMmb146F80ZoejsO1gDvxGFxBKut62gL0Ycc0nNUbyHpWjub0sKe4zaS/XGrpol4o PF1PgKJBvjbbSMG+Tsv/VsRGkbkoat18+RxfPdU591GTRKBzdT7vHqLCb+ug1z5fyah1 KHzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720112779; x=1720717579; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=5AfDhJh6tp/ui5hPumTaX1uGGHcB2nlvP23M40vO/fg=; b=mxbFSD6mq9V5GyHH25rJ63truVmTGk5e0WMRYxrafCEgNHqwZCQ0HLa/XzFxq7x/ok HeqitUxAoSQ/v+/BFZ6tDKJJVThq0F/89JlRzN7Ab0HSpTAFJc96B4sy/q0xCtsHwVob fnwrvyJRjWa8FXISKBLGnhBh7WmMhuHIv2lZ4d1zcN1FcQZnl428hwxgOWBqfatWwtoP W1LlKZV6U07pwhkDJ0nzwK3pHvC0c5f4RXGpa61kvQviR1KmfbJ6q7+pVPvm8o0PUNEd hxieWZUXB1A1rUUGsu20XwlAQ66WW4ywINbuAOZf62oE+dSIdeOFk3U7UKt5ApQ9yB4d OnPw== X-Forwarded-Encrypted: i=1; AJvYcCXt/HtWW8fg+xanPsw1Duyiwd3AhlUp3UT7KdN4i+XHRAfMtbze02bKMbGf7MVAkSTsx/osTEnFrWtlNK2stNVxsNnU X-Gm-Message-State: AOJu0YyxLxd3BfRFIEx2MJgWZsj/ESZwpDQqIVGd3xmHgCSgFcjzuwUT L5QNlZlzYQ+on69agoVXfCXnQZeIwsFUuq3eFBfYn/u+MhAKFHc6 X-Google-Smtp-Source: AGHT+IHMiwCUpsp9M0gzVbiNau1PxgpTx4+1p3TYIcbj+3NXcS4qnuh+XiEmeBKxp0HYrhjbMYByww== X-Received: by 2002:a17:907:3f1d:b0:a77:b784:dea9 with SMTP id a640c23a62f3a-a77ba44d32amr175193766b.8.1720112779262; Thu, 04 Jul 2024 10:06:19 -0700 (PDT) Original-Received: from pro2.fritz.box (pd9e36fa8.dip0.t-ipconnect.de. [217.227.111.168]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a72ab08ce96sm610839166b.154.2024.07.04.10.06.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jul 2024 10:06:18 -0700 (PDT) In-Reply-To: (Pip Cet's message of "Thu, 04 Jul 2024 16:38:26 +0000") Received-SPF: pass client-ip=2a00:1450:4864:20::62f; envelope-from=gerd.moellmann@gmail.com; helo=mail-ej1-x62f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.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, 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-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:321345 Archived-At: Pip Cet writes: > On Thursday, July 4th, 2024 at 13:58, Eli Zaretskii wrote: >> =E2=80=98interval=E2=80=99 is the time, in seconds, the MPS is permitted= to take. >> It must not be negative, but may be =E2=80=980.0=E2=80=99. >> [...] >> mps_arena_step() allows the client program to make use >> of idle time to do some garbage collection, for example when it is >> waiting for interactive input. The MPS makes every effort to >> return from this function within =E2=80=98interval=E2=80=99 seconds, but= cannot >> guarantee to do so, as it may need to call your own scanning code. >> It uses =E2=80=98multiplier=E2=80=99 to decide whether to commence long-= duration >> operations that consume CPU (such as a full collection): it will >> only start such an operation if it is expected to be completed >> within =E2=80=98multiplier * interval=E2=80=99 seconds. > > Why are we passing 0 for "multiplier", then? Should that be 1? It's just my interpretation of=20 =E2=80=98multiplier=E2=80=99 is the number of further similar calls th= at the client program expects to make during this idle period. IOW, I don't expect that I'll call mps_arena_step again in this period. But actually, I don't know, so I thought 0 was appropriate.