OpenQNX :: The QNX Community Portal

Oct 07, 2008 - 11:28 AM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 50 unlogged users and 0 registered users online.

You can log-in or register for a user account here.

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
richt119
Post subject: recvfrom waiting for lower priority process to block  PostPosted: Jan 02, 2008 - 04:14 PM
Active Member


Joined: Feb 04, 2007
Posts: 10

I am using QNX 6.3.2 core on IXP425 ARMBE.
I have a process (Process 1) which opens a UDP multicast socket and blocks on a recvfrom until it receives a packet for the multicast group, it puts the data received into a database and then does a sendto, sending data out to the multicast group.
Data is received every 3 to 4ms after sending data to the multcast group.
This process is running at priority 12.

I have another process (Process 2) which runs for 30ms then blocks for 100ms.
This process is running at priority 10 in FIFO scheduling.

I have noticed that the recvfrom in process 1 does not unblock until process 2 blocks, this delays my sendto by upto 30ms.
If process 2 scheduling is set to round robin then the recvfrom waits until the process 2 timeslices, this delays my sendto by upto 4ms.

It looks like the priority 12 process is waiting for the priority 10 process to block or timeslice.
Is this correct/expected?

I need to reply to data received as quickly as possible.
Do I have to raise the priority of io-net to make the recvfrom unblock as soon as a packet of data is received?
Why does the recvfrom/io-net not inherit the priority of process 1 (12)?

Thanks for the help,
Rich
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
All logos and trademarks in this site are property of their respective owners. The comments are property of their posters.
Powered by OpenQNX: The QNX Community Portal Site
QNX and the QNX logo are registered trademarks of QNX Software Systems.