[Ntop-misc] n2disk/disk2n: Problem with PF_RING ZC

2017-05-17 Thread Lüthi Marcel FUB
Hello.

I want to maximize the performance for n2disk/disk2n and use PF_RING ZC.
PF_RING only is working as expected, but this doesn't:

[root@myhost]# pfcount -i zc:eno1
pfring_open error [No such device] (pf_ring not loaded or interface zc:eno1 is 
down ?)

[root@myhost]# pfsend -i zc:eno1
Sending packets on zc:eno1
pfring_open error [No such device] (pf_ring not loaded or interface zc:eno1 is 
down ?)

[root@myhost]# /usr/local/bin/n2disk10g -i zc:eno1 -o /tmp
17/May/2017 15:51:30 [n2disk.c:5013] Welcome to n2disk10g v.2.7.170308 (r4774) 
[Haswell]
17/May/2017 15:51:30 [n2disk.c:5040] Running on 2 node(s) system with 32 
core(s). NUMA affinity set to node -1.
17/May/2017 15:51:30 [n2disk.c:5081] Using PF_RING for packet capture
17/May/2017 15:51:30 [n2disk.c:5110] Multithread support enabled
17/May/2017 15:51:30 [n2disk.c:5228] Dump files max size is set to 100 MB
17/May/2017 15:51:30 [n2disk.c:5245] Buffer memory is set to 200 MB (x 2 pcap 
files)
17/May/2017 15:51:30 [n2disk.c:5280] Using directory /tmp for dump files
17/May/2017 15:51:30 [n2disk.c:5285] No sub-directories will be created
17/May/2017 15:51:30 [n2disk.c:5290] Up to 1000 files will be written before 
overwriting
17/May/2017 15:51:30 [n2disk.c:5342] Dumping data in 0.1 MB chunks
17/May/2017 15:51:30 [n2disk.c:5582] Memory allocated successfully
17/May/2017 15:51:30 [n2disk.c:3525] Using packet timestamps from pf_ring
17/May/2017 15:51:30 [n2disk.c:3537] ERROR: Unable to open PF_RING device 
zc:eno1 [globals.ro.snaplen=1536]
17/May/2017 15:51:30 [n2disk.c:918] Caught termination signal -1...
17/May/2017 15:51:30 [n2disk.c:5589] ERROR: Unable to initialize packet reader
17/May/2017 15:51:30 [n2disk.c:5590] ERROR: Has the pf_ring kernel module been 
loaded ?
[root@myhost]#


The kernel modules seem to be loaded:

[root@myhost]# sudo lsmod | grep 'pf_ring\|ixgbe'
pf_ring  1229913  16
ixgbe 263239  0
mdio   13807  1 ixgbe
ptp19231  2 igb,ixgbe
dca15130  3 igb,ixgbe,ioatdma


The interface looks OK:

[root@myhost]# ethtool eno1
Settings for eno1:
 Supported ports: [ FIBRE ]
 Supported link modes:   1baseT/Full
 Supported pause frame use: No
 Supports auto-negotiation: No
 Advertised link modes:  1baseT/Full
 Advertised pause frame use: No
 Advertised auto-negotiation: No
 Speed: 1Mb/s
 Duplex: Full
 Port: Other
 PHYAD: 0
 Transceiver: external
 Auto-negotiation: off
 Supports Wake-on: umbg
 Wake-on: g
 Current message level: 0x0007 (7)
   drv probe link
 Link detected: yes

[root@myhost]# ethtool zc:eno1
Settings for zc:eno1:
Cannot get device settings: No such device
Cannot get wake-on-lan settings: No such device
Cannot get message level: No such device
Cannot get link status: No such device
No data available


Environment:
  Server: HPE ProLiant DL380
  RAM: 64 GB
  Network:
[root@myhost]# lspci | grep -i 'ethernet'
03:00.0 Ethernet controller: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ 
Network Connection (rev 01)
03:00.1 Ethernet controller: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ 
Network Connection (rev 01)
0a:00.0 Ethernet controller: Intel Corporation 82580 Gigabit Network 
Connection (rev 01)
0a:00.1 Ethernet controller: Intel Corporation 82580 Gigabit Network 
Connection (rev 01)
0a:00.2 Ethernet controller: Intel Corporation 82580 Gigabit Network 
Connection (rev 01)
0a:00.3 Ethernet controller: Intel Corporation 82580 Gigabit Network 
Connection (rev 01)


What am I doing wrong?
Thanks for any help!

Regards,
Marcel


___
Ntop-misc mailing list
Ntop-misc@listgateway.unipi.it
http://listgateway.unipi.it/mailman/listinfo/ntop-misc

Re: [Ntop-misc] Question about pf_ring installation rpm (pf_ring 6.6.0)

2017-05-17 Thread Amir Kaduri
Thanks for the prompt reply.
Amir

On Tue, May 16, 2017 at 12:09 PM, Alfredo Cardigliano
 wrote:
> Hi Amir
>
>> On 16 May 2017, at 10:44, Amir Kaduri  wrote:
>>
>> Hello,
>>
>> I assume that I miss a minor detail, but I'll appreciate explaining
>> how the following files are deployed in the right place on the machine
>> when the pf_ring installation rpm is installed:
>> 1. /usr/local/pfring/kernel/pf_ring.ko:
>>In source file ../package/rpm/pfring.spec.in line 37, the copy
>> command is commented out.
>
> DKMS build and install the module when installing the package, I added some 
> comments to the spec.
> This is where the module should be installed by dkms:
>
> /usr/lib/modules/`uname -r`/weak-updates/pf_ring.ko
>
>> 2. /etc/systemd/system/pf_ring.service:
>>The file itself appears in the source code under
>> ../package/etc/systemd/system/pf_ring.service,
>>but it doesn't appear in source file ../package/rpm/pfring.spec.in
>
> Added to the spec (it was installed for ubuntu only)
>
> Alfredo
>
>>
>> Thanks,
>> Amir
>> ___
>> Ntop-misc mailing list
>> Ntop-misc@listgateway.unipi.it
>> http://listgateway.unipi.it/mailman/listinfo/ntop-misc
>
>
> ___
> Ntop-misc mailing list
> Ntop-misc@listgateway.unipi.it
> http://listgateway.unipi.it/mailman/listinfo/ntop-misc
___
Ntop-misc mailing list
Ntop-misc@listgateway.unipi.it
http://listgateway.unipi.it/mailman/listinfo/ntop-misc