Hello.
Recently I have been experiencing instability in m home assistant instance.
At first I thought it was some problems with some devices, but thankfully I have an alexa notification every time the server reboots, and that made me check the logs. I’m getting a reboot almost daily. Usually because memory usage is too high.
I have been checking the logs trying to find a guilty thing, but I don’t find anything specific.
I checked glances for some time, and I see that it has high load and high swap:
NOthing appears to be too crazy in memory usage:
Not sure if I should attach the full logs, let me know if it is safe.
In any case, here is a portion:
2025-12-05 07:12:09.113 homeassistant kernel: oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=docker-4ec191ad171cef3a165d8af18dfd96b4b58d3e73ea74b41a3804879ed6405855.scope,mems_allowed=0,global_oom,task_memcg=/system.slice/docker-0f0e3220995936aa68598418cdda8528621d91cb35cb88bc158ff06baf1870b1.scope,task=dotnet,pid=374860,uid=0
2025-12-05 07:12:09.113 homeassistant kernel: Out of memory: Killed process 374860 (dotnet) total-vm:10927356kB, anon-rss:15360kB, file-rss:140kB, shmem-rss:0kB, UID:0 pgtables:516kB oom_score_adj:200
2025-12-05 07:12:09.113 homeassistant systemd-resolved[377]: Under memory pressure, flushing caches.
2025-12-05 07:12:09.114 homeassistant systemd-resolved[377]: Flushed all caches.
2025-12-05 07:12:09.114 homeassistant systemd[1]: docker-94e37f55d3d1524a367267b484f9ceab06a616b3b9f09441a7f209572e4b01b4.scope: A process of this unit has been killed by the OOM killer.
2025-12-05 07:12:09.114 homeassistant systemd-journald[101]: Under memory pressure, flushing caches.
2025-12-05 07:12:09.114 homeassistant systemd[1]: docker-94e37f55d3d1524a367267b484f9ceab06a616b3b9f09441a7f209572e4b01b4.scope: Deactivated successfully.
2025-12-05 07:12:09.114 homeassistant systemd[1]: docker-94e37f55d3d1524a367267b484f9ceab06a616b3b9f09441a7f209572e4b01b4.scope: Consumed 37.659s CPU time, 174.2M memory peak, 61.3M memory swap peak, 262.3M read from disk, 11.9M written to disk.
2025-12-05 07:12:09.116 homeassistant systemd-resolved[377]: Under memory pressure, flushing caches.
2025-12-05 07:12:09.118 homeassistant systemd-resolved[377]: Flushed all caches.
2025-12-05 07:12:09.118 homeassistant systemd-resolved[377]: Under memory pressure, flushing caches.
2025-12-05 07:12:09.118 homeassistant systemd-resolved[377]: Flushed all caches.
2025-12-05 07:12:09.118 homeassistant systemd[1]: docker-0f0e3220995936aa68598418cdda8528621d91cb35cb88bc158ff06baf1870b1.scope: A process of this unit has been killed by the OOM killer.
2025-12-05 07:12:09.118 homeassistant systemd[1]: docker-0f0e3220995936aa68598418cdda8528621d91cb35cb88bc158ff06baf1870b1.scope: Deactivated successfully.
2025-12-05 07:12:09.118 homeassistant systemd[1]: docker-0f0e3220995936aa68598418cdda8528621d91cb35cb88bc158ff06baf1870b1.scope: Consumed 15.214s CPU time, 99.8M memory peak, 61.2M memory swap peak, 976.5M read from disk.
2025-12-05 07:12:12.757 homeassistant kernel: appdaemon invoked oom-killer: gfp_mask=0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), order=0, oom_score_adj=200
2025-12-05 07:12:12.813 homeassistant kernel: CPU: 0 UID: 0 PID: 381819 Comm: appdaemon Not tainted 6.12.51-haos #1
2025-12-05 07:12:12.813 homeassistant kernel: Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 4.2025.02-4~bpo12+1 07/10/2025
2025-12-05 07:12:12.813 homeassistant kernel: Call Trace:
2025-12-05 07:12:12.814 homeassistant kernel: <TASK>
2025-12-05 07:12:12.814 homeassistant kernel: dump_stack_lvl+0x64/0x80
2025-12-05 07:12:12.827 homeassistant kernel: dump_header+0x3f/0x1a0
2025-12-05 07:12:12.828 homeassistant kernel: oom_kill_process+0xf5/0x200
2025-12-05 07:12:12.828 homeassistant kernel: out_of_memory+0x243/0x580
2025-12-05 07:12:12.828 homeassistant kernel: __alloc_pages_noprof+0xf59/0x10f0
2025-12-05 07:12:12.906 homeassistant kernel: alloc_pages_mpol_noprof+0x47/0xf0
2025-12-05 07:12:12.906 homeassistant kernel: folio_alloc_noprof+0x56/0x90
2025-12-05 07:12:12.906 homeassistant kernel: __filemap_get_folio+0xc6/0x240
2025-12-05 07:12:12.906 homeassistant kernel: filemap_fault+0x14d/0xc50
2025-12-05 07:12:12.920 homeassistant kernel: __do_fault+0x2c/0xb0
2025-12-05 07:12:12.920 homeassistant kernel: __handle_mm_fault+0x652/0xba0
2025-12-05 07:12:12.920 homeassistant kernel: handle_mm_fault+0x17a/0x2d0
2025-12-05 07:12:12.925 homeassistant kernel: do_user_addr_fault+0x177/0x620
2025-12-05 07:12:12.925 homeassistant kernel: exc_page_fault+0x71/0x150
2025-12-05 07:12:12.925 homeassistant kernel: asm_exc_page_fault+0x26/0x30
2025-12-05 07:12:12.925 homeassistant kernel: RIP: 0033:0x7fc63967a230
2025-12-05 07:12:12.925 homeassistant kernel: Code: Unable to access opcode bytes at 0x7fc63967a206.
2025-12-05 07:12:12.925 homeassistant kernel: RSP: 002b:00007ffc406aef58 EFLAGS: 00010246
2025-12-05 07:12:12.930 homeassistant kernel: RAX: 00007fc639aacf80 RBX: 00007fc639b953c8 RCX: 00007ffc406aeff0
2025-12-05 07:12:12.930 homeassistant kernel: RDX: 96c5c404891e28cc RSI: 00007fc639b953c8 RDI: 00007fc6392b6600
2025-12-05 07:12:12.930 homeassistant kernel: RBP: 00007fc6383e2400 R08: 00007fc63937daf0 R09: 96c5c404891e28cc
2025-12-05 07:12:12.937 homeassistant kernel: R10: 00007fc638decb8e R11: 0000000000000001 R12: 00007fc6383e2400
2025-12-05 07:12:12.937 homeassistant kernel: R13: 00007ffc406aeff0 R14: 0000000000000001 R15: 00007fc6392b6600
2025-12-05 07:12:12.937 homeassistant kernel: </TASK>
2025-12-05 07:12:12.937 homeassistant kernel: Mem-Info:
2025-12-05 07:12:12.937 homeassistant kernel: active_anon:517534 inactive_anon:306895 isolated_anon:0




