Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-15137

TuneD RFE: Add D-bus API to query cpu power/performance settings.

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • rhel-9.4
    • rhel-9.4
    • tuned
    • None
    • tuned-2.22.0-0.1.rc1.el9
    • None
    • None
    • FutureFeature, Patch, Upstream
    • rhel-sst-cs-net-perf-services
    • ssg_core_services
    • 26
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • All
    • None

      TuneD recently added D-bus API support. The example below demonstrates it.

      Users may invoke the D-bus APIs to set selected cpus to full power and performance or to powersave modes. For example, a user may be toggling power and performance on various cpus throughout the day, depending on workload, (with the goal of saving power on unused cpus).

      However, there is no way to ask TuneD what the current state is on a system. E.G.: Which cpus are in full power/performance (governor, EPB, Cstate/pm_qos), and which ones are in powersave mode.

      This RFE is a request for that functionality.
      Thank you.
      Joe Mario

      Example profile using the dbus.
      >  # cat /etc/tuned/test_Dbus-profile/tuned.conf
      >     [main]
      >     summary=Testing out Dbus interface
      >     include=throughput-performance
      >
      >     # workaround for inheritance problems with TuneD PR477
      >     [cpu]
      >     enabled=0
      >
      >     [cpus_performance]
      >     type=cpu
      >     devices=cpu8,cpu9
      >     governor=performance
      >     pm_qos_resume_latency_us=2
      >
      >     [cpus_powersave]
      >     type=cpu
      >     devices=*
      >     governor=powersave

      Then, the above can be utilized with either busctl or dbus-send.
      For example, to additionally set cpus 10-13 at full power, do the the following:

      1. busctl call com.redhat.tuned /Tuned com.redhat.tuned.control instance_acquire_devices ss cpu10,cpu11,cpu12,cpu13 cpus_performance

      or with:

      1. dbus-send --system --print-reply --dest="com.redhat.tuned" /Tuned com.redhat.tuned.control.instance_acquire_devices string:cpu10,cpu11,cpu12,cpu13 string:cpus_performance

              jskarvad Jaroslav Skarvada
              jmario@redhat.com Joe Mario
              Jaroslav Skarvada
              Jaroslav Skarvada Jaroslav Skarvada
              Robin Hack Robin Hack
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: