Bug#974186: /usr/bin/gnome-software: gnome-software uses way too much memory

2021-10-06 Thread Stephen Kitt
On Wed, Nov 11, 2020 at 04:12:30PM +1100, Timothy Allen wrote:
> I have a low-end laptop with 2GB of RAM, and I usually run GNOME 3 because 
> it's
> highly polished and light-weight enough that I can still run a browser and a
> few terminals to get work done. The one exception is gnome-software, which
> frequently claims 15% or more of my RAM whenever it checks for updates. Right
> now, it's sitting at ~18%, or 335MB resident — that may not be much on other
> computers, but for my little laptop it's often enough to get my browser OOM-
> killed while I'm in the middle of something.

This might be related to
https://sourceware.org/bugzilla/show_bug.cgi?id=14827 — connecting gdb
to an offending gnome-software process and calling malloc_trim(0)
releases a lot of memory; I went from

steve2801906  0.1  3.4 2924988 1136840 ? Sl   Oct02   6:32 
/usr/bin/gnome-software --gapplication-service

to

steve2801906  0.1  0.6 2908452 219416 ?  Sl   Oct02   6:32 
/usr/bin/gnome-software --gapplication-service

Regards,

Stephen


signature.asc
Description: PGP signature


Bug#974186: /usr/bin/gnome-software: gnome-software uses way too much memory

2021-01-13 Thread Julien Cristau
On Wed, Nov 11, 2020 at 04:12:30PM +1100, Timothy Allen wrote:
> Thank you for working on keeping GNOME packages up-to-date in Debian, and 
> thank
> you in particular for packaging GNOME Software, which makes it easy to keep on
> top of package updates, especially for Testing where they happen regularly.
> 
> I have a low-end laptop with 2GB of RAM, and I usually run GNOME 3 because 
> it's
> highly polished and light-weight enough that I can still run a browser and a
> few terminals to get work done. The one exception is gnome-software, which
> frequently claims 15% or more of my RAM whenever it checks for updates. Right
> now, it's sitting at ~18%, or 335MB resident — that may not be much on other
> computers, but for my little laptop it's often enough to get my browser OOM-
> killed while I'm in the middle of something.
> 
> Is there some way I can make GNOME Software stop checking for updates, or at
> least stop holding (presumably) the entire package list in memory after the
> update-check is complete?
> 
> From GNOME Software's hamburger menu, I picked "Update Preferences" and
> disabled "Automatic Updates" and "Automatic Update Notifications", but that
> doesn't seem to stop it from checking for updates (what seems like) every time
> I wake my laptop up.
> 
> I also went into the "Software & Updates" application, and set "Automatically
> check for updates" to "Never". Still no change.
> 
> Previously, I've just sent the gnome-software process a SIGTERM and that
> cleaned it up until the next time I logged in, but more recently it's been
> automatically restarted.
> 
I'm also noticing gnome-software taking up way too much memory, while
not doing anything.  2GB resident seems unreasonable, so this isn't
limited to low-end hardware.

USER PID %CPU %MEMVSZ   RSS TTY  STAT START   TIME COMMAND
jcristau   42111  0.0 11.9 4077948 1927496 ? Sl2020  12:29 
/usr/bin/gnome-software --gapplication-service

Cheers,
Julien



Bug#974186: /usr/bin/gnome-software: gnome-software uses way too much memory

2020-11-11 Thread Timothy Allen
Package: gnome-software
Version: 3.38.0-2
Severity: important
File: /usr/bin/gnome-software

Dear Maintainer,

Thank you for working on keeping GNOME packages up-to-date in Debian, and thank
you in particular for packaging GNOME Software, which makes it easy to keep on
top of package updates, especially for Testing where they happen regularly.

I have a low-end laptop with 2GB of RAM, and I usually run GNOME 3 because it's
highly polished and light-weight enough that I can still run a browser and a
few terminals to get work done. The one exception is gnome-software, which
frequently claims 15% or more of my RAM whenever it checks for updates. Right
now, it's sitting at ~18%, or 335MB resident — that may not be much on other
computers, but for my little laptop it's often enough to get my browser OOM-
killed while I'm in the middle of something.

Is there some way I can make GNOME Software stop checking for updates, or at
least stop holding (presumably) the entire package list in memory after the
update-check is complete?

From GNOME Software's hamburger menu, I picked "Update Preferences" and
disabled "Automatic Updates" and "Automatic Update Notifications", but that
doesn't seem to stop it from checking for updates (what seems like) every time
I wake my laptop up.

I also went into the "Software & Updates" application, and set "Automatically
check for updates" to "Never". Still no change.

Previously, I've just sent the gnome-software process a SIGTERM and that
cleaned it up until the next time I logged in, but more recently it's been
automatically restarted.



-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 
'testing-debug'), (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.9.0-1-amd64 (SMP w/2 CPU threads)
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8), LANGUAGE=en_AU:en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages gnome-software depends on:
ii  appstream0.12.11-1
ii  apt-config-icons 0.12.11-1
ii  dconf-gsettings-backend [gsettings-backend]  0.38.0-1
ii  gnome-software-common3.38.0-2
ii  gsettings-desktop-schemas3.38.0-2
ii  libappstream-glib8   0.7.17-1
ii  libatk1.0-0  2.36.0-2
ii  libc62.31-4
ii  libcairo21.16.0-4
ii  libfwupd21.4.6-2
ii  libgdk-pixbuf2.0-0   2.40.0+dfsg-5
ii  libglib2.0-0 2.66.2-1
ii  libgspell-1-21.8.4-1
ii  libgtk-3-0   3.24.23-2
ii  libgtk3-perl 0.037-1
ii  libgudev-1.0-0   234-1
ii  libjson-glib-1.0-0   1.6.0-1
ii  libmalcontent-0-00.9.0-2
ii  libpackagekit-glib2-18   1.2.1-1
ii  libpolkit-gobject-1-00.105-29
ii  libsoup2.4-1 2.72.0-2
ii  libxmlb1 0.1.15-2
ii  packagekit   1.2.1-1
ii  software-properties-gtk  0.96.20.2-2.1

Versions of packages gnome-software recommends:
ii  fwupd  1.4.6-2

Versions of packages gnome-software suggests:
pn  apt-config-icons-hidpi 
pn  gnome-software-plugin-flatpak  
pn  gnome-software-plugin-snap 

-- no debconf information