Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - io-pkt and QNET stalled: (2 Items)
   
io-pkt and QNET stalled  
Hi everyone,

We have a big problem with QNX 6.4.1 and its implementation
of io-pkt and qnet. Our targets are 2 boards based on MPC5200.

if we launch some simple clients and servers using MsgSend/MsgReceive
through qnet over ethernet, it's fine and/proc/qnetstats doesn't report
any error. (look at the sample code for name_attach(), we may have
several clients for one server)

But, if we change the priorities of our client/server (let's say : a client
at 15, a server at 12, ...etc... but always below 19), we get some
serious troubles :

- qnetstats reports "tx_throttled" and "rx_seq_order", with a lot of timeouts
- some messages are delayed for more than 200 ms (average time is 18 ms)
- and worst : sometime, io-pkt hangs for more than 1 seconds !!!
- We can watch this delay with wireshark.

furthermore, If we set back our processes at the exact same priority (ie : 14, more
than the default 10), it' ok.

It's like priority inheritance create some nasty problem inside
io-pkt. Any ideas ?

Have a nice day.
Emmanuel
Re: io-pkt and QNET stalled  
Hi,

A little update on this issue :

- a part of the problem was the network driver "devn-mpc5200". It limits
the number of RX/TX buffers to 64/64 (default is 32/64), which is way too low !
You should recompile the driver from source, changing "mpc5200.h" to allow 256 RX buffers.

- devnp-shim and io-pkt in QNX 6.4.1 are also a source of trouble. Contact your FAE
to get a new software (bug fix from QNX 6.5.0)