LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-11-2015, 10:32 AM   #1
EmbeddedSteve
LQ Newbie
 
Registered: Sep 2006
Posts: 17

Rep: Reputation: 0
pktgen setup


Greetings,
I've got some questions related to the Linux Tool: pktgen
I have networking experience, though never used this tool much. I understand the concepts of packet generation, etc (having done it the hard way back in the day of 10 MB coax NIC's).
From what I read the kernel generation, it says there is 1 thread per core "per device" - I assume that "device" == a single ethernet port?
I'm finding limitation in trying to run multiple ports (on I/O cards in an embedded chassis type setup). Tried 8 ports, with a 6 core CPU, but only 6 ports ran. So if the 1:1 is true, how can I test more ports??? Is there a way to add more devices to reach core? Or somehow get more threads running to which I can attach more ports?
Is there something else (saw Nping??) that might be more suitable for many port stress testing???
TIA for your feedback!
Regards,
Stephen
 
Old 06-13-2015, 09:49 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by EmbeddedSteve View Post
Greetings,
I've got some questions related to the Linux Tool: pktgen
(...)
From what I read the kernel generation, it says there is 1 thread per core "per device" - I assume that "device" == a single ethernet port?
There is a white paper discussing pktgen, found here for example: http://www.cs.columbia.edu/~nahum/w6...5v2-pktgen.pdf.

Not having read through it, I don't know how it can be done, but it is obviously possible to have one pktgen thread control more than one NIC. Quote: "The main goal is to have one pktgen thread per CPU which can then drive one or more NICs."

Good luck!
 
Old 06-15-2015, 10:42 AM   #3
EmbeddedSteve
LQ Newbie
 
Registered: Sep 2006
Posts: 17

Original Poster
Rep: Reputation: 0
@berndbaush - yes, I saw this paper, but it's from 2005, a bit dated. . . I'll take a closer look.
I can somewhat agree with the "1 thread per port" concept, but this becomes limited when the # of ports is much greater than the number of cores you have. . .
Thanks!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Pktgen mbzadegan Linux - Networking 1 12-26-2013 02:20 PM
Small distro with PKTGEN module ? mbzadegan Linux - Distributions 0 09-05-2013 01:44 PM
pktgen amitk.gupta09 Linux - Newbie 5 11-17-2011 10:03 PM
pktgen: cannot make work the udp port dst range cycling stabul Linux - Networking 1 11-13-2009 08:22 AM
pktgen module prasannapm Linux - Kernel 0 01-29-2007 06:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration