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 14:51:16 +0200 Message-ID: References: <87v81pbgzi.fsf@localhost> <86a5j1fhd1.fsf@gnu.org> <87y16khvhy.fsf@localhost> <87frspqwhr.fsf@localhost> <87tth5pdqc.fsf@localhost> 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="23050"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Pip Cet , Eli Zaretskii , emacs-devel@gnu.org, eller.helmut@gmail.com To: Ihor Radchenko Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jul 04 14:53:14 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 1sPLxZ-0005e1-Rq for ged-emacs-devel@m.gmane-mx.org; Thu, 04 Jul 2024 14:53:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPLw2-00072i-68; Thu, 04 Jul 2024 08:51:38 -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 1sPLw1-00071Y-3a for emacs-devel@gnu.org; Thu, 04 Jul 2024 08:51:37 -0400 Original-Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPLvm-0007Gv-QC; Thu, 04 Jul 2024 08:51:36 -0400 Original-Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-42562e4b5d1so4021635e9.1; Thu, 04 Jul 2024 05:51:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720097478; x=1720702278; 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=0q5dBYPPhPMpb660gSQv5xqZboRXqmHgvucmasUrjME=; b=WyJJgkX+lEnbVffS7IDBQcBgbF3rkHS8YfwcuLPvLwOjS4R8mrC+uxuD4Keg59Msig eV5Vbc0tJzvvyU8wmUtNLtva9ICpSh5uNOKRnVG3xjfX7eitZfSNPXMTxsvcxiV1mY59 Wr2iMc1zlqIcA8t5sWpB7Lb8+jTeCU09mnaViLrtorENjYgVH7RWccxULSmFIv+bX5Y+ lsiwUl4hzchnWHQaBzPvSIByiK7sSzjbhWIu1dCCHIRL026FrC73sC48PKsbnOz7fzUE 04PEeFEbF+SNENsMbpM/AMO8gSAW6Y4qf3bqdS49rKxlVnPdbOu5uS4VA+iYovHBIUap qByg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720097478; x=1720702278; 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=0q5dBYPPhPMpb660gSQv5xqZboRXqmHgvucmasUrjME=; b=IUXC7W8gWbFuw2dojoN4un6IG9LvM9GpLVhw4+U34Xq+NN8zl0Jm2J2n7VGhklQtQQ femsRZMNvY1IwV1jps1yuCtCkj2xzJ43U+byzBZqh4eA+WcaeyGQ6wP7J9wt5CQduByH K0Xuhq0Y0be1k5cndiIn1Pm+2n60So186j1LmzL8ts/9F9E5jXSfEvyxlDhcP4IdBkq7 Jor1bLv1pl2BXDAkxGZUHccGvw4oGpGkglviYhqCTf0f/IgggYisxkTWZFCIksZOiHpA bDTdR0Wc8gyurm1IGCCAOtf11jsr2o5Kqh/bhLKmersg1Ze3jG4U7jEV9u31/t6oWMPS DLKA== X-Forwarded-Encrypted: i=1; AJvYcCWzd3ImccPaJHzCMkkXgpTxsW0itXPU8ltiHajM8z1qhOjcJgCU9aDQa1hz3Jc9uAODLi3s9UQRCZu7bfXUM6HwcYS/Hrr7goVWfC0KN+mytec= X-Gm-Message-State: AOJu0YynukZxgHmCDh675A9nbypdVAPgj70iNMEfpz0RGBZqU0so16Le WcqTd9pBXCwD2F2uwMMvmzwR4SEqGLxMxnh2xkFKYBdNM4ZL5Su0 X-Google-Smtp-Source: AGHT+IFrgdlT+EijJULPiHUD4iCDv2b42T4Dh83XPWSA3NEHMimpGsdlQgVDqGLBDPRj959TrwbC5A== X-Received: by 2002:a05:600c:2311:b0:425:68b7:e467 with SMTP id 5b1f17b1804b1-4264a3e8b76mr12938055e9.17.1720097478283; Thu, 04 Jul 2024 05:51:18 -0700 (PDT) Original-Received: from pro2.fritz.box (pd9e36fa8.dip0.t-ipconnect.de. [217.227.111.168]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4264a28d3dasm23717095e9.46.2024.07.04.05.51.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jul 2024 05:51:17 -0700 (PDT) In-Reply-To: <87tth5pdqc.fsf@localhost> (Ihor Radchenko's message of "Thu, 04 Jul 2024 12:02:03 +0000") Received-SPF: pass client-ip=2a00:1450:4864:20::32b; envelope-from=gerd.moellmann@gmail.com; helo=mail-wm1-x32b.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, 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:321314 Archived-At: Ihor Radchenko writes: > Gerd M=C3=B6llmann writes: > >> Hi Ihor. Soemthing completely unrelated, but I think it might be >> interesting to play with if you are running an igc Emacs more often: >> >> igc-step-interval is a variable defined in =E2=80=98C source code=E2= =80=99. >> >> Its value is 0.1 >> >> How much time is MPS allowed to spend in GC when Emacs is idle. >> The value is in seconds, and should be a non-negative number. It can >> be either an integer or a float. The default value is 0 which means . >> don=E2=80=99t do something when idle. Negative values and values that= are not numbers >> are handled as if they were the default value. >> >> It's for interactive use. > > IMHO, this variable makes little sense in isolation. It only makes sense > to postpone GCs when we also have the means to increase the thresholds > when to trigger them. Most of the time, GCs are triggered by > memory-intensive commands. Extra GC on idle would not help those. Define GC, so to speak, and define what triggering the GC means in a concurrent, incremental GC :-) What this variable does is give MPS notice that the client is currently idle and it might be a good time to do some work. > For example, my recent measurement of building agendas displayed 30% of > the time spend in GC. (whatever this means in the context of our handling > of SIGPRF) Exactly, whqt does it mean? And if we don't know, why is it an example for anything?