XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    CPU frequency governor: performance vs. ondemand

    Scheduled Pinned Locked Moved Hardware
    5 Posts 4 Posters 32 Views 3 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.
    • A
      abudef
      last edited by

      Hi, I noticed that XCP-ng 8.3 uses the performance CPU governor by default on Intel processors. Switching to ondemand significantly reduces the average CPU frequency and lowers the CPU temperature by around 6-8 °C. Is there a specific reason to prefer performance over ondemand in XCP-ng? Are there any known drawbacks or performance issues when using ondemand?

      1 Reply Last reply
      Reply Quote 0
      • O
        ovicz
        last edited by ovicz

        Most enterprise servers are running in performance mode by default, to take full advantage of the cpu power. Running ondemand is better suited for home labs or other use cases.

        1 Reply Last reply
        Reply Quote 0
        • olivierlambertO
          olivierlambert Vates 🪐 Co-Founder CEO
          last edited by

          There's no silver bullet, if you don't care of performance and you want to use less power as possible, of course ondemand is better. But as @ovicz said, in 90% of enterprise use case, you want to squeeze the most of your hardware.

          1 Reply Last reply
          Reply Quote 0
          • TeddyAstieT
            TeddyAstie Vates 🪐 XCP-ng Team Xen Guru
            last edited by TeddyAstie

            If that can be interesting, I'm doing small tests with Intel HWP (Intel Speed Shift) in Performance mode to see if it does better than performance governor, but it's not going to be until (at least) XCP-ng 9.0 (it's Xen 4.18+).

            1 Reply Last reply
            Reply Quote 2
            • A
              abudef
              last edited by

              Sure, I understand that the performanc governor is a natural choice for production environments where consistent performance is a priority.

              Based on the source code and this patch, it appears that XCP-ng 8.3 defaults to the performance CPU governor on Intel hosts, while AMD hosts retain ondemand, unless a governor is explicitly configured. Is this interpretation correct? If so, what is the technical rationale behind these different defaults? The patch comments mention C-state support and power savings, but it is unclear whether this explanation still applies to current AMD processors.

              1 Reply Last reply
              Reply Quote 0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • First post
                Last post