Email-Thread with GUDE regarding integration of the measurement

Arne Tarara arne at green-coding.org
Thu Sep 1 15:56:07 BST 2022


Hey Joseph,

you get multiple readings per second from the script because it just polls multiple times per second.

This does however not indicate that the resolution is higher than 1 S/s (Sample per second).
You can see in the raw data that changes of the value occur almost in a 1 second interval.


2. Regarding the info from GUDE
This info is not really relevant for the Watts reading we use. It is nice to know that the actual energy measurement though
is quite precise since it integrates. But we are using only the Power reading as the energy is way too coarse.

3. So in summary what you are doing is all right. 
The n value of of 4,5 and 3 respectively is correct. Since the two clocks of the GUDE and the PC are not synchronized 
you would not know when exactly their measurement interval starts.
So it is fine to just sample with a higher rate as we do and then average that again.

Besten Gruß / Best regards,

Arne Tarara

Green Coding Berlin GmbH
Jablonskistr. 24
10405 Berlin

Mobil.: +49 160 947 930 24
Web: https://www.green-coding.org <https://www.green-coding.org/>
Github: https://github.com/green-coding-berlin <https://github.com/green-coding-berlin>
Linkedin: https://www.linkedin.com/in/arne-tarara/ <https://www.linkedin.com/in/arne-tarara/>

-
Green Coding Berlin GmbH, Sitz Berlin
Amtsgericht Charlottenburg HRB 243137 B
Geschäftsführer:  Arne Tarara




> On 1. Sep 2022, at 1:09 PM, Joseph P. De Veaugh-Geiss <joseph at kde.org> wrote:
> 
> Hi all,
> 
> I wanted to follow up to this post with some questions about the GUDE output after Saturday's Sprint.
> 
> I tested the lab setup last weekend with the GUDE Python script (https://invent.kde.org/teams/eco/feep/-/tree/master/tools/GUDEPowerMeter <https://invent.kde.org/teams/eco/feep/-/tree/master/tools/GUDEPowerMeter>) and the Kate Standard Usage Scenario.
> 
> The output looks like this:
> 
> 1661611601615724	28
> 1661611601738979	28
> 1661611601862415	28
> 1661611601985623	28
> 1661611602109482	28
> 1661611602233380	28
> 1661611602558003	30
> 1661611602681602	30
> 1661611602804709	30
> 1661611603131084	30
> 1661611603254468	30
> 1661611603377331	29
> 1661611604517858	36
> 
> 
> When converting the nanoseconds in Epoch time (first column) to timestamps (last two columns), I see that there are several measurements per second. FYI the first timestamp keeps the microseconds, the second timestamp is just in seconds.
> 
> nanoseconds    watts    timestamp (microseconds)  timestamp (seconds)
> 1661611601615724  28  2022-08-27 16:46:41.615724  2022-08-27 16:46:41
> 1661611601738979  28  2022-08-27 16:46:41.738979  2022-08-27 16:46:41
> 1661611601862415  28  2022-08-27 16:46:41.862415  2022-08-27 16:46:41
> 1661611601985623  28  2022-08-27 16:46:41.985622  2022-08-27 16:46:41
> 1661611602109482  28  2022-08-27 16:46:42.109482  2022-08-27 16:46:42
> 1661611602233380  28  2022-08-27 16:46:42.233380  2022-08-27 16:46:42
> 1661611602558003  30  2022-08-27 16:46:42.558002  2022-08-27 16:46:42
> 1661611602681602  30  2022-08-27 16:46:42.681602  2022-08-27 16:46:42
> 1661611602804709  30  2022-08-27 16:46:42.804708  2022-08-27 16:46:42
> 1661611603131084  30  2022-08-27 16:46:43.131083  2022-08-27 16:46:43
> 
> Regarding the following information from GUDE:
> 
> > According to their support the hardware does integration of the Energy result with results measured at 8 kHz.
> > Even the power measurements are internally more often sampled (at least 3 times), than the output resolution of 1 s.
> 
> Sorry for the newbie questions, I am still new to this type of data having worked almost exclusively with binary or ordinal data in behavioral studies.
> 
> How should I understand the output given the above information from GUDE?
> 
> Does each result per row include at least 3 samples?
> 
> Does the above output with multiple results per second suggest we are getting a higher output resolution than 1s?
> 
> Finally, if I calculate the average per second and use this for the analysis, how do I interpret it? See, for instance, the column "watts (m)" below (I have kept the information about the number of samples used to calculate it in the column n). Does this mean for the first row there are at least 12 samples -- 4 samples per second with at least 3 samples each?
> 
> timestamp (seconds)  n watts (m)
> 2022-08-27 16:46:41  4  28.00000
> 2022-08-27 16:46:42  5  29.20000
> 2022-08-27 16:46:43  3  29.66667
> 
> If yes, the number of samples seems very low for a professional power meter. If I recall correctly the Janitza power meter (used to measure Okular) obtained 1000 samples per second and provided in the output the average, min, and max values. And the hacked Gosund power plug is getting about 5 samples per second I believe.
> 
> BTW If it seems I am doing something wrong in the above calculations, please let me know.
> 
> Also, attached are some graphs using the above numbers for the Kate SUS run for 3 iterations (only shared here for presentational purposes, not final data). For the GUDE power meter results, gray lines show the above values (i.e., averaged per second), and the red line shows the average for all 3 iterations. The other plot shows the CPU results from collectl measured on the reference system. It seems they correlate nicely, I hope suggesting I am on the right track :) If you are wondering, the spikes are when typing "lorem ipsum ...".
> 
> I hope my questions are clear and thanks for any help with understanding this!
> 
> Cheers,
> Joseph
> 
> On 6/4/22 16:52, Arne Tarara wrote:
>> Hey all,
>> I recently had a conversation with the GUDE support regarding the specs of their equipment.
>> According to their support the hardware does integration of the Energy result with results measured at 8 kHz.
>> Even the power measurements are internally more often sampled (at least 3 times), than the output resolution of 1 s.
>> I could not find this information in the technical manual, so I hope this may be useful / news for you.
>> Besten Gruß / Best regards,
>> Arne Tarara
>> Green Coding Berlin GmbH
>> Jablonskistr. 24
>> 10405 Berlin
>> Mobil.: +49 160 947 930 24
>> Web: https://www.green-coding.org <https://www.green-coding.org/> <https://www.green-coding.org/ <https://www.green-coding.org/>>
>> Github: https://github.com/green-coding-berlin <https://github.com/green-coding-berlin><https://github.com/green-coding-berlin <https://github.com/green-coding-berlin>>
>> Linkedin: https://www.linkedin.com/in/arne-tarara/ <https://www.linkedin.com/in/arne-tarara/><https://www.linkedin.com/in/arne-tarara/ <https://www.linkedin.com/in/arne-tarara/>>
>>> Begin forwarded message:
>>> 
>>> From: Bestellung <order at gude-systems.com <mailto:order at gude-systems.com>>
>>> Subject: AW: Re: Frage zu Produkten / Messauflösung
>>> Date: 2. June 2022 at 9:16:21 AM CEST
>>> To: "arne at green-coding.org <mailto:arne at green-coding.org>" <arne at green-coding.org <mailto:arne at green-coding.org>>
>>> 
>>> Hallo Herr Tarara,
>>>  bitte entschuldigen Sie die späte Antwort, da ich noch auf ein Feedback von unserer Technikabteilung gewartet habe.
>>>  Unsere Produkte mit Energiemessung verwenden folgenden Chip für die Messung:
>>>  * Microchip/Atmel M90E26 Single-Phase High-Performance Wide-Span Energy Metering IC
>>> Dieser Chip sampelt Spannung und Strom mit 8kHz und berechnet daraus Urms, Irms, Leistungs und Energiewerte.
>>> Die Energiemessung ist lückenlos und integriert intern digital alle Messwerte.
>>> Die Urms, Irms und Leistungswerte werden ca. 3-mal pro Sekunde über mehrere Perioden der Netzspannung von dem Chip berechnet.
>>> Unsere Firmware liest diese Werte jedoch nur 1 x pro Sekunde aus und stellt die Werte dann über Ihre APIs (Webseite, json, snmp, ...) zur Verfügung.
>>> Die von außen zugreifbare (APIs) Auflösung der Energiemessung ist 1Wh, d.h. es ist leider nicht möglich, den Wert in Watt-Sekunden zu bekommen.
>>>  Mit freundlichen Grüßen/Kind regards,
>>> David Chang
>>> *******************
>>> Bitte beachten Sie, dass unsere bisherigen E-Mail-Adressen, die auf "@gude.info" enden, nicht mehr unterstützt werden.
>>> Wir sind ab sofort unter den folgenden E-Mail-Adressen erreichbar.
>>>  Please note that our previous email addresse ending in "@gude.info" are no longer supported.
>>> We can now be reached at the follwing email addresses.
>>>  Bestellungen/Orders
>>> order at gude-systems.com <mailto:order at gude-systems.com> <mailto:order at gude-systems.com <mailto:order at gude-systems.com>>
>>> Vertrieb&Allgemein/Sales
>>> sales at gude-systems.com <mailto:sales at gude-systems.com> <mailto:sales at gude-systems.com <mailto:sales at gude-systems.com>>
>>> Technische Fragen/Tech Support
>>> support at gude-systems.com <mailto:support at gude-systems.com> <mailto:support at gude-systems.com <mailto:support at gude-systems.com>>
>>> Rechnungen/Invoices
>>>  invoice at gude-systems.com <mailto:invoice at gude-systems.com> <mailto:invoice at gude-systems.com <mailto:invoice at gude-systems.com>>
>>>  Bitte aktualisieren Sie Ihre Datenbanken und Adressbücher entsprechend. Vielen Dank.
>>> *******************
>>> 
>>>  <https://www.linkedin.com/company/gude-systems/ <https://www.linkedin.com/company/gude-systems/>>Follow us on Linkedin <https://www.linkedin.com/company/gude-systems/ <https://www.linkedin.com/company/gude-systems/>>.
>>> 
>>> Mit Spannung erwartet: Unsere switched & metered DC PDU.
>>> Mit 21 Lastausgängen zur Absicherung und Steuerung von IT- und AV-Geräten.
>>> 
>>>  <https://www.gude.info/power-distribution/switchedmetered-dc-pdu/expert-power-control-8291-1.html <https://www.gude.info/power-distribution/switchedmetered-dc-pdu/expert-power-control-8291-1.html>>
>>>    <http://www.gude.info/ <http://www.gude.info/>>
>>> 
>>> 
>>> GUDE Systems GmbH   |   Von-der-Wettern-Str. 23   |   51149 Köln
>>> 
>>> Tel.: +49.221.912 90 97   |   Fax: +49.221.912 90 98
>>> info at gude-systems.com <mailto:info at gude-systems.com> <mailto:info at gude-systems.com <mailto:info at gude-systems.com>>   |  www.gude-systems.com <http://www.gude-systems.com/> <http://www.gude-systems.com/ <http://www.gude-systems.com/>>
>>> 
>>> Geschäftsführer: Dr. Michael Gude, Andreas Böttcher, Philipp Gude
>>> Amtsgericht Köln: HRB-Nr. 17784    |   USt-ID-Nr.: DE 122778228   | WEEE-Nr.: DE 58173350
>>>    Betreff:
>>> Re: Frage zu Produkten / Messauflösung
>>> Datum:
>>> Mon, 30 May 2022 10:48:08 +0200
>>> Von:
>>> Arne Tarara <arne at green-coding.org <mailto:arne at green-coding.org>> <mailto:arne at green-coding.org <mailto:arne at green-coding.org>>
>>> An:
>>> David Chang <mail at gude.info <mailto:mail at gude.info>> <mailto:mail at gude.info <mailto:mail at gude.info>>
>>> 
>>> 
>>> Das ist sehr spannend für uns!
>>>  Gerne möchte ich hier aber noch einmal nachhaken, weil das eine sehr ungewöhnliche Messleistung ist, die für uns sehr interessant ist, da diese eine Verlustfreie Rekonstruktion der Gesamtenergie ermöglichen würde.
>>>  Die Einheit auf dem Display des GUDE Power Control scheint Watt zu sein. Über die API ist es also möglich den Wert in Watt-Sekunden (Joule) zu erhalten?
>>> Falls ja: Wird das Signal analog integriert oder digital?
>>>  Besten Gruß / Best regards,
>>> 
>>> Arne Tarara
>>> 
>>> Green Coding Berlin GmbH
>>> Jablonskistr. 24
>>> 10405 Berlin
>>>  Mobil.: +49 160 947 930 24
>>> Web: https://www.green-coding.org <https://www.green-coding.org/> <https://www.green-coding.org/ <https://www.green-coding.org/>>
>>> Github: https://github.com/green-coding-berlin <https://github.com/green-coding-berlin><https://github.com/green-coding-berlin <https://github.com/green-coding-berlin>>
>>> Linkedin: https://www.linkedin.com/in/arne-tarara/ <https://www.linkedin.com/in/arne-tarara/><https://www.linkedin.com/in/arne-tarara/ <https://www.linkedin.com/in/arne-tarara/>>
>>>    
>>> 
>>> 
>>> On 30. May 2022, at 10:09 AM, David Chang <mail at gude.info <mailto:mail at gude.info><mailto:mail at gude.info <mailto:mail at gude.info>>> wrote:
>>>  Hallo Herr Tarara,
>>> 
>>> bei der Messung handelt es sich um letzteres: "eine Integration des Signals über den Zeitraum"
>>> 
>>> Mit freundlichen Grüßen,
>>> David Chang
>>> 
>>> <phmkjdcfohmllljp.png> <https://www.linkedin.com/company/gude-systems/ <https://www.linkedin.com/company/gude-systems/>> Follow us on Linkedin <https://www.linkedin.com/company/gude-systems/ <https://www.linkedin.com/company/gude-systems/>>.
>>> 
>>> Mit Spannung erwartet: Unsere switched & metered DC PDU.
>>> Mit 21 Lastausgängen zur Absicherung und Steuerung von IT- und AV-Geräten.
>>> 
>>> <hiffdeohoebjlold.png> <https://gude-systems.com/produkte/expert-power-control-8291/ <https://gude-systems.com/produkte/expert-power-control-8291/>>
>>>  <fikkcihidcfcdbnh.png> <http://www.gude-systems.com/ <http://www.gude-systems.com/>>
>>> 
>>> 
>>> GUDE Systems GmbH   |   Von-der-Wettern-Str. 23   |   51149 Köln
>>> 
>>> Tel.: +49.221.912 90 97   |   Fax: +49.221.912 90 98
>>> mail at gude.info <mailto:mail at gude.info> <mailto:mail at gude.info <mailto:mail at gude.info>>   |   www.gude.info <http://www.gude.info/> <x-msg://4/www.gude.info <x-msg://4/www.gude.info>>   |   shop.gude.info <http://shop.gude.info/><http://shop.gude.info/ <http://shop.gude.info/>>
>>> 
>>> Geschäftsführer: Dr. Michael Gude   |   Amtsgericht Köln: HRB-Nr. 17784
>>> USt-ID-Nr.: DE 122778228   |   WEEE-Nr.: DE 58173350
>>> Am 28.05.2022 um 15:29 schrieb Arne Tarara:
>>> Hallo Herr Chang,
>>>  können Sie mir noch sagen ob das Gerät ein Messung in Form einer Momentaufnahme durchführt oder bei der Auflösung von 1 s eine Integration des Signals über den Zeitraum vornimmt?
>>>  Besten Gruß / Best regards,
>>> 
>>> Arne Tarara
>>> 
>>> Green Coding Berlin GmbH
>>> Jablonskistr. 24
>>> 10405 Berlin
>>>  Tel.: +49 160 947 930 24
>>> Web: https://www.green-coding.org <https://www.green-coding.org/> <https://www.green-coding.org/ <https://www.green-coding.org/>>
>>> Github: https://github.com/green-coding-berlin <https://github.com/green-coding-berlin><https://github.com/green-coding-berlin <https://github.com/green-coding-berlin>>
>>> Linkedin: https://www.linkedin.com/in/arne-tarara/ <https://www.linkedin.com/in/arne-tarara/><https://www.linkedin.com/in/arne-tarara/ <https://www.linkedin.com/in/arne-tarara/>>
>>> 
>>> 
>>> On 3. May 2022, at 3:28 PM, David Chang <mail at gude.info <mailto:mail at gude.info><mailto:mail at gude.info <mailto:mail at gude.info>>> wrote:
>>>  Guten Tag Herr Tarara,
>>> 
>>> bitte entschuldigen Sie die späte Antwort.
>>> Ich hatte Ihre Anfrage an unsere Technikabteilung weitergeleitet und folgende Antworten erhalten:
>>> Die Messauflösung unserer Geräte liegt bei 1 Sekunde.
>>> Zu 2) können wir Ihnen leider keine konkrete Aussage zu geben, da wir mit dem von Ihnen geschilderten Aufbau bisher keine Erfahrungen gemacht haben.
>>> 
>>> Alternativ können wir Ihnen auch gerne ein Teststellungsgerät für 14 Tage zur Verfügung stellen, damit Sie schauen und sichergehen können ob unser Gerät nicht doch für Sie in Frage kommen würde.
>>> Über eine kurze Rückmeldung freue ich mich.
>>> 
>>> Mit freundlichen Grüßen,
>>> David Chang
>>> 
>>> Get your free ISE 2022 ticket <https://www.iseurope.org/register.php?actioncode=NJXERZE3 <https://www.iseurope.org/register.php?actioncode=NJXERZE3>> today!
>>> 
>>> <gude at ise2022.png> <https://www.gude.info/en/company/events/event-details/article/gude-auf-der-ise-2022.html <https://www.gude.info/en/company/events/event-details/article/gude-auf-der-ise-2022.html>>
>>> 
>>> 
>>> GUDE Systems GmbH   |   Von-der-Wettern-Str. 23   |   51149 Köln
>>> 
>>> Tel.: +49.221.912 90 97   |   Fax: +49.221.912 90 98
>>> mail at gude.info <mailto:mail at gude.info> <mailto:mail at gude.info <mailto:mail at gude.info>>   |   www.gude.info <http://www.gude.info/> <x-msg://2/www.gude.info <x-msg://2/www.gude.info>>   |   shop.gude.info <http://shop.gude.info/><http://shop.gude.info/ <http://shop.gude.info/>>
>>> 
>>> Geschäftsführer: Dr. Michael Gude   |   Amtsgericht Köln: HRB-Nr. 17784
>>> USt-ID-Nr.: DE 122778228   |   WEEE-Nr.: DE 58173350
>>> Am 29.04.2022 um 13:38 schrieb Arne Tarara:
>>> Hallo Gude Team,
>>>  wir hatten gerade kurz telefoniert und hier die versprochene Mails mit den Details in Schriftform.
>>>  Wir machen Forschung am Energieverbrauch von Software auf Applikationsebene. Hierzu würden wir gerne unsere Messmodelle
>>> mit einer leistungsfähigen externen Lösung validieren.
>>>  Wir sind hierbei auf folgende Produkte von euch aufmerksam geworden:
>>> - https://shop.gude.info/epages/GudeShop.sf/de_DE/?ObjectPath=/Shops/GudeShop/Products/00012021 <https://shop.gude.info/epages/GudeShop.sf/de_DE/?ObjectPath=/Shops/GudeShop/Products/00012021><https://shop.gude.info/epages/GudeShop.sf/de_DE/?ObjectPath=/Shops/GudeShop/Products/00012021 <https://shop.gude.info/epages/GudeShop.sf/de_DE/?ObjectPath=/Shops/GudeShop/Products/00012021>>
>>> - https://shop.gude.info/epages/GudeShop.sf/de_DE/?ObjectPath=/Shops/GudeShop/Products/00011052 <https://shop.gude.info/epages/GudeShop.sf/de_DE/?ObjectPath=/Shops/GudeShop/Products/00011052><https://shop.gude.info/epages/GudeShop.sf/de_DE/?ObjectPath=/Shops/GudeShop/Products/00011052 <https://shop.gude.info/epages/GudeShop.sf/de_DE/?ObjectPath=/Shops/GudeShop/Products/00011052>>
>>>  Gerne würde ich wissen wie hoch die Messauflösung der Geräte und ob diese über einen längeren Zeitraum (30 - 60 Min) diese Daten auch ohne Verzögerung
>>> auf den Ausgang (LAN) legen können.
>>> Hierbei ist für uns wie gesagt vor allem die Messauflösung wichtig. Wir benötigen hier eine Auflösung von deutlich unter 1 s. Optimalerweise < 1 ms.
>>>  Leider konnte ich dazu nichts in den Datenblättern finden und würde mich über eine Info freuen. Auch gerne eine Info ob Ihr vlt. ein anderes Gerät habt, was diesen Anforderungen entspricht.
>>>  2. Gerne würden wir wissen ob Ihr Erfahrung mit Messungen / Messgeräten habt wie sie klassischerweise in großen Server-Racks vorkommen.
>>> Also eine Messung direkt an der ILO / IDRAC Schnittstelle der Server und wie genau hier die Messwerte eingespielt werden. (https://support.hpe.com/hpesc/public/docDisplay?docId=a00043614en_us&docLocale=en_US <https://support.hpe.com/hpesc/public/docDisplay?docId=a00043614en_us&docLocale=en_US><https://support.hpe.com/hpesc/public/docDisplay?docId=a00043614en_us&docLocale=en_US <https://support.hpe.com/hpesc/public/docDisplay?docId=a00043614en_us&docLocale=en_US>>)
>>>  Konkret also die Messelektronik welche die Werte für die Schnittstelle bereitstellt.
>>>  Sie können meine Kontaktdaten auch gerne direkt an Ihre Technik geben. Freue mich hier über Rückmeldung und gerne auch Austausch zu dem Thema.
>>>  Besten Gruß / Best regards,
>>> 
>>> Arne Tarara
>>> 
>>> Green Coding Berlin
>>> Jablonskistr. 24
>>> 10405 Berlin
>>>  Tel.: +49 160 947 930 24
>>> Web: https://www.green-coding.org <https://www.green-coding.org/> <https://www.green-coding.org/ <https://www.green-coding.org/>>
>>> Github: https://github.com/green-coding-berlin <https://github.com/green-coding-berlin><https://github.com/green-coding-berlin <https://github.com/green-coding-berlin>>
>>> Linkedin: https://www.linkedin.com/in/arne-tarara/ <https://www.linkedin.com/in/arne-tarara/><https://www.linkedin.com/in/arne-tarara/ <https://www.linkedin.com/in/arne-tarara/>>
> 
> -- 
> Joseph P. De Veaugh-Geiss
> BE4FOSS Project and Community Manager (KDE Eco)
> OpenPGP: 8FC5 4178 DC44 AD55 08E7 DF57 453E 5746 59A6 C06F
> 
> ---
> KDE Eco: Building Energy-Efficient Free Software!
> 
> Website: https://eco.kde.org <https://eco.kde.org/>
> Mastodon: @BE4FOSS at mastodon.social <mailto:BE4FOSS at mastodon.social>
> Mailing list: https://mail.kde.org/cgi-bin/mailman/listinfo/energy-efficiency <https://mail.kde.org/cgi-bin/mailman/listinfo/energy-efficiency>
> Matrix: https://webchat.kde.org/#/room/#energy-efficiency:kde.org <https://webchat.kde.org/#/room/#energy-efficiency:kde.org>
> Forum: https://forum.kde.org/viewforum.php?f=334 <https://forum.kde.org/viewforum.php?f=334><kate_cpu.png><kate_power.png>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/energy-efficiency/attachments/20220901/8b966924/attachment-0001.htm>


More information about the Energy-efficiency mailing list