Skip to content

Instantly share code, notes, and snippets.

@nickwallen
Last active March 27, 2019 02:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save nickwallen/83ac15f2c5d189f5289dc009b3aa2231 to your computer and use it in GitHub Desktop.
Save nickwallen/83ac15f2c5d189f5289dc009b3aa2231 to your computer and use it in GitHub Desktop.

Install

yum install dkms
wget http://packages.ntop.org/rpm7/x64/PF_RING/pfring-6.7.0-1207.x86_64.rpm
wget http://packages.ntop.org/rpm7/noarch/PF_RING-dkms/pfring-dkms-6.7.0-1207.noarch.rpm
rpm -ivh pfring-*rpm
systemctl start pf_ring

Sanity Check

[root@y137 ~]# zcount -i enp129s0f0
pfring_zc_create_cluster error [No buffer space available] Please check that pf_ring.ko is loaded and hugetlb fs is mounted

[root@y137 ~]# grep HugePages /proc/meminfo
AnonHugePages:  17176576 kB
HugePages_Total:      16
HugePages_Free:       16
HugePages_Rsvd:        0
HugePages_Surp:        0

Turn off 1GB THP

  • ZC may not support 1GB pages; just 2MB.
  • Undid 1 GB kernel params.
  • Reboot

Enable 2MB

echo 1024 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages
mount -t hugetlbfs nodev /mnt/huge

Create License

Validate License

[root@y137 ~]# zcount -i enp129s0f0 -C
License Ok
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment