PF_RING icon indicating copy to clipboard operation
PF_RING copied to clipboard

Can't open queue created by zbalance_ipc using zcount

Open ronygut opened this issue 11 months ago • 3 comments

I ran : ./zbalance_ipc -i zc:ens192 -c 2 -n 4 -m 1 9/Dec/2024 16:08:50 [zbalance_ipc.c:1568] Starting balancer with 4 consumer queues.. 09/Dec/2024 16:08:50 [zbalance_ipc.c:1580] Run your application instances as follows: 09/Dec/2024 16:08:50 [zbalance_ipc.c:1586] pfcount -i zc:2@0 09/Dec/2024 16:08:50 [zbalance_ipc.c:1586] pfcount -i zc:2@1 09/Dec/2024 16:08:50 [zbalance_ipc.c:1586] pfcount -i zc:2@2 09/Dec/2024 16:08:50 [zbalance_ipc.c:1586] pfcount -i zc:2@3 09/Dec/2024 16:08:50 [zbalance_ipc.c:1630] Running balancer #0 on core -1...

Trying to open one of the queues by running zcount: ./zcount -i zc:2@0

pfring_zc_open_device error [Socket operation on non-socket] Please check that zc:2@0 is up and not already used

What could be the problem? ./zbalance_ipc reads the traffic, but I can't use one of the queues it opens.

ronygut avatar Dec 09 '24 14:12 ronygut

This is working for me. Are you running zcount as root? PF_RING version?

cardigliano avatar Dec 18 '24 16:12 cardigliano

yes, I ran both as root. zcount - (C) 2014-24 ntop Using PF_RING v.8.9.0.241112

zbalance_ipc - (C) 2014-24 ntop Using PFRING_ZC v.8.9.0.241112

ronygut avatar Dec 18 '24 17:12 ronygut

@ronygut I pushed a patch to be able to check the status of the queues. Please update, and make sure you also reload the (new) pf_ring kernel module. Then run the balancer with -p and check the output (or cat /proc/net/pf_ring/stats/*)

cardigliano avatar Dec 20 '24 08:12 cardigliano