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: out-of-memory Date: Mon, 08 Jul 2024 20:31:12 +0200 Message-ID: References: <86a5iu4tiy.fsf@gnu.org> <87msmu1uy5.fsf@gmail.com> <865xtg14hd.fsf@gnu.org> <87o777wxh4.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="522"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Pip Cet , Eli Zaretskii , acorallo@gnu.org, emacs-devel@gnu.org To: Helmut Eller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jul 08 20:31:55 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 1sQt9X-000AbQ-1Q for ged-emacs-devel@m.gmane-mx.org; Mon, 08 Jul 2024 20:31:55 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sQt9B-0000IS-WF; Mon, 08 Jul 2024 14:31:34 -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 1sQt97-0000I1-Hl for emacs-devel@gnu.org; Mon, 08 Jul 2024 14:31:29 -0400 Original-Received: from mail-ej1-x634.google.com ([2a00:1450:4864:20::634]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sQt90-00022W-BH; Mon, 08 Jul 2024 14:31:28 -0400 Original-Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-a77e7420697so279946366b.1; Mon, 08 Jul 2024 11:31:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720463474; x=1721068274; 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=cOrA7Vix6uWTL6EE8GaG1PiUZ8/nd+sLTGdClMV6Hwk=; b=hzVR7G6cKyabNMeHLSCiFHiZSe0O/9i0hDJDkhKaewCc5bFwvc/5H8xm1oTOmnuCdw L0O0rM8L2TnSZQWN0xp40ZFR5NUuBaSmK3CbBG+cBv5PFfJfZ027SWE2iYm0/16dNx8G 0VdAPeWQFGoBug0UIwltrfDv9dKKjvJ+rcJ3kvhgXsngpteb/8q876coC45MG0hCCrPZ +Ji0srbpJviuiLpmcrdZwLpZqrBVXQHUzl3vfCPfaEaLMjiSyQyX+8GZk4qm9zdu2tWa h58z8fcOOWwixrgI5CIjRT6fzkiBbWcI2AorTDOa98QtMeOr88/fmkawvUkj03YOmiNY uiKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720463474; x=1721068274; 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=cOrA7Vix6uWTL6EE8GaG1PiUZ8/nd+sLTGdClMV6Hwk=; b=VvGDV9Hv7hTORiQwfRwF/5B5aa2X+qqUacy3HnihDrxVbn6yW3gsZMvGZR25WFL3TJ lCsEI4VP4hIKTjBaDIgXQboHMiXNYng0Nb0BO6c13oboQJPjuAOA4UHdIFVr060J9cFv SC1r3b1OjJEOxrI06t8/e7l6q30lv8m+2+kucIyLjRinPtbp6XdTCQlrSfbNtIxwATNX 7eyNF7fTLGxqNBvSiq+yHhYLEsnvJNDUAYpLUtZCUR0iUNNXb1ihFcBq/6fOpdXOJhwy RIpdjdv3u4lJ6HsWco0q4Gf01/C2wvzEWTgpD9kuRgjj4oJ/4tjHDL49HBHRl7TJp5ZO Sr6A== X-Forwarded-Encrypted: i=1; AJvYcCWTf64iaSmRsD/ZVv7S6YaQUCN1MLWnKzXjTwysH6hHZHC3/cT+0EaD2+8GQ6w/he0VUSdAfV6I/lVmFpRUByLDqszNG9q/+w+UGFNT5hKdi+HNABpHC4cujjE3za34Snv9Y1I= X-Gm-Message-State: AOJu0Yw3s+x4ILvk7Wmg5i6Yu+6dNvO0j97uO6D7QXR64zM73VCB7udh IGCLuV7Dhi/rsvpeTWljaBMZ5wAPtY0DstJ43eQQPN6CuB+jQca9n6Av9g== X-Google-Smtp-Source: AGHT+IGBl8ktLFf+RR116Jm1hKFdKOKEHtE6iBOmVlAQAWNOOWJ+Cu6qd2CAU8DPhOkUnCqPCJSLPA== X-Received: by 2002:a17:906:4e98:b0:a77:cc6f:e792 with SMTP id a640c23a62f3a-a780b8802f0mr23659266b.51.1720463473891; Mon, 08 Jul 2024 11:31:13 -0700 (PDT) Original-Received: from pro2.fritz.box (p4fe3a2f7.dip0.t-ipconnect.de. [79.227.162.247]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a780a871f3asm14435966b.195.2024.07.08.11.31.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jul 2024 11:31:13 -0700 (PDT) In-Reply-To: <87o777wxh4.fsf@gmail.com> (Helmut Eller's message of "Mon, 08 Jul 2024 20:27:19 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::634; envelope-from=gerd.moellmann@gmail.com; helo=mail-ej1-x634.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, T_SPF_TEMPERROR=0.01 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:321546 Archived-At: Helmut Eller writes: > On Mon, Jul 08 2024, Pip Cet wrote: > >> If I understood Helmut correctly, he wants a mechanism to avoid >> thrashing after exceeding the memory limit. Maybe we need a special >> state for that, in which we stop the GC but continue using our memory >> while the user quits and goes to buy more RAM? > > Mabye there could be a hard and a soft limit. When the soft limit > is reached, Emacs could ask something like > > There's little free memory left. Continue? Good idea. One could combine that nicely with the idea of a making a pre-allocated block available to MPS in that case. One could even have more than one such block, and run M-x doctor to investigate the user's mental state at some point :-).