From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vk0-f43.google.com (mail-vk0-f43.google.com [209.85.213.43]) by dpdk.org (Postfix) with ESMTP id D23162931; Mon, 14 Mar 2016 18:54:58 +0100 (CET) Received: by mail-vk0-f43.google.com with SMTP id e6so218782710vkh.2; Mon, 14 Mar 2016 10:54:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to; bh=nT+N5YELrADb1UxW+wpQ3yImt+MLYBmBm7+r4pe8GIo=; b=ZsDtqikGJh4nHwP1OUtkRxtYhgC1bHyRVaWIMLDSM2/NJU/6Xl/E+Bc/YvqtiNRdJV mGF3IVICRARdHZKa5CuftoHddtuvJIwRdhiZHY1RFlkSxV79yFl/Ej6ufU/x2hGtWK2A GS//dKjRX4/IflB0weWUEGkDMrpXa2fSObMw8Cn+L9oEdD9bZ0O1BIw2dJL0HUv3rHDR W2FFsm+uFBypySoK0wZNNmz8LtZDzFHp8pGMp6sksCnSADDUp1roize+SRTj6yCVjP1d MZ7IDeKNKCjp5jKpp3oBWdfMp8wsF3MkkuczHZmKhtLutbaebOAR7SCZjFGa/8hGnpSi oyWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=nT+N5YELrADb1UxW+wpQ3yImt+MLYBmBm7+r4pe8GIo=; b=A2Xah91YQZsaF/h13oXx+Yh/k699xiUMrOn7p9uZircTOsDWpvUSPT7qk08TQoAp/E i7FyQaiGSM2KvPvlP4PUU/J3M+HeyrA2hCZGZTGT5A1bg83X1EVtquPnu3D3JzvfToqS lMK+W39PpkniInmIAVXDQPqjfzMYcWvrFzSkp7hwVrybG0GeaokPv5K6DQC3sOipIz2I PC7BVL/awcrVvEaJzY+qX61K4FEZq5spGI91BqTcXBTjsdwLZDI362k62jiUmGwVqwD9 QvCVA0bzpouLA4oaqj5pA3+1pcKlVOuzgrVrkLOqWeI/kW9D/MYO8RUkY2IdpqdFYhQ7 bVnw== X-Gm-Message-State: AD7BkJKEQ+p90K+PJk7LqulWQVWVcf2ChJNbqAFnSaWsnoCSbpGs3GO274GeMfMITiBi7Jrmyv5viapMfUXkyg== MIME-Version: 1.0 X-Received: by 10.31.3.193 with SMTP id f62mr23142919vki.27.1457978098367; Mon, 14 Mar 2016 10:54:58 -0700 (PDT) Received: by 10.176.65.106 with HTTP; Mon, 14 Mar 2016 10:54:58 -0700 (PDT) Date: Mon, 14 Mar 2016 10:54:58 -0700 Message-ID: From: Saurabh Mishra To: users@dpdk.org, dev@dpdk.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] Huge pages to be allocated based on number of mbufs X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Mar 2016 17:54:59 -0000 Hi, We are planning to support virtio, vmxnet3, ixgbe, i40e, bxn2x and SR-IOV on some of them with DPDK. We have seen that even if we give correct number of mbufs given the number hugepages reserved, rte_eth_tx_queue_setup() may still fail with no enough memory (I saw this on i40evf but worked on virtio and vmxnet3). We like to know what's the recommended way to determine how many hugepages we should allocate given the number of mbufs such that queue setup APIs also don't fail. Since we will be running on low-end systems too we need to be careful about reserving hugepages. Thanks, /Saurabh