Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - very slow libsocket/io-pkt interface: Page 1 of 16 (16 Items)
   
very slow libsocket/io-pkt interface  
Hi,
running io-pkt on mpc8360, which uses devn-ucc_ec + devnp-shim driver to 
send the data through 1Gbit interface.

I have two tests to measure throughput of the interface:
1. Use raw sockets to send one prepared IP packet (1496 bytes) in a loop
2. Use bpf interface to send one prepared ethernet frame (1506 bytes) in a loop

Both tests yield throughput of about 14Mb/s, sending larger IP packets (32k) yield speed
of about 40Mb/s.

On the other hand, writing a lsm module for io-pkt which sends prepared ethernet frame
from inside io-pkt yields maximum throughput (120Mb/s).

Why is there so huge difference between the two approaches? lsm inside io-pkt also uses shim layer,
so I have to blame slow message passing between libsocket and io-pkt manager.