* pktgen crash with 2.6.30 @ 2009-07-22 7:35 Or Gerlitz 2009-07-22 8:57 ` the maximal speed of pktgen with 1Gbps NIC jon_zhou 0 siblings, 1 reply; 6+ messages in thread From: Or Gerlitz @ 2009-07-22 7:35 UTC (permalink / raw) To: netdev using the conf-1-1 script over 2.6.30 I came across this crash in few seconds, I have found a sign for a similar report in the archives nor any fix in the 2.6..30 stable tree, did other people see this as well? pktgen v2.70: Packet Generator for packet performance testing. BUG: spinlock bad magic on CPU#0, kpktgend_0/21800 lock: ffff880215d27418, .magic: 00000000, .owner: <none>/-1, .owner_cpu: 0 Pid: 21800, comm: kpktgend_0 Not tainted 2.6.30 #1 Call Trace: [<ffffffff8032959f>] ? _raw_spin_lock+0x22/0x122 [<ffffffffa04a11f6>] ? pktgen_thread_worker+0xf45/0x126e [pktgen] [<ffffffffa03ba037>] ? vlan_dev_hwaccel_hard_start_xmit+0x0/0x65 [8021q] [<ffffffff8049ee1e>] ? thread_return+0x3e/0x97 [<ffffffff80246cda>] ? autoremove_wake_function+0x0/0x2e [<ffffffffa04a02b1>] ? pktgen_thread_worker+0x0/0x126e [pktgen] [<ffffffffa04a02b1>] ? pktgen_thread_worker+0x0/0x126e [pktgen] [<ffffffff80246bd0>] ? kthread+0x54/0x84 [<ffffffff8020bdba>] ? child_rip+0xa/0x20 [<ffffffff804a065b>] ? _spin_unlock_irq+0xb/0xc [<ffffffff80246b7c>] ? kthread+0x0/0x84 [<ffffffff8020bdb0>] ? child_rip+0x0/0x20 Or. ^ permalink raw reply [flat|nested] 6+ messages in thread
* the maximal speed of pktgen with 1Gbps NIC 2009-07-22 7:35 pktgen crash with 2.6.30 Or Gerlitz @ 2009-07-22 8:57 ` jon_zhou 2009-07-22 12:56 ` Jesper Dangaard Brouer 0 siblings, 1 reply; 6+ messages in thread From: jon_zhou @ 2009-07-22 8:57 UTC (permalink / raw) To: netdev hi anyone knows the maximal speed of pktgen with 1Gbps NIC? on my pc, the maximal speed is 500 Mbps when the packet size is 100 bytes(with boardcom 5755) possibly more fast? Regards, zhou rui ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: the maximal speed of pktgen with 1Gbps NIC 2009-07-22 8:57 ` the maximal speed of pktgen with 1Gbps NIC jon_zhou @ 2009-07-22 12:56 ` Jesper Dangaard Brouer 2009-07-22 15:12 ` Ben Hutchings 0 siblings, 1 reply; 6+ messages in thread From: Jesper Dangaard Brouer @ 2009-07-22 12:56 UTC (permalink / raw) To: jon_zhou; +Cc: netdev On Wed, 22 Jul 2009, jon_zhou@agilent.com wrote: > anyone knows the maximal speed of pktgen with 1Gbps NIC? You are limited by the number of packets per second (pps) your machine can generate. This limitation is given by the CPU speed and the NIC used. The maximum pps I have seen with pktgen at 1Gbit/s is 1200 kpps. 1Gbit/s wire speed pps with 64 bytes packets is approx 1953 kpps. (1000*10^6/(64*8) = 1953125) > on my pc, the maximal speed is 500 Mbps when the packet size is 100 bytes(with boardcom 5755) cat /proc/net/pktgen/ethXX to see how many pps pktgen is generating. Quick calc tells me you a doing 625 kpps (500*10^6/(100*8) = 625000). Cheers, Jesper Brouer -- ------------------------------------------------------------------- MSc. Master of Computer Science Dept. of Computer Science, University of Copenhagen Author of http://www.adsl-optimizer.dk ------------------------------------------------------------------- ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: the maximal speed of pktgen with 1Gbps NIC 2009-07-22 12:56 ` Jesper Dangaard Brouer @ 2009-07-22 15:12 ` Ben Hutchings 2009-07-22 17:12 ` Bob Gilligan 2009-07-22 17:25 ` Stephen Hemminger 0 siblings, 2 replies; 6+ messages in thread From: Ben Hutchings @ 2009-07-22 15:12 UTC (permalink / raw) To: Jesper Dangaard Brouer; +Cc: jon_zhou, netdev On Wed, 2009-07-22 at 14:56 +0200, Jesper Dangaard Brouer wrote: > On Wed, 22 Jul 2009, jon_zhou@agilent.com wrote: > > > anyone knows the maximal speed of pktgen with 1Gbps NIC? > > You are limited by the number of packets per second (pps) your machine can > generate. This limitation is given by the CPU speed and the NIC used. > > The maximum pps I have seen with pktgen at 1Gbit/s is 1200 kpps. > > 1Gbit/s wire speed pps with 64 bytes packets is approx 1953 kpps. > (1000*10^6/(64*8) = 1953125) [...] You need to take the inter-packet gap into consideration too. Ben. -- Ben Hutchings, Senior Software Engineer, Solarflare Communications Not speaking for my employer; that's the marketing department's job. They asked us to note that Solarflare product names are trademarked. ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: the maximal speed of pktgen with 1Gbps NIC 2009-07-22 15:12 ` Ben Hutchings @ 2009-07-22 17:12 ` Bob Gilligan 2009-07-22 17:25 ` Stephen Hemminger 1 sibling, 0 replies; 6+ messages in thread From: Bob Gilligan @ 2009-07-22 17:12 UTC (permalink / raw) To: Ben Hutchings; +Cc: Jesper Dangaard Brouer, jon_zhou, netdev Ben Hutchings wrote: > On Wed, 2009-07-22 at 14:56 +0200, Jesper Dangaard Brouer wrote: >> On Wed, 22 Jul 2009, jon_zhou@agilent.com wrote: >> >>> anyone knows the maximal speed of pktgen with 1Gbps NIC? >> You are limited by the number of packets per second (pps) your machine can >> generate. This limitation is given by the CPU speed and the NIC used. >> >> The maximum pps I have seen with pktgen at 1Gbit/s is 1200 kpps. >> >> 1Gbit/s wire speed pps with 64 bytes packets is approx 1953 kpps. >> (1000*10^6/(64*8) = 1953125) > [...] > > You need to take the inter-packet gap into consideration too. Yes. Usually when people talk about the "64-byte PPS rate" they are referring to the maximum rate of minimum size ethernet frames. The 64-bytes includes the src/dst addr fields, type field and CRC, but does not include the preamble (7 bytes), SOF (1 byte) or IPG (12 bytes). Adding these in gives a minimum size frame of 84 bytes. This works out to a max rate of ( 1,000,000,000 / (84 * 8) ) = 1,488,095 PPS. Bob. ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: the maximal speed of pktgen with 1Gbps NIC 2009-07-22 15:12 ` Ben Hutchings 2009-07-22 17:12 ` Bob Gilligan @ 2009-07-22 17:25 ` Stephen Hemminger 1 sibling, 0 replies; 6+ messages in thread From: Stephen Hemminger @ 2009-07-22 17:25 UTC (permalink / raw) To: Ben Hutchings; +Cc: Jesper Dangaard Brouer, jon_zhou, netdev On Wed, 22 Jul 2009 17:12:32 +0200 Ben Hutchings <bhutchings@solarflare.com> wrote: > On Wed, 2009-07-22 at 14:56 +0200, Jesper Dangaard Brouer wrote: > > On Wed, 22 Jul 2009, jon_zhou@agilent.com wrote: > > > > > anyone knows the maximal speed of pktgen with 1Gbps NIC? > > > > You are limited by the number of packets per second (pps) your machine can > > generate. This limitation is given by the CPU speed and the NIC used. > > > > The maximum pps I have seen with pktgen at 1Gbit/s is 1200 kpps. > > > > 1Gbit/s wire speed pps with 64 bytes packets is approx 1953 kpps. > > (1000*10^6/(64*8) = 1953125) > [...] > > You need to take the inter-packet gap into consideration too. > > Ben. Speed Packets/sec TCP MByte/sec 10 M 14880.95 1,170,351 100 M 148809.52 11,703,511 1 G 1488095.24 123,755,256 10 G 14880952.38 1,237,552,556 40 G 59523809.52 4,950,210,224 100 G 148809523.81 12,375,525,559 * TCP assumes timestamp option and jumbo frames if possible. http://www.erg.abdn.ac.uk/users/gorry/course/lan-pages/enet-calc.html -- ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-07-22 17:25 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2009-07-22 7:35 pktgen crash with 2.6.30 Or Gerlitz 2009-07-22 8:57 ` the maximal speed of pktgen with 1Gbps NIC jon_zhou 2009-07-22 12:56 ` Jesper Dangaard Brouer 2009-07-22 15:12 ` Ben Hutchings 2009-07-22 17:12 ` Bob Gilligan 2009-07-22 17:25 ` Stephen Hemminger
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).