pyJoules icon indicating copy to clipboard operation
pyJoules copied to clipboard

negative energie value in csv report

Open PierreRust opened this issue 3 years ago • 0 comments

I've been using pyJoules to measure the energy consumption of a rather long machine learning inference and I have, in one case, a negative value. In the output cvs file, I have the following :

timestamp;tag;duration;package_0
1614164969.4923563;;288.83703422546387;-253371267933.0

I'm not using the decorator but instead I create an EnergyMeter manually:

    devices = DeviceFactory.create_devices([RaplPackageDomain(0)])
    pj_meter = EnergyMeter(devices)
    pj_meter.start()

    # Actual work here ...
    
    pj_meter.stop()
    trace = pj_meter.get_trace()
    handler = CSVHandler(filename=f"{args.pyjoules}/pyjoules.csv")  
    handler.process(trace)
    handler.save_data()

One thing I have noted, is that is seems to happen on a two-socket machine, but not on my laptop (although that could very well be a coincidence).

Any idea on what could happen here ? is there anything I can do to help debugging it ?

PierreRust avatar Feb 25 '21 09:02 PierreRust