Lowering resource usage on Kodi-dedicated system












1















I have a system set up dedicated to media streaming (Kodi/HTPC), running Ubuntu 16.04 (Xenial).



I'd like to limit resource usage (CPU/RAM) to the bare minimum for everything that isn't necessary to Kodi's operation.



I can do without most of what Compiz/Unity offers, but removing them completely will most likely have an affect on Kodi as well.



What can I change/remove to minimize CPU and memory usage, without affecting Kodi? Switching to a different desktop environment/window manager is definitely a viable option, I'd just appreciate a few pointers on where to start. I'd like to avoid making a switch to a different distro, if possible.










share|improve this question



























    1















    I have a system set up dedicated to media streaming (Kodi/HTPC), running Ubuntu 16.04 (Xenial).



    I'd like to limit resource usage (CPU/RAM) to the bare minimum for everything that isn't necessary to Kodi's operation.



    I can do without most of what Compiz/Unity offers, but removing them completely will most likely have an affect on Kodi as well.



    What can I change/remove to minimize CPU and memory usage, without affecting Kodi? Switching to a different desktop environment/window manager is definitely a viable option, I'd just appreciate a few pointers on where to start. I'd like to avoid making a switch to a different distro, if possible.










    share|improve this question

























      1












      1








      1








      I have a system set up dedicated to media streaming (Kodi/HTPC), running Ubuntu 16.04 (Xenial).



      I'd like to limit resource usage (CPU/RAM) to the bare minimum for everything that isn't necessary to Kodi's operation.



      I can do without most of what Compiz/Unity offers, but removing them completely will most likely have an affect on Kodi as well.



      What can I change/remove to minimize CPU and memory usage, without affecting Kodi? Switching to a different desktop environment/window manager is definitely a viable option, I'd just appreciate a few pointers on where to start. I'd like to avoid making a switch to a different distro, if possible.










      share|improve this question














      I have a system set up dedicated to media streaming (Kodi/HTPC), running Ubuntu 16.04 (Xenial).



      I'd like to limit resource usage (CPU/RAM) to the bare minimum for everything that isn't necessary to Kodi's operation.



      I can do without most of what Compiz/Unity offers, but removing them completely will most likely have an affect on Kodi as well.



      What can I change/remove to minimize CPU and memory usage, without affecting Kodi? Switching to a different desktop environment/window manager is definitely a viable option, I'd just appreciate a few pointers on where to start. I'd like to avoid making a switch to a different distro, if possible.







      16.04 kodi






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 11 '17 at 13:16









      CharlesCharles

      82




      82






















          1 Answer
          1






          active

          oldest

          votes


















          2














          I have a box running kodi myself, and can share a few tips:




          1. Do not run a desktop environment. Start kodi straight from the login screen.


            1. If you have a large media library, using mysql for backend database may make sense.

            2. Watch top, and see what actually uses CPU and memory. On my mediacenter it's basically mythbackend and kodi that consumes anything at all. On idle, with myth scanning epg, cpu use is 10% and load 0.1




          By default there's really not a lot of processes using CPU. If you experience any playback issues, it's worth looking into those issues, not lowering cpu use in general.



          Regarding memory, that's rarely an bottleneck on modern systems. Kodi is reported in at 7% of 8GiB, when playing a 1080p file. When not playing, it registers at 3%.



          TL;DR: Do you expirience any problems? If not, leave it alone. If you have enough memory, it should not matter to you how this is used?






          share|improve this answer



















          • 1





            Other than Kodi, Compiz is probably highest in CPU usage, and at times Sickrage/Deluge/CouchPotato/Pulseaudio. How can I start Kodi straight from login without a DE? The thread linked doesn't touch on that much. The reason I'm trying to lower CPU usage is because my system seems to be running rather hot and the fans are spinning constantly. It's custom-built, and the fans should be more than enough - I've looked into the fan issue several times before.

            – Charles
            Nov 11 '17 at 13:40











          • If you installed kodi from the repositories, it should appear as a DE at the login screen. Click the circle/dot next to the username, and select Kodi as the Desktop Environment.

            – vidarlo
            Nov 11 '17 at 13:44








          • 1





            I've added autologin-session=kodi to /etc/lightdm/lightdm.conf in addition to the autologin user I already had set up there, and now the system boots into the Kodi "DE" instead. Let's see if this has an effect on resource usage over the next few days. Thank you @vidarlo!

            – Charles
            Nov 11 '17 at 14:57













          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f975396%2flowering-resource-usage-on-kodi-dedicated-system%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          2














          I have a box running kodi myself, and can share a few tips:




          1. Do not run a desktop environment. Start kodi straight from the login screen.


            1. If you have a large media library, using mysql for backend database may make sense.

            2. Watch top, and see what actually uses CPU and memory. On my mediacenter it's basically mythbackend and kodi that consumes anything at all. On idle, with myth scanning epg, cpu use is 10% and load 0.1




          By default there's really not a lot of processes using CPU. If you experience any playback issues, it's worth looking into those issues, not lowering cpu use in general.



          Regarding memory, that's rarely an bottleneck on modern systems. Kodi is reported in at 7% of 8GiB, when playing a 1080p file. When not playing, it registers at 3%.



          TL;DR: Do you expirience any problems? If not, leave it alone. If you have enough memory, it should not matter to you how this is used?






          share|improve this answer



















          • 1





            Other than Kodi, Compiz is probably highest in CPU usage, and at times Sickrage/Deluge/CouchPotato/Pulseaudio. How can I start Kodi straight from login without a DE? The thread linked doesn't touch on that much. The reason I'm trying to lower CPU usage is because my system seems to be running rather hot and the fans are spinning constantly. It's custom-built, and the fans should be more than enough - I've looked into the fan issue several times before.

            – Charles
            Nov 11 '17 at 13:40











          • If you installed kodi from the repositories, it should appear as a DE at the login screen. Click the circle/dot next to the username, and select Kodi as the Desktop Environment.

            – vidarlo
            Nov 11 '17 at 13:44








          • 1





            I've added autologin-session=kodi to /etc/lightdm/lightdm.conf in addition to the autologin user I already had set up there, and now the system boots into the Kodi "DE" instead. Let's see if this has an effect on resource usage over the next few days. Thank you @vidarlo!

            – Charles
            Nov 11 '17 at 14:57


















          2














          I have a box running kodi myself, and can share a few tips:




          1. Do not run a desktop environment. Start kodi straight from the login screen.


            1. If you have a large media library, using mysql for backend database may make sense.

            2. Watch top, and see what actually uses CPU and memory. On my mediacenter it's basically mythbackend and kodi that consumes anything at all. On idle, with myth scanning epg, cpu use is 10% and load 0.1




          By default there's really not a lot of processes using CPU. If you experience any playback issues, it's worth looking into those issues, not lowering cpu use in general.



          Regarding memory, that's rarely an bottleneck on modern systems. Kodi is reported in at 7% of 8GiB, when playing a 1080p file. When not playing, it registers at 3%.



          TL;DR: Do you expirience any problems? If not, leave it alone. If you have enough memory, it should not matter to you how this is used?






          share|improve this answer



















          • 1





            Other than Kodi, Compiz is probably highest in CPU usage, and at times Sickrage/Deluge/CouchPotato/Pulseaudio. How can I start Kodi straight from login without a DE? The thread linked doesn't touch on that much. The reason I'm trying to lower CPU usage is because my system seems to be running rather hot and the fans are spinning constantly. It's custom-built, and the fans should be more than enough - I've looked into the fan issue several times before.

            – Charles
            Nov 11 '17 at 13:40











          • If you installed kodi from the repositories, it should appear as a DE at the login screen. Click the circle/dot next to the username, and select Kodi as the Desktop Environment.

            – vidarlo
            Nov 11 '17 at 13:44








          • 1





            I've added autologin-session=kodi to /etc/lightdm/lightdm.conf in addition to the autologin user I already had set up there, and now the system boots into the Kodi "DE" instead. Let's see if this has an effect on resource usage over the next few days. Thank you @vidarlo!

            – Charles
            Nov 11 '17 at 14:57
















          2












          2








          2







          I have a box running kodi myself, and can share a few tips:




          1. Do not run a desktop environment. Start kodi straight from the login screen.


            1. If you have a large media library, using mysql for backend database may make sense.

            2. Watch top, and see what actually uses CPU and memory. On my mediacenter it's basically mythbackend and kodi that consumes anything at all. On idle, with myth scanning epg, cpu use is 10% and load 0.1




          By default there's really not a lot of processes using CPU. If you experience any playback issues, it's worth looking into those issues, not lowering cpu use in general.



          Regarding memory, that's rarely an bottleneck on modern systems. Kodi is reported in at 7% of 8GiB, when playing a 1080p file. When not playing, it registers at 3%.



          TL;DR: Do you expirience any problems? If not, leave it alone. If you have enough memory, it should not matter to you how this is used?






          share|improve this answer













          I have a box running kodi myself, and can share a few tips:




          1. Do not run a desktop environment. Start kodi straight from the login screen.


            1. If you have a large media library, using mysql for backend database may make sense.

            2. Watch top, and see what actually uses CPU and memory. On my mediacenter it's basically mythbackend and kodi that consumes anything at all. On idle, with myth scanning epg, cpu use is 10% and load 0.1




          By default there's really not a lot of processes using CPU. If you experience any playback issues, it's worth looking into those issues, not lowering cpu use in general.



          Regarding memory, that's rarely an bottleneck on modern systems. Kodi is reported in at 7% of 8GiB, when playing a 1080p file. When not playing, it registers at 3%.



          TL;DR: Do you expirience any problems? If not, leave it alone. If you have enough memory, it should not matter to you how this is used?







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 11 '17 at 13:32









          vidarlovidarlo

          9,70352446




          9,70352446








          • 1





            Other than Kodi, Compiz is probably highest in CPU usage, and at times Sickrage/Deluge/CouchPotato/Pulseaudio. How can I start Kodi straight from login without a DE? The thread linked doesn't touch on that much. The reason I'm trying to lower CPU usage is because my system seems to be running rather hot and the fans are spinning constantly. It's custom-built, and the fans should be more than enough - I've looked into the fan issue several times before.

            – Charles
            Nov 11 '17 at 13:40











          • If you installed kodi from the repositories, it should appear as a DE at the login screen. Click the circle/dot next to the username, and select Kodi as the Desktop Environment.

            – vidarlo
            Nov 11 '17 at 13:44








          • 1





            I've added autologin-session=kodi to /etc/lightdm/lightdm.conf in addition to the autologin user I already had set up there, and now the system boots into the Kodi "DE" instead. Let's see if this has an effect on resource usage over the next few days. Thank you @vidarlo!

            – Charles
            Nov 11 '17 at 14:57
















          • 1





            Other than Kodi, Compiz is probably highest in CPU usage, and at times Sickrage/Deluge/CouchPotato/Pulseaudio. How can I start Kodi straight from login without a DE? The thread linked doesn't touch on that much. The reason I'm trying to lower CPU usage is because my system seems to be running rather hot and the fans are spinning constantly. It's custom-built, and the fans should be more than enough - I've looked into the fan issue several times before.

            – Charles
            Nov 11 '17 at 13:40











          • If you installed kodi from the repositories, it should appear as a DE at the login screen. Click the circle/dot next to the username, and select Kodi as the Desktop Environment.

            – vidarlo
            Nov 11 '17 at 13:44








          • 1





            I've added autologin-session=kodi to /etc/lightdm/lightdm.conf in addition to the autologin user I already had set up there, and now the system boots into the Kodi "DE" instead. Let's see if this has an effect on resource usage over the next few days. Thank you @vidarlo!

            – Charles
            Nov 11 '17 at 14:57










          1




          1





          Other than Kodi, Compiz is probably highest in CPU usage, and at times Sickrage/Deluge/CouchPotato/Pulseaudio. How can I start Kodi straight from login without a DE? The thread linked doesn't touch on that much. The reason I'm trying to lower CPU usage is because my system seems to be running rather hot and the fans are spinning constantly. It's custom-built, and the fans should be more than enough - I've looked into the fan issue several times before.

          – Charles
          Nov 11 '17 at 13:40





          Other than Kodi, Compiz is probably highest in CPU usage, and at times Sickrage/Deluge/CouchPotato/Pulseaudio. How can I start Kodi straight from login without a DE? The thread linked doesn't touch on that much. The reason I'm trying to lower CPU usage is because my system seems to be running rather hot and the fans are spinning constantly. It's custom-built, and the fans should be more than enough - I've looked into the fan issue several times before.

          – Charles
          Nov 11 '17 at 13:40













          If you installed kodi from the repositories, it should appear as a DE at the login screen. Click the circle/dot next to the username, and select Kodi as the Desktop Environment.

          – vidarlo
          Nov 11 '17 at 13:44







          If you installed kodi from the repositories, it should appear as a DE at the login screen. Click the circle/dot next to the username, and select Kodi as the Desktop Environment.

          – vidarlo
          Nov 11 '17 at 13:44






          1




          1





          I've added autologin-session=kodi to /etc/lightdm/lightdm.conf in addition to the autologin user I already had set up there, and now the system boots into the Kodi "DE" instead. Let's see if this has an effect on resource usage over the next few days. Thank you @vidarlo!

          – Charles
          Nov 11 '17 at 14:57







          I've added autologin-session=kodi to /etc/lightdm/lightdm.conf in addition to the autologin user I already had set up there, and now the system boots into the Kodi "DE" instead. Let's see if this has an effect on resource usage over the next few days. Thank you @vidarlo!

          – Charles
          Nov 11 '17 at 14:57




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Ask Ubuntu!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f975396%2flowering-resource-usage-on-kodi-dedicated-system%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Mouse cursor on multiple screens with different PPI

          Agildo Ribeiro

          Sometime when accessing a menu: “Ubuntu 16.04 has experienced an internal error”