Posts: 109
Joined: Feb 2012
Reputation:
1
alfton
Senior Member
Posts: 109
2017-02-20, 10:40
(This post was last modified: 2017-02-22, 16:33 by alfton.)
Well, this is just a heads up, I will report back later on when Ill get the next reboot on kodi.
Its seems to me that kodi have a mem leak problem, its take about 2-4% of mem everytime you start a new movie, so the memory usage to kodi increase, and when it have increase to a sudden number, kodi crash, and when its starts up again the memory usage is reset.
I will post log, and debug info as soon this happens again. (kodi is not at 1G mem usages), så i guess at 2G usage it crash again.
By the way using the default skin that came with kodi 17
Posts: 109
Joined: Feb 2012
Reputation:
1
alfton
Senior Member
Posts: 109
2017-02-20, 11:48
(This post was last modified: 2017-02-20, 12:05 by alfton.)
Yepp I will put that in the autostart script..
hmm had to just have following: MALLOC_MMAP_THRESHOLD_=131072 kodi-standalone (no kodi.bin in spesific folder)
Posts: 109
Joined: Feb 2012
Reputation:
1
alfton
Senior Member
Posts: 109
Its seems like that did the trick, I asume kodi should use some amont of memory also, but now its looks like it also clean up the mem usage under use to.. And that did not happend without that extra code..
Ty fritsch
Posts: 23,051
Joined: Aug 2011
Reputation:
1,028
fritsch
Team-Kodi Developer
Posts: 23,051
Open a terminal and type the above line c/p it :-)
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Posts: 109
Joined: Feb 2012
Reputation:
1
alfton
Senior Member
Posts: 109
this indead fixed it, its stabilaze the ram usage arround 840-870..
Posts: 20
Joined: Aug 2013
Reputation:
0
Hopefully the right thread to ask this in, but what would be the correct syntax for a pi3?
Using Bitvise i entered MALLOC_MMAP_THRESHOLD_=131072 /usr/lib/kodi/kodi.bin which it did not seem to like. Entering MALLOC_MMAP_THRESHOLD_=131072 was fine.
However, I came across this on another site Environment=MALLOC_MMAP_THRESHOLD_=131072 and that was fine as well.
And finally saw a suggestion that 524288 should be used on 64bit systems.
So the questions are what is the correct syntax and in which file should I include it? The config.txt where the decoding licenses are entered, autostart.sh, or does it really matter?
Thanks for your assistance.
Posts: 20
Joined: Aug 2013
Reputation:
0
Thanks for the information.
Posts: 23,051
Joined: Aug 2011
Reputation:
1,028
fritsch
Team-Kodi Developer
Posts: 23,051
This was pushed into kodi's master - has nothing to do with agile at all. LE ships that in their final release, too.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.