Hi Pedro inline > On 11 Aug 2015, at 16:14, pmneveshi5 <[email protected]> wrote: > > Hello Alfredo, > > I just got more confused. > I have a few more questions. > > You said: > " for testing the API you do not need DNA/ZC drivers, you can use > the ZC API (sample apps, balancing, etc.) with standard drivers > (opening the device without the “zc:” prefix)" > > Is not working for me: > root@ronin01:~/PF_RING/userland/examples_zc# ./zcount -i eth0 -c 98 > *** error retrieving hugepages info *** > pfring_zc_create_cluster error [No buffer space available] Please check that > pf_ring.ko is loaded and hugetlb fs is mounted > root@ronin01:~/PF_RING/userland/examples_zc# > root@ronin01:~/PF_RING/userland/examples_zc# lsmod | grep pf_ring > pf_ring 709003 0 > root@ronin01:~/PF_RING/userland/examples_zc#
You need to reserve a few hugepages, they are needed by ZC for memory allocation: sync && echo 3 > /proc/sys/vm/drop_caches echo 1024 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages mkdir /mnt/huge mount -t hugetlbfs nodev /mnt/huge > > > On the user guide (PF_RING User’s Guide v.6.0.0, page 12) says: > " In PF_RING ZC you can use the zero-copy framework even with > non-PF_RING aware drivers" > > "PF_RING ZC allows you to forward (both RX and TX) packets in zero-copy > for a KVM Virtual Machine without using techniques such as PCIe passthrough" > > " In PF_RING ZC you can use the zero-copy framework even with non-PF_RING > aware drivers. This means that you can dispatch, process, originate, and > inject packets into the zero-copy framework even though they have not been > originated from ZC devices" > > > Can I install PF_RING ZC (packet processing framework) on any machine > without any Intel specific network card ? Yes. > If that is the case I could install PF_RING ZC on any virtual > machine with any network card, correct ? Correct. > > If I do that (use PF_RING ZC with non-PF_RING aware drivers), does it > bypasses the kernel ? Nope. Regards Alfredo > > Thanks, > > Pedro > > > _______________________________________________ > Ntop-misc mailing list > [email protected] > http://listgateway.unipi.it/mailman/listinfo/ntop-misc
signature.asc
Description: Message signed with OpenPGP using GPGMail
_______________________________________________ Ntop-misc mailing list [email protected] http://listgateway.unipi.it/mailman/listinfo/ntop-misc
