tree: c74ab3f081c41ddc2c3503fe6a7795ad974f2971 [path history] [tgz]
  1. dbus/
  2. init/
  3. seccomp/
  4. src/
  5. tmpfiles.d/
  6. udev/
  7. Cargo.toml
  8. OWNERS
  9. README.md
resourced/README.md

resourced - Chrome OS Resource Management Daemon

resourced supports the following 2 D-Bus interfaces for resource management. Check go/resourced for details.

  • org.chromium.MemoryPressure - low memory notification API
    • When memory pressure is high, notifying subsystems to free memory.
    • Method GetAvailableMemoryKB - returns the available memory.
    • Method GetMemoryMarginsKB - returns the margin (threshold) for critical and moderate memory pressure.

ChromeOS Config

The following chromeos-config values are supported:

  • resource/
    • {ac,dc}
      • web-rtc-power-preferences/governor/
        • ondemand/
          • powersave-bias
      • fullscreen-power-preferences/governor/..
      • gaming-power-preferences/governor/..
      • default-power-preferences/governor/..

Debugging

You can use the following to call the dbus service:

$ dbus-send --print-reply --system --dest=org.chromium.ResourceManager /org/chromium/ResourceManager org.chromium.ResourceManager.SetRTCAudioActive byte:1
$ dbus-send --print-reply --system --dest=org.chromium.ResourceManager /org/chromium/ResourceManager org.chromium.ResourceManager.GetRTCAudioActive