# Scheduler internals

**URL:** <https://www.ruby-forum.com/t/scheduler-internals/164846>\
**Category:** GNU Radio\
**Created:** [April 6, 2009, 4:16pm UTC](https://www.ruby-forum.com/t/scheduler-internals/164846 "2009-04-06T16:16:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dimitris\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/c6cbf5/32.png) [@Dimitris\_S](https://www.ruby-forum.com/u/Dimitris_S)\
**Post date:** [April 6, 2009, 4:16pm UTC](https://www.ruby-forum.com/t/scheduler-internals/164846/1 "2009-04-06T16:16:31Z")

</div>

I have a flowgraph that is saturating my CPU, causing underruns.  
I would like to find out the block (i.e. thread) that is loading the  
cpu most heavily, in order to see if there’s anything I can do to make  
it lighter (and avoid having to try it on a more powerful system).  
I have run “top” and pressed “H” to show threads, and see a lot of  
“python” threads, most of them under 10% cpu load, and only one of  
them at 49% cpu load, so that one is likely the culprit.  
Is there some way to extract this information from the GnuRadio  
scheduler?

Thanx

Dimitris S.  
“If you think you’re too small to make a difference, try sleeping with  
a mosquito!” - Amnesty International

---

<div class="post-metadata">

**Author:** ![Dimitris\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/c6cbf5/32.png) [@Dimitris\_S](https://www.ruby-forum.com/u/Dimitris_S)\
**Post date:** [April 6, 2009, 5:33pm UTC](https://www.ruby-forum.com/t/scheduler-internals/164846/2 "2009-04-06T17:33:22Z")

</div>

On Mon, Apr 06, 2009 at 04:14:21PM +0200, Dimitris S. wrote:

> Dimitris S.

Try using oprofile.

We’ll eventually add per-block performance statistics, but that’s  
pretty low on the priority list at this point.

Eric

---

<div class="post-metadata">

**Author:** ![Dimitris\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/c6cbf5/32.png) [@Dimitris\_S](https://www.ruby-forum.com/u/Dimitris_S)\
**Post date:** [April 6, 2009, 6:00pm UTC](https://www.ruby-forum.com/t/scheduler-internals/164846/3 "2009-04-06T18:00:24Z")

</div>

Thank you, Eric

Dimitris S.  
“If you think you’re too small to make a difference, try sleeping with  
a mosquito!” - Amnesty International
