Re: rt_make_soft_real_time hangs my process

"Duane AW. Jeffery" <[email protected]>
Newsgroups gmane.linux.real-time.rtai
Message-ID <SN1PR0701MB18215127E7B3B1B4AA8492ADBD590@SN1PR0701MB1821.namprd07.prod.outlook.com>
Its running on a video processing software, and we're doing it to ensure our image analysis routine is not interrupted.

Each time a new frame arrives from the camera, it goes hard, processes the frame, and returns soft.  Framerates range from 100 to ~9000 fps depending on ROI.

I think I might know what's going on though.  The process that this runs on creates a separate thread for acquiring the frames from the camera with its affinity set so that it runs on a separate core, and the realtime part is only for the processing of a frame after it arrived.  Both functions run under the same process though (ie. ps aux only shows one item), and so I think that might be my problem.  Can I even legally call rt_make_hard_real_time() on a multithreaded process?

-Duane

-----Original Message-----
From: Paolo Mantegazza [mailto:[email protected]] 
Sent: Friday, June 03, 2016 9:59 AM
To: Duane AW. Jeffery <[email protected]>; '[email protected]' <[email protected]>
Subject: RE: rt_make_soft_real_time hangs my process

Can you provide the frequency of the hard7soft switches? 
If you a doing it for a controlled approach to Linux syscalls , try letting RTAI take care of it and see what happens. In such a view you might even try  using a Linux  server .
That said, eventually this is the case in which it should not be too complex to set a neutral test up, so that I cantry to diagnose the problem you are wittnessing.

Paolo
________________________________________
From: Rtai [[email protected]] on behalf of Duane AW. Jeffery [[email protected]]
Sent: Friday, June 3, 2016 3:12 PM
To: '[email protected]'
Subject: [Rtai] rt_make_soft_real_time hangs my process

Hi all,

I'm running a shiny new system on Linux 4.1.18 w/ RTAI 5 from vulcano, and it seems to be going well.  (System is derived from a Slackware 14.1 install)

I seem to be having a small problem with one of my applications where it calls into rt_make_soft_real_time() which never returns.  It previously calls rt_make_hard_real_time(), and calls the pair in a loop, so it switches back and forth fairly frequently.

Any ideas?

-Duane
_______________________________________________
Rtai mailing list
[email protected]
https://mail.rtai.org/cgi-bin/mailman/listinfo/rtai
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.