<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
  <title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
On 07/31/10 13:11, Cedric Pradalier wrote:
<blockquote cite="mid:4C5404CC.6080008@mavt.ethz.ch" type="cite">
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
  <br>
To continue on my fight against overhead, I've had good performance
improvement of rosout by replacing all the timeout argument in the
CallbackQueue::callAvailable and CallbackQueue::callOne from 0.01s to
0.1s. <br>
Now my rosout is really sitting in a corner doing nothing while I'm not
logging.<br>
  <br>
Can you foresee any drawbacks from this change?<br>
</blockquote>
<br>
And the final touch to make roscore behave: in package roslaunch, file
src/roslaunch/pmon.py:570<br>
replacing time.sleep(0.01) with time.sleep(0.1) makes roscore use less
than 1% cpu, and AFAICS just slows down a little the process respawn
mechanism.<br>
<br>
I don't think I will optimise farther for now. In summary, applying all
the changes in this thread brings my set of core processes (roscore,
rosmaster, rosout, some serial data gatherer/publisher) from a total of
20% cpu load, to 5-6%, without any noticeable performance loss so far.<br>
<br>
HTH<br>
<br>
<pre class="moz-signature" cols="80">-- 
Dr. Cedric Pradalier
<a class="moz-txt-link-freetext" href="http://www.asl.ethz.ch/people/cedricp">http://www.asl.ethz.ch/people/cedricp</a>
</pre>
</body>
</html>