<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>You can measure power consumption of a system using this neat device: <a href="http://www.yoctopuce.com/EN/products/usb-electrical-sensors/yocto-watt" class="OWAAutoLink" id="LPlnk992715" previewremoved="true">http://www.yoctopuce.com/EN/products/usb-electrical-sensors/yocto-watt</a></p>
<p><br>
</p>
<p>Getting wattage data from UPS may be quite some experience.</p>
<p><br>
</p>
<p><br>
</p>
<p>Sincerely,</p>
<p><br>
</p>
<p><br>
</p>
<p>Slava</p>
<div id="LPBorder_GT_15111954106490.8018887846629819" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_15111954106400.5588145757054563" role="presentation" cellspacing="0" style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);">
<tbody>
<tr valign="top" style="border-spacing: 0px;">
<td id="TextCell_15111954106420.8227618633451061" colspan="2" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;">
<div id="LPRemovePreviewContainer_15111954106420.6417474895340689"></div>
<div id="LPTitle_15111954106430.5879214130073327" style="top: 0px; color: rgb(0, 120, 215); font-weight: 400; font-size: 21px; font-family: wf_segoe-ui_light, "Segoe UI Light", "Segoe WP Light", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_15111954106440.2122651046769426" href="http://www.yoctopuce.com/EN/products/usb-electrical-sensors/yocto-watt" target="_blank" style="text-decoration: none;">Yocto-Watt - Isolated USB wattmeter (AC/DC) - Yoctopuce</a></div>
<div id="LPMetadata_15111954106450.2702806412508689" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: 400; font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 14px;">
www.yoctopuce.com</div>
<div id="LPDescription_15111954106470.33002272143543077" style="display: block; color: rgb(102, 102, 102); font-weight: 400; font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
This device is a digital watt-meter allowing to monitor power consumption of electrical device. Its works with both AC and DC current. Regarding AC current, the ...</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> mesa-dev <mesa-dev-bounces@lists.freedesktop.org> on behalf of Gordon Haverland <ghaverla@materialisations.com><br>
<b>Sent:</b> Sunday, November 19, 2017 6:08:14 PM<br>
<b>To:</b> mesa-dev@lists.freedesktop.org<br>
<b>Subject:</b> [Mesa-dev] GPU (and system) monitoring</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:10pt;">
<div class="PlainText">Greetings. I've been lurking a long time.<br>
<br>
There is perhaps too much introduction here.<br>
<br>
Why I've been lurking was related to OpenCL (and btrfs) issues related<br>
to some upgrading of hardware and software I have on my LAN when time<br>
permitted. Well, winter arrived and now there isn't quite so much<br>
stuff keeping me away from the computer.<br>
<br>
In the near future I will have 5 computers attached to 4 UPS, two of<br>
which will have Corsair digital power supplies. One computer will have<br>
a sort of deprecated AMD GPU, and the others will have newer hardware<br>
(mostly Polaris GPUs from AMD). Processors are all AMD.<br>
<br>
UPS software (NUT or proprietary) can provide estimates of how much<br>
power the UPS are providing. Lmsensors seems to have an ability to<br>
read GPU temperatures as well as CPU temperatures. SMART may give<br>
access to disk data, I am initially thinking that SSD aren't going to<br>
provide anything useful. And the Gnome libgtop2 library can provide<br>
access to CPU type process data. There is some code out there to get<br>
at data from Corsair digital power supplies.<br>
<br>
Some UPS software is sampling every 2 seconds, some every 15 or 30<br>
seconds. What I am looking to do, is to sample a bunch of things at<br>
about the same rate and log it (on one machine). Sample the<br>
temperatures, sample the power levels and then look through the process<br>
statistics to find the N processes that are using more than 10% of any<br>
CPU (core).<br>
<br>
Much of what I am doing now, is public BOINC projects. And these BOINC<br>
projects may be interested in this from an energy budget point of<br>
view. I have some projects in mind, which a person might be able to do<br>
from a BOINC server. And I would like to be able to measure the energy<br>
budget on this.<br>
<br>
Einstein@Home seems to be one of the few BOINC projects which produces<br>
jobs for which Mesa3D is the OpenCL provider. I see SETI@Home sending<br>
jobs occasionally, but they don't compile as they assume<br>
Catalyst/fglrx because I have AMD GPUs.<br>
<br>
Maybe places like SETI@Home would be inclined to create OpenCL jobs, if<br>
there was software to measure energy budget? One could hope.<br>
<br>
At the moment, I am working in Perl. For getting at Corsair digital<br>
power supply data, spawning some program via the shell and capturing<br>
output should work for a start, but I probably should try to make a<br>
library and do things via XS. GTop has a Perl wrapper at CPAN, I don't<br>
think I've seen a Perl wrapper around anything lmsensors related.<br>
<br>
Too much introduction, I apologise.<br>
<br>
Are there aspects of GPU use; that Mesa3D provides, should provide or<br>
could provide? Especially with respect to OpenCL. Are there<br>
places/references where I can learn about this? No paywalled stuff<br>
please, I have no budget.<br>
<br>
If this means writing code (Mesa3D seems to be mostly C, I can do that,<br>
but most of my programming is number crunching in FORTRAN) to submit to<br>
Mesa3D, I can do that.<br>
<br>
Other things I should know?<br>
<br>
If I get something working, github is best place to put this? I think<br>
it might be useful at some point.<br>
<br>
Have a great day!<br>
Gord<br>
<br>
_______________________________________________<br>
mesa-dev mailing list<br>
mesa-dev@lists.freedesktop.org<br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</div>
</span></font></div>
</body>
</html>