From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Helmut Eller Newsgroups: gmane.emacs.devel Subject: Re: MPS: out-of-memory Date: Mon, 08 Jul 2024 20:27:19 +0200 Message-ID: <87o777wxh4.fsf@gmail.com> References: <86a5iu4tiy.fsf@gnu.org> <87msmu1uy5.fsf@gmail.com> <865xtg14hd.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="20791"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Gerd =?utf-8?Q?M=C3=B6llmann?= , Eli Zaretskii , acorallo@gnu.org, emacs-devel@gnu.org To: Pip Cet Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jul 08 20:27: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 1sQt5f-0005It-3x for ged-emacs-devel@m.gmane-mx.org; Mon, 08 Jul 2024 20:27:55 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sQt5D-0006vH-5q; Mon, 08 Jul 2024 14:27: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 1sQt5A-0006uM-P2 for emacs-devel@gnu.org; Mon, 08 Jul 2024 14:27:25 -0400 Original-Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sQt59-0001Cf-6a; Mon, 08 Jul 2024 14:27:24 -0400 Original-Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-52ea5dc3c66so5527766e87.3; Mon, 08 Jul 2024 11:27:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720463240; x=1721068040; 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=m/IP+lr6+Kwm2kr6fsFUn6RkKCXb5HjvZ57e28yaLyc=; b=JD0oDVqLLWwTdOAM5dICGw+mZsa/Gqlxd2Wyuy7vEgKFdv9ak4Bp2ewAT0/oSa6lxe EpIH+cuze6THmEs+HrsTLzITzOnNsd50JW+7Dkj6S/cA2ucEBnwB8+PiSPJIJG4B5dye 5spnul6SNgtL3UbRoe3lORmvCP0E/IlexHzZEtziXAEDWNX2KzosIHobg6Lu9CYWISXo dbYyYX6cR9pkcktvlxPDwUisC3Ld9iV8FDBlDTKskhyIePE49n/bfS26sEE1yWuOxft1 tfM6yZLsE6jPIVjusSk6tgN5XO5DuXmeoDSkJwtSNBEIi9umiCpsbI950eJWO3OB6qXh SGMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720463240; x=1721068040; 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=m/IP+lr6+Kwm2kr6fsFUn6RkKCXb5HjvZ57e28yaLyc=; b=a2gppVXC2spoL4joH6TDMZea0E2wiYZ5hXkaP+zE2X2NjicaPPSUvYDzvoG0zkHQ/G 9WoNggAVOuXMrsgCeA4ulOdXrQ844tp87IVVBE59nTFidEijte25cR9LqcJlpLI/QSQK CrouxFvS9UHGkkvdx94bzrKabWW7DLYHOWBIS73I6J+PMFpVwu2/XQRP2Nj75PTgFA41 h51IL8eGFlOGH1WvY2gg2x+Cio8C7UCR5vYtMo296IJy0sdTOdViYFG19/2qaDmK017E ykSwzpk1T/ZtX3FENHmmw0UBNzHlGcntHA/1MI9dSjMpSVD2+ter5n+/Xrm9QRXzzvab SM9Q== X-Forwarded-Encrypted: i=1; AJvYcCXbGYHK9H1tBMIeict7v0X9swSmLkgssFhfW7PzTzF+CturmNUFbkpzIJvUvhIQU4M6jeDdfEO7pkYvNTV+/pHkDY5eQPQ6yyHlc6UapTgLL7YUrG8jqXbMlIw6NlT6aztDY4s= X-Gm-Message-State: AOJu0YxHIjkxXlTwI/Uc35dgA6ZJO+Ti2pVuQ9ARa6qJ2P/MxrARXEfu Q2G+rCNxtnu4qhijJyZekOVuSKlDDNWoenvk+8HPsC/e3yH2j1wDLQdhpA== X-Google-Smtp-Source: AGHT+IE1WzBvZVz4MB4yPGtZfAUjz3ddtQvTVBJB8meSHiqz27lSA+0JIE7OiBbaS6ww1jGo60OxCg== X-Received: by 2002:a05:6512:1286:b0:52d:582e:4111 with SMTP id 2adb3069b0e04-52eb999b398mr141067e87.18.1720463240340; Mon, 08 Jul 2024 11:27:20 -0700 (PDT) Original-Received: from caladan (dialin-234199.rol.raiffeisen.net. [195.254.234.199]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a780a6e58e0sm14770966b.85.2024.07.08.11.27.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jul 2024 11:27:19 -0700 (PDT) In-Reply-To: (Pip Cet's message of "Mon, 08 Jul 2024 16:45:20 +0000") Received-SPF: pass client-ip=2a00:1450:4864:20::12e; envelope-from=eller.helmut@gmail.com; helo=mail-lf1-x12e.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:321544 Archived-At: 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? and when the hard limit is reached, it would simply abort. > Speaking of memory issues in general, I'm currently seeing pure space > overflows, after changes which should affect weak objects > exclusively. Which is really odd, because weak objects aren't > purecopied! Still investigating that one, but it's possible I'll just > give up and bump pure space. There's a purecopy_hash_table.