Mathias TNAPI has been designed for packet capture and not for transmission. This means that the optimization is on RX. Do not expect to see any performance improvement (or perhaps some slow-down as the code has been tunes for RX) on TX.
Luca On Feb 1, 2010, at 8:43 AM, <[email protected]> wrote: > Hi! > > I'm using TN_API and I'm having performance problem when using pfcount/pcount. > > I'm using an own stub to send packets to the machine which sends RAW Ethernet > packets. (100 bytes long) > I'm using the igb driver. > > When I send non ip-packets or packets that doesn't have a valid ip-address in > destination or source I get expected results. > 500 k packets/s. But as soon > as I send IP packets with a non-zero destination or source address I get > results in the range of 150 k packets/s. > When using only PF_RING I get > 400k packets/s independently of valid ip > address or not. Does anybody have a clue why it behaves like this. According > to 'top' the cpu-time are spent inside the TNAPI thread. > I have similar result independently of pfcount or pcount. > > PERFORMANCE > INVALID IP-ADDRESS VALID IP-ADDRESS > (or non-ip) > TNAPI with PFRING >500 kpacket/s >150 kpacket/s > TNAPI without PFRING >500 kpacket/s >150 kpacket/s > PFRING aware driver >400 kpacket/s >400 kpacket/s > > I don't have any iptables installed. > No ip-address configured on the interface. > I believe that I've stopped all (other) processes that listen on this > interface. > > Ubuntu 8.10 using 2.6.27-16-generic kernel. > PF_RING 4.1 > TN_API as of 2010-01-19 > Intel(R) Xeon(R) CPU E5450 @ 3.00GHz (most of stuff is limited to > one processor though) > > Can anybody help me in some direction where to look? > > Best regards > > /Mathias Björklund > (This is a resend as the first one seems to get dropped by the moderator due > to not subscribed on list, sorry if you get 2) > > _______________________________________________ > Ntop-misc mailing list > [email protected] > http://listgateway.unipi.it/mailman/listinfo/ntop-misc --- Keep looking, don't settle - Steve Jobs _______________________________________________ Ntop-misc mailing list [email protected] http://listgateway.unipi.it/mailman/listinfo/ntop-misc
