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

    Proper way to set default CPU Governor?

    Scheduled Pinned Locked Moved Compute
    3 Posts 2 Posters 1.2k Views 4 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.
    • S Offline
      sluflyer06
      last edited by

      Hi,

      I want to set 'ondemand' as the default boot CPU governor, for my uses on my VM host (r730xd), I can save a substantial amount of energy when the box isn't busy if the cpu's are allowed to downclock.

      I read a guide that said to edit the grub file and then rebuild but that broke xcp-ng, so I want to ask the right way to do this.

      Thank you!

      T 1 Reply Last reply Reply Quote 0
      • T Offline
        tuxen Top contributor @sluflyer06
        last edited by

        @sluflyer06 In order to persist across reboots, you must set the cpufreq boot option. There's no need to rebuild grub because the change will occur at Xen level (instead of dom0):

        /opt/xensource/libexec/xen-cmdline --set-xen cpufreq=xen:ondemand
        

        After that, change the System power profile to Performance Per Watt (OS) in BIOS.

        Verifying the config:

        Check if the attribute current_governor is set to ondemand:

        xenpm get-cpufreq-para
        

        Check the clock scaling:

        xenpm start 1|grep "Avg freq"
        

        More info:
        https://support.citrix.com/article/CTX200390/power-settings-in-citrix-hypervisor-cstates-turbo-and-cpu-frequency-scaling

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sluflyer06 @tuxen
          last edited by

          @tuxen Thank You, looks like it's booting on the selected cpu scaling now.

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