• Categories
    • Recent
    • Tags
    • Popular
    • Register
    • Login

    Hi CPU usage on OrangePi Zero (256Mb)

    Scheduled Pinned Locked Moved Troubleshooting
    4 Posts 3 Posters 1.5k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • X Offline
      xinuz
      last edited by xinuz

      Hello,

      Could someone help me to find why the system always uses around 98% of CPU?
      UPD: Some more datails:
      1 mysensors gateway
      1 attached sensor
      no other special logic, I've just installed the app.
      After some time orange pi stops to respond

      0_1501078517150_htop.png

      jkandasaJ 1 Reply Last reply Reply Quote 0
      • jkandasaJ Offline
        jkandasa @xinuz
        last edited by jkandasa

        @xinuz Seems your orange pi has only 256 MB RAM, where MyController itself takes 150MB. OS and other tasks might take some more memory. I hope 512MB orange PI performs well. @Tag might have good experience on Orange PI

        You can reduce MyController memory usage by changing HEAP_MAX=-Xmx150m to something like HEAP_MAX=-Xmx100m (100MB) on the file bin/start.sh

        1 Reply Last reply Reply Quote 0
        • X Offline
          xinuz
          last edited by xinuz

          Thanks. I changed mysgw configuration to use an interrupt (https://www.mysensors.org/build/orange#improving-throughput-for-nrf24). So now it takes much less CPU. After that, all processes take around 105Mb of memory and around 10-30% of CPU.

          1 Reply Last reply Reply Quote 0
          • T Offline
            Tag MOD
            last edited by

            Hi!

            (Sorry missed this topic...)

            I am using the interrupt driven mysgw also, and it really lowered the CPU usage.
            Another option which i used temporarily on my 512Mb Opi Zero is add an arduino with the radio wired to the arduino ports and attach this to the usb port of the Opi-Zero, this brings the cpu usage really down.

            Hope this helps.....

            1 Reply Last reply Reply Quote 0
            • First post
              Last post

            0

            Online

            586

            Users

            529

            Topics

            3.4k

            Posts
            Copyright © 2015-2025 MyController.org | Contributors | Localization