Unloading LED driver causes OOM to reap gnome-shell
Gnome-shell 3.32.2 Ubuntu eoan XPS 9380
I find when I unload dell-laptop
module from the kernel (I.E. #rmmod dell-laptop
) the system gets incredibly slow and eventually OOM kicks in.
[ 140.102628] leds platform::micmute: Setting an LED's brightness failed (-19)
[ 140.102646] leds platform::micmute: Setting an LED's brightness failed (-19)
[ 487.540671] gnome-shell invoked oom-killer: gfp_mask=0x100cca(GFP_HIGHUSER_MOVABLE), order=0, oom_score_adj=0
[ 487.540676] CPU: 5 PID: 1568 Comm: gnome-shell Not tainted 5.3.0-rc2+ #66
[ 487.540678] Hardware name: Dell Inc. XPS 13 9380/, BIOS 1.5.0 06/03/2019
[ 487.540680] Call Trace:
[ 487.540691] dump_stack+0x5e/0x8b
[ 487.540696] dump_header+0x4a/0x3f0
[ 487.540700] oom_kill_process+0xde/0x1f0
[ 487.540704] out_of_memory+0xf5/0x370
[ 487.540710] __alloc_pages_slowpath+0xb46/0xf50
[ 487.540725] __alloc_pages_nodemask+0x375/0x3d0
[ 487.540732] __read_swap_cache_async+0x19a/0x230
[ 487.540737] read_swap_cache_async+0x28/0x60
[ 487.540740] swapin_readahead+0x2ba/0x4a0
[ 487.540750] ? do_swap_page+0x443/0x940
[ 487.540752] do_swap_page+0x443/0x940
[ 487.540759] __handle_mm_fault+0x8a7/0x1070
[ 487.540769] handle_mm_fault+0x178/0x360
[ 487.540775] __do_page_fault+0x2d8/0x4e0
[ 487.540782] do_page_fault+0x30/0x250
[ 487.540788] page_fault+0x3e/0x50
[ 487.540791] RIP: 0033:0x7fcce9e4d049
[ 487.540795] Code: 85 c0 74 4d 48 8b 18 3b 53 10 75 ed 48 8b 47 40 48 8b 57 48 48 85 c0 74 68 48 89 50 48 48 8b 47 48 48 8b 57 40 48 85 c0 74 47 <48> 89 50 40 48 c7 47 40 00 00 00 00 48 c7 47 48 00 00 00 00 48 83
[ 487.540797] RSP: 002b:00007ffee46caef0 EFLAGS: 00010202
[ 487.540800] RAX: 00007fccdaaccbe0 RBX: 00005561aa2cbac0 RCX: 00007fccdac43d40
[ 487.540801] RDX: 00005561b12ea640 RSI: 00005561aa2cdd80 RDI: 00007fccdab82e00
[ 487.540803] RBP: 00005561aa2cdd80 R08: 00007fcc5cdf83b0 R09: 0000000000000001
[ 487.540805] R10: 0000000000000005 R11: 0000000000000070 R12: 0000000000000000
[ 487.540806] R13: 0000000000000001 R14: 00007fccdab82e00 R15: 0000000000000000
[ 487.540816] Mem-Info:
[ 487.540821] active_anon:618498 inactive_anon:223897 isolated_anon:0
active_file:2092 inactive_file:459 isolated_file:32
unevictable:2177 dirty:0 writeback:5 unstable:0
slab_reclaimable:10225 slab_unreclaimable:19004
mapped:2210 shmem:2281 pagetables:5343 bounce:0
free:23217 free_pcp:0 free_cma:0
[ 487.540826] Node 0 active_anon:2473992kB inactive_anon:895588kB active_file:8368kB inactive_file:1836kB unevictable:8708kB isolated(anon):0kB isolated(file):128kB mapped:8840kB dirty:0kB writeback:20kB shmem:9124kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 6144kB writeback_tmp:0kB unstable:0kB all_unreclaimable? no
[ 487.540830] DMA free:14520kB min:292kB low:364kB high:436kB active_anon:1060kB inactive_anon:276kB active_file:0kB inactive_file:36kB unevictable:0kB writepending:0kB present:15992kB managed:15900kB mlocked:0kB kernel_stack:0kB pagetables:4kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB
[ 487.540831] lowmem_reserve[]: 0 840 3561 3561
[ 487.540838] DMA32 free:26620kB min:15876kB low:19844kB high:23812kB active_anon:655060kB inactive_anon:202076kB active_file:216kB inactive_file:852kB unevictable:0kB writepending:304kB present:998920kB managed:892056kB mlocked:0kB kernel_stack:0kB pagetables:1712kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB
[ 487.540839] lowmem_reserve[]: 0 0 2721 2721
[ 487.540846] Normal free:51728kB min:51412kB low:64264kB high:77116kB active_anon:1818572kB inactive_anon:692696kB active_file:7944kB inactive_file:2184kB unevictable:8708kB writepending:124kB present:2859008kB managed:2786596kB mlocked:0kB kernel_stack:7648kB pagetables:19656kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB
[ 487.540847] lowmem_reserve[]: 0 0 0 0
[ 487.540850] DMA: 2*4kB (ME) 4*8kB (UME) 3*16kB (UME) 3*32kB (UE) 2*64kB (UE) 3*128kB (UME) 2*256kB (UE) 2*512kB (ME) 2*1024kB (UE) 1*2048kB (E) 2*4096kB (M) = 14520kB
[ 487.540863] DMA32: 731*4kB (UME) 485*8kB (UME) 343*16kB (UME) 74*32kB (UME) 47*64kB (UME) 40*128kB (UME) 6*256kB (ME) 4*512kB (E) 0*1024kB 0*2048kB 0*4096kB = 26372kB
[ 487.540875] Normal: 1632*4kB (UME) 1562*8kB (UME) 867*16kB (UME) 224*32kB (UME) 127*64kB (UME) 32*128kB (UME) 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 52288kB
[ 487.540887] Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=1048576kB
[ 487.540889] Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=2048kB
[ 487.540890] 21785 total pagecache pages
[ 487.540892] 16840 pages in swap cache
[ 487.540895] Swap cache stats: add 1216082, delete 1199147, find 197235/402705
[ 487.540896] Free swap = 0kB
[ 487.540897] Total swap = 2097148kB
[ 487.540898] 968480 pages RAM
[ 487.540900] 0 pages HighMem/MovableOnly
[ 487.540901] 44842 pages reserved
[ 487.540902] 0 pages hwpoisoned
[ 487.540903] Tasks state (memory values in pages):
[ 487.540905] [ pid ] uid tgid total_vm rss pgtables_bytes swapents oom_score_adj name
[ 487.540913] [ 291] 0 291 87273 359 749568 372 0 systemd-journal
[ 487.540917] [ 313] 0 313 5018 111 61440 477 -1000 systemd-udevd
[ 487.540921] [ 692] 0 692 2072 28 53248 800 0 haveged
[ 487.540924] [ 693] 102 693 5156 183 81920 188 0 systemd-resolve
[ 487.540927] [ 694] 100 694 22594 73 77824 125 0 systemd-timesyn
[ 487.540931] [ 704] 0 704 31167 119 90112 99 0 thermald
[ 487.540934] [ 707] 0 707 20451 44 65536 46 0 irqbalance
[ 487.540937] [ 711] 0 711 2045 336 53248 7 0 bluetoothd
[ 487.540940] [ 718] 0 718 6913 158 90112 241 0 cupsd
[ 487.540943] [ 720] 0 720 98617 138 131072 605 0 udisksd
[ 487.540946] [ 723] 0 723 632 0 49152 44 0 acpid
[ 487.540949] [ 730] 0 730 3690 257 65536 36 0 systemd-logind
[ 487.540953] [ 733] 0 733 78766 200 110592 255 0 ModemManager
[ 487.540956] [ 737] 0 737 59567 250 90112 144 0 boltd
[ 487.540959] [ 745] 114 745 2114 187 57344 75 0 avahi-daemon
[ 487.540962] [ 748] 0 748 59570 186 102400 652 0 accounts-daemon
[ 487.540965] [ 749] 0 749 11125 145 122880 2100 0 networkd-dispat
[ 487.540968] [ 761] 103 761 143227 62426 1105920 69005 -900 dbus-daemon
[ 487.540971] [ 764] 0 764 103902 292 172032 1002 0 NetworkManager
[ 487.540974] [ 766] 0 766 3501 167 65536 307 0 wpa_supplicant
[ 487.540977] [ 767] 0 767 2336 9 53248 43 0 cron
[ 487.540980] [ 768] 104 768 56072 398 81920 310 0 rsyslogd
[ 487.540983] [ 769] 0 769 382020 0 294912 5796 -900 snapd
[ 487.540986] [ 781] 7 781 3740 29 65536 200 0 dbus
[ 487.540989] [ 784] 7 784 3740 107 69632 117 0 dbus
[ 487.540992] [ 785] 7 785 3740 137 69632 92 0 dbus
[ 487.541012] [ 793] 114 793 2068 2 53248 78 0 avahi-daemon
[ 487.541015] [ 795] 0 795 60188 203 94208 830 0 polkitd
[ 487.541018] [ 819] 0 819 45327 450 122880 248 0 cups-browsed
[ 487.541022] [ 882] 0 882 60857 150 98304 277 0 gdm3
[ 487.541025] [ 891] 110 891 4173 0 65536 89 0 dnsmasq
[ 487.541027] [ 912] 0 912 30863 107 143360 2135 0 unattended-upgr
[ 487.541030] [ 1024] 0 1024 808844 644977 5963776 84239 0 upowerd
[ 487.541034] [ 1029] 109 1029 38206 39 61440 58 0 rtkit-daemon
[ 487.541038] [ 1178] 118 1178 62494 236 114688 1789 0 colord
[ 487.541041] [ 1260] 0 1260 2394 86 57344 315 0 dhclient
[ 487.541044] [ 1331] 125 1331 3300 91 65536 87 0 mosquitto
[ 487.541047] [ 1332] 117 1332 64138 281 139264 390 0 whoopsie
[ 487.541050] [ 1334] 113 1334 2761 116 61440 98 0 kerneloops
[ 487.541053] [ 1338] 113 1338 2761 194 61440 38 0 kerneloops
[ 487.541057] [ 1342] 0 1342 42090 199 94208 381 0 gdm-session-wor
[ 487.541060] [ 1349] 1000 1349 4196 62 65536 442 0 systemd
[ 487.541063] [ 1350] 1000 1350 41691 0 81920 734 0 (sd-pam)
[ 487.541066] [ 1364] 1000 1364 59986 107 86016 281 0 gnome-keyring-d
[ 487.541069] [ 1368] 1000 1368 41457 124 86016 173 0 gdm-x-session
[ 487.541072] [ 1370] 1000 1370 72356 186 200704 3632 0 Xorg
[ 487.541075] [ 1376] 1000 1376 15047 10770 155648 2707 0 dbus-daemon
[ 487.541079] [ 1379] 1000 1379 106368 221 184320 683 0 gnome-session-b
[ 487.541082] [ 1452] 1000 1452 1495 0 49152 130 0 ssh-agent
[ 487.541085] [ 1469] 1000 1469 96140 173 106496 388 0 ibus-daemon
[ 487.541088] [ 1472] 1000 1472 59871 128 86016 254 0 gvfsd
[ 487.541091] [ 1478] 1000 1478 94561 0 102400 741 0 gvfsd-fuse
[ 487.541094] [ 1480] 1000 1480 59104 164 94208 205 0 ibus-dconf
[ 487.541097] [ 1481] 1000 1481 105644 197 270336 3211 0 ibus-ui-gtk3
[ 487.541100] [ 1482] 1000 1482 96507 57 253952 3583 0 ibus-extension-
[ 487.541103] [ 1485] 1000 1485 77100 274 229376 2186 0 ibus-x11
[ 487.541106] [ 1488] 1000 1488 59063 0 94208 186 0 ibus-portal
[ 487.541109] [ 1506] 1000 1506 77327 141 98304 198 0 at-spi-bus-laun
[ 487.541112] [ 1513] 1000 1513 1783 154 61440 140 0 dbus-daemon
[ 487.541116] [ 1516] 1000 1516 42194 52 94208 211 0 at-spi2-registr
[ 487.541119] [ 1527] 1000 1527 185949 16 167936 617 0 xdg-desktop-por
[ 487.541122] [ 1532] 1000 1532 114322 40 114688 183 0 xdg-document-po
[ 487.541125] [ 1537] 1000 1537 58872 0 90112 162 0 xdg-permission-
[ 487.541128] [ 1546] 1000 1546 107513 288 196608 1707 0 xdg-desktop-por
[ 487.541131] [ 1561] 1000 1561 39062 108 73728 200 0 dconf-service
[ 487.541134] [ 1568] 1000 1568 997697 58071 2932736 246695 0 gnome-shell
[ 487.541137] [ 1569] 1000 1569 40644 154 77824 737 0 ibus-engine-sim
[ 487.541139] [ 1602] 1000 1602 129333 139 204800 1462 0 gnome-shell-cal
[ 487.541143] [ 1606] 1000 1606 103469 227 253952 1142 0 evolution-sourc
[ 487.541146] [ 1614] 1000 1614 135751 181 282624 1899 0 goa-daemon
[ 487.541149] [ 1615] 1000 1615 411104 104 253952 1157 0 pulseaudio
[ 487.541152] [ 1618] 1000 1618 78840 0 110592 948 0 gvfs-udisks2-vo
[ 487.541155] [ 1628] 1000 1628 60202 24 94208 308 0 goa-identity-se
[ 487.541159] [ 1629] 1000 1629 58941 66 90112 193 0 gvfs-goa-volume
[ 487.541162] [ 1637] 1000 1637 79101 0 106496 290 0 gvfs-afc-volume
[ 487.541164] [ 1642] 1000 1642 60003 0 98304 254 0 gvfs-gphoto2-vo
[ 487.541167] [ 1646] 1000 1646 59438 130 86016 202 0 gvfs-mtp-volume
[ 487.541171] [ 1650] 1000 1650 78711 0 106496 270 0 gsd-smartcard
[ 487.541174] [ 1653] 1000 1653 89136 263 200704 2197 0 gsd-keyboard
[ 487.541176] [ 1656] 1000 1656 128994 42933 528384 897 0 gsd-power
[ 487.541180] [ 1658] 1000 1658 58946 79 94208 187 0 gsd-a11y-settin
[ 487.541183] [ 1659] 1000 1659 63402 107 135168 808 0 gsd-sound
[ 487.541186] [ 1665] 1000 1665 176417 4736 249856 713 0 gsd-media-keys
[ 487.541189] [ 1668] 1000 1668 61900 195 110592 356 0 gsd-print-notif
[ 487.541192] [ 1671] 1000 1671 52039 240 172032 1582 0 gsd-clipboard
[ 487.541195] [ 1680] 1000 1680 71079 253 192512 1618 0 gsd-wacom
[ 487.541198] [ 1682] 1000 1682 58947 84 90112 700 0 gsd-mouse
[ 487.541202] [ 1684] 1000 1684 96318 50 106496 215 0 gsd-rfkill
[ 487.541205] [ 1686] 1000 1686 91824 289 204800 1748 0 gsd-color
[ 487.541208] [ 1688] 1000 1688 89364 253 196608 2286 0 gsd-xsettings
[ 487.541211] [ 1692] 1000 1692 58854 0 94208 686 0 gsd-screensaver
[ 487.541214] [ 1695] 1000 1695 77890 143 184320 506 0 gsd-datetime
[ 487.541217] [ 1700] 1000 1700 97729 301 114688 486 0 gsd-sharing
[ 487.541220] [ 1701] 1000 1701 77890 117 102400 256 0 gsd-housekeepin
[ 487.541223] [ 1726] 1000 1726 88731 0 172032 1001 0 gsd-printer
[ 487.541226] [ 1745] 1000 1745 215398 189 307200 1799 0 evolution-calen
[ 487.541229] [ 1757] 1000 1757 187733 193 274432 1579 0 evolution-addre
[ 487.541233] [ 1775] 0 1775 1026 33 49152 296 0 mount.exfat
[ 487.541236] [ 1797] 1000 1797 115265 0 118784 341 0 gvfsd-trash
[ 487.541239] [ 1805] 1000 1805 108025 221 151552 2884 0 tracker-store
[ 487.541244] [ 1817] 1000 1817 179494 0 385024 2997 0 evolution-alarm
[ 487.541247] [ 1819] 1000 1819 128046 217 176128 2066 0 tracker-miner-f
[ 487.541250] [ 1822] 1000 1822 57924 0 81920 309 0 gsd-disk-utilit
[ 487.541252] [ 1834] 1000 1834 144994 207 172032 1922 0 tracker-miner-a
[ 487.541255] [ 1920] 1000 1920 244007 557 311296 3333 0 gnome-terminal-
[ 487.541258] [ 1931] 1000 1931 3543 70 65536 662 0 zsh
[ 487.541261] [ 1971] 0 1971 2862 86 65536 154 0 sudo
[ 487.541264] [ 1972] 0 1972 3184 70 57344 360 0 zsh
[ 487.541267] [ 1979] 1000 1979 108449 335 204800 1589 0 update-notifier
[ 487.541270] [ 2037] 0 2037 2366 304 53248 134 0 watch
[ 487.541273] [ 2056] 1000 2056 3543 69 61440 664 0 zsh
[ 487.541276] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/system.slice/upower.service,task=upowerd,pid=1024,uid=0
[ 487.541295] Out of memory: Killed process 1024 (upowerd) total-vm:3235376kB, anon-rss:2578496kB, file-rss:1408kB, shmem-rss:0kB
[ 487.733126] oom_reaper: reaped process 1024 (upowerd), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB
/var/log/syslog has this:
Aug 5 10:36:58 supermario-XPS-13-9380 xdg-desktop-por[1527]: Failed to get application states: GDBus.Error:org.freedesktop.portal.Error.Failed: Could not get window list: GDBus.Error:org.freedesktop.DBus
.Error.AccessDenied: App introspection not allowed
Aug 5 10:37:49 supermario-XPS-13-9380 gsd-power[1656]: gsd_power_backlight_abs_to_percentage: assertion 'value >= min' failed
Aug 5 10:38:06 supermario-XPS-13-9380 gsd-power[1656]: message repeated 98434 times: [ gsd_power_backlight_abs_to_percentage: assertion 'value >= min' failed]
Aug 5 10:38:06 supermario-XPS-13-9380 gnome-shell[1568]: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.
Aug 5 10:38:06 supermario-XPS-13-9380 org.gnome.Shell.desktop[1568]: == Stack trace for context 0x5561aa54a450 ==
Aug 5 10:38:06 supermario-XPS-13-9380 org.gnome.Shell.desktop[1568]: message repeated 10 times: [ == Stack trace for context 0x5561aa54a450 ==]
Aug 5 10:38:06 supermario-XPS-13-9380 gnome-shell[1568]: The offending signal was handle-method-call on GjsDBusImplementation 0x5561accb32a0.
Aug 5 10:38:06 supermario-XPS-13-9380 org.gnome.Shell.desktop[1568]: == Stack trace for context 0x5561aa54a450 ==
Aug 5 10:38:06 supermario-XPS-13-9380 org.gnome.Shell.desktop[1568]: message repeated 4 times: [ == Stack trace for context 0x5561aa54a450 ==]
Aug 5 10:38:06 supermario-XPS-13-9380 gnome-shell[1568]: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.
Aug 5 10:38:06 supermario-XPS-13-9380 org.gnome.Shell.desktop[1568]: == Stack trace for context 0x5561aa54a450 ==
Aug 5 10:38:06 supermario-XPS-13-9380 org.gnome.Shell.desktop[1568]: message repeated 3 times: [ == Stack trace for context 0x5561aa54a450 ==]
Aug 5 10:38:06 supermario-XPS-13-9380 gnome-shell[1568]: The offending signal was handle-method-call on GjsDBusImplementation 0x5561accb32a0.
Aug 5 10:38:06 supermario-XPS-13-9380 org.gnome.Shell.desktop[1568]: == Stack trace for context 0x5561aa54a450 ==
Aug 5 10:38:06 supermario-XPS-13-9380 org.gnome.Shell.desktop[1568]: message repeated 2 times: [ == Stack trace for context 0x5561aa54a450 ==]
Aug 5 10:38:06 supermario-XPS-13-9380 gnome-shell[1568]: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked.
Aug 5 10:38:06 supermario-XPS-13-9380 org.gnome.Shell.desktop[1568]: == Stack trace for context 0x5561aa54a450 ==