From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f51.google.com (mail-wg0-f51.google.com [74.125.82.51]) by dpdk.org (Postfix) with ESMTP id 425DC952 for ; Mon, 13 Jul 2015 15:16:42 +0200 (CEST) Received: by wgxm20 with SMTP id m20so112697505wgx.3 for ; Mon, 13 Jul 2015 06:16:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=KgryRonfr9/ZHhWABecob0YLDQPilnn3tf3ChIJ/CVQ=; b=jurAtsRcoD142/CpP22E3hrjM9t7ZMIHDeUB95BSFTgETZxb1OFT+Rvq0t9xXmRIUM Gh5kYatuLIy/H+sJ1PmRf1KKwsPSarFmbLLymsNclRTncQs74+F3temUUMXcaeXAtQ8t gJzyDEVmNDdzr0xZVQoxCkxYhoxsvYHf9waG4nByHftBN9d1qkDuGybucfuqQCTXccv5 B85Mqi/vgYjh83c1BhiivqHkWnoTCdnZZ/IkenSLumN2gHp573B7Zpq3aF/3bceoR8uM e6UBuZuyie16CdaLLqbBeKmD2qcOKsZMU56dogXw9Ni9oauAhKcx7FebdwZCHnKh/UYj BY3w== X-Gm-Message-State: ALoCoQmwCrycv+ZGUp7vFmS5i1iLSCXfOJ+0ZgMZa1lDPb6qBiwWWGWQ4zPHlMGKPV9+p+HdXmrM X-Received: by 10.180.81.106 with SMTP id z10mr21773132wix.22.1436793402099; Mon, 13 Jul 2015 06:16:42 -0700 (PDT) Received: from xps13.localnet (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by smtp.gmail.com with ESMTPSA id di7sm14570956wib.23.2015.07.13.06.16.40 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Jul 2015 06:16:41 -0700 (PDT) From: Thomas Monjalon To: Sergio Gonzalez Monroy Date: Mon, 13 Jul 2015 15:15:29 +0200 Message-ID: <1950499.ugaRFZaJI9@xps13> Organization: 6WIND User-Agent: KMail/4.14.8 (Linux/4.0.4-2-ARCH; KDE/4.14.8; x86_64; ; ) In-Reply-To: <1435917343-23032-1-git-send-email-sergio.gonzalez.monroy@intel.com> References: <1435332578-28415-1-git-send-email-sergio.gonzalez.monroy@intel.com> <1435917343-23032-1-git-send-email-sergio.gonzalez.monroy@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH v7 0/9] Dynamic memzones 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, 13 Jul 2015 13:16:42 -0000 2015-07-03 10:55, Sergio Gonzalez Monroy: > Current implemetation allows reserving/creating memzones but not the opposite > (unreserve/free). This affects mempools and other memzone based objects. > > From my point of view, implementing free functionality for memzones would look > like malloc over memsegs. > Thus, this approach moves malloc inside eal (which in turn removes a circular > dependency), where malloc heaps are composed of memsegs. > We keep both malloc and memzone APIs as they are, but memzones allocate its > memory by calling malloc_heap_alloc. > Some extra functionality is required in malloc to allow for boundary constrained > memory requests. > In summary, currently malloc is based on memzones, and with this approach > memzones are based on malloc. Please Sergio, could you rebase your work on top of TileGX series which made some important modifications in memzones? The TileGX series is integrated first. The goal is to integrate this series as soon as possible. Thanks