From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 40428A04E6 for ; Wed, 9 Dec 2020 17:34:47 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 70106BE79; Wed, 9 Dec 2020 17:34:45 +0100 (CET) Received: from mail-io1-f43.google.com (mail-io1-f43.google.com [209.85.166.43]) by dpdk.org (Postfix) with ESMTP id 60633BE77 for ; Wed, 9 Dec 2020 17:34:42 +0100 (CET) Received: by mail-io1-f43.google.com with SMTP id z136so2247643iof.3 for ; Wed, 09 Dec 2020 08:34:42 -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=ajdh7sC+HCzBAXft1DM9KUd4QtrQIIL8V6nHTkdY2O4=; b=eNZvRfKZZugbpB5Xr1+aLrPNliN3Gk+L0dt9wBcsuezgmXgvwyK3NZyHqjbmOwCWeZ mAZR/tygAzNUmmiwQgcVJ6HaiAXN7pJC9AzEssd2VUADSHdDIUA+o0InyMZILMuFCcsR aU3ApcdP6dKa9H9KEZgK5FP1YuvIklZlQFAgZOYKhnRg0uEnrZkhCs+cnbaysH75M/pr DzvlVnW1eT0N2TTtW8BqI6EdMprWIMD5l63VxOTPqS/wr3TRcsuTEvZf0Os7Gaj3Q70b 4kpkRQwKCnCBLUW3UHsFWnpRGpItpa+HOsrrDdpeU4WgLLHt3NCejM4+mvCFMXKEyd8q 56kQ== 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=ajdh7sC+HCzBAXft1DM9KUd4QtrQIIL8V6nHTkdY2O4=; b=nXvSW6rTYQudeDFZpBeulcad3RDYaUqAuZQqIzkHbFHEbKrN8H3re1DU/MuuCPSHq2 2dx7Pg+4ESAqLSOD5jWKNvtW7Z0rmCfjDN3Igy6rosskTrgZjGSJHUEkX91jPRx7N+mT rdTGu1LnS1Ojz5AFk/tv5etDSnuYHkn8BBjXTPUhbTd1H7j8B3DAakgv1x/eQMcQjz6e N1D9EhUgOCKnZIJizlq8xviuMR862SO+7t20qqrvw+DUyjlc46HbZ3R3dDzI052NIGnU KP5+3sseQjlnjSu9NDZe1lYPuKmxy/TfU4HxPWfeg+R6gw1cujlqRHJquFRhJOZzXV5W IE2A== X-Gm-Message-State: AOAM532YtVMJeRBiKqfPqHmtTgC0U5PyoyeDfqv3hA2vNpEvESTuqsZk k2lnje9+1yO+gjPIipcdBNjCb2atloa914J2UOHoAp2goywfPh/M X-Google-Smtp-Source: ABdhPJxniq2qvq58lqSzuZ6OXvQ7/ZCioP6CAx+wYRzvxHiSNHsxJJ/ppEKHGJiphzXKLLCaRhJnWgRMa/ffTIY3wYs= X-Received: by 2002:a02:ceb2:: with SMTP id z18mr4150692jaq.144.1607531680433; Wed, 09 Dec 2020 08:34:40 -0800 (PST) MIME-Version: 1.0 From: David Aldrich Date: Wed, 9 Dec 2020 16:34:29 +0000 Message-ID: To: users Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] Basic hugepages question 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: , Errors-To: users-bounces@dpdk.org Sender: "users" Hi Having successfully demonstrated using dpdk with our application, it's been pointed out to me that our settings are using a very large amount of memory. I am initialising the EAL with: -m 16000 i.e. 16GB! However, I am only specifying a count of 0x4000 to rte_ring_create(), which I call twice to create one Rx and one Tx ring. So I guess these are only using 32MB RAM total. My questions are: 1) What would be a sensible amount of memory to specify with the '-m' parameter to the EAL? 2) What size / number of hugepages should I allocate in Linux? (I currently use boot parameters: 'hugepagesz=1G hugepages=20 hugepagesz=2M hugepages=0'). Best regards David