<div class="h5">
</div><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I suggest running a tool like strace to shed more light on the<br>

situation.  Compare the strace output when it&#39;s behaving reasonably<br>
versus when it&#39;s taking excessive CPU time, to see if there&#39;s any<br>
difference in the kinds of file accesses or system calls.<br>
<div><div></div><div class="h5"><br>
Jim<br></div></div></blockquote><div><br>On first glance, the only different for the small sample from strace is the following:<br><br>gettimeofday({1257790662, 846417}, NULL) = 0<br>stat(&quot;/etc/localtime&quot;, {st_mode=S_IFREG|0644, st_size=2202, ...}) = 0<br>
<br>The above lines from high cpu usage are in addition to the ones below when normal 0-2% CPU is being used.  Maybe there is significant data outside the same I took since I only compared about 100 lines of the strace. <br>
<br>Both have entries like the following:<br>clock_gettime(CLOCK_MONOTONIC, {263050, 270597399}) = 0<br>read(8, 0x25ea604, 4096)                = -1 EAGAIN (Resource temporarily unavailable)<br>poll([{fd=4, events=POLLIN}, {fd=9, events=POLLIN}, {fd=8, events=POLLIN}, {fd=12, events=POLLIN}, {fd=30, events=POLLIN}], 5, 0) = 0 (Timeout)<br>
read(8, 0x25ea604, 4096)                = -1 EAGAIN (Resource temporarily unavailable)<br>clock_gettime(CLOCK_MONOTONIC, {263050, 270810253}) = 0<br>clock_gettime(CLOCK_MONOTONIC, {263050, 270862210}) = 0<br>read(8, 0x25ea604, 4096)                = -1 EAGAIN (Resource temporarily unavailable)<br>
poll([{fd=4, events=POLLIN}, {fd=9, events=POLLIN}, {fd=8, events=POLLIN}, {fd=12, events=POLLIN}, {fd=30, events=POLLIN}], 5, 0) = 0 (Timeout)<br>read(8, 0x25ea604, 4096)                = -1 EAGAIN (Resource temporarily unavailable)<br>
clock_gettime(CLOCK_MONOTONIC, {263050, 271074225}) = 0<br> <br></div></div>