From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yw1-f66.google.com (mail-yw1-f66.google.com [209.85.161.66]) by dpdk.org (Postfix) with ESMTP id 645435B2E for ; Fri, 12 Oct 2018 06:48:44 +0200 (CEST) Received: by mail-yw1-f66.google.com with SMTP id y14-v6so4497922ywa.4 for ; Thu, 11 Oct 2018 21:48:44 -0700 (PDT) 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=5MwaRnGFtNVQ/aaB5jE9e/Ie+xU0hoVIjSvUTyJCiX8=; b=p9AlIObnm4W6EE8+3mIwlidO2HkYBTzeXOBdauZXXfQp25Z/YkbF3Y86YlKnh4ojga mpt/QB1ht9suqX9SsTVsNUeqyWc78ADKeifz0uyF5gFYWWXlMtQcecpNl+F2wEgsWiZM dIqMrZsy2hZxQ47gCjh6VwVASpjKEgPd2b9GAFeoVsd/E5q5chxcOUy7UxFbcP0rGUUK F6aH7WjDtjkvLhxfIp5UHpzIHX0R+ln2XkZhW+/We1ShcCFVWu2iULHBGIJE4YvZHgtl Xf0ZFNlWgDdtzprcX1UtmZ6hwwB/4p8IwNxtz5veCcMUGDsxj7WJiYUPcDJZEMeCtZJx IkYQ== 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=5MwaRnGFtNVQ/aaB5jE9e/Ie+xU0hoVIjSvUTyJCiX8=; b=aRbPha5KsErTJCCuFiC3H0GYJdNd2suyTE+FLYRA1SDp3WRCRupjer7dr2geAU0FnR s3ogTTafHQG5X1/ZzW+Ogwfg2bBsKiXfJAZaCTsJDaFll30ygOinRTUSEDS/gx0AmyAO 0BiyHhmgBjVnrPLmVS4TirmW4gZyGZzATONqm7YRpwr/YzyokBO8x3RQ0jNUlNlOPSRk nbgpwA+goVG7QLUcZJYrDZsa3fIO3SYmA79buIu0noHHUHnVafjZkNln8ou6Qj/qWt+F xN6fMSh1H2la8fjwZqGPFUsGDO0sx465j3BPlHzPCDEHMhuAD+PapwQg3rv8NPpBvAZb HBew== X-Gm-Message-State: ABuFfoiA1lDIMBbBc06jmKid5iVaOZSJcJfUnN8XFUK+6qhUjE7WxDv0 wcFg+bnFmnAALrcua0lzBKLnlpXxzUlnCJy1uWM74Xo3 X-Google-Smtp-Source: ACcGV63nD18pquubgjzivl5mxz+HTu9ayWx6CnVfYrMjqB+EykqsP6S7XDOn6rb8G+/05P/cV9GKN/258uteslmYvUE= X-Received: by 2002:a0d:ed06:: with SMTP id w6-v6mr2452847ywe.26.1539319723511; Thu, 11 Oct 2018 21:48:43 -0700 (PDT) MIME-Version: 1.0 From: Wajeeha Javed Date: Fri, 12 Oct 2018 09:48:06 +0500 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] Increasing the NB_MBUFs of PktMbuf MemPool 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: Fri, 12 Oct 2018 04:48:44 -0000 Hi, I am in the process of developing DPDK based Application where I would like to delay the packets for about 2 secs. There are two ports connected to DPDK App and sending traffic of 64 bytes size packets at a line rate of 10GB/s. Within 2 secs, I will have 28 Million packets for each of the port in delay application. The maximum RX Descriptor size is 16384. I am unable to increase the number of Rx descriptors more than 16384 value. Is it possible to increase the number of Rx descriptors to a large value. e.g. 65536. Therefore I copied the mbufs using the pktmbuf copy code(shown below) and free the packet received. Now the issue is that I can not copy more than 5 million packets because the nb_mbufs of the mempool can't be more than 5 Million (#define NB_MBUF 5000000). If I increase the NB_MBUF macro from more than 5 Million, the error is returned unable to init mbuf pool. Is there a possible way to increase the mempool size? Furthermore, kindly guide me if this is the appropriate mailing list for asking this type of questions. static inline struct rte_mbuf * pktmbuf_copy(struct rte_mbuf *md, struct rte_mempool *mp) { struct rte_mbuf *mc = NULL; struct rte_mbuf **prev = &mc; do { struct rte_mbuf *mi; mi = rte_pktmbuf_alloc(mp); if (unlikely(mi == NULL)) { rte_pktmbuf_free(mc); rte_exit(EXIT_FAILURE, "Unable to Allocate Memory. Memory Failure.\n"); return NULL; } mi->data_off = md->data_off; mi->data_len = md->data_len; mi->port = md->port; mi->vlan_tci = md->vlan_tci; mi->tx_offload = md->tx_offload; mi->hash = md->hash; mi->next = NULL; mi->pkt_len = md->pkt_len; mi->nb_segs = md->nb_segs; mi->ol_flags = md->ol_flags; mi->packet_type = md->packet_type; rte_memcpy(rte_pktmbuf_mtod(mi, char *), rte_pktmbuf_mtod(md, char *), md->data_len); *prev = mi; prev = &mi->next; } while ((md = md->next) != NULL); *prev = NULL; return mc; } *Reference:* http://patchwork.dpdk.org/patch/6289/ Thanks & Best Regards, Wajeeha Javed