Skip to content

Computing weights for a different system #22

@AdithyaRaman

Description

@AdithyaRaman

Hi I am trying to run powerletrics on SteamOS on a SteamDeck.

I noticed in the config file that the weights provided might provide accurate energy calculation for the macos

# https://github.com/green-kernel/documentation/blob/main/macos_powermetrics.md
# These are the current default values from powermetrics
[Weights]
CPU_WEIGHT = 1
WAKEUP_WEIGHT = 0.00020
DISK_WRITE_WEIGHT = 0.00000000045
DISK_READ_WEIGHT = 0.00000000045
NETWORK_WRITE_WEIGHT = 0.0000040
NETWORK_READ_WEIGHT = 0.0000040
MEMORY_WEIGHT = 0

[eBPF]
COMM_LENGTH=4096

Is there any way that we can compute these weights for an arbitrary device and load those weights before we run the powerletrics tool?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions