-
Notifications
You must be signed in to change notification settings - Fork 468
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use multiple cores when replaying PCAP file data? #1151
Comments
As I understand it, sending PCAPs is generally limited to one thread. Here is quote from manual:
It makes sense to me as PCAP has defined order of packets. You can't send second packet before first packet. Even if you split packets among cores, you would need to have some synchronization mechanism to guarantee order of packets, which would slow performance. |
Thanks for your reply. Is it possible that we specify different PCAP files to different cores? For example, I have 3 PCAP files. Can I set each thread to read a PCAP file? In this case, the 3 threads don't have to synchronize the order of packets. |
I don't think this is currently supported. Also, the push_remote method you used accepts only one PCAP file at once. However, if you have more physical interfaces/NIC ports, you could start multiple TRex instances. Each instance could run single PCAP independently. |
Hi team,
When I tried to use trex to load PCAP file and replay the packets data, I found that only one core is fully used even I specified
-c 10
in the command line. And the max TX rate is about 3Mpps. How can I use multiple cores to replay packets of PCAP file to get a higher TX rate? Do you have some suggestions on it? Thanks.Below is my environment and config.
The text was updated successfully, but these errors were encountered: