Mailing List Archive

Issue with '0' total rings in pfring stats file
Good morning,

If I run a 'cat /proc/net/pf_ring/info' command, I receive the following
output:

[root@localhost opt]# cat /proc/net/pf_ring/info
PF_RING Version : 6.5.0
(dev:b947515496b2f18ded1b2b166c1a96ba136bd626)
Total rings : *0*

Standard (non ZC) Options
Ring slots : 4096
Slot version : 16
Capture TX : Yes [RX+TX]
IP Defragment : No
Socket Mode : Standard
Cluster Fragment Queue : 0
Cluster Fragment Discard : 0

My total # of rings is set to zero and it has been this way ever since I
installed pf_ring from source. I created the following file with these
parameters:

options pf_ring transparent_mode=0 min_num_slots=65534

But my ring slots didn't increase. If I run an 'lsmod | grep pf_ring' and I
can see the pf_ring module loaded, but a 'modinfo pf_ring' command fails.
How do I get my total rings up from zero?
Re: Issue with '0' total rings in pfring stats file [ In reply to ]
Hi
what if you manually load the module?

# rmmod pf_ring
# insmod <path>/pf_ring.ko min_num_slots=65534
# cat /proc/net/pf_ring/info
PF_RING Version : 6.5.0 (dev:002e0bc48dd36335f98f266aa39dbb714957a3b2)
Total rings : 0

Standard (non ZC) Options
Ring slots : 65534
Slot version : 16
Capture TX : Yes [RX+TX]
IP Defragment : No
Socket Mode : Standard
Cluster Fragment Queue : 0
Cluster Fragment Discard : 0

Please note the "total ringsā€ counter is the number of active sockets, did you run an application to see it increasing?

# cat /proc/net/pf_ring/info
PF_RING Version : 6.5.0 (dev:002e0bc48dd36335f98f266aa39dbb714957a3b2)
Total rings : 1

Standard (non ZC) Options
Ring slots : 65534
Slot version : 16
Capture TX : Yes [RX+TX]
IP Defragment : No
Socket Mode : Standard
Cluster Fragment Queue : 0
Cluster Fragment Discard : 0

Alfredo

> On 15 Mar 2017, at 16:36, Espresso Beanies <espressobeanies@gmail.com> wrote:
>
> Good morning,
>
> If I run a 'cat /proc/net/pf_ring/info' command, I receive the following output:
>
> [root@localhost opt]# cat /proc/net/pf_ring/info
> PF_RING Version : 6.5.0 (dev:b947515496b2f18ded1b2b166c1a96ba136bd626)
> Total rings : 0
>
> Standard (non ZC) Options
> Ring slots : 4096
> Slot version : 16
> Capture TX : Yes [RX+TX]
> IP Defragment : No
> Socket Mode : Standard
> Cluster Fragment Queue : 0
> Cluster Fragment Discard : 0
>
> My total # of rings is set to zero and it has been this way ever since I installed pf_ring from source. I created the following file with these parameters:
>
> options pf_ring transparent_mode=0 min_num_slots=65534
>
> But my ring slots didn't increase. If I run an 'lsmod | grep pf_ring' and I can see the pf_ring module loaded, but a 'modinfo pf_ring' command fails. How do I get my total rings up from zero?
> _______________________________________________
> Ntop-misc mailing list
> Ntop-misc@listgateway.unipi.it
> http://listgateway.unipi.it/mailman/listinfo/ntop-misc