hi, i have a rpi4 for my father. he connects using a vpn connection to my router and so he can use my tv stream. i configured everything and all looks good, but after about 1h he has to reconnect everytime. so i checked some logs and noticed, that there is probably some sort of memory leak. i ordered the 1gb version, thought thats enough, now i regret that. i assume with 2 or more gb of memory that would not occur, but its just a guess.
the interesting part of the journal is here:
Code
Jul 09 17:00:00 LibreELEC crond[1300]: rm: can't remove 'epg.xml.gz': No such file or directory
Jul 09 17:00:00 LibreELEC crond[1302]: Connecting to github.com (140.82.121.3:443)
Jul 09 17:00:01 LibreELEC crond[1302]: Connecting to raw.githubusercontent.com (185.199.110.133:443)
Jul 09 17:00:01 LibreELEC crond[1302]: saving to 'epg.xml.gz'
Jul 09 17:00:01 LibreELEC crond[1302]: epg.xml.gz 23% |******* | 5560k 0:00:03 ETA
Jul 09 17:00:02 LibreELEC crond[1302]: epg.xml.gz 76% |************************ | 17.8M 0:00:00 ETA
Jul 09 17:00:03 LibreELEC crond[1302]: epg.xml.gz 100% |********************************| 23.2M 0:00:00 ETA
Jul 09 17:00:03 LibreELEC crond[1302]: 'epg.xml.gz' saved
Jul 09 17:16:25 LibreELEC kernel: connman-vpnd invoked oom-killer: gfp_mask=0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), order=0, oom_score_adj=0
Jul 09 17:16:26 LibreELEC kernel: CPU: 1 PID: 406 Comm: connman-vpnd Tainted: G C 6.6.28 #1
Jul 09 17:16:26 LibreELEC kernel: Hardware name: Raspberry Pi 4 Model B Rev 1.5 (DT)
Jul 09 17:16:26 LibreELEC kernel: Call trace:
Jul 09 17:16:26 LibreELEC kernel: dump_backtrace+0x9c/0x128
Jul 09 17:16:26 LibreELEC kernel: show_stack+0x20/0x38
Jul 09 17:16:26 LibreELEC kernel: dump_stack_lvl+0x48/0x60
Jul 09 17:16:26 LibreELEC kernel: dump_stack+0x18/0x28
Jul 09 17:16:26 LibreELEC kernel: dump_header+0x50/0x228
Jul 09 17:16:26 LibreELEC kernel: oom_kill_process+0x148/0x300
Jul 09 17:16:26 LibreELEC kernel: out_of_memory+0xe0/0x350
Jul 09 17:16:26 LibreELEC kernel: __alloc_pages_slowpath.constprop.0+0x90c/0xbf8
Jul 09 17:16:26 LibreELEC kernel: __alloc_pages+0x254/0x2e8
Jul 09 17:16:26 LibreELEC kernel: __folio_alloc+0x1c/0x30
Jul 09 17:16:26 LibreELEC kernel: __filemap_get_folio+0xf0/0x318
Jul 09 17:16:26 LibreELEC kernel: filemap_fault+0x114/0x970
Jul 09 17:16:26 LibreELEC kernel: __do_fault+0x44/0x138
Jul 09 17:16:26 LibreELEC kernel: __handle_mm_fault+0x528/0xb60
Jul 09 17:16:26 LibreELEC kernel: handle_mm_fault+0x158/0x2e0
Jul 09 17:16:26 LibreELEC kernel: do_page_fault+0x1e4/0x498
Jul 09 17:16:26 LibreELEC kernel: do_translation_fault+0xa4/0xc0
Jul 09 17:16:26 LibreELEC kernel: do_mem_abort+0x4c/0xa8
Jul 09 17:16:26 LibreELEC kernel: el0_ia+0x58/0xe8
Jul 09 17:16:26 LibreELEC kernel: el0t_64_sync_handler+0xcc/0x130
Jul 09 17:16:26 LibreELEC kernel: el0t_64_sync+0x190/0x198
Jul 09 17:16:26 LibreELEC kernel: Mem-Info:
Jul 09 17:16:26 LibreELEC kernel: active_anon:2870 inactive_anon:172072 isolated_anon:0
active_file:65 inactive_file:4263 isolated_file:160
unevictable:10074 dirty:0 writeback:0
slab_reclaimable:3195 slab_unreclaimable:7549
mapped:158 shmem:13598 pagetables:702
sec_pagetables:0 bounce:0
kernel_misc_reclaimable:0
free:4045 free_pcp:0 free_cma:396
Jul 09 17:16:26 LibreELEC kernel: Node 0 active_anon:11480kB inactive_anon:688288kB active_file:260kB inactive_file:17052kB unevictable:40296kB isolated(anon):0kB isolated(file):512kB mapped:632kB dirty:0kB writeback:0kB shmem:54392kB writeback_tmp:0kB kernel_stack:3568kB pagetables:2808kB sec_pagetables:0kB all_unreclaimable? yes
Jul 09 17:16:26 LibreELEC kernel: DMA free:16180kB boost:0kB min:16384kB low:20480kB high:24576kB reserved_highatomic:0KB active_anon:11480kB inactive_anon:688288kB active_file:0kB inactive_file:17052kB unevictable:40296kB writepending:0kB present:970752kB managed:929304kB mlocked:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:1584kB
Jul 09 17:16:26 LibreELEC kernel: lowmem_reserve[]: 0 0 0 0
Jul 09 17:16:26 LibreELEC kernel: DMA: 202*4kB (UMEC) 143*8kB (UMEC) 158*16kB (UEC) 73*32kB (UEC) 42*64kB (UEC) 13*128kB (UE) 8*256kB (UEC) 7*512kB (UEC) 0*1024kB 0*2048kB 0*4096kB = 16800kB
Jul 09 17:16:26 LibreELEC kernel: 18127 total pagecache pages
Jul 09 17:16:26 LibreELEC kernel: 0 pages in swap cache
Jul 09 17:16:26 LibreELEC kernel: Free swap = 0kB
Jul 09 17:16:26 LibreELEC kernel: Total swap = 0kB
Jul 09 17:16:26 LibreELEC kernel: 242688 pages RAM
Jul 09 17:16:26 LibreELEC kernel: 0 pages HighMem/MovableOnly
Jul 09 17:16:26 LibreELEC kernel: 10362 pages reserved
Jul 09 17:16:26 LibreELEC kernel: 131072 pages cma reserved
Jul 09 17:16:26 LibreELEC kernel: Tasks state (memory values in pages):
Jul 09 17:16:26 LibreELEC kernel: [ pid ] uid tgid total_vm rss pgtables_bytes swapents oom_score_adj name
Jul 09 17:16:26 LibreELEC kernel: [ 271] 0 271 4185 192 45056 0 -250 systemd-journal
Jul 09 17:16:26 LibreELEC kernel: [ 339] 0 339 800 64 36864 0 0 rpcbind
Jul 09 17:16:26 LibreELEC kernel: [ 399] 0 399 5360 352 53248 0 -1000 systemd-udevd
Jul 09 17:16:26 LibreELEC kernel: [ 406] 0 406 1530 96 40960 0 0 connman-vpnd
Jul 09 17:16:26 LibreELEC kernel: [ 413] 81 413 1394 192 32768 0 -900 dbus-daemon
Jul 09 17:16:26 LibreELEC kernel: [ 414] 0 414 636 64 32768 0 0 eventlircd
Jul 09 17:16:26 LibreELEC kernel: [ 415] 0 415 802 64 32768 0 0 iwd
Jul 09 17:16:26 LibreELEC kernel: [ 418] 0 418 56131 288 73728 0 0 pulseaudio
Jul 09 17:16:26 LibreELEC kernel: [ 420] 0 420 1872 96 40960 0 0 systemd-logind
Jul 09 17:16:26 LibreELEC kernel: [ 421] 61623 421 515 32 32768 0 0 wsdd2
Jul 09 17:16:26 LibreELEC kernel: [ 423] 0 423 778 0 32768 0 0 crond
Jul 09 17:16:26 LibreELEC kernel: [ 742] 0 742 1667 64 36864 0 0 connmand
Jul 09 17:16:26 LibreELEC kernel: [ 755] 70 755 1138 32 40960 0 0 avahi-daemon
Jul 09 17:16:26 LibreELEC kernel: [ 756] 0 756 1788 96 45056 0 0 bluetoothd
Jul 09 17:16:26 LibreELEC kernel: [ 879] 0 879 2126 224 49152 0 -1000 sshd
Jul 09 17:16:26 LibreELEC kernel: [ 1079] 0 1079 778 32 32768 0 0 kodi.sh
Jul 09 17:16:26 LibreELEC kernel: [ 1094] 0 1094 821629 168874 2162688 0 0 kodi.bin
Jul 09 17:16:26 LibreELEC kernel: oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/,task=kodi.bin,pid=1094,uid=0
Jul 09 17:16:26 LibreELEC kernel: Out of memory: Killed process 1094 (kodi.bin) total-vm:3286516kB, anon-rss:675328kB, file-rss:168kB, shmem-rss:0kB, UID:0 pgtables:2112kB oom_score_adj:0
Jul 09 17:16:26 LibreELEC kernel: oom_reaper: reaped process 1094 (kodi.bin), now anon-rss:212kB, file-rss:168kB, shmem-rss:0kB
Jul 09 17:16:26 LibreELEC kodi.sh[1079]: Killed
Jul 09 17:16:26 LibreELEC systemd[1]: kodi.service: Main process exited, code=exited, status=137/n/a
Jul 09 17:16:26 LibreELEC systemd[1]: kodi.service: Failed with result 'exit-code'.
Jul 09 17:16:26 LibreELEC systemd[1]: kodi.service: Consumed 21min 27.588s CPU time.
Jul 09 17:16:28 LibreELEC systemd[1]: kodi.service: Scheduled restart job, restart counter is at 1.
Jul 09 17:16:28 LibreELEC systemd[1]: Starting kodi.service...
Jul 09 17:16:28 LibreELEC systemd[1]: Started kodi.service.
Jul 09 17:16:28 LibreELEC (kodi.sh)[1341]: kodi.service: Referenced but unset environment variable evaluates to an empty string: KODI_DEBUG
Jul 09 17:17:21 LibreELEC sshd[1451]: Invalid user libreelec from 192.168.178.51 port 53496
Jul 09 17:17:23 LibreELEC sshd[1451]: error: Could not get shadow information for NOUSER
Jul 09 17:17:23 LibreELEC sshd[1451]: Failed password for invalid user libreelec from 192.168.178.51 port 53496 ssh2
Jul 09 17:17:26 LibreELEC sshd[1451]: Failed password for invalid user libreelec from 192.168.178.51 port 53496 ssh2
Jul 09 17:17:30 LibreELEC sshd[1451]: Failed password for invalid user libreelec from 192.168.178.51 port 53496 ssh2
Jul 09 17:17:38 LibreELEC sshd[1451]: error: Received disconnect from 192.168.178.51 port 53496:13: Unable to authenticate [preauth]
Jul 09 17:17:38 LibreELEC sshd[1451]: Disconnected from invalid user libreelec 192.168.178.51 port 53496 [preauth]
Jul 09 17:17:44 LibreELEC sshd[1453]: Accepted password for root from 192.168.178.51 port 53499 ssh2
Display More
the dmesg is attached.
anyone an idea what we could do (software side). i already thought about asking in a repair cafe if anyone could replace the memory with a 4gb chip. but not sure if they have the equipment for smd/bga