{"action":"created","issue":{"url":"https://api.github.com/repos/ntop/PF_RING/issues/7","labels_url":"https://api.github.com/repos/ntop/PF_RING/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/ntop/PF_RING/issues/7/comments","events_url":"https://api.github.com/repos/ntop/PF_RING/issues/7/events","html_url":"https://github.com/ntop/PF_RING/issues/7","id":75907976,"number":7,"title":"Complete traffic drop in ZC mode with ixgbe driver in multi queue mode","user":{"login":"pavel-odintsov","id":2744166,"avatar_url":"https://avatars.githubusercontent.com/u/2744166?v=3","gravatar_id":"","url":"https://api.github.com/users/pavel-odintsov","html_url":"https://github.com/pavel-odintsov","followers_url":"https://api.github.com/users/pavel-odintsov/followers","following_url":"https://api.github.com/users/pavel-odintsov/following{/other_user}","gists_url":"https://api.github.com/users/pavel-odintsov/gists{/gist_id}","starred_url":"https://api.github.com/users/pavel-odintsov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavel-odintsov/subscriptions","organizations_url":"https://api.github.com/users/pavel-odintsov/orgs","repos_url":"https://api.github.com/users/pavel-odintsov/repos","events_url":"https://api.github.com/users/pavel-odintsov/events{/privacy}","received_events_url":"https://api.github.com/users/pavel-odintsov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-05-13T09:00:19Z","updated_at":"2015-05-13T10:53:43Z","closed_at":null,"body":"Hello, folks!\r\n\r\nI have problems with GIT version of PF_RING. I have ixgbe and Debian Jessie with 3.16 kernel.\r\n\r\nI installed PF_RING, build libs and modules and run driver with ./load_module and everything worker perfectly.\r\n\r\nBut my tool bound to single CPU core:\r\n```bash\r\n1  [|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||100.0%]     Tasks: 37, 98 thr, 71 kthr; 2 running\r\n  2  [||                                                           1.9%]     Load average: 2.36 2.07 1.72 \r\n  3  [|||                                                          3.4%]     Uptime: 00:35:50\r\n  4  [|                                                            0.9%]\r\n  Mem[||||                                                  688/32205MB]\r\n  Swp[                                                         0/8190MB]\r\n```\r\n\r\nSo, I switched:```insmod ./ixgbe.ko RSS=1,1,1, ``` To:```insmod ./ixgbe.ko RSS=4,4,4,4``\r\n\r\nAnd call ```./load_module again```. After this changes I can't saw any traffic on this interface. \r\n\r\nAnd zcount show following:\r\n```bash\r\n./zcount -i zc:eth4 -c 0\r\n#########################################################################\r\n# ERROR: You do not seem to have a valid PF_RING ZC license 6.0.3.150325 for eth4 [Intel 10 Gbit ixgbe 82599-based]\r\n# ERROR: Please get one at http://shop.ntop.org/.\r\n#########################################################################\r\n# We're now working in demo mode with packet capture and          \r\n# transmission limited to 5 minutes\r\n#########################################################################\r\n#########################################################################\r\n# ERROR: You do not seem to have a valid PF_RING ZC license 6.0.3.150325 for eth4 [Intel 10 Gbit ixgbe 82599-based]\r\n# ERROR: Please get one at http://shop.ntop.org/.\r\n#########################################################################\r\n=========================\r\nAbsolute Stats: 0 pkts (14'832'738 drops) - 0 bytes\r\n=========================\r\n\r\n=========================\r\nAbsolute Stats: 0 pkts (29'662'683 drops) - 0 bytes\r\nActual Stats: 0.00 pps (14'828'803.18 drops) - 0.00 Gbps\r\n=========================\r\n\r\n=========================\r\nAbsolute Stats: 0 pkts (44'493'780 drops) - 0 bytes\r\nActual Stats: 0.00 pps (14'828'931.97 drops) - 0.00 Gbps\r\n=========================\r\n\r\n=========================\r\nAbsolute Stats: 0 pkts (59'324'327 drops) - 0 bytes\r\nActual Stats: 0.00 pps (14'829'612.73 drops) - 0.00 Gbps\r\n=========================\r\n\r\n=========================\r\nAbsolute Stats: 0 pkts (74'157'039 drops) - 0 bytes\r\nActual Stats: 0.00 pps (14'830'754.34 drops) - 0.00 Gbps\r\n```\r\n\r\nBtw, my toolkit internal stats show something similar:\r\n```bash\r\nPF_RING ZC in queue statistics\r\nReceived:       0\r\nSent:           0\r\nDropped:        1209057743\r\nDropped:        0.00 %\r\n```\r\n\r\nCode:\r\n```C\r\n       int stats_res = pfring_zc_stats(inzq[0], &stats);\r\n    \r\n        if (stats_res) {\r\n            logger<<log4cpp::Priority::ERROR<<\"Can't get PF_RING ZC stats for in queue\";\r\n        } else {\r\n            double dropped_percent = 0;\r\n\r\n            if (stats.recv + stats.sent > 0) {    \r\n                dropped_percent = (double)stats.drop / ((double)stats.recv + (double)stats.sent) * 100;\r\n            }\r\n\r\n            output_buffer<<\"\\n\";\r\n            output_buffer<<\"PF_RING ZC in queue statistics\\n\";\r\n            output_buffer<<\"Received:\\t\"<<stats.recv<<\"\\n\";\r\n            output_buffer<<\"Sent:\\t\\t\"<<stats.sent<<\"\\n\";\r\n            output_buffer<<\"Dropped:\\t\"<<stats.drop<<\"\\n\";\r\n            output_buffer<<\"Dropped:\\t\"<<std::fixed << std::setprecision(2)<<dropped_percent<<\" %\\n\";\r\n        }\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ntop/PF_RING/issues/comments/101625051","html_url":"https://github.com/ntop/PF_RING/issues/7#issuecomment-101625051","issue_url":"https://api.github.com/repos/ntop/PF_RING/issues/7","id":101625051,"user":{"login":"cardigliano","id":7548711,"avatar_url":"https://avatars.githubusercontent.com/u/7548711?v=3","gravatar_id":"","url":"https://api.github.com/users/cardigliano","html_url":"https://github.com/cardigliano","followers_url":"https://api.github.com/users/cardigliano/followers","following_url":"https://api.github.com/users/cardigliano/following{/other_user}","gists_url":"https://api.github.com/users/cardigliano/gists{/gist_id}","starred_url":"https://api.github.com/users/cardigliano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cardigliano/subscriptions","organizations_url":"https://api.github.com/users/cardigliano/orgs","repos_url":"https://api.github.com/users/cardigliano/repos","events_url":"https://api.github.com/users/cardigliano/events{/privacy}","received_events_url":"https://api.github.com/users/cardigliano/received_events","type":"User","site_admin":false},"created_at":"2015-05-13T10:53:43Z","updated_at":"2015-05-13T10:53:43Z","body":"This depends on your applicaiton, wait_for_packet is blocking and uses passive wait.\n\nAlfredo\n\n> On 13 May 2015, at 12:51, Pavel Odintsov <notifications@github.com> wrote:\n> \n> Work really well! Wire speed achieved! Thanks!\n> \n> ./zcount -c 0 -i zc:eth4 -a\n> Absolute Stats: 303'618'151 pkts (0 drops) - 25'503'924'684 bytes\n> Actual Stats: 0.00 pps (0.00 drops) - 0.00 Gbps\n> Could you explain when I should use wait_for_packet = 1 instead of default zero value?\n> \n> —\n> Reply to this email directly or view it on GitHub <https://github.com/ntop/PF_RING/issues/7#issuecomment-101624514>.\n> \n\n"}}