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:01:35 +0200 Message-ID: References: <87v81pbgzi.fsf@localhost> <87y16khvhy.fsf@localhost> <87frspqwhr.fsf@localhost> <87tth5pdqc.fsf@localhost> <86sewp8djd.fsf@gnu.org> <86frsp88fa.fsf@gnu.org> <86bk3d87od.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25557"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Pip Cet , yantar92@posteo.net, emacs-devel@gnu.org, eller.helmut@gmail.com To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jul 04 19:02:24 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 1sPPqh-0006Qv-IR for ged-emacs-devel@m.gmane-mx.org; Thu, 04 Jul 2024 19:02:23 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPPq4-0006uh-GN; Thu, 04 Jul 2024 13:01:44 -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 1sPPq1-0006sO-BD for emacs-devel@gnu.org; Thu, 04 Jul 2024 13:01:41 -0400 Original-Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPPpz-00043L-PY; Thu, 04 Jul 2024 13:01:41 -0400 Original-Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-a724b3a32d2so88452266b.2; Thu, 04 Jul 2024 10:01:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720112498; x=1720717298; darn=gnu.org; h=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=6hET5jj3vp3dqFLsevZP2SsxXNX1vACJnaBxxAu+BaU=; b=l/MoWYvD2x4P/Jk9c7SCucRB4illVGli6fo7VyFC+qvbvhVl5qiuoFBAbbmO8BIr+M K34fWIi3IfL0qkrUfDJsZkkUaofv9T6zcSayvRqwafUdTev8bUz3E39Z+kb1xOHkrZso wvrKXUVie3H37RJyqow3PQUmh6CrCnJvIqnncgOkbNWwu6ELVF1DrOnlLTZktho5tLhb PL76CgfegT50t8vfuxSRXfW255jFEUlziE2eX2KmQ7Z60BZ9GRsKs+SiOjhum6YpWDL0 5T8VPdtTY91xj1aHJJ+IdJxJCdJAXOdKW0U9K9kroD26cktaTl/CvKyXWBRBRgmsoNjf dc2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720112498; x=1720717298; h=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=6hET5jj3vp3dqFLsevZP2SsxXNX1vACJnaBxxAu+BaU=; b=S126ndpM6gy9sM9DrwMso+o9Xsgov0eUsCY19e5O/uwP8zoWPjFiLI+ccy/LjedRhp 7QnaSfeGZJT+MSoOwUhqZHGNVztoc4Ryaf0lzcdxuUtFuiGGzPc/KZVi1Gjd3iMZfPx/ YPwWT+J3MnIpdsjVcTpWwiH5YZR3pA0LrlzBPpQ1OJ14NxB6nUZPa63NSja7zw476//n wmHW5xz+2dH11kDAvZvXG7JhhGx6/myO7mB5bRCMk9xEKgaJvx07fxNpML8w1+xwx9O4 /01/DQySV2MhGq5CvfoFpvwpvxf6Ui8Fp5CEjjUI8sm1dLrHC+BO5kSv1eHI4urlAOqV uLFA== X-Forwarded-Encrypted: i=1; AJvYcCU2HqDKqQIunMzrb0VQpz1a0njT8rZZq212rHLImtVf9P6crRHzwvxT2BGOQctg8vNGM1uDkG+rEZGJ+zWLk99j06/k X-Gm-Message-State: AOJu0YxMHXdBbs7XO3ZtPAv3/INlaVF5rv1uMKcY3tW4+0LNBTemwUcX anrozIt7/Xjq6cP6DrU+ymyW9q2DhMF6/emJYnvaeCD0OJsBVDw3 X-Google-Smtp-Source: AGHT+IE/4hsCV5a6WSadnXv3RbIJtlhkwuDnshctmHt76HNQSNaJGOK1OQKnKyjKCbSKLOR0z2JG3Q== X-Received: by 2002:a17:907:3f8e:b0:a75:3c2d:cd90 with SMTP id a640c23a62f3a-a77ba72732cmr171669766b.65.1720112496513; Thu, 04 Jul 2024 10:01:36 -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-a72ab08cea1sm610583266b.156.2024.07.04.10.01.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jul 2024 10:01:36 -0700 (PDT) In-Reply-To: <86bk3d87od.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 04 Jul 2024 19:04:50 +0300") Received-SPF: pass client-ip=2a00:1450:4864:20::629; envelope-from=gerd.moellmann@gmail.com; helo=mail-ej1-x629.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:321343 Archived-At: Eli Zaretskii writes: >> From: Pip Cet >> I'm really confused. Can you explain what you think the difference >> is? FWIW, I'm also confused. > I just did, twice. If that still doesn't explain it, then I guess my > explanatory talents betray me, and I don't know what else to say. > >> The variable's value is a number. If the variable is zero, we don't >> tell MPS we're idle when we're idle. If it's nonzero, we tell it >> we're idle (when we are), and how much time it's okay to spend in GC. > > The number can only tell one thing, not two. AFAIU, it tells the > latter: "how much time it's okay to spend in GC" once GC started due > to idleness (and not some other reason). Gerd said something > different: that this number "gives MPS notice" that Emacs is idle. > (How can a number "give notice" I don't understand even in principle.) By saying that 0 has a special meaning. The "once GC started due to idleness" confuses me. We don't "start" GC due to idleness. We allow MPS to do something concurrently, say one or more increments in the sense of its incremental GC algorithm. And "GC runs" all the time.