From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-it1-f172.google.com (mail-it1-f172.google.com [209.85.166.172]) by dpdk.org (Postfix) with ESMTP id 06B5B4F94 for ; Mon, 5 Nov 2018 22:54:37 +0100 (CET) Received: by mail-it1-f172.google.com with SMTP id w7-v6so14968061itd.1 for ; Mon, 05 Nov 2018 13:54:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=g0vcnFYRb+j/KMq+furqqF84SugSxxQRAhTnyEwmavc=; b=MG4GrvowW8G5yzuEww8HsH3DxJpFtyLPLbKpV1lVcch7mjFXfyzVatxQ6PqHdlRdsD lx2ZXYadKM95vpqrLwIbu7YfOPU+tjE2TNpq4jdu9gEuNmITVSNigMir3HCjiLAr2DOR /CUZ2Rxl+mzGitKCPP0zKJ5tAikNYjzxY1U+HuJwfvKYYP73jbG8WQSNGtpRVJO0Lt61 yr75LvoFSwxpFA9qYzfkR8On/afWQlBQoUeeiN+gxRqC4AsL+tt9HM9NUAedDeh1vM6U n/8i0vBBTFQrFJwtQUiTWFtoyabjGW6RXfuFDgY8nmkrHohI+TUYCkZ1YiPpfHv/UhRq KpTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=g0vcnFYRb+j/KMq+furqqF84SugSxxQRAhTnyEwmavc=; b=OdAihlD+cyk8dT0A/ECdHt6SSYnZLCP3h1m86LTXa+Lr6OdCi5kDuOQyczOdbZADzJ h1YUbicrKd7MCb/PnMGVVRRYkm8Qj1XMKsctdbvXo2XXsdtUSBZhS0KJK7FdN+s08mw4 QOiA1UcbbM38381TGsLucpHzxaTu4K50BOnVIgfgUuWimR4RahxWz9IJwPy+EZzk66XE xtVj8gmcMPpd6wN2JnIpIbt/EOXIkAfVUKRNGy/UvDnbg7vAGQpQNR1G0oR9LHABKywU fffyN5JxPU+iLohTkuiKCLcMBKLamGctOkmdFY1rfTbC7Y65vKs1uQw1J1Sh6kf+btra e84A== X-Gm-Message-State: AGRZ1gJ0dSe8LSCpmmjqa7KL1r5I11E58IaMYK3NBnPGucGDrDkaMRKR /9zCwoEy9/IfAPYrl7PPjj8hfJAp1201mwSRhzXi0BKy X-Google-Smtp-Source: AJdET5dnA9NZenztrdXqM6QN/HDoHYKOdmONDQmg9OmzUgbiasU2ZF9ZSAw0r1eaHQvgnybVnadQEErYphiDueYNveo= X-Received: by 2002:a24:474f:: with SMTP id t76-v6mr4897866itb.131.1541454876924; Mon, 05 Nov 2018 13:54:36 -0800 (PST) MIME-Version: 1.0 From: Sungho Hong Date: Mon, 5 Nov 2018 14:54:25 -0700 Message-ID: To: users@dpdk.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] Understanding the Proper way of using ip fragmentation X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Nov 2018 21:54:38 -0000 Hello DPDK experts, I am having trouble applying ip fragmentation in multiple cores. *My ultimate questions is whether it is possible to have multiple ip fragmentation table allocated with each different direct and indirect pool. * Really thankful if somebody can point out what I am doing wrong here or provide me with some alternative solutions. *Purpose* I am trying to apply ip fragmentation in multiple cores, and maximize the throughput performance with messages that are bigger than MTU. for each local & remote host (using 1 to 8 logical cores) 1 ~ 4 for transferring fragmented message 4 ~ 8 for receiving and assemble message *Method of Throughput -testing * Sending 4KB message from local and remote echos the message back to the local. *Problem * If I try to allocate fragmentation table to each of the cores, I get a segmentation error, and this happens no matter I shrink the size of the fragmentation table. The way I have tried to allocate the pools and frag-table are like this below. for each coreid, coreid < allocated cores; coreid++ fragmentation_table[coreid] = rte_ip_frag_table_create(...); direct_pool[coreid] = rte_pktmbuf_pool_create(...); indirect_pool[coreid] rte_pktmbuf_pool_create(...); So alternatively, I have allocated multiple fragmentation table for each lcores but let the direct and indirect pools be shared together. for each coreid, coreid < allocated cores; coreid++ fragmentation_table[coreid] = rte_ip_frag_table_create(...); direct_pool = rte_pktmbuf_pool_create(...); indirect_pool = rte_pktmbuf_pool_create(...); *Situation* Now when I send messages using multiple cores from local to remote host, the remote host only successfully receive the message when I send the message adding a delay such as ( adding sleep(1); for each message send. ) I was able to receive the message from local to remote. But, cannot receive any data when I try to send them without any delay. Personally, I suspect that I should allocate direct pool and indirect pool for each logical cores, and I think that is the main issue. Since I was only able to successfully use the frag-table using only one logical core, I suspect that I am not using the fragmentation table correctly in multiple cores. I really want to hear from the DPDK experts about this issue I am facing, and will be really grateful for any advice on this...