Please add zram support for Vero 4k
thx
Please add zram support for Vero 4k
thx
What are you doing that would need that much memory? The 4K should have more than enough.
Nothing special, just a big database.
3409 movies, 10072 TV episodes, 333276 songs, 22326 musicvideos
total used free shared buff/cache available
Mem: 1832388 1635216 65660 3700 131512 101624
Swap: 2097148 52328 2044820
total 468840
-rwxrwxrwx 1 root root 28672 Aug 9 19:20 ADSP0.db
-rwxrwxrwx 1 root root 1765376 Aug 9 20:16 Addons27.db
drwxrwxrwx 2 root root 4096 May 19 07:47 CDDB
-rwxrwxrwx 1 root root 16826368 Aug 10 06:31 Epg11.db
-rwxrwxrwx 1 root root 279015424 Aug 9 19:20 MyMusic72.db
-rwxrwxrwx 1 root root 72491008 Aug 9 20:15 MyVideos110.db
-rwxrwxrwx 1 root root 122880 Aug 9 19:20 TV32.db
-rwxrwxrwx 1 root root 38965248 Aug 10 06:31 Textures13.db
-rwxrwxrwx 1 root root 20480 Aug 9 19:20 ViewModes6.db
-rwxrwxrwx 1 root root 70844416 Aug 9 20:16 emby.db
We need to figure out what is using your memory, while you still have about 101M free, that seems low. Mine runs with about 760M free.
Before doing anything, you should turn swap off as that will cause extra wear on the eMMC, possibly leading to an early death of the 4K.
Posting logs may help us see what you have that could be using memory.
Try looking at top to get an idea of what process is using the memory.
If it is the database causing the problem, you might consider switching to a MySQL database.
Hi,
As @bmillham says, it’s quite surprising to see a request for zram when the device has 2GB of memory.
I’ve added ZRAM support as per your request:
It will be in the next update.
Sam
Thank you
I will also investigate if the ram usage is based on an issue, or just normal behaviour under my special circumstances.
I tried a couple of workaround to save memory, but still running out.
zram is not stable. I guess caused of the really old kernel…
[ 190.692476] Call trace:
[ 190.692482] [] memcpy+0x110/0x180
[ 190.692486] [] zram_make_request+0x1fc/0x2e8 [zram]
[ 190.692492] [] generic_make_request+0x90/0x118
[ 190.692496] [] submit_bio+0x88/0x190
[ 190.692501] [] __swap_writepage+0x1b4/0x258
[ 190.692505] [] swap_writepage+0x4c/0xb8
[ 190.692509] [] shrink_page_list+0x610/0x918
[ 190.692513] [] shrink_inactive_list+0x1b4/0x560
[ 190.692516] [] shrink_lruvec+0x308/0x5b8
[ 190.692519] [] shrink_zone+0x6c/0x1a8
[ 190.692522] [] balance_pgdat+0x340/0x560
[ 190.692525] [] kswapd+0x15c/0x3c0
[ 190.692530] [] kthread+0xd4/0xf0
[ 190.692534] Code: a8c12027 a8c12829 a8c1302b a8c1382d (a88120c7)
[ 190.692539] —[ end trace 76eab16c503422c7 ]—
Hi,
I suggest you provide some logs:
How to submit a useful support request - General - OSMC
It may shed some light on why you have such high ram usage.
Thanks Tom,.
The issue is not the high ram usage, cause this is just related to massive databases.
3840 movies, 12136 tvshows, 22578 musicvideos and 332844 songs.
Without logs, we have no way to help you further. Please supply them so we can help!
I can think of compressed pages being a problem about a year ago, but you’d need to be on a very old version of OSMC (middle of 2017 IIRC) for this to be an issue.
Sam
After long time I gave zram another shot, still crashing
Here is the log…
Jul 20 16:10:50 vero4k-bedroom kernel: [ 178.624766@0] hdmitx: audio: aout notify rate 44100
Jul 20 16:10:50 vero4k-bedroom kernel: [ 178.624770@0] hdmitx: audio: aout notify size 32
Jul 20 16:10:50 vero4k-bedroom kernel: [ 178.624775@0] hdmitx: audio: hdmi_ch: 0 speaker_layout: 0
Jul 20 16:10:50 vero4k-bedroom kernel: [ 178.624778@0] hdmitx: audio: no update
Jul 20 16:10:51 vero4k-bedroom kernel: [ 179.732601@1] aml_snd_m8_card aml_m8_snd.46: I2S playback enable
Jul 20 16:10:51 vero4k-bedroom kernel: [ 179.732605@1] aml_snd_m8_card aml_m8_snd.46: IEC958 playback enable
Jul 20 16:10:51 vero4k-bedroom kernel: [ 179.824556@0] aml_snd_m8_card aml_m8_snd.46: I2S playback disable
Jul 20 16:10:51 vero4k-bedroom kernel: [ 179.824584@0] aml_snd_m8_card aml_m8_snd.46: IEC958 playback disable
Jul 20 16:10:51 vero4k-bedroom kernel: [ 179.824764@1] i2s/958 same source - init spdif
Jul 20 16:10:51 vero4k-bedroom kernel: [ 179.824785@1] aml_spdif_dai: aml_hw_iec958_init,runtime->rate=44100, runtime->channels=2, same source mode(1), stream format=1
Jul 20 16:10:51 vero4k-bedroom kernel: [ 179.824795@1] aml_spdif_dai: set divider = 2 for i2s shared clock
Jul 20 16:10:51 vero4k-bedroom kernel: [ 179.824817@1] aml_audio_hw: IEC958 PCM32
Jul 20 16:10:51 vero4k-bedroom kernel: [ 179.824828@1] hdmitx: audio: aout notify rate 44100
Jul 20 16:10:51 vero4k-bedroom kernel: [ 179.824832@1] hdmitx: audio: aout notify size 32
Jul 20 16:10:51 vero4k-bedroom kernel: [ 179.824838@1] hdmitx: audio: hdmi_ch: 0 speaker_layout: 0
Jul 20 16:10:51 vero4k-bedroom kernel: [ 179.824842@1] hdmitx: audio: no update
Jul 20 16:10:58 vero4k-bedroom kernel: [ 186.750361@1] aml_snd_m8_card aml_m8_snd.46: I2S playback enable
Jul 20 16:10:58 vero4k-bedroom kernel: [ 186.750366@1] aml_snd_m8_card aml_m8_snd.46: IEC958 playback enable
Jul 20 16:10:58 vero4k-bedroom kernel: [ 186.842022@0] aml_snd_m8_card aml_m8_snd.46: I2S playback disable
Jul 20 16:10:58 vero4k-bedroom kernel: [ 186.842047@0] aml_snd_m8_card aml_m8_snd.46: IEC958 playback disable
Jul 20 16:10:58 vero4k-bedroom kernel: [ 186.842191@1] i2s/958 same source - init spdif
Jul 20 16:10:58 vero4k-bedroom kernel: [ 186.842206@1] aml_spdif_dai: aml_hw_iec958_init,runtime->rate=44100, runtime->channels=2, same source mode(1), stream format=1
Jul 20 16:10:58 vero4k-bedroom kernel: [ 186.842213@1] aml_spdif_dai: set divider = 2 for i2s shared clock
Jul 20 16:10:58 vero4k-bedroom kernel: [ 186.842226@1] aml_audio_hw: IEC958 PCM32
Jul 20 16:10:58 vero4k-bedroom kernel: [ 186.842235@1] hdmitx: audio: aout notify rate 44100
Jul 20 16:10:58 vero4k-bedroom kernel: [ 186.842239@1] hdmitx: audio: aout notify size 32
Jul 20 16:10:58 vero4k-bedroom kernel: [ 186.842245@1] hdmitx: audio: hdmi_ch: 0 speaker_layout: 0
Jul 20 16:10:58 vero4k-bedroom kernel: [ 186.842247@1] hdmitx: audio: no update
Jul 20 16:11:12 vero4k-bedroom kernel: [ 200.603312@1] audio_dsp: buf=0
Jul 20 16:11:12 vero4k-bedroom kernel: [ 200.603317@1] audio_dsp: IEC958_mode_raw=0
Jul 20 16:11:12 vero4k-bedroom kernel: [ 200.603350@1] audio_dsp: IEC958_mode_codec= 1, IEC958 type 2 CH PCM
Jul 20 16:11:12 vero4k-bedroom kernel: [ 200.603351@1] audio_dsp: last mode 1,now 1
Jul 20 16:11:12 vero4k-bedroom kernel: [ 200.603423@1] audio_dsp: putting chip back to PCM state
Jul 20 16:11:12 vero4k-bedroom kernel: [ 200.603423@1] hdmitx: config: audio_on
Jul 20 16:11:12 vero4k-bedroom kernel: [ 200.603428@1] hdmitx: audio: configure on
Jul 20 16:11:12 vero4k-bedroom kernel: [ 200.612344@1] i2s/958 same source - init spdif
Jul 20 16:11:12 vero4k-bedroom kernel: [ 200.612367@1] aml_spdif_dai: aml_hw_iec958_init,runtime->rate=44100, runtime->channels=2, same source mode(1), stream format=1
Jul 20 16:11:12 vero4k-bedroom kernel: [ 200.612373@1] aml_spdif_dai: set divider = 2 for i2s shared clock
Jul 20 16:11:12 vero4k-bedroom kernel: [ 200.612383@1] aml_audio_hw: IEC958 PCM32
Jul 20 16:11:12 vero4k-bedroom kernel: [ 200.612392@1] hdmitx: audio: aout notify rate 44100
Jul 20 16:11:12 vero4k-bedroom kernel: [ 200.612396@1] hdmitx: audio: aout notify size 32
Jul 20 16:11:12 vero4k-bedroom kernel: [ 200.612400@1] hdmitx: audio: hdmi_ch: 0 speaker_layout: 0
Jul 20 16:11:12 vero4k-bedroom kernel: [ 200.612403@1] hdmitx: audio: no update
Jul 20 16:11:12 vero4k-bedroom kernel: [ 200.612722@1] sysfs set hdmi_ch to 0
Jul 20 16:11:12 vero4k-bedroom kernel: [ 200.612786@1] i2s/958 same source - init spdif
Jul 20 16:11:12 vero4k-bedroom kernel: [ 200.612796@1] aml_spdif_dai: aml_hw_iec958_init,runtime->rate=44100, runtime->channels=2, same source mode(1), stream format=1
Jul 20 16:11:12 vero4k-bedroom kernel: [ 200.612803@1] aml_spdif_dai: set divider = 2 for i2s shared clock
Jul 20 16:11:12 vero4k-bedroom kernel: [ 200.612812@1] aml_audio_hw: IEC958 PCM32
Jul 20 16:11:12 vero4k-bedroom kernel: [ 200.612819@1] hdmitx: audio: aout notify rate 44100
Jul 20 16:11:12 vero4k-bedroom kernel: [ 200.612823@1] hdmitx: audio: aout notify size 32
Jul 20 16:11:12 vero4k-bedroom kernel: [ 200.612827@1] hdmitx: audio: hdmi_ch: 0 speaker_layout: 0
Jul 20 16:11:12 vero4k-bedroom kernel: [ 200.612831@1] hdmitx: audio: no update
Jul 20 16:11:12 vero4k-bedroom kernel: [ 200.613567@1] aml_snd_m8_card aml_m8_snd.46: I2S playback enable
Jul 20 16:11:12 vero4k-bedroom kernel: [ 200.613583@1] aml_snd_m8_card aml_m8_snd.46: IEC958 playback enable
Jul 20 16:11:12 vero4k-bedroom kernel: [ 200.705275@0] aml_snd_m8_card aml_m8_snd.46: I2S playback disable
Jul 20 16:11:12 vero4k-bedroom kernel: [ 200.705297@0] aml_snd_m8_card aml_m8_snd.46: IEC958 playback disable
Jul 20 16:11:12 vero4k-bedroom kernel: [ 200.705379@1] i2s/958 same source - init spdif
Jul 20 16:11:12 vero4k-bedroom kernel: [ 200.705388@1] aml_spdif_dai: aml_hw_iec958_init,runtime->rate=44100, runtime->channels=2, same source mode(1), stream format=1
Jul 20 16:11:12 vero4k-bedroom kernel: [ 200.705395@1] aml_spdif_dai: set divider = 2 for i2s shared clock
Jul 20 16:11:12 vero4k-bedroom kernel: [ 200.705406@1] aml_audio_hw: IEC958 PCM32
Jul 20 16:11:12 vero4k-bedroom kernel: [ 200.705415@1] hdmitx: audio: aout notify rate 44100
Jul 20 16:11:12 vero4k-bedroom kernel: [ 200.705418@1] hdmitx: audio: aout notify size 32
Jul 20 16:11:12 vero4k-bedroom kernel: [ 200.705423@1] hdmitx: audio: hdmi_ch: 0 speaker_layout: 0
Jul 20 16:11:12 vero4k-bedroom kernel: [ 200.705426@1] hdmitx: audio: no update
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886007@2] Modules linked in: zram bnep hci_uart 8021q rpcsec_gss_krb5 iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack iptable_filter btsdio bluetooth 6lowpan_iphc dhd cfg80211 dwc_otg wifi_dummy ir_lirc_codec(O) lirc_dev(O) mali meson_ir(O) rc_core(O) amlvideodri(O) videobuf_res(O) videobuf_core(O) videodev(O) media(O) ip_tables x_tables
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886014@2] CPU: 2 PID: 39 Comm: kswapd0 Tainted: G O 3.14.29-150-osmc #1
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886017@2] task: ffffffc05fd58000 ti: ffffffc060b58000 task.ti: ffffffc060b58000
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886027@2] PC is at memcpy+0x110/0x180
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886033@2] LR is at zram_bvec_rw.isra.3+0x340/0x610 [zram]
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886035@2] pc : [] lr : [] pstate: 20000045
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886036@2] sp : ffffffc060b5b6d0
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886039@2] x29: ffffffc060b5b6d0 x28: ffffffc004034038
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886042@2] x27: ffffffc001dd2000 x26: 0000000000000000
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886045@2] x25: ffffffc060b58000 x24: ffffffc05b76e680
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886047@2] x23: 00000000715fe000 x22: 0000000000000000
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886050@2] x21: 0000000000002f07 x20: ffffffc060b5b7d0
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886052@2] x19: ffffffc01d03fc00 x18: 0000000000000010
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886055@2] x17: 000000001824429d x16: 0000000000000000
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886057@2] x15: 00000000000000f1 x14: f6fb7b34f6fbfadc
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886060@2] x13: f6fb7b30f6fb7b2c x12: f6fb7b28f6fbefdc
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886062@2] x11: f6fb7b24f6fbf7f8 x10: f6fb7b20f6fb7b1c
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886065@2] x9 : f6faf00df6faf04d x8 : f300001052000000
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886068@2] x7 : 0020000000000002 x6 : ffffff800010cc08
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886070@2] x5 : 0000000000000800 x4 : 0000000000000000
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886073@2] x3 : ffffff800010cc08 x2 : 0000000000000b29
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886075@2] x1 : ffffffc05db88040 x0 : ffffff800010cc08
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886077@2]
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886077@2] PC: 0xffffffc001428190:
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886084@2] 8190 b8404423 b80044c3 36080062 78402423 780024c3 36000062 39400023 390000c3
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886090@2] 81b0 d65f03c0 f1020042 5400024a a8c12027 a88120c7 a8c12829 a8c1302b a88128c9
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886095@2] 81d0 a88130cb a8c1382d a88138cd f240145f 54fffba1 d65f03c0 d503201f d503201f
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886101@2] 81f0 d503201f d503201f d503201f d503201f a8c12027 a8c12829 a8c1302b a8c1382d
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886107@2] 8210 a88120c7 a8c12027 a88128c9 a8c12829 a88130cb a8c1302b a88138cd a8c1382d
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886113@2] 8230 f1010042 54fffeea a88120c7 a88128c9 a88130cb a88138cd f240145f 54fff841
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886118@2] 8250 d65f03c0 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886123@2] 8270 00000000 00000000 00000000 00000000 eb01001f 54fff3e3 8b020023 eb03001f
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886125@2]
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886125@2] SP: 0xffffffc060b5b650:
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886131@2] b650 60b5b7d0 ffffffc0 00002f07 00000000 00000000 00000000 715fe000 00000000
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886136@2] b670 5b76e680 ffffffc0 60b58000 ffffffc0 00000000 00000000 01dd2000 ffffffc0
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886142@2] b690 04034038 ffffffc0 60b5b6d0 ffffffc0 fc5a1de0 ffffffbf 60b5b6d0 ffffffc0
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886147@2] b6b0 01428210 ffffffc0 20000045 00000000 40a0e158 ffffff80 404e1238 ffffff80
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886153@2] b6d0 60b5b750 ffffffc0 fc5a22b0 ffffffbf 00001000 00000000 00001000 00000000
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886158@2] b6f0 00000000 00000000 00000000 00000000 00000001 00000000 00002f07 00000000
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886163@2] b710 45cdd900 ffffffc0 1d03fc00 ffffffc0 00000000 00000000 00000000 00000000
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886169@2] b730 5b76e6a8 ffffffc0 5db88000 ffffffc0 5d8e6000 ffffffc0 00000ba9 00000000
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886171@2]
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886171@2] X1: 0xffffffc05db87fc0:
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886176@2] 7fc0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886181@2] 7fe0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886187@2] 8000 00000002 00200000 52000000 f3000010 f6faf04d f6faf00d f6fb7b1c f6fb7b20
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886193@2] 8020 f6fbf7f8 f6fb7b24 f6fbefdc f6fb7b28 f6fb7b2c f6fb7b30 f6fbfadc f6fb7b34
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886198@2] 8040 f6fb7b38 f6fb7b3c f6fb7b40 f6fb7b44 f6fbe480 f6fb7b48 f6fb7b4c f6fbf988
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886204@2] 8060 f6fbeac8 f6fbeb10 f6fb7b50 f6fbea14 f6fbea1c f6fb7b54 f6fb7b58 f6fb7b5c
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886210@2] 8080 f6fb7b60 f6fb7b64 f6fb7b68 f6fb7b6c f6fb7b70 f6fb7b74 f6fb7b78 f6fc07b8
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886215@2] 80a0 f6fb7b7c f6fb7b80 f6fb7b84 f6fb7b88 f6fb7b8c f6fbef5c f6fbee74 f6fb7b90
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886221@2]
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886221@2] X19: 0xffffffc01d03fb80:
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886226@2] fb80 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886232@2] fba0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886237@2] fbc0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886242@2] fbe0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886248@2] fc00 5b76e680 ffffffc0 5d8e6000 ffffffc0 1d03f000 ffffffc0 00000001 00000000
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886253@2] fc20 00000001 02430243 1d03fc28 ffffffc0 1d03fc28 ffffffc0 1bf15000 00000000
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886259@2] fc40 00004c1c 00000000 00000106 00000000 0000001b 00000000 00000000 00000000
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886264@2] fc60 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0000001a
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886265@2]
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886265@2] X20: 0xffffffc060b5b750:
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886271@2] b750 60b5b7f0 ffffffc0 0140311c ffffffc0 45cdd900 ffffffc0 60b58000 ffffffc0
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886277@2] b770 00000008 00000000 45cdd900 ffffffc0 60b5ba28 ffffffc0 00200200 00000000
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886282@2] b790 00100100 00000000 00000000 00000000 00000001 00000000 01d2c1a8 ffffffc0
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886288@2] b7b0 60b5ba28 ffffffc0 00200200 00000000 fc5a2c80 ffffffbf 1d03fc20 ffffffc0
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886293@2] b7d0 42708f50 ffffff80 00001000 00000000 60b5b800 ffffffc0 0114fe8c ffffffc0
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886299@2] b7f0 60b5b820 ffffffc0 0140322c ffffffc0 45cdd900 ffffffc0 00000001 00000000
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886304@2] b810 00000000 00000000 00000000 00000000 60b5b880 ffffffc0 011847d8 ffffffc0
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886310@2] b830 42708f50 ffffff80 00000000 00000000 00000001 00000000 45cdd900 ffffffc0
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886312@2]
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886312@2] X24: 0xffffffc05b76e600:
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886318@2] e600 fc262000 ffffffbf fc287000 ffffffbf 00000001 00000000 5dc1b099 ffffffc0
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886323@2] e620 00000000 00000000 00000000 00000000 5dc1b0b0 ffffffc0 5dc1b230 ffffffc0
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886329@2] e640 5b76e640 ffffffc0 5b76e640 ffffffc0 00000000 00000000 5b0d91d0 ffffffc0
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886334@2] e660 00200200 00000000 00000000 00000000 00000019 00000000 ab17b4b0 00000000
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886340@2] e680 00000000 ffffffc0 5dc7c000 ffffffc0 5db88000 ffffffc0 0438b000 ffffff80
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886345@2] e6a0 5b76e880 ffffffc0 00000000 00000000 5b76e6b0 ffffffc0 5b76e6b0 ffffffc0
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886351@2] e6c0 5fd58000 ffffffc0 00000000 00000000 00000000 00000000 00000000 00000000
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886356@2] e6e0 00000000 00000000 00000000 ffffffff ffffffff 00000000 00000000 00000000
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886357@2]
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886357@2] X25: 0xffffffc060b57f80:
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886363@2] 7f80 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886368@2] 7fa0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886373@2] 7fc0 00000000 00000000 00000000 00000000 00000000 00000000 00000005 00000000
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886379@2] 7fe0 00000000 00000000 00000000 00000000 07f24e1c e0ae26c3 8df40e34 af8f5463
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886384@2] 8000 00000002 00000000 ffffffff ffffffff 5fd58000 ffffffc0 01d1c350 ffffffc0
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886390@2] 8020 010a76b0 ffffffc0 00000000 00000000 00000000 00000000 00000000 00000000
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886395@2] 8040 00000000 00000000 00000000 00000000 00000001 00000002 57ac6e9d 00000000
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886401@2] 8060 8ebccf39 bb368e8c f6d11e39 8892290e 03128fef e28f25e8 80a53ac1 a0f02651
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886402@2]
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886402@2] X27: 0xffffffc001dd1f80:
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886408@2] 1f80 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886413@2] 1fa0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886419@2] 1fc0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886424@2] 1fe0 00000000 00000000 00000000 00000000 00000000 00000000 c8100707 00600000
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886430@2] 2000 00000000 00000000 782fd6df ffffffc0 01addfb8 ffffffc0 00000000 00000000
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886435@2] 2020 00000000 00000000 00000000 00000000 782fdbc0 ffffffc0 782fd940 ffffffc0
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886441@2] 2040 782fd6c0 ffffffc0 00000001 00000001 00000000 00000000 00000001 00000000
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886446@2] 2060 00000000 00000000 00000000 00000001 00000000 00000000 00000000 00000000
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886448@2]
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886448@2] X28: 0xffffffc004033fb8:
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886454@2] 3fb8 ff252c32 ff242b31 ff232a30 ff232a30 ff232a30 ff242b31 ff232a30 ff232a30
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886459@2] 3fd8 ff232a30 ff232a30 ff242b31 ff232a30 ff242b31 ff242b31 ff242b31 ff242b31
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886465@2] 3ff8 ff242b31 ff252c32 00000002 001d2530 00000000 005b3f30 00000000 002922d0
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886471@2] 4018 00000000 001d09f0 00000000 005b3f10 00000000 001d11b0 00000000 00095af0
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886477@2] 4038 00000003 001d11b0 04034048 ffffffc0 04034050 ffffffc0 04034058 ffffffc0
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886483@2] 4058 04034060 ffffffc0 04034068 ffffffc0 04034070 ffffffc0 04034078 ffffffc0
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886488@2] 4078 04034080 ffffffc0 04034088 ffffffc0 04034090 ffffffc0 04034098 ffffffc0
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886494@2] 4098 040340a0 ffffffc0 040340a8 ffffffc0 040340b0 ffffffc0 040340b8 ffffffc0
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886496@2]
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886496@2] X29: 0xffffffc060b5b650:
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886501@2] b650 60b5b7d0 ffffffc0 00002f07 00000000 00000000 00000000 715fe000 00000000
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886507@2] b670 5b76e680 ffffffc0 60b58000 ffffffc0 00000000 00000000 01dd2000 ffffffc0
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886513@2] b690 04034038 ffffffc0 60b5b6d0 ffffffc0 fc5a1de0 ffffffbf 60b5b6d0 ffffffc0
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886518@2] b6b0 01428210 ffffffc0 20000045 00000000 40a0e158 ffffff80 404e1238 ffffff80
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886524@2] b6d0 60b5b750 ffffffc0 fc5a22b0 ffffffbf 00001000 00000000 00001000 00000000
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886529@2] b6f0 00000000 00000000 00000000 00000000 00000001 00000000 00002f07 00000000
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886535@2] b710 45cdd900 ffffffc0 1d03fc00 ffffffc0 00000000 00000000 00000000 00000000
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886541@2] b730 5b76e6a8 ffffffc0 5db88000 ffffffc0 5d8e6000 ffffffc0 00000ba9 00000000
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886541@2]
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886848@2] Call trace:
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886855@2] [] memcpy+0x110/0x180
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886861@2] [] zram_make_request+0x1fc/0x2e8 [zram]
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886867@2] [] generic_make_request+0x90/0x118
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886870@2] [] submit_bio+0x88/0x190
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886876@2] [] __swap_writepage+0x1b4/0x258
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886879@2] [] swap_writepage+0x4c/0xb8
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886884@2] [] shrink_page_list+0x610/0x918
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886888@2] [] shrink_inactive_list+0x1b4/0x560
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886891@2] [] shrink_lruvec+0x308/0x5b8
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886894@2] [] shrink_zone+0x6c/0x1a8
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886897@2] [] balance_pgdat+0x340/0x560
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886900@2] [] kswapd+0x15c/0x3c0
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886905@2] [] kthread+0xd4/0xf0
Jul 20 16:11:26 vero4k-bedroom kernel: [ 214.886930@2] —[ end trace 93e22b5f120aeb37 ]—
Please supply full debug logs.
If you tell me how? I cannot upload the log file and I cannot post the full log here, cause of forum limitations.
btw, not sure what you expect from the full dmesgs?
Debian buster and it was Kodi 18 and Kodi 19. However, this has nothing todo with the zram issue. This is a kernel / kernelmodul issue.
I trigger the zram manually via script. Before triggering the script, everything is perfect. Even with swapfile.
As soon script enabled zram and zram starts swapping, kernel crashes.
Testscript:
#!/bin/sh
totalmem=free | grep -e "^Mem:"| awk '{print $2}'
mem=$(( ($totalmem /4 )* 1024))
modprobe zram num_devices=4
#modprobe zram num_devices=2
#echo lz4 >/sys/devices/virtual/block/zram0/comp_algorithm
#echo lz4 >/sys/devices/virtual/block/zram1/comp_algorithm
#echo lz4 >/sys/devices/virtual/block/zram2/comp_algorithm
#echo lz4 >/sys/devices/virtual/block/zram3/comp_algorithm
echo $mem > /sys/block/zram0/disksize
#echo $mem > /sys/block/zram1/disksize
#echo $mem > /sys/block/zram2/disksize
#echo $mem > /sys/block/zram3/disksize
mkswap /dev/zram0
#mkswap /dev/zram1
#mkswap /dev/zram2
#mkswap /dev/zram3
swapon -p 32767 /dev/zram0
#swapon -p 32767 /dev/zram1
#swapon -p 32767 /dev/zram2
#swapon -p 32767 /dev/zram3
#swapon -p 0 /mnt/sdcard/swapfile
#sysctl vm.swappiness=70
#sysctl vm.swappiness=100
sysctl vm.swappiness=20
see post 12 of this topic
Edit:
OSMC is still on stretch, are you running a non-stock osmc?
Tom.
https://paste.osmc.tv/vevicatero.py
Yes I updated to buster for python reasons. But this is not the point!
This is a kernel / kernelmodul issue. The kernel is stock from osmc repo (3.14.29-150-osmc).
Even if I would remove kodi, install xserver and run lxde it would still be a kernel issue.
btw, lz4 is also not available in this “old” kernel version. Is there any progress about the 4.9er kernel? Even if lot’s of backports are added to the 3.14 kernel, the core is still old).
Are the gpu driver available for 4.9? I guess this is usually the showstopper moving to newer kernel versions.
The GPU driver is available for 4.9
It will be released end of Summer.
There is no support for Buster at this time.
Great, then I will postpone my tests till 4.9 is released.
Did you have issues with zram on Stretch? I wouldn’t be surprised if the userland and kernel are coupled
Sam
I guess yes, but not sure. That’s too long ago, but why do you think the userland have an impact to this issue? From my perspective it’s clearly kernel related. Of course there is always the possibility on inconsitencies, but I would be really surprised if this is the case.
I can check on stock image as well, but this will take time.