Hi All,
I would like to use OSMC on a Rapsberry Pi 2 hardware, but the “kodi.bin” process after some hours always is killed by the kernel with “out-of-memory” problem.
The “journalctl” always records the following:
aug 27 21:16:55 osmc mediacenter[250]: Kodi exited with return code 137 after 24 hours,20 minutes and 4 s
aug 27 21:16:55 osmc sudo[277]: pam_unix(sudo:session): session closed for user osmc
aug 27 21:16:54 osmc kernel: Killed process 278 (kodi.bin) total-vm:1205908kB, anon-rss:657304kB, file-rss
aug 27 21:16:54 osmc kernel: Out of memory: Kill process 278 (kodi.bin) score 877 or sacrifice child
aug 27 21:16:54 osmc kernel: [ 941] 1000 941 1300 148 6 0 0 0
aug 27 21:16:54 osmc kernel: [ 940] 1000 940 2713 168 8 0 0 0
aug 27 21:16:54 osmc kernel: [ 938] 1000 938 6095 277 9 0 0 0
aug 27 21:16:54 osmc kernel: [ 937] 1000 937 1083 98 5 0 0 0
aug 27 21:16:54 osmc kernel: [ 935] 0 935 2713 191 10 0 0 0
aug 27 21:16:54 osmc kernel: [ 547] 106 547 1323 167 6 0 0 0
aug 27 21:16:54 osmc kernel: [ 322] 0 322 1406 30 5 0 0 0
aug 27 21:16:54 osmc kernel: [ 321] 0 321 18486 1525 17 0 0 0
aug 27 21:16:54 osmc kernel: [ 305] 1000 305 78638 6490 63 0 0 0
aug 27 21:16:54 osmc kernel: [ 301] 0 301 8726 201 13 0 0 0
aug 27 21:16:54 osmc kernel: [ 296] 0 296 1020 78 7 0 0 0
aug 27 21:16:54 osmc kernel: [ 295] 0 295 1757 81 7 0 0 0
aug 27 21:16:54 osmc kernel: [ 293] 0 293 4097 154 9 0 0 0
aug 27 21:16:54 osmc kernel: [ 286] 0 286 1445 113 8 0 0 0
aug 27 21:16:54 osmc kernel: [ 281] 1000 281 1395 72 6 0 0 0 aug 27 21:16:54 osmc kernel: [ 278] 1000 278 301477 164326 452 0 0 0
aug 27 21:16:54 osmc kernel: [ 277] 0 277 1437 117 7 0 0 0
aug 27 21:16:54 osmc kernel: [ 262] 0 262 533 62 6 0 0 0
aug 27 21:16:54 osmc kernel: [ 250] 0 250 837 84 6 0 0 0
aug 27 21:16:54 osmc kernel: [ 242] 0 242 1737 139 9 0 0 -1000
aug 27 21:16:54 osmc kernel: [ 237] 0 237 1628 138 6 0 0 0
aug 27 21:16:54 osmc kernel: [ 236] 105 236 852 76 5 0 0 0
aug 27 21:16:54 osmc kernel: [ 235] 0 235 927 56 6 0 0 0
aug 27 21:16:54 osmc kernel: [ 234] 104 234 1216 143 6 0 0 -900
aug 27 21:16:54 osmc kernel: [ 232] 105 232 879 73 5 0 0 0
aug 27 21:16:54 osmc kernel: [ 231] 0 231 855 69 6 0 0 0
aug 27 21:16:54 osmc kernel: [ 137] 0 137 2768 149 7 0 0 -1000
aug 27 21:16:54 osmc kernel: [ 109] 0 109 2098 260 9 0 0 0
aug 27 21:16:54 osmc kernel: [ pid ] uid tgid total_vm rss nr_ptes nr_pmds swapents oom_score_adj
aug 27 21:16:54 osmc kernel: 2048 pages cma reserved
aug 27 21:16:54 osmc kernel: 2603 pages reserved
aug 27 21:16:54 osmc kernel: 0 pages HighMem/MovableOnly
aug 27 21:16:54 osmc kernel: 192512 pages RAM
aug 27 21:16:54 osmc kernel: Total swap = 0kB
aug 27 21:16:54 osmc kernel: Free swap = 0kB
aug 27 21:16:54 osmc kernel: Swap cache stats: add 0, delete 0, find 0/0
aug 27 21:16:54 osmc kernel: 0 pages in swap cache
aug 27 21:16:54 osmc kernel: 2925 total pagecache pages
aug 27 21:16:54 osmc kernel: Normal: 2644kB (UEMC) 608kB (UEMC) 4616kB (UEMC) 1332kB (UEMC) 9*64kB (EM
aug 27 21:16:54 osmc kernel: lowmem_reserve: 0 0
aug 27 21:16:54 osmc kernel: Normal free:13104kB min:12288kB low:15360kB high:18432kB active_anon:696564kB
aug 27 21:16:54 osmc kernel: active_anon:174141 inactive_anon:1877 isolated_anon:0
active_file:303 inactive_file:319 isolated_file:0
unevictable:0 dirty:0 writeback:0 unstable:0
slab_reclaimable:1626 slab_unreclaimable:2247
mapped:1357 shmem:2204 pagetables:717 bounce:0
free:3276 free_pcp:47 free_cma:39
aug 27 21:16:54 osmc kernel: Mem-Info:
aug 27 21:16:54 osmc kernel: 5fe0: 015114b4 7ef0c338 00761a8d 00761a8c 60010030 ffffffff
aug 27 21:16:54 osmc kernel: 5fc0: 7ef0c344 01ddb728 01ddb870 7ef0c400 01ddb870 7ef0c3d4 7ef0c58c 7ef0c3f8
aug 27 21:16:54 osmc kernel: 5fa0: 7ef0c344 00000001 03b95860 03b95864
aug 27 21:16:54 osmc kernel: Exception stack(0xac325fb0 to 0xac325ff8)
aug 27 21:16:54 osmc kernel: [<800092e0>] (do_PrefetchAbort) from [<806fe7e4>] (ret_from_exception+0x0/0x1
aug 27 21:16:54 osmc kernel: [<806fec88>] (do_page_fault) from [<800092e0>] (do_PrefetchAbort+0x44/0xa8)
aug 27 21:16:54 osmc kernel: [<8018ac88>] (handle_mm_fault) from [<806fec88>] (do_page_fault+0x330/0x3e4)
aug 27 21:16:54 osmc kernel: [<80152938>] (filemap_fault) from [<8018ac88>] (handle_mm_fault+0x94c/0x1408)
aug 27 21:16:54 osmc kernel: [<8015b8dc>] (__alloc_pages_nodemask) from [<80152938>] (filemap_fault+0x248/
aug 27 21:16:54 osmc kernel: [<80154a98>] (out_of_memory) from [<8015b8dc>] (__alloc_pages_nodemask+0xa54/
aug 27 21:16:54 osmc kernel: [<8015428c>] (oom_kill_process) from [<80154a98>] (out_of_memory+0x460/0x494)
aug 27 21:16:54 osmc kernel: [<80153968>] (dump_header.isra.15) from [<8015428c>] (oom_kill_process+0x25c/
aug 27 21:16:54 osmc kernel: [<806f6c48>] (dump_stack) from [<80153968>] (dump_header.isra.15+0xa0/0x26c)
aug 27 21:16:54 osmc kernel: [<8001afd8>] (show_stack) from [<806f6c48>] (dump_stack+0x9c/0xdc)
aug 27 21:16:54 osmc kernel: [<8001f5c0>] (unwind_backtrace) from [<8001afd8>] (show_stack+0x20/0x24)
aug 27 21:16:54 osmc kernel: Hardware name: BCM2709
aug 27 21:16:54 osmc kernel: CPU: 0 PID: 278 Comm: kodi.bin Not tainted 4.1.3-2-osmc #1
aug 27 21:16:54 osmc kernel: kodi.bin invoked oom-killer: gfp_mask=0x201da, order=0, oom_score_adj=0
The most interesting thing in this symptom: the out-of-memory crash always occurs independently that I use the Kodi - or not (not used = just power up the RPi2 but nothing watch or listen on Kodi).
If I check the amount of free memory (date || free) my experience is same as the kernel predicates: the amount of free memory is continuously decreasing, for example:
osmc@osmc:~$ date && free
2015. aug. 28., péntek, 09.47.02 CEST
total used free shared buffers cached
Mem: 751444 385252 366192 8816 39656 186344
-/+ buffers/cache: 159252 592192
Swap: 0 0 0
osmc@osmc:~$ date && free
2015. aug. 28., péntek, 16.18.41 CEST
total used free shared buffers cached
Mem: 751444 470452 280992 8816 46148 262828
-/+ buffers/cache: 161476 589968
Swap: 0 0 0
osmc@osmc:~$ date && free
2015. aug. 28., péntek, 18.45.24 CEST
total used free shared buffers cached
Mem: 751444 473788 277656 8816 49164 262832
-/+ buffers/cache: 161792 589652
Swap: 0 0 0
Does anybody have any idea what do I have (or Can I do ) to solve this problem?
Or Does somebody have same experience?
Thanks in advance,
SziroG