RE: Using ethernet device as efficient small packet generator
From: juice <hidden>
Date: 2011-01-21 12:12:39
Le vendredi 21 janvier 2011 à 13:44 +0200, juice a écrit : You should try CLONE_SKB="clone_skb 10" ... pgset "$CLONE_SKB" Because I suspect you hit a performance problem on skb allocation/filling/use/freeing
Actually, that makes the performance worse:
(Now I tried it with kernel 2.6.37, which is currently running)
root@d8labralinux:/var/home/juice/pkt_test# cat /proc/net/pktgen/eth1
Params: count 10000000 min_pkt_size: 60 max_pkt_size: 60
frags: 0 delay: 0 clone_skb: 10 ifname: eth1
flows: 0 flowlen: 0
queue_map_min: 0 queue_map_max: 0
dst_min: 10.10.11.2 dst_max:
src_min: src_max:
src_mac: 00:1b:21:7c:e5:b1 dst_mac: 00:04:23:08:91:dc
udp_src_min: 9 udp_src_max: 9 udp_dst_min: 9 udp_dst_max: 9
src_mac_count: 0 dst_mac_count: 0
Flags:
Current:
pkts-sofar: 10000000 errors: 0
started: 2555660074us stopped: 2569239323us idle: 3484us
seq_num: 10000001 cur_dst_mac_offset: 0 cur_src_mac_offset: 0
cur_saddr: 0x0 cur_daddr: 0x20b0a0a
cur_udp_dst: 9 cur_udp_src: 9
cur_queue_map: 0
flows: 0
Result: OK: 13579248(c13575763+d3484) nsec, 10000000 (60byte,0frags)
736417pps 353Mb/sec (353480160bps) errors: 0
You can use perf tool to get some performance profile while your pktgen session is running # cd tools/perf # make ... # ./perf top
I can try that. Where do I get the performance profiler tool? Yours, Jussi Ohenoja