Skip to content

Wrong energy reports on a two sockets system #85

@PierreRust

Description

@PierreRust

Bug description

It seems to be a problem on socket-level energy reporting, potentially when several sockets are available, but that's only an hypothesis.

On my two-sockets workstation ( two Xeon Gold 5118) when i run scaphandre stdout (inside docker) I get the following. Core energy is listed, but not uncore (nor DRAM) but I suspect :

Host:	23.81615 W	Core		Uncore		DRAM
Socket0	15.061086 W	1.214757 W	
Socket1	8.743361 W	0.888699 W

When looking at the json report, core consumption is listed for the first socket, but not uncore, and it's the opposite for the second socket:

    "sockets": [{
            "id": 0,
            "consumption": 17822326.0,
            "domains": [{
                    "name": "core",
                    "consumption": 1738454.0
            }]
        }, {
            "id": 1,
            "consumption": 14311183.0,
            "domains": [{
                    "name": "uncore",
                    "consumption": 1509426.0
                }]
     }]

When I run the same commands on a single-socket laptop system with a i7-10875H I get both core and uncore, and even DRAM, both with sdtout and json

Host:	11.849977 W	Core		Uncore		DRAM
Socket0	11.850316 W	2.098711 W	8.857136 W	0.312643 W
    "sockets": [
        {
            "id": 0,
            "consumption": 12735075.0,
            "domains": [
                {
                    "name": "core",
                    "consumption": 2297552.0
                },
                {
                    "name": "uncore",
                    "consumption": 9526411.0
                },
                {
                    "name": "dram",
                    "consumption": 442801.0
                }
            ]   }   ]

I'd be glad to help on this issue, if you can point me to the right direction ;)

To Reproduce

The exact command I've been using, on both system, is:

docker run --name scaphandre --rm -ti -v /sys/class/powercap:/sys/class/powercap -v /proc:/proc hubblo/scaphandre:latest json

Environment

Both workstation and laptop are running ubuntu 20.04 LTS on kernel 5.8.0-44-generic

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Previous releases

Relationships

None yet

Development

No branches or pull requests

Issue actions