Thanks Luca.
I am now running a single threaded nProbe instance tied to eth0@X and its
generating flow packets using the command:
nprobe -i eth0@1 -n <IP> -u 1 -Q 2 -V 5
I have some follow up questions.
- How do I know how many instances to start? See load_dna_driver.sh result
below.
- insmod ./ixgbe.ko MQ=1,1 RSS=8,8 FdirMode=0,0
- How can I tell packets received on each queue?
- ‘ethtool –S eth0.rx_queue_X_packets’ shows 0 for all values.
- ‘pfcount –i eth0@X’ and ‘pfcount_multichannel –i eth0’ shows 0 for all
values.
root@host:~/PF_RING/drivers/DNA/ixgbe-3.3.9-DNA/src# ./load_dna_driver.sh
irqbalance: no process found
Configuring eth0
no rx vectors found on eth0
no tx vectors found on eth0
eth0 mask=1 for /proc/irq/81/smp_affinity
eth0 mask=2 for /proc/irq/82/smp_affinity
eth0 mask=4 for /proc/irq/83/smp_affinity
eth0 mask=8 for /proc/irq/84/smp_affinity
eth0 mask=10 for /proc/irq/85/smp_affinity
eth0 mask=20 for /proc/irq/86/smp_affinity
eth0 mask=40 for /proc/irq/87/smp_affinity
eth0 mask=80 for /proc/irq/88/smp_affinity
root@host# ethtool -S eth0
NIC statistics:
rx_packets: 1322154992
tx_packets: 0
rx_bytes: 1819886966
tx_bytes: 0
rx_errors: 0
tx_errors: 0
rx_dropped: 0
tx_dropped: 0
multicast: 0
collisions: 0
rx_over_errors: 0
rx_crc_errors: 0
rx_frame_errors: 0
rx_fifo_errors: 0
rx_missed_errors: 0
tx_aborted_errors: 0
tx_carrier_errors: 0
tx_fifo_errors: 0
tx_heartbeat_errors: 0
rx_pkts_nic: 9916588222
tx_pkts_nic: 0
rx_bytes_nic: 4294440326632
tx_bytes_nic: 0
lsc_int: 2
tx_busy: 0
non_eop_descs: 0
broadcast: 0
rx_no_buffer_count: 0
tx_timeout_count: 0
tx_restart_queue: 0
rx_long_length_errors: 0
rx_short_length_errors: 0
tx_flow_control_xon: 0
rx_flow_control_xon: 0
tx_flow_control_xoff: 0
rx_flow_control_xoff: 0
rx_csum_offload_errors: 0
low_latency_interrupt: 0
alloc_rx_page_failed: 0
alloc_rx_buff_failed: 0
lro_aggregated: 0
lro_flushed: 0
lro_recycled: 0
rx_no_dma_resources: 0
hw_rsc_aggregated: 0
hw_rsc_flushed: 0
rx_flm: 0
fdir_match: 0
fdir_miss: 0
fdir_overflow: 0
fcoe_bad_fccrc: 0
fcoe_last_errors: 0
rx_fcoe_dropped: 0
rx_fcoe_packets: 0
rx_fcoe_dwords: 0
tx_fcoe_packets: 0
tx_fcoe_dwords: 0
tx_queue_0_packets: 0
tx_queue_0_bytes: 0
tx_queue_1_packets: 0
tx_queue_1_bytes: 0
tx_queue_2_packets: 0
tx_queue_2_bytes: 0
tx_queue_3_packets: 0
tx_queue_3_bytes: 0
tx_queue_4_packets: 0
tx_queue_4_bytes: 0
tx_queue_5_packets: 0
tx_queue_5_bytes: 0
tx_queue_6_packets: 0
tx_queue_6_bytes: 0
tx_queue_7_packets: 0
tx_queue_7_bytes: 0
rx_queue_0_packets: 0
rx_queue_0_bytes: 0
rx_queue_1_packets: 0
rx_queue_1_bytes: 0
rx_queue_2_packets: 0
rx_queue_2_bytes: 0
rx_queue_3_packets: 0
rx_queue_3_bytes: 0
rx_queue_4_packets: 0
rx_queue_4_bytes: 0
rx_queue_5_packets: 0
rx_queue_5_bytes: 0
rx_queue_6_packets: 0
rx_queue_6_bytes: 0
rx_queue_7_packets: 0
rx_queue_7_bytes: 0
root@host:~/PF_RING/userland/examples# ./pfcount_multichannel -i eth0
Capturing from eth0
Using PF_RING v.5.0.0
Set thread 1 on core 1/8
Set thread 0 on core 0/8
Set thread 2 on core 2/8
Set thread 3 on core 3/8
=========================
Absolute Stats: [channel=0][0 pkts rcvd][0 pkts dropped]
Total Pkts=0/Dropped=0.0 %
0 pkts - 0 bytes [0.0 pkt/sec - 0.00 Mbit/sec]
=========================
Absolute Stats: [channel=1][0 pkts rcvd][0 pkts dropped]
Total Pkts=0/Dropped=0.0 %
0 pkts - 0 bytes [0.0 pkt/sec - 0.00 Mbit/sec]
=========================
Absolute Stats: [channel=2][0 pkts rcvd][0 pkts dropped]
Total Pkts=0/Dropped=0.0 %
0 pkts - 0 bytes [0.0 pkt/sec - 0.00 Mbit/sec]
=========================
Absolute Stats: [channel=3][0 pkts rcvd][0 pkts dropped]
Total Pkts=0/Dropped=0.0 %
0 pkts - 0 bytes [0.0 pkt/sec - 0.00 Mbit/sec]
=========================
Aggregate stats (all channels): [-0.0 pkt/sec][0 pkts dropped]
=========================
From: [email protected]
[mailto:[email protected]] On Behalf Of Luca Deri
Sent: Tuesday, November 08, 2011 11:38 PM
To: [email protected]
Cc: [email protected]
Subject: Re: [Ntop-misc] Register more queues to process packets
Els
You need to run one nProbe per queue (I.e. -i eth0@X) in single threaded mode
(i.e. remove -O).
Luca
Sent from my iPad
On 09/nov/2011, at 05:06, Henning Els <[email protected]> wrote:
Hello,
I installed fresh copies of
- PF_RING 5.0
- nprobe_6.6.3_091011_proplugins
- Using DNA driver
o PF_RING/drivers/DNA/ixgbe-3.3.9-DNA/
- Ubuntu 11.04
After installation, and registering the DNA driver, I use the following command
to launch nprobe:
nprobe -i eth0 -q 10.204.253.104:1111 -n 10.204.253.101:2055 -t 30 -l 10 -s 10
-O 2 -u 1 -Q 2 -V 5
I see every second line below indicates 0 pps and 0 bps. How can I get more
queues to process packets?
Thx, -henning
08/Nov/2011 20:55:16 [nprobe.c:2848] Welcome to nprobe v.6.6.3 ($Revision: 2072
$) for i686-pc-linux-gnu with native PF_RING acceleration
08/Nov/2011 20:55:16 [nprobe.c:2870] IPv6 traffic will NOT be
exported/accounted by this probe
08/Nov/2011 20:55:16 [nprobe.c:2871] due to configuration options (e.g. use
NetFlow v9)
08/Nov/2011 20:55:16 [plugin.c:147] Loading plugins [.so] from ./plugins
08/Nov/2011 20:55:16 [dbPlugin.c:175] WARNING: DB support is not enabled
(disabled at compile time)
08/Nov/2011 20:55:16 [nprobe.c:3995] Welcome to nprobe v.6.6.3 for
i686-pc-linux-gnu
08/Nov/2011 20:55:16 [plugin.c:646] 0 plugin(s) enabled
08/Nov/2011 20:55:16 [nprobe.c:3157] Using packet capture length 128
###################################################
# ERROR: You do not seem to have a valid DNA license.
# ERROR: Please get one at http://shop.ntop.org/.
###################################################
# We're now working in demo mode with packet capture
# and transmission limited to 5 minutes
###################################################
08/Nov/2011 20:55:16 [pro/pf_ring.c:221] Using PF_RING in-kernel accelerated
packet parsing
08/Nov/2011 20:55:16 [nprobe.c:4297] Capturing packets from interface eth0
08/Nov/2011 20:55:16 [util.c:3113] nProbe changed user to 'nobody'
08/Nov/2011 20:55:16 [plugin.c:570] Enabling plugin SMTP Protocol Dissector
08/Nov/2011 20:55:16 [plugin.c:570] Enabling plugin SIP
08/Nov/2011 20:55:16 [plugin.c:570] Enabling plugin MySQL Plugin
08/Nov/2011 20:55:16 [plugin.c:570] Enabling plugin L7 Protocol Recognition
08/Nov/2011 20:55:16 [plugin.c:570] Enabling plugin BGP Update Listener
08/Nov/2011 20:55:16 [plugin.c:570] Enabling plugin RTP
08/Nov/2011 20:55:16 [plugin.c:570] Enabling plugin dump
08/Nov/2011 20:55:30 [nprobe.c:1542] Average traffic: [queue 0][1.600 M pps][5
Gb/sec]
08/Nov/2011 20:55:30 [nprobe.c:1542] Average traffic: [queue 1][0.000 pps][0
b/sec]
08/Nov/2011 20:55:40 [nprobe.c:1542] Average traffic: [queue 0][1.600 M pps][5
Gb/sec]
08/Nov/2011 20:55:40 [nprobe.c:1542] Average traffic: [queue 1][0.000 pps][0
b/sec]
08/Nov/2011 20:55:50 [nprobe.c:1542] Average traffic: [queue 0][1.600 M pps][5
Gb/sec]
08/Nov/2011 20:55:50 [nprobe.c:1542] Average traffic: [queue 1][0.000 pps][0
b/sec]
_______________________________________________
Ntop-misc mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-misc
_______________________________________________
Ntop-misc mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-misc