Xorg server uses unacceptably large amounts of memory (and keep growing) when LibreOffice is running
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libreoffice (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Description: Xorg server uses unacceptably large amounts of memory (and keep growing)
Ever since I upgraded to Ubuntu 20.04 (with fresh install) on my laptop (Lenovo T450s, Intel Core i5-5200U, Intel HD5500 graphics), I have been troubled by the way Xorg process uses memory.
Here is an example of memory usage of Xorg as a function of time. I rebooted the laptop on June 17:
Xorg-
Xorg-
Xorg-
Xorg-
Xorg-
Xorg-
The filename indicates the date the "ps fuxa" command was run.
Contrast this against the memory usage of another Xorg process run for XPRA:
Xorg-
Xorg-
Xorg-
Xorg-
Xorg-
My desktop usage pattern:
* MATE desktop
* 4-desktop setting (standard default MATE when shipped)
* GNUCASH
* about 3 windows of terminal (each about 5-10 tabs)
* XPRA running Firefox web browser (to isolate web browser pixmap memory usage, if that was the culprit)
* LibreOffice (several windows open at any time)
* using "redshift" to change the desktop color to red at night
I have never seen this before using Ubuntu 20.04 on this machine.
Before, when I was running Debian 8, I could run this machine for months literally without Xorg memory bloating rapidly like this (but then I was using xfce instead of MATE).
I viewed the output of xrestop, the pixmap memory usage is dominated by marco and wnck-applet:
xrestop - Display: localhost
Monitoring 36 clients. XErrors: 0
Pixmaps: 110748K total, Other: 84K total, All: 110833K total
res-base Wins GCs Fnts Pxms Misc Pxm mem Other Total PID Identifier
1000000 20 5 2 27 1701 70198K 42K 70241K 2585 marco
1c00000 9 4 0 9 56 30428K 1K 30430K 2612 wnck-applet
1400000 8 4 1 21 116 3134K 4K 3138K 2603 Desktop
0000000 2 0 2 0 178 2700K 6K 2706K ? <unknown>
3e00000 0 0 0 1 0 2700K 0B 2700K ? <unknown>
3a00000 17 3 1 8 92 1024K 3K 1027K 3728 (terminal)
In the previous boot (starting May 27 and ending June 17), the XOrg memory consumption grew to 1.7 GB total.
I don't know exactly which software is responsible to cause this problem, so I started out with xorg server.
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: xserver-xorg-core 2:1.20.8-2ubuntu2.1
ProcVersionSign
Uname: Linux 5.4.0-37-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu27.3
Architecture: amd64
BootLog: Error: [Errno 13] Permission denied: '/var/log/boot.log'
CasperMD5CheckR
CompositorRunning: None
CurrentDesktop: MATE
Date: Tue Jun 23 18:47:52 2020
DistUpgraded: Fresh install
DistroCodename: focal
DistroVariant: ubuntu
ExtraDebuggingI
GraphicsCard:
Intel Corporation HD Graphics 5500 [8086:1616] (rev 09) (prog-if 00 [VGA controller])
Subsystem: Lenovo HD Graphics 5500 [17aa:5036]
MachineType: LENOVO 20BXCTO1WW
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: xorg-server
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 12/23/2015
dmi.bios.vendor: LENOVO
dmi.bios.version: JBET55WW (1.20 )
dmi.board.
dmi.board.name: 20BXCTO1WW
dmi.board.vendor: LENOVO
dmi.board.version: 0B98417 PRO
dmi.chassis.
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.
dmi.modalias: dmi:bvnLENOVO:
dmi.product.family: Thinkpad T450s
dmi.product.name: 20BXCTO1WW
dmi.product.sku: LENOVO_
dmi.product.
dmi.sys.vendor: LENOVO
version.compiz: compiz N/A
version.libdrm2: libdrm2 2.4.101-2
version.
version.
version.
version.
version.
version.
version.
Changed in marco (Ubuntu): | |
status: | New → Incomplete |
Changed in xorg-server (Ubuntu): | |
status: | New → Incomplete |
Changed in libreoffice (Ubuntu): | |
status: | New → Invalid |
Changed in xorg-server (Ubuntu): | |
status: | Incomplete → New |
summary: |
Xorg server uses unacceptably large amounts of memory (and keep growing) + when LibreOffice is running |
no longer affects: | xorg-server (Ubuntu) |
tags: | added: performance |
I suggest trying a different desktop environment with the same apps for a while, so we can see if MATE/Marco is the main factor.