From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f53.google.com (mail-pa0-f53.google.com [209.85.220.53]) by dpdk.org (Postfix) with ESMTP id ADACC3B5 for ; Fri, 11 Mar 2016 05:09:33 +0100 (CET) Received: by mail-pa0-f53.google.com with SMTP id fe3so66886613pab.1 for ; Thu, 10 Mar 2016 20:09:33 -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=fojXklgzO8NhC56+XO2S2FgGxg7tBPPsOdg90pLqphY=; b=XIGe5ncDBybZvtJ7HudmceUZBxvSGQddBJ3FALbCJxzB7J60T4T6fYX0g646AxItBj m5fTpUsw/2KHexkgpoG4pM3CfNd3mYmQF4bnbJb+CF1ZfaBSLL97jbtcF0xLZj3JNqKj KB2737LerEtw/IeJddbkGYNHgm0cHyrrx0XKzJYBtj3R7ZNf+a9QErjQ7kSpps1FkVUo CSZ7W4jZSkRIteCiuGZYnLxc1JQhDUkRgsIR+oh9jcuSaaCIMJyyPUKOugFzINqPmoTN 1Uv+5G9gjfub6x7130GtKpg3ti1pLVP8ta72D1dQYYMBumaJ3I44Lp7aAg5H3V5/QNmD c7rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=fojXklgzO8NhC56+XO2S2FgGxg7tBPPsOdg90pLqphY=; b=NZSlsPuIHrcrMhw36WDDBpWvG4S2hQvaYAasKcuoGXmZIxhm3R4b4MCoDNRrpfxy3g rIQ5Kv2U7KASWCMw6Zbp9GafW7oihIoQX2QF0AVMrUtRSEzSIjcDGRBrNIbOL7OO1+9Y DYO2smBh/92JW/v8Va/BleshAS8A6024VOWWVN+lsBT9f/l+EaKYK4jFBlvn+td5MIiJ cRYwoldvja4aOHP/LIZnoDPNwSI1dkCx5WinK4AM25QDMGxxFXMNCz0XX3814aVn3iVt vqH9fMtV+lYYeoPrnUD7P3UWqnj54/+UamFOBGfmoPYz4wARXI+yQHjkFLlmeIZZcf1n NQcw== X-Gm-Message-State: AD7BkJK3hHo3sjlzuQgMWGRN1ZjKCl1Aj8gL0cq7H+gsNNBVoA3lJENeB4yaqqloTIpBvQ== X-Received: by 10.66.161.68 with SMTP id xq4mr10434489pab.102.1457669372254; Thu, 10 Mar 2016 20:09:32 -0800 (PST) Received: from xeon-e3 (static-50-53-82-155.bvtn.or.frontiernet.net. [50.53.82.155]) by smtp.gmail.com with ESMTPSA id l13sm8836936pfb.21.2016.03.10.20.09.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Mar 2016 20:09:32 -0800 (PST) Date: Thu, 10 Mar 2016 20:09:44 -0800 From: Stephen Hemminger To: Olivier MATZ Message-ID: <20160310200944.1b820a74@xeon-e3> In-Reply-To: <56E1568C.5020805@6wind.com> References: <1457557926-4056-1-git-send-email-stephen@networkplumber.org> <56E1325C.2030206@6wind.com> <56E150FD.2090403@intel.com> <56E1568C.5020805@6wind.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH, v2] mempool: avoid memory waste with large pagesize 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: Fri, 11 Mar 2016 04:09:34 -0000 On Thu, 10 Mar 2016 12:12:12 +0100 Olivier MATZ wrote: > >> It still does not work. When CONFIG_RTE_LIBRTE_MEMPOOL_DEBUG=y: > >> > >> mp = rte_mempool_create("test", 128, > >> 64, 0, 0, NULL, NULL, NULL, NULL, SOCKET_ID_ANY, 0); > >> rte_mempool_dump(stdout, mp); > >> > >> populated_size=128 > >> header_size=64 > >> elt_size=64 > >> trailer_size=64 > >> total_obj_size=192 > >> > > With --no-huge (since patch updates that part), it gives: > > header_size=64 > > elt_size=64 > > trailer_size=0 > > total_obj_size=128 > > private_data_size=3904 > > > > 1- private_data still rounds to page size, not sure if this is a problem. > > 2- with MEMPOOL_DEBUG=y, trailer_size is 0, comment in code says it > > should keep cookie, not sure if this is a problem. > > Yes the trailer should at least be 8 bytes to store the cookie. > Ok, will fix. that.