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 81130A04E6 for ; Wed, 9 Dec 2020 18:00:24 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E80CFBE77; Wed, 9 Dec 2020 18:00:22 +0100 (CET) Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) by dpdk.org (Postfix) with ESMTP id 6DDA3BE75 for ; Wed, 9 Dec 2020 18:00:21 +0100 (CET) Received: by mail-pf1-f177.google.com with SMTP id d2so1405243pfq.5 for ; Wed, 09 Dec 2020 09:00:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=1Ps4rXC/S3HYvuujjYHJtgeTJoQBcgAwlte6UYn6kN0=; b=djZ1/6F/pYaubRrzmA0Sdg+iFGNxrUCT/5D/8KyuxpqcUCyrlkgqwV2H+NxhQdjDo5 QWCbHdsg63Rz+miswa5yOEXrUNaz8OUJzs29cwVABGH0fLZrdL1IEhJWGNRIH9zk0KKY 9X2xlEDsMKKD7i6ReSGQqFHR1yT1xl+QgtZ3mm/ucv0kYzk3rWuJZ0lPvUYL5sJ2oWHc 63HDq2m3WZiMjQ9zgfvNeMHZwy2pA20a/aXSvdH/xKTDkulUjYnh5KGNgfdG5J2dTRsq hDLEhc2yQAVnJwz7XeDp6jC2RshcDKbiJUk5gI3KIK7XUEphdSRJph2EYp8GwcE3Keix PAAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=1Ps4rXC/S3HYvuujjYHJtgeTJoQBcgAwlte6UYn6kN0=; b=ApV/gOFo4MzwMPk8/sYZHajNi0g6CaRzHn4I/DybRzR3cxvP6P7DSHq14YIxbcr4Th fNvaux6J3tzlXad+qsSpC+dzuqHcXzjDIohDyPZJYvsTyWkoBXGpUGqkjugiVYAsqeNZ /jBaSWTjIwEWC8nSEe6IrngotU5LUqzNWnDYE2c+3smUPJfPR6z3pugofZdzJb4LRPL/ jo7jrYBUXk70bDH+dejsnUU4dTRQxaDET7O3/LBrHIjDKw/3VrHp/jnLz9K5Lb+qTmg4 zye1BvUIbFvHG5AXzhYugXNcCh6mtA9MqR/Mc3Lo4r0oxd9fCt21Dj9hJmYX2YsA1y0K GcDw== X-Gm-Message-State: AOAM533w3UZLUWH0TwxNsUlEp3OPsZv4EZHeF5iQOx1C2F2t6hBmt9n6 siZ5wPYI27qDAvbBkC7Gxn7GWw== X-Google-Smtp-Source: ABdhPJw+DAcspFJ2Fx+M1X58wL8780heM5/tOFlKDeqdr2iLp1aLXeLnC+XJEkHgzmepOaOZihBvww== X-Received: by 2002:a05:6a00:2259:b029:19d:cfba:5614 with SMTP id i25-20020a056a002259b029019dcfba5614mr3048408pfu.35.1607533219509; Wed, 09 Dec 2020 09:00:19 -0800 (PST) Received: from hermes.local (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id g16sm3110106pfh.187.2020.12.09.09.00.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Dec 2020 09:00:18 -0800 (PST) Date: Wed, 9 Dec 2020 08:59:32 -0800 From: Stephen Hemminger To: David Aldrich Cc: users Message-ID: <20201209085932.60a0f9ea@hermes.local> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [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" On Wed, 9 Dec 2020 16:34:29 +0000 David Aldrich wrote: > 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 For most DPDK applications the predominate user of huge pages is any mbuf pools you create. You should be able to calculate the worst case size of all rings and mbuf pools and size your huge memory from that.