From mboxrd@z Thu Jan 1 00:00:00 1970 From: Catonano Subject: Re: GDM, GNOME and RAM issue Date: Wed, 18 Mar 2020 18:10:33 +0100 Message-ID: References: <17078361cfc.cd3808e751818.4275702550541103094@zoho.com> <170ee0eb202.11609030b76935.3311231025304822206@zoho.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:58085) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jEcDR-0005F7-BE for help-guix@gnu.org; Wed, 18 Mar 2020 13:10:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jEcDP-00053y-Hu for help-guix@gnu.org; Wed, 18 Mar 2020 13:10:49 -0400 Received: from mail-qk1-x731.google.com ([2607:f8b0:4864:20::731]:34471) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jEcDP-00052O-Ab for help-guix@gnu.org; Wed, 18 Mar 2020 13:10:47 -0400 Received: by mail-qk1-x731.google.com with SMTP id f3so40019293qkh.1 for ; Wed, 18 Mar 2020 10:10:46 -0700 (PDT) In-Reply-To: <170ee0eb202.11609030b76935.3311231025304822206@zoho.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane-mx.org@gnu.org Sender: "Help-Guix" To: sirgazil Cc: Guix Help Il giorno mer 18 mar 2020 alle ore 15:43 sirgazil ha scritto: > ---- On Mon, 24 Feb 2020 12:19:37 -0500 sirgazil > wrote ---- > > Hello, > > > > I've been experiencing the following behavior for months, but didn't > have the time to report anything. > > > > When I boot, a fresh GNOME session uses around 1.3 GiB (I don't know i= f > this is normal). > > > > After several hours of work, the desktop starts feeling somewhat slow > (e.g. when launching apps, switching work spaces). When this happens, RAM > usage is around 3 GiB (of 4 GiB in total). If I continue working, RAM usa= ge > continues to go up little by little, and I have to reboot at some point, > because memory is not released and things become slower. > > > > When RAM usage is very high, closing all applications reduces usage to > 2 GiB approx. (which I think is too high). If I log out and then log back > in, those 2 GiB are still in use (which I think is odd). > > > > Here are some screenshots of resource usage reported by the "top" > program. GDM looks suspicious: > > > > =E2=80=A2 RAM usage after several hours of work with the applications = I use > every day still running: > > > > > https://multimedialib.files.wordpress.com/2020/02/gnome-session-after-hou= rs-of-work-all-apps-2020-02-23.png > > > > =E2=80=A2 RAM usage after closing all applications: > > > > > https://multimedialib.files.wordpress.com/2020/02/gnome-session-after-hou= rs-of-work-all-apps-closed-2020-02-23.png > > > > =E2=80=A2 RAM usage after logging out and then login back in: > > > > > https://multimedialib.files.wordpress.com/2020/02/gnome-session-after-hou= rs-of-work-re-log-in-2020-02-23.png > > > > > > I decided to try sway to see if I had the same problem there, but I > think it is something related to GDM+GNOME. In sway, a fresh session uses > around 700 MiB; after hours of work (using the same applications I use > every day), RAM usage stays between 2 and 2.5 GiB; and when I exit all > applications, RAM seems to be released ok (descends to 900 MiB approx.). > > > > I just reported this problem to the issue tracker: > http://issues.guix.gnu.org/issue/40116 > > I remember that the Gnome people fixed a memory leak some months ago It had to do with a glitch in the layout of pointers to instances in the Gnome object system that made it difficult for the garbage collector to reach exhausted references Now I don't remember when this was and what version of Gnome was involved, I'm being a bit vague, I know But if the version of Gnome in Guix is not recent, there's a good chance that you're running into that bug.