Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't open queue created by zbalance_ipc using zcount #973

Open
ronygut opened this issue Dec 9, 2024 · 3 comments
Open

Can't open queue created by zbalance_ipc using zcount #973

ronygut opened this issue Dec 9, 2024 · 3 comments

Comments

@ronygut
Copy link

ronygut commented Dec 9, 2024

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.

@cardigliano
Copy link
Member

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

@ronygut
Copy link
Author

ronygut commented Dec 18, 2024

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

@cardigliano
Copy link
Member

@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/*)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants