ntop / PF_RING

High-speed packet processing framework
http://www.ntop.org
GNU Lesser General Public License v2.1
2.67k stars 353 forks source link

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

Open jolysoul127 opened 3 weeks ago

jolysoul127 commented 3 weeks ago

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]
cardigliano commented 3 weeks ago

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

jolysoul127 commented 3 weeks ago

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

- 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 commented 3 weeks ago

@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 commented 3 weeks ago

@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