Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

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

    Solved CPU share higher or lower for less priority

    Support
    performance cpu shares
    2
    2
    141
    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.
    • JOduMonT
      JOduMonT last edited by girish

      I was reading the doc about CPU Share but my question remains
      If I want an app having less priority do I have to set the CPU Share higher or lower ?

      such as, I don't really care if tiny tiny rss only respond when the CPU is idle
      should I slide the CPU Share at 20% or at 80% ?

      1 Reply Last reply Reply Quote 1
      • girish
        girish Staff last edited by

        The CPU share setting is a percentage relative to each app. So, you should make tinytinyrss slider to be 20%. That way, it will take less CPU compared to other apps (which are set to default to 80%).

        There's a more detailed explanation here - https://www.batey.info/cgroup-cpu-shares-for-docker.html . When 50%, we set the CPU shares value to be 50% of 1024, when 20%, we set the CPU shares to 20% of 1024 and so on.

        1 Reply Last reply Reply Quote 2
        • First post
          Last post
        Powered by NodeBB