Hi all,
I have lately migrated a few Dockstar(s) I used with Arch Linux ARM, most of them worked fine for the purpose they were intended, but one I wasn't able to migrate.
The incriminated Dockstar was just installed with Arch Linux ARM and squeezelite, few utilities (lsusb/tmux/htop) but no other relevant services running, since it was used connected to a USB DAC and as a Logitech Media Server client.
On Debian (latest 5.19.2 kernel as well as 5.13.6) squeezelite is unable to stay running.
It actually starts fine at boot with systemd, but after a few seconds OOM Killer kicks in and kill it.
I modified swappiness and min_free_kbytes as described in the Wiki, but nothing changed.
Of course the Dockstar has swap:
I still have no idea why squeezelite gets killed with such a large swap file. The behaviour is the same regardless of squeezelite configuration, with USB DAC attached or not.
One thing I have noticed different from Arch Linux ARM is that ALSA cannot open the mixer when alsamixer is run (sorry for the italian locale):
Does anybody from the community has any idea how to fix this problem and keeping squeelite running?
Seems so strange to me squeezelite requires so much memory to get killed on a Dockstar with nothing else running (please find htop output attached).
Thanx for any help anyone might offer!
Paolo.
I have lately migrated a few Dockstar(s) I used with Arch Linux ARM, most of them worked fine for the purpose they were intended, but one I wasn't able to migrate.
The incriminated Dockstar was just installed with Arch Linux ARM and squeezelite, few utilities (lsusb/tmux/htop) but no other relevant services running, since it was used connected to a USB DAC and as a Logitech Media Server client.
On Debian (latest 5.19.2 kernel as well as 5.13.6) squeezelite is unable to stay running.
It actually starts fine at boot with systemd, but after a few seconds OOM Killer kicks in and kill it.
I modified swappiness and min_free_kbytes as described in the Wiki, but nothing changed.
Of course the Dockstar has swap:
root@debian:~# free
total used free shared buff/cache available
Mem: 110484 18928 3176 52 88380 86476
Swap: 2068476 6984 2061492
and these are the details of OOM killing squeezelite from dmesg:
[ 204.468376] systemd invoked oom-killer: gfp_mask=0x100cca(GFP_HIGHUSER_MOVABLE), order=0, oom_score_adj=0
[ 204.480203] CPU: 0 PID: 1 Comm: systemd Not tainted 5.18.6-kirkwood-tld-1 #1.0 480b168af3f03711133a59c80899744b6fc1b46b
[ 204.492654] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[ 204.500998] unwind_backtrace from show_stack+0x10/0x14
[ 204.507477] show_stack from dump_header+0x50/0x230
[ 204.513115] dump_header from oom_kill_process+0x74/0x26c
[ 204.520152] oom_kill_process from out_of_memory+0x320/0x378
[ 204.527174] out_of_memory from __alloc_pages+0x918/0xab0
[ 204.533328] __alloc_pages from wp_page_copy+0x234/0x4b0
[ 204.540498] wp_page_copy from handle_mm_fault+0x718/0x8a0
[ 204.547318] handle_mm_fault from do_page_fault+0x2b8/0x3c4
[ 204.553646] do_page_fault from do_DataAbort+0x38/0xb4
[ 204.560630] do_DataAbort from __dabt_usr+0x48/0x60
[ 204.567537] Exception stack(0x88819fb0 to 0x88819ff8)
[ 204.573330] 9fa0: 0075f318 0075f318 0075f318 76bcbad0
[ 204.584266] 9fc0: 0075f318 00002028 76bcb74c 76bcb780 00764b28 76bcb760 00761340 000003e8
[ 204.593549] 9fe0: 76bcbad8 7e90c950 76aedb04 76aed98c 20000010 ffffffff
[ 204.601194] Mem-Info:
[ 204.605450] active_anon:0 inactive_anon:0 isolated_anon:4
active_file:22 inactive_file:36 isolated_file:0
unevictable:20814 dirty:0 writeback:1
slab_reclaimable:2117 slab_unreclaimable:1482
mapped:15865 shmem:0 pagetables:222 bounce:0
kernel_misc_reclaimable:0
free:1237 free_pcp:27 free_cma:0
[ 204.645668] Node 0 active_anon:0kB inactive_anon:0kB active_file:88kB inactive_file:144kB unevictable:83256kB isolated(anon):16kB isolated(file):0kB mapped:63460kB dirty:0kB writeback:4kB shmem:0kB writeback_tmp:0kB kernel_stack:736kB pagetables:888kB all_unreclaimable? no
[ 204.671134] Normal free:4948kB boost:0kB min:1260kB low:1572kB high:1884kB reserved_highatomic:0KB active_anon:0kB inactive_anon:0kB active_file:88kB inactive_file:144kB unevictable:83256kB writepending:4kB present:131072kB managed:110484kB mlocked:83256kB bounce:0kB free_pcp:100kB local_pcp:100kB free_cma:0kB
[ 204.699588] lowmem_reserve[]: 0 0
[ 204.703708] Normal: 1*4kB (M) 144*8kB (UME) 99*16kB (UE) 41*32kB (UE) 14*64kB (UE) 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 4948kB
[ 204.718854] 15938 total pagecache pages
[ 204.723814] 4 pages in swap cache
[ 204.727964] Swap cache stats: add 2721, delete 2717, find 100/345
[ 204.736761] Free swap = 2059444kB
[ 204.740966] Total swap = 2068476kB
[ 204.745225] 32768 pages RAM
[ 204.748829] 0 pages HighMem/MovableOnly
[ 204.753462] 5147 pages reserved
[ 204.760567] Tasks state (memory values in pages):
[ 204.766189] [ pid ] uid tgid total_vm rss pgtables_bytes swapents oom_score_adj name
[ 204.775807] [ 218] 0 218 9390 586 32768 151 -250 systemd-journal
[ 204.789223] [ 231] 0 231 1079 292 12288 35 0 blkmapd
[ 204.799319] [ 239] 0 239 4727 507 14336 145 -1000 systemd-udevd
[ 204.809105] [ 298] 0 298 753 290 10240 42 0 rpc.idmapd
[ 204.818598] [ 305] 111 305 1893 506 14336 87 0 rpcbind
[ 204.828040] [ 314] 0 314 8396 679 22528 231 0 dhclient
[ 204.837470] [ 321] 103 321 1723 456 14336 76 0 avahi-daemon
[ 204.847214] [ 322] 102 322 1928 504 14336 93 -900 dbus-daemon
[ 204.860449] [ 324] 103 324 1684 160 14336 62 0 avahi-daemon
[ 204.870551] [ 325] 0 325 3245 564 18432 127 0 systemd-logind
[ 204.880476] [ 395] 0 395 1228 320 12288 94 0 rpc.mountd
[ 204.889984] [ 407] 0 407 3116 952 18432 167 -1000 sshd
[ 204.901589] [ 430] 0 430 1103 348 12288 23 0 agetty
[ 204.910918] [ 433] 0 433 2978 483 20480 124 0 login
[ 204.920059] [ 434] 0 434 722 299 10240 19 0 syslogd
[ 204.929283] [ 454] 0 454 2019 341 16384 87 0 bash
[ 204.939655] [ 517] 104 517 2004 545 14336 122 0 ntpd
[ 204.949269] [ 569] 0 569 35726 20816 126976 0 0 squeezelite
[ 204.958944] [ 573] 0 573 2781 386 16384 49 0 systemctl
[ 204.968405] [ 574] 0 574 2782 230 14336 49 0 (pager)
[ 204.978363] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),task=squeezelite,pid=569,uid=0
[ 204.987948] Out of memory: Killed process 569 (squeezelite) total-vm:142904kB, anon-rss:19804kB, file-rss:63460kB, shmem-rss:0kB, UID:0 pgtables:124kB oom_score_adj:0
I still have no idea why squeezelite gets killed with such a large swap file. The behaviour is the same regardless of squeezelite configuration, with USB DAC attached or not.
One thing I have noticed different from Arch Linux ARM is that ALSA cannot open the mixer when alsamixer is run (sorry for the italian locale):
root@debian:~# alsamixer cannot open mixer: File o directory non esistente
Does anybody from the community has any idea how to fix this problem and keeping squeelite running?
Seems so strange to me squeezelite requires so much memory to get killed on a Dockstar with nothing else running (please find htop output attached).
Thanx for any help anyone might offer!
Paolo.