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

Pfcount (build from Github) can not reopen zbalance_ipc instances but pfcount install via apt can #956

Open
jolysoul127 opened this issue Aug 21, 2024 · 4 comments

Comments

@jolysoul127
Copy link

Dear all
Pfcount (build from Github) can not reopen zbalance_ipc instances but pfcount installed via apt can

  1. Description :
  • Create instances by zbalance_ipc
    zbalance_ipc -i zc -n 2 -m 2
  • Running pfcount installed via apt with zbalance_ipc instance : OK
    When closing and reopening the application, there are no errors.
  • Running pfcount built from GitHub :
    When closing and reopening the application, an error occurs : pfring_open error [Resource temporarily unavailable]
/home/test/PF_RING-8.8.0-stable/userland/examples# ./pfcount -i zc:103@1
Using PF_RING v.8.8.0.240805 kernel module v.8.8.0
Dumping statistics on /proc/net/pf_ring/stats/93378-none.211
Capturing from zc:103@1 [mac: unknown][if_index: -1][speed: 0Mb/s]
# Device RX channels: 1
# Polling threads:    1
=========================
Absolute Stats: [618'188 pkts total][0 pkts dropped][0.0% dropped]
[618'188 pkts rcvd][603'939'230 bytes rcvd]
=========================

^CLeaving...

/home/test/PF_RING-8.8.0-stable/userland/examples# ./pfcount -i zc:103@1
pfring_open error [Resource temporarily unavailable] (pf_ring not loaded or interface zc:103@1 is down ?)
  1. System Information:
  • Ubuntu 22.04
  • Pfring version ( install via apt) : 8.8.0-9273
apt list --installed | grep pfring
pfring-dkms/now 8.8.0.9273 all [installed,upgradable to: 8.8.0.9275]
pfring/now 8.8.0-9273 amd64 [installed,upgradable to: 8.8.0-9275]
  • Pfring version from Github : 8.8.0-stable
  • No updated or nothing change from github code.
    Looking forward for your support
    Thank you
@cardigliano
Copy link
Member

@jolysoul127 this is strange as the code and libraries are exactly the same, we will verify this

@jolysoul127
Copy link
Author

Thank you @cardigliano
Update : I have install fresh ubuntu 22.04 (iso downloaded from Ubuntu Official site) but not solve the problem

  • Install requirement
apt-get install build-essential bison flex linux-headers-$(uname -r) libnuma-dev libnl-genl-3-dev
apt install gcc-12

  • Make kernel ( but not make install )
  • Make driver
  • make lib and libpcap ( make only, not make install)
  • make example and example_zc

But reopen zbalance_ipc after close still error :

/home/test/PF_RING-8.8.0-stable/userland/examples# ./pfcount -i zc:103@1
pfring_open error [Resource temporarily unavailable] (pf_ring not loaded or interface zc:103@1 is down ?)

@cardigliano
Copy link
Member

@jolysoul127 it seems be be working in our lab compiling from source code.. anyway I suggest not to mix binaries from packages with binaries compiled from source code as this may lead to unaligned code and create issues

@jolysoul127
Copy link
Author

@cardigliano
i have install fresh ubuntu 22.04 but everything is the same.
can you please let me know your OS, kernel, gcc version and PF_RING version which build from Git
Thank you

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