Avnu / OpenAvnu

OpenAvnu - an Avnu sponsored repository for Time Sensitive Network (TSN and AVB) technology
470 stars 290 forks source link

simple_listener is using higher CPU than simple_talker #721

Open vasuhere opened 7 years ago

vasuhere commented 7 years ago

Hi, simple listener is using higher CPU compared to talker (from benchmark data here). What is the reason?

Is it because of libpcap pooling?. I have I217-LM for listener PC. Is there an API to take packets from I217-LM driver (similar to igb_xmit to write data to I210 driver on talker side)

pinealservo commented 7 years ago

We have not done detailed profiling related to those benchmark results, so I can't say why the listener might use more CPU than the talker.

There is no special driver for any NIC except the i210; it is the only one that supports timed launch timestamps in the descriptors.

vasuhere commented 6 years ago

Thanks @pinealservo .

I was able to bring down the CPU loading on listener by changing the read timeout value in pcap_open_live (refereed here).