[SLL] technically speaking, what might the vendor do?

Mathew D. Watson watson at visiongate3d.com
Wed Dec 3 14:59:47 PST 2008


Derek Simkowiak wrote:
> /> ...made no difference in the camera's performance./
> 
>    Dang.  I thought that would be it.
> 

Bummer huh? Would'a been hot if it had worked.

>    You mentioned it was a C++ app (w/SWIG to talk to Java).

                                              (SWIG)<>(java app)
(camera)<>(GigE)<>(vendor API)<>(my c++ API)/
                                             \_(c++ app)
^____________________________^
corruption happens here

The Java code simply displays my image. I test with and without Java in 
the mix to be safe, but I haven't seen a difference yet.

> It might be 
> useful to get a profile of your code, so you can see which function call 
> is taking so much time (and yet running smoothly as root).  The 
> particular function name might give a data point as to what the actual 
> bottleneck is.

The corruption happens inside the vendor's API where I can't profile (or 
can I?). I am planning to try and use strace to "profile" their code, as 
  strace works without source code. Strace looks intimidating, but it 
may be worth the effort.

>    Besides looking at the source code, doing some more general system 
> profiling may be necessary to get some actual data on where the 
> bottleneck is.  Here's one tool of many:
> 
> http://www.daimi.au.dk/~sandmann/sysprof/ 
> <http://www.daimi.au.dk/%7Esandmann/sysprof/>

Another tool that doesn't require source code. Good!

>    Another step, if you have time, would be to follow Glenn's suggestion 
> (2008-12-02 11:20AM) and install the real time kernel (just as a test if 
> nothing else).

I'm really interested in following Glenn's suggestion. Several people at 
work have been talking about real time linux for a while now, but 
everything I've read makes it look difficult to install. Reading Glenn's 
  "instructions" was a real (pleasant) surprise.

I'm too chicken to add any complexity to my current system. It works, if 
not as well as I would like, so I'll try out Ubuntu Studio on another 
system that I'm preparing for that purpose.

I'll report back when I've had a chance to port my code over (should be 
easy).

Mat



More information about the linux-list mailing list