Contribute to the in-band project: profile the code

Hey all,

There have been many people popping their heads in and out of the list
and sending me private e-mails to check the status of the in-band
project, as most of you are interested in building MACs or using those
wonderful new timestamps so far :slight_smile: Here’s your chance to help the
project and help us push it closer to release.

We are in the stage of profiling the code and are looking for users to
help contribute profile results on different architectures. If you could
contribute to an architecture, we would greatly appreciate it. There is
a wiki with instructions on how to setup and run oprofile on the code,
along with what architectures we already have results for:
http://gnuradio.org/trac/wiki/InBandProfiling

Note that you need a USRP to participate. Once oprofile and the code
is built, each of the 3 applications only takes ~30 seconds.

Any help would be greatly appreciated.

Thanks!
George

Hi!

I have tried to profile your code.

First thing I noted: The PMT library from your svn branch had to be
installed with sudo make install. Now I installed the whole branch.

Next thing:
When I run test_usrp_inband_rx, it takes very long time and produces
messages:
fusb: (rd status -2) No such file or directory

These appear after “Closing the USRP”. There is cpu usage only after
this message, and only one core is used (is that right?). It takes more
than 8 minutes, not 40s as in your example in the wiki. Since it
appeared to hang, I have interrupted the execution.

I followed all instructions, from retrieving the branch up to getting
the new RBF file. My USRPs are from revision 4.2.

My linux is Ubuntu Gutsy Gibbon. Instead of the linux kernel you
specified, I downloaded the source of my kernel.

Dominik

Dominik A. wrote:

Hi!

I have tried to profile your code.

Thank you! :smiley:

What are your machine specs?

First thing I noted: The PMT library from your svn branch had to be
installed with sudo make install. Now I installed the whole branch.

Yes, I forgot to mention this, thank you! I will add it to the wiki.

Next thing:
When I run test_usrp_inband_rx, it takes very long time and produces
messages:
fusb: (rd status -2) No such file or directory

Interesting… I thought we had solved this with a commit before my
e-mail of a USB patch Eric gave me. I tested it with at least 50 runs
on my machine and never saw it again after the patch. Can you try doing
a hard reset on the board (unplug/replug) and try running this again?

These appear after “Closing the USRP”. There is cpu usage only after
this message, and only one core is used (is that right?). It takes more
than 8 minutes, not 40s as in your example in the wiki. Since it
appeared to hang, I have interrupted the execution.

Yes this is too long. To make a long story short there seems to be a
problem clearing the buffers in the FX2 which the USRP hangs on “Closing
the USRP” because it’s waiting for the buffers to clear… we think!

Do a hard reset and try again, does it produce this error every time?

  • George

George N. wrote:

These appear after “Closing the USRP”. There is cpu usage only after
this message, and only one core is used (is that right?). It takes more
than 8 minutes, not 40s as in your example in the wiki. Since it
appeared to hang, I have interrupted the execution.

One more thing, can you monitor your memory usage before seeing this
message?

  • George

OK sorry for the flood :stuck_out_tongue: I’ve finally been able to reproduce this
error on another one of my machines… it does not seem to occur at all
on two of my machines, but on a third it does. Looking in to this now.

  • George

Hi!

Please inform me when you fixed the problem. Then I will retry the
profiling. Unfortunately this week I am very occupied.

My CPU-type is a Xeon. I am running Linux 2.6.22-14-generic.

Dominik