{"action":"opened","issue":{"url":"https://api.github.com/repos/luigirizzo/netmap/issues/124","labels_url":"https://api.github.com/repos/luigirizzo/netmap/issues/124/labels{/name}","comments_url":"https://api.github.com/repos/luigirizzo/netmap/issues/124/comments","events_url":"https://api.github.com/repos/luigirizzo/netmap/issues/124/events","html_url":"https://github.com/luigirizzo/netmap/issues/124","id":124309517,"number":124,"title":"Poor performance and corrupted module building in Ubuntu 14.04","user":{"login":"muradkablan","id":11242924,"avatar_url":"https://avatars.githubusercontent.com/u/11242924?v=3","gravatar_id":"","url":"https://api.github.com/users/muradkablan","html_url":"https://github.com/muradkablan","followers_url":"https://api.github.com/users/muradkablan/followers","following_url":"https://api.github.com/users/muradkablan/following{/other_user}","gists_url":"https://api.github.com/users/muradkablan/gists{/gist_id}","starred_url":"https://api.github.com/users/muradkablan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muradkablan/subscriptions","organizations_url":"https://api.github.com/users/muradkablan/orgs","repos_url":"https://api.github.com/users/muradkablan/repos","events_url":"https://api.github.com/users/muradkablan/events{/privacy}","received_events_url":"https://api.github.com/users/muradkablan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-30T06:20:51Z","updated_at":"2015-12-30T06:20:51Z","closed_at":null,"body":"Hi,\r\nI'm using Ubuntu 14.04 with kernel 3.19.0-42-generic and the following NIC\r\n82599ES 10-Gigabit SFI/SFP+ Network Connection' if=p5p1 drv=ixgbe unused=vfio-pci\r\n\r\nI downloaded the latest netmap version today and I'm having problems with it.\r\nFirst of all, following the instructions in LINUX/README, it seems that the ixgbe kernel built by netmap is corrupted. After doing:\r\nsudo rmmod ixgbe\r\nsudo insmod ./netmap_lin.ko\r\nsudo insmod ./ixgbe/ixgbe.ko\r\n\r\nI ran pkt-gen and kept getting the following error:\r\nmurad@client-1:~/netmap/LINUX$ sudo ./build-apps/pkt-gen -i p5p1 -f tx -l 64 -w 5 \r\n289.541834 main [1930] interface is p5p1\r\n289.541918 main [2050] running on 1 cpus (have 12)\r\n289.542498 extract_ip_range [367] range is 10.0.0.1:0 to 10.0.0.1:0\r\n289.542509 extract_ip_range [367] range is 10.1.0.1:0 to 10.1.0.1:0\r\n290.009691 main [2148] mapped 334980KB at 0x7f7351e37000\r\nSending on netmap:p5p1: 12 queues, 1 threads and 1 cpus.\r\n10.0.0.1 -> 10.1.0.1 (00:00:00:00:00:00 -> ff:ff:ff:ff:ff:ff)\r\n290.009777 main [2233] Sending 512 packets every  0.000000000 s\r\n290.009790 main [2235] Wait 5 secs for phy reset\r\n295.009883 main [2237] Ready...\r\n295.010014 sender_body [1211] start, fd 3 main_fd 3\r\n296.010919 main_thread [1720] 6.126 Kpps (6.132 Kpkts 3.140 Mbps in 1000953 usec) 511.00 avg_batch 0 min_space\r\n297.011558 main_thread [1720] 0.000 pps (0.000 pkts 0.000 bps in 1000639 usec) 0.00 avg_batch 99999 min_space\r\n297.016236 sender_body [1280] poll error/timeout on queue 0: Success\r\n298.012540 main_thread [1720] 0.000 pps (0.000 pkts 0.000 bps in 1000981 usec) 0.00 avg_batch 99999 min_space\r\n299.013429 main_thread [1720] 0.000 pps (0.000 pkts 0.000 bps in 1000890 usec) 0.00 avg_batch 99999 min_space\r\n299.018309 sender_body [1280] poll error/timeout on queue 0: Success\r\n300.014413 main_thread [1720] 0.000 pps (0.000 pkts 0.000 bps in 1000983 usec) 0.00 avg_batch 99999 min_space\r\n301.015083 main_thread [1720] 0.000 pps (0.000 pkts 0.000 bps in 1000670 usec) 0.00 avg_batch 99999 min_space\r\n301.019897 sender_body [1280] poll error/timeout on queue 0: Success\r\n^C301.158648 sigint_h [404] received control-C on thread 0x7f7366f56740\r\n301.158679 main_thread [1720] 0.000 pps (0.000 pkts 0.000 bps in 143597 usec) 0.00 avg_batch 99999 min_space\r\n\r\n\r\nIf I just use the kernel default ixgb module, I no longer get the above error. However, the performance is not as good as it should be. The max I got is  969.260 Kpps\r\n\r\nBelow are the actual steps/commands I made before running pkt-gen:\r\n\r\n$ uname -r\r\n3.19.0-42-generic\r\n\r\n$ ./configure --kernel-dir=/usr/src/linux-headers-3.19.0-42-generic --kernel-sources=/usr/src/linux-lts-vivid-3.19.0\r\n\r\n$ make && make apps\r\n\r\n$ ifconfig p5p1 down && ifconfig p5p1 up\r\n\r\n$ sudo ethtool --pause p5p1 tx off\r\n\r\nPlease advice what I should do.\r\n\r\nThanks,\r\nMurad"}}