From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from nm44-vm5.bullet.mail.bf1.yahoo.com (nm44-vm5.bullet.mail.bf1.yahoo.com [216.109.115.29]) by dpdk.org (Postfix) with ESMTP id A70EDA6A for ; Wed, 23 Dec 2015 12:40:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1450870800; bh=UveIe2LyZfl6YLt25dN2EQftTPfBuMZrUV5Soa30M24=; h=Date:From:Reply-To:To:Subject:References:From:Subject; b=AOhmSxlss/0ubaGlQNWfFFm6FGM+RgTX8HVtslY3pQ4WiN30ZDyVD8bT3YHQ9MkHTsdJPVKhLnscLWYRxBimOr95cfRL+brihLF8sQhT/omXC5oawBAt88aY++tC8NGHLhwdt+/jglAGzie35+NQEqj754vbsIxumfSBZxgAW8affSUGukgQfb92nRXyyW9mw8ms9/i0TOvmqoWQqt5ofN5QxC09bUbIvd/Z3qj4VMRMQSatlKrLk9I6swmSv/U+1CLCzBN83M3oginXir2gSMqbpGUAqZ//X2WI7ROTa9Zcy2cioiLqe4aWxlFMYhWv9AdB5Fl62rvERXZ0HKOkvA== Received: from [98.139.215.140] by nm44.bullet.mail.bf1.yahoo.com with NNFMP; 23 Dec 2015 11:40:00 -0000 Received: from [98.139.212.243] by tm11.bullet.mail.bf1.yahoo.com with NNFMP; 23 Dec 2015 11:40:00 -0000 Received: from [127.0.0.1] by omp1052.mail.bf1.yahoo.com with NNFMP; 23 Dec 2015 11:40:00 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 20961.32330.bm@omp1052.mail.bf1.yahoo.com X-YMail-OSG: WCvEYQwVM1muDA56LnHEKAAAvEFY18VfDVYpZ5Ilmr1Ynbex5lLciH3E7YK78P2 q5PC3dq0rALf9Y9xlTK24N2RZ4O7Q1PWmM8a1K2sZbHUmaBHEgu34zxzSEKcq9bVaLwLc5YjhIU0 5XP66eimTOhxZKawvRNIRYIW8ynPgUzEPxnp6SkTDQdsOaVKrPITHie7JSfrQPOxL2H4zPm37X8s stR5H1a2XVUMeG9fhebLz.2bIegHyjiKa7XPasg6hW25eEC2NVnrtPX58O.n4HGmaJSvZZIHHKJC 0cN.9DWLY_lY1uS1WbDsu7YedZZmfKtKi24aeqhCD2.2ZLaV4kBZJFU7UNsh9kjDmFbpesiFOGLq 6SaVzXnIWrPFPBQF.ts5LamWbAIIrBBiiBviAqkfOY.xSd2kRF5rvRy3tuHz8aCnuXYfgJ2ML.ke ynfdah3Qfhap0UtqxOr5rC1vX0rpybulM_g4tjWgA2io_NBByAOxnc_x.D1SNL8Nsl3Z.GAVxjxi 6F4MEYfY- Received: by 76.13.26.110; Wed, 23 Dec 2015 11:39:59 +0000 Date: Wed, 23 Dec 2015 11:39:59 +0000 (UTC) From: sid tow To: "users@dpdk.org" Message-ID: <115510883.2737304.1450870799181.JavaMail.yahoo@mail.yahoo.com> MIME-Version: 1.0 References: <115510883.2737304.1450870799181.JavaMail.yahoo.ref@mail.yahoo.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] LPM6 delete function optimization. X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: sid tow List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Dec 2015 11:40:01 -0000 Hello All, I have started using the dpdk library mainly LPM6. I noticed that the delete function does a memset and reconfigure of all the routes back into the table. This will not scale if I were to have like 10K routes. Do I expect to see some performance improvisation in future releases or can I get some tips on what I can do to optimize it myself? Thank you in advance. Syed >From artosank@gmail.com Wed Dec 23 14:42:44 2015 Return-Path: Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com [74.125.82.41]) by dpdk.org (Postfix) with ESMTP id 2ABB3594B for ; Wed, 23 Dec 2015 14:42:44 +0100 (CET) Received: by mail-wm0-f41.google.com with SMTP id p187so146985118wmp.1 for ; Wed, 23 Dec 2015 05:42:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Xf/j4mW4/Zt0aQVcXgQy0ACiD0seV4RJ0cEJ/7rp1XE=; b=G72g4nRYyh6tvWfG5QASCKLVlJyUTdUlikuPa5JWuqGrqp82tn5sxTCJvUpvnN+B+a MyENXRvmpz5tiK9bTSMywXJSW0mlUyg/Je8ImiOpNSr19qd+8lkwXkIQNFKRaPXtszQc oDWDrVkdvucifxyXmshfHaoTvwHt71NQcZ7HcL1k+EJFOK08PUOmDqkpJS+Ygkqrvk0/ ZO4PG6kMOAQXbrwI8lLiSnLgS8aChGw/t/mrZCyCR+Db1+6I4rfuWzxhPt302WJitxVb GPiEkOs6HoVKqQJH4HVz7ynZY4RCneBlx7/BgY2cY0gEH3JyGtLoOaIXHvcbVhv7wYs2 px8Q== MIME-Version: 1.0 X-Received: by 10.28.137.67 with SMTP id l64mr33431698wmd.33.1450878163980; Wed, 23 Dec 2015 05:42:43 -0800 (PST) Received: by 10.27.17.212 with HTTP; Wed, 23 Dec 2015 05:42:43 -0800 (PST) Date: Wed, 23 Dec 2015 15:42:43 +0200 Message-ID: From: =?UTF-8?Q?Arto_S=C3=A4nkiaho?= To: users@dpdk.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] Problems running test-pipeline. X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Dec 2015 13:42:44 -0000 Hello, i am new with DPDK and i am trying to run the test-pipeline program. Here is the output when i run it: ./testpipeline -c 0x07 -- -p 0x01 EAL: Detected lcore 0 as core 0 on socket 0 EAL: Detected lcore 1 as core 0 on socket 0 EAL: Detected lcore 2 as core 1 on socket 0 EAL: Detected lcore 3 as core 1 on socket 0 EAL: Detected lcore 4 as core 2 on socket 0 EAL: Detected lcore 5 as core 2 on socket 0 EAL: Detected lcore 6 as core 3 on socket 0 EAL: Detected lcore 7 as core 3 on socket 0 EAL: Support maximum 128 logical core(s) by configuration. EAL: Detected 8 lcore(s) EAL: VFIO modules not all loaded, skip VFIO support... EAL: Setting up physically contiguous memory... EAL: Ask a virtual area of 0x7000000 bytes EAL: Virtual area found at 0x7f6689400000 (size = 0x7000000) EAL: Ask a virtual area of 0x1c00000 bytes EAL: Virtual area found at 0x7f6687600000 (size = 0x1c00000) EAL: Ask a virtual area of 0x4000000 bytes EAL: Virtual area found at 0x7f6683400000 (size = 0x4000000) EAL: Ask a virtual area of 0x1800000 bytes EAL: Virtual area found at 0x7f6681a00000 (size = 0x1800000) EAL: Ask a virtual area of 0x200000 bytes EAL: Virtual area found at 0x7f6681600000 (size = 0x200000) EAL: Ask a virtual area of 0x11800000 bytes EAL: Virtual area found at 0x7f666fc00000 (size = 0x11800000) EAL: Ask a virtual area of 0x200000 bytes EAL: Virtual area found at 0x7f666f800000 (size = 0x200000) EAL: Requesting 256 pages of size 2MB from socket 0 EAL: TSC frequency is ~1795851 KHz EAL: Master lcore 0 is ready (tid=91f13940;cpuset=[0]) EAL: lcore 1 is ready (tid=6f7ff700;cpuset=[1]) EAL: lcore 2 is ready (tid=6effe700;cpuset=[2]) EAL: PCI device 0000:01:00.0 on NUMA socket -1 EAL: probe driver: 8086:1533 rte_igb_pmd EAL: PCI memory mapped at 0x7f6690400000 EAL: PCI memory mapped at 0x7f6690500000 PMD: eth_igb_dev_init(): port_id 0 vendorID=0x8086 deviceID=0x1533 EAL: PCI device 0000:02:00.0 on NUMA socket -1 EAL: probe driver: 8086:1533 rte_igb_pmd EAL: Not managed by a supported kernel driver, skipped USER1: Creating the mbuf pool ... USER1: Initializing NIC port 0 ... PMD: eth_igb_rx_queue_setup(): sw_ring=0x7f666f936dc0 hw_ring=0x7f666f937200 dma_addr=0x208337200 PMD: eth_igb_tx_queue_setup(): To improve 1G driver performance, consider setting the TX WTHRESH value to 4, 8, or 16. PMD: eth_igb_tx_queue_setup(): sw_ring=0x7f666f924c40 hw_ring=0x7f666f926c80 dma_addr=0x208326c80 PMD: eth_igb_start(): << USER1: Port 0 (0 Gbps) DOWN PANIC in app_ports_check_link(): Some NIC ports are DOWN 6: [./testpipeline() [0x42b7b3]] 5: [/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f6691038ec5]] 4: [./testpipeline(main+0x34) [0x42a2f4]] 3: [./testpipeline(app_init+0x336) [0x42c0a6]] 2: [./testpipeline(__rte_panic+0xc9) [0x424d9e]] 1: [./testpipeline(rte_dump_stack+0x1a) [0x492b8a] $ Here is the nic bind info $ dpdk_nic_bind -s Network devices using DPDK-compatible driver ============================================ 0000:01:00.0 'I210 Gigabit Network Connection' drv=igb_uio unused= Network devices using kernel driver =================================== 0000:00:19.0 'Ethernet Connection I218-LM' if=eth2 drv=e1000e unused=igb_uio *Active* 0000:02:00.0 'I210 Gigabit Network Connection' if=eth0 drv=igb unused=igb_uio Other network devices ===================== Changing port mask to 0x04 or any other value gives following error: ./testpipeline -c 0x07 -- -p 0x04 EAL: Detected lcore 0 as core 0 on socket 0 EAL: Detected lcore 1 as core 0 on socket 0 EAL: Detected lcore 2 as core 1 on socket 0 EAL: Detected lcore 3 as core 1 on socket 0 EAL: Detected lcore 4 as core 2 on socket 0 EAL: Detected lcore 5 as core 2 on socket 0 EAL: Detected lcore 6 as core 3 on socket 0 EAL: Detected lcore 7 as core 3 on socket 0 EAL: Support maximum 128 logical core(s) by configuration. EAL: Detected 8 lcore(s) EAL: VFIO modules not all loaded, skip VFIO support... EAL: Setting up physically contiguous memory... EAL: Ask a virtual area of 0x7000000 bytes EAL: Virtual area found at 0x7fceeb000000 (size = 0x7000000) EAL: Ask a virtual area of 0x1c00000 bytes EAL: Virtual area found at 0x7fcee9200000 (size = 0x1c00000) EAL: Ask a virtual area of 0x4000000 bytes EAL: Virtual area found at 0x7fcee5000000 (size = 0x4000000) EAL: Ask a virtual area of 0x1800000 bytes EAL: Virtual area found at 0x7fcee3600000 (size = 0x1800000) EAL: Ask a virtual area of 0x200000 bytes EAL: Virtual area found at 0x7fcee3200000 (size = 0x200000) EAL: Ask a virtual area of 0x11800000 bytes EAL: Virtual area found at 0x7fced1800000 (size = 0x11800000) EAL: Ask a virtual area of 0x200000 bytes EAL: Virtual area found at 0x7fced1400000 (size = 0x200000) EAL: Requesting 256 pages of size 2MB from socket 0 EAL: TSC frequency is ~1795851 KHz EAL: Master lcore 0 is ready (tid=f3c37940;cpuset=[0]) EAL: lcore 1 is ready (tid=d13ff700;cpuset=[1]) EAL: lcore 2 is ready (tid=d0bfe700;cpuset=[2]) EAL: PCI device 0000:01:00.0 on NUMA socket -1 EAL: probe driver: 8086:1533 rte_igb_pmd EAL: PCI memory mapped at 0x7fcef2000000 EAL: PCI memory mapped at 0x7fcef2100000 PMD: eth_igb_dev_init(): port_id 0 vendorID=0x8086 deviceID=0x1533 EAL: PCI device 0000:02:00.0 on NUMA socket -1 EAL: probe driver: 8086:1533 rte_igb_pmd EAL: Not managed by a supported kernel driver, skipped USER1: Creating the mbuf pool ... USER1: Initializing NIC port 2 ... PANIC in app_init_ports(): Cannot init NIC port 2 (-22) 6: [./testpipeline() [0x42b7b3]] 5: [/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7fcef2d5cec5]] 4: [./testpipeline(main+0x34) [0x42a2f4]] 3: [./testpipeline(app_init+0x3a2) [0x42c112]] 2: [./testpipeline(__rte_panic+0xc9) [0x424d9e]] 1: [./testpipeline(rte_dump_stack+0x1a) [0x492b8a]] What i'm doing wrong here ? There is probably some configuration step missing or misconfiguration but i could not figure out what it is. Thank you in advance.