Re: Unable to open interface zc:

Alfredo Cardigliano <[email protected]> Thu, 3 May 2018 11:34:38 +0200
Newsgroups gmane.linux.ntop.general
Message-ID <[email protected]>
Hi
it seems that you actually have 256 pf_ring sockets running (as you’ve seen this
is a hardcoded limit), is that expected?

Alfredo

> On 3 May 2018, at 11:28, milad arabi <[email protected]> wrote:
> 
> here you are:
> # cat /proc/net/pf_ring/info
> PF_RING Version          : 7.1.0 (dev:693af7a76b6f020a267459de87a03f6ce81b60ca)
> Total rings              : 256
> Standard (non ZC) Options
> Ring slots               : 4096
> Slot version             : 17
> Capture TX               : Yes [RX+TX]
> IP Defragment            : No
> Socket Mode              : Standard
> Cluster Fragment Queue   : 0
> Cluster Fragment Discard : 0
> 
> 
> On Thu, May 3, 2018 at 1:54 PM, Alfredo Cardigliano <[email protected] <mailto:[email protected]>> wrote:
> Please provide  cat /proc/net/pf_ring/info
> 
> Alfredo
> 
>> On 3 May 2018, at 11:15, milad arabi <[email protected] <mailto:[email protected]>> wrote:
>> 
>> I ran all commands with root.
>> 
>> After runing pfcount,one line added to dmesg.
>> #dmesg | tail
>> [ 2806.601203] [PF_RING] Exceeded the maximum number of list items
>> [ 3055.221248] [PF_RING] Exceeded the maximum number of list items
>> [ 3055.227500] [PF_RING] Exceeded the maximum number of list items
>> [ 3248.227713] [PF_RING] Exceeded the maximum number of list items
>> [ 3254.607473] [PF_RING] Exceeded the maximum number of list items
>> [ 3908.178971] [PF_RING] Exceeded the maximum number of list items
>> [ 3908.185082] [PF_RING] Exceeded the maximum number of list items
>> [ 3990.816291] [PF_RING] Exceeded the maximum number of list items
>> [224420.870089] [PF_RING] Exceeded the maximum number of list items
>> [224902.613914] [PF_RING] Exceeded the maximum number of list items
>> 
>> maybe this information is irrelevant but:
>> # cat /usr/src/ixgbe-zc-5.0.4.1888/pf_ring.h | grep  MAX_NUM_RING_SOCKETS
>> #define MAX_NUM_RING_SOCKETS          256
>> #define MAX_NUM_LIST_ELEMENTS MAX_NUM_RING_SOCKETS /* sizeof(bits_set) [see below] */
>> #define MAX_NUM_ZC_BOUND_SOCKETS MAX_NUM_RING_SOCKETS
>> 
>> # cat /usr/local/include/linux/pf_ring.h | grep MAX_NUM_RING_SOCKETS
>> #define MAX_NUM_RING_SOCKETS          256
>> #define MAX_NUM_LIST_ELEMENTS MAX_NUM_RING_SOCKETS /* sizeof(bits_set) [see below] */
>> #define MAX_NUM_ZC_BOUND_SOCKETS MAX_NUM_RING_SOCKETS
>> 
>> 
>> On Thu, May 3, 2018 at 1:24 PM, Alfredo Cardigliano <[email protected] <mailto:[email protected]>> wrote:
>> Hi
>> are you running the application as root?
>> Please also provide "dmesg | tail” after running pfcount
>> 
>> Thank you
>> Alfredo
>> _______________________________________________
>> Ntop mailing list
>> [email protected] <mailto:[email protected]>
>> http://listgateway.unipi.it/mailman/listinfo/ntop <http://listgateway.unipi.it/mailman/listinfo/ntop>
> 
> _______________________________________________
> Ntop mailing list
> [email protected] <mailto:[email protected]>
> http://listgateway.unipi.it/mailman/listinfo/ntop <http://listgateway.unipi.it/mailman/listinfo/ntop>
> 
> _______________________________________________
> Ntop mailing list
> [email protected]
> http://listgateway.unipi.it/mailman/listinfo/ntop

_______________________________________________
Ntop mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEunYLiJIhvMrSEXzAm6qh6WCZ23EFAlrq164ACgkQm6qh6WCZ
23HJwA/+LzoX60h08fJECZWIGN/RcKwYJD9gOTBEouZDmCaCbzRz8h0qY+91UaLh
N7EYwBUEpLPhDu+Ax/GmhX2ipHePkZAMPYvJyrvThrqjKReY2NMrs3wBzUuszhAF
8X9lo6EU79gavBm5eCFfaEnfOeDgaCmK9Pd9RBKsT9ilyl+ToSrOyVMqaGgqcOuQ
93aRed4rgt/PkfzSBf12hNilgkXYYOBh9XbUXSOJz4fYTbcNYR9+rFeL4PxtxabW
wlU3AJWwXPby1BzGo5LjcmM9gUE8CcJ0i32Kj6je9ditmCToswWA8JKhlimQBAq2
D0krwBMbtzc2AD7/Rn1CjsTnJyUol7DBqYfBljPqv4o9o3mHWsuJH2jmtm5S6apU
BgNNvi+IH/y7PhpOczifWJBdoLJUIXhrNUfmC39xy2Vz6iegc9OL7idSnO811Ers
e9Qt+5zPph+A0kkihFBR78e82eAXMlgOMd1yhc5jYGFJ+rU6axLdo1x55HKNJZ6V
+UjgFjpNfofBjRTa6Ql4aJPMIsicHXWeLhyZue3sTF/1kMPd3dcpzE2VQQAikUXe
8ivmQ1XcGRSai1NBshJe6/EnrKPcXK5e68k08UEw/nSTFl4Gz53srR2wPjTW6w94
Mpwb89HtyNmRUDvj2bTSuyZP2P5FtiXnwUhHJXRdG/BGxD7Keo8=
=0HQg
-----END PGP SIGNATURE-----