From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Samuel Wales Newsgroups: gmane.emacs.help Subject: Re: memory tken by emacs Date: Thu, 2 Feb 2023 21:02:26 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34869"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 03 05:03:13 2023 Return-path: Envelope-to: geh-help-gnu-emacs@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 1pNnI9-0008r8-88 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 03 Feb 2023 05:03:13 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pNnHU-0002mV-8W; Thu, 02 Feb 2023 23:02:32 -0500 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 1pNnHT-0002mN-Ik for help-gnu-emacs@gnu.org; Thu, 02 Feb 2023 23:02:31 -0500 Original-Received: from mail-lf1-x135.google.com ([2a00:1450:4864:20::135]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pNnHR-0000rD-Sd for help-gnu-emacs@gnu.org; Thu, 02 Feb 2023 23:02:31 -0500 Original-Received: by mail-lf1-x135.google.com with SMTP id x40so6038291lfu.12 for ; Thu, 02 Feb 2023 20:02:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=j8O3Aav+X1H4o2Q4r2M0sLYSYn+Uoy2Yp7XVEGpAb34=; b=fox7u88g5iYTlaeNshmIzTSKOWex4/0tODrdQfZvP19XhF3FrLSdsOeUiUVUj6hJTV BcxnI+TxJaQWb/URmHnlMuKZYfThvUIcbJODGSHxx7cdW6O0aK2vMOUfUednpKRszP9r 9r2ff0pixjWzGlahxVKbJZzFheILXAQkySFKwI9JmEiWkIbLFgyQbm7zO9+w+SJONmMq KYoKHvFgdhn0bKJ9oPr8CKdizIDQ6K1fW2BY3c485FPAGPsHokgpKO1Sql07C9DKHfw0 7PDBMrgwYmlKuFCsrxtDnE7gzoPU3xURsnJyo5S00gqG5giNkmNXBi3fTyNS+CLcg4dx jMzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=j8O3Aav+X1H4o2Q4r2M0sLYSYn+Uoy2Yp7XVEGpAb34=; b=eZIH/F0W27HvcuOSWyNkQXOnfLdxZQlsWDy+2w+H4D4R7/QmE0XVZutbdiWkEMIb/0 +e9OCXncFpAY7oeN6+IVwonIVZcWDm/I9o2OtxNbgM3XINCzh0IZKRvcpQQ6p3mdoSA+ RP35lh2YbQRiRFr2+85yYA/bzzfW2nXeGWE9y5RDo+5MV/uxK1waDJJzTIPH2RWh3TpN 3U2Ee5heajauAGIhs7RVWfcds/l3pcVGo53FqWiMwilXsbKUGJFaurobBNP7e7bCCOi1 tSOyjW7IzIToSABW4o2sAkcvgK4TUHRQePop/Xw4oonWKt2co7Zs07TRnEnDyGKWNEkp mx6A== X-Gm-Message-State: AO0yUKXSTDmCm76WABWCb0HTk180VS3lnMKlhKZudbfEs4PRQSgVfhHP xPMBMfxrJmbmSYV+BPFp9yTlGFofRQAI/1q1eAxxKDxBuo8Adw== X-Google-Smtp-Source: AK7set/ab/k/t5O/S8UABzyYbvJsD4ftY+TDlzWLY2QXdW8J0qQv6kt6fBc67Cl47qdYADfQ/ZShTI+F2XATmJVtEKg= X-Received: by 2002:ac2:5633:0:b0:4d5:a736:8665 with SMTP id b19-20020ac25633000000b004d5a7368665mr1589552lff.11.1675396947264; Thu, 02 Feb 2023 20:02:27 -0800 (PST) Original-Received: by 2002:aa6:c266:0:b0:23b:5e81:46ba with HTTP; Thu, 2 Feb 2023 20:02:26 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::135; envelope-from=samologist@gmail.com; helo=mail-lf1-x135.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: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:142583 Archived-At: tldr idk. On 2/2/23, Stefan Monnier via Users list for the GNU Emacs text editor wrote: >> ps -eo pid,\%mem,size,vsize,rss,resident,cmd --sort=size -> 5234 55.2 >> 3226844 3549680 3193108 - emacs --maximize > > Wow, is that 3GB of RSS? i don't really understand memory terms in linux. but emacs is using half of memory so it could be. > Are you doing anything with this Emacs which could justify not really. i don't know why emacs started getting slower and capacity using. there is one thing i do, which is to enable undo-tree in a derived mode of diff-mode, and this is quite useful, but keeps a history as long as i don't... kill the buffer? but i kill the buffer and it is still capacity using. maybe i set gc or undo vars wrong at one point? idk. i'm just a normal emacs user [that was a joke, i don't think there is such a thing]. i use org and magit and shell. i long ago set shell output truncation to a level that was reasonable on an older, less memory, proabalby slower cpu computer that performed better [but had 4 cores not 2]. idr if i ever messed with messages buffer truncation or if it is possible. it is true that as of a while back, my whole computer got kinda bad and slow and running out of memory. manifesting in slow emacs, slow firefox, and slow rsync. but idk if that is related or not. it's kind of confusing and complex. i had at the time 2000+ firefox tabs, but still slow without that.... new slow drives. and i attempted to reduce the impact of rsync which was pretty fast and did not make the system laggy, at least on the old drives tht worked ok, with all those things like nocache ionice -c3 nice chrt --idle 0 and not knowing which combinations to use. i get 40min transfers instead of 6min. and laggy everything on top of that. but too many variables. too many things changed and for health reasons i don't have it in me to be systematic. but diagostic tools for emacs imghtb e nice. using an old emacs. -- The Kafka Pandemic A blog about science, health, human rights, and misopathy: https://thekafkapandemic.blogspot.com