<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
Sorry for the multiple post there. Hotmail seems to have glitched<br><br><div><hr id="stopSpelling">From: jbturgid@hotmail.com<br>To: matju@artengine.ca<br>Date: Wed, 19 Oct 2011 13:15:47 +0100<br>CC: pd-list@iem.at<br>Subject: [PD]   CPU data to pd WAS: Patch Contest Thread/List<br><br>

<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}

</style>

<div dir="ltr">
I'm not finished with it yet, but basically it's about reading and parsing the file /proc/stat to get the load of your cpu(s) and then convert it into real-time data (basically the same data the 'system monitor' uses) and turn that into something standardised for PDers to patch on top of. So you could hear how your computer usage (admittedly including Pd) is affecting cpu load. (inspired by my recent realization that my work computer is actually running 8 cores and this data is viewable as a file in unix).<br><br>So far I've got the beginning of a ruby parser for that file.<br><br>Does anyone know:<br>&nbsp; which files I can poll to get the memory usage and network traffic as numerical figures?<br>&nbsp; how I would detect the number of cores in the same way?<br>&nbsp; where I can find the cpu cores' capacity (so I can express the data as a proportion of this)?<br><br>I suppose the ultimate aim would be an abstraction to autodetect all this and feed clean data to pd.<br><br>- Andrew<br><br><br><div>&gt; Date: Wed, 19 Oct 2011 00:59:40 -0400<br>&gt; From: matju@artengine.ca<br>&gt; To: jbturgid@hotmail.com<br>&gt; CC: thecryoflove@gmail.com; pd-list@iem.at<br>&gt; Subject: Re: [PD] Patch Contest Thread/List<br>&gt; <br>&gt; Le 2011-10-18 à 23:24:00, Andrew Faraday a écrit&nbsp;:<br>&gt; <br>&gt; &gt; Just I'm working on a ruby/pd patch to get a clean feed of CPU usage in <br>&gt; &gt; linux, could be a starting point (I.E. where would people take this <br>&gt; &gt; real-time data collection).<br>&gt; <br>&gt; May you elaborate on what this is&nbsp;?<br>&gt; <br>&gt;   ______________________________________________________________________<br>&gt; | Mathieu BOUCHARD ----- téléphone&nbsp;: +1.514.383.3801 ----- Montréal, QC<br></div>                                               </div>
<br>_______________________________________________
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -&gt; http://lists.puredata.info/listinfo/pd-list</div>                                               </div></body>
</html>