From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.droids-corp.org (zoll.droids-corp.org [94.23.50.67]) by dpdk.org (Postfix) with ESMTP id 8A1832C55 for ; Thu, 10 Mar 2016 12:12:19 +0100 (CET) Received: from was59-1-82-226-113-214.fbx.proxad.net ([82.226.113.214] helo=[192.168.0.10]) by mail.droids-corp.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84) (envelope-from ) id 1adyXP-0006yO-FG; Thu, 10 Mar 2016 12:13:52 +0100 To: Ferruh Yigit , Stephen Hemminger , dev@dpdk.org References: <1457557926-4056-1-git-send-email-stephen@networkplumber.org> <56E1325C.2030206@6wind.com> <56E150FD.2090403@intel.com> From: Olivier MATZ Message-ID: <56E1568C.5020805@6wind.com> Date: Thu, 10 Mar 2016 12:12:12 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.6.0 MIME-Version: 1.0 In-Reply-To: <56E150FD.2090403@intel.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit 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: Thu, 10 Mar 2016 11:12:19 -0000 >> 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.