From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E2A2A425DC; Mon, 18 Sep 2023 18:44:22 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7AB384067B; Mon, 18 Sep 2023 18:44:22 +0200 (CEST) Received: from mail-pj1-f46.google.com (mail-pj1-f46.google.com [209.85.216.46]) by mails.dpdk.org (Postfix) with ESMTP id 3B7A5402DA for ; Mon, 18 Sep 2023 18:44:21 +0200 (CEST) Received: by mail-pj1-f46.google.com with SMTP id 98e67ed59e1d1-273d10d3df3so3442080a91.3 for ; Mon, 18 Sep 2023 09:44:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1695055460; x=1695660260; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=Fry/txs90FaRR4/RVoWIGvjUvUfaUodefgvRvG1rYjc=; b=wgwUoi4RST+GsNLfepvGT687UlkU93LgoWGYD8bsJn2itxtlQewPfIoQfKa+oKyor4 9IVpQjywlUIrwukA6Z7w6QRS2dy5kYDqZ4icnqe8sk/qlTS+EfJS74cgQCfz0GHWWLjj tk6+acv7Su8Q5d9IF6uN4Oo3masY4KUepueVgsQlKbUm484xuNEMAYTY9QvR+zVTJlWo QMgjnFqWkv/Ux+Q3C+Yc76zO1FIpfSXGHji3DihEbLB06OcUwWxE051BUFm+7KJeolNk FDc87ItVkbevxayHyi0mkqhGvpsGkKpFUKtfJ+bG/g9o2ShDUr+RrzTSTCn+Bv+jFE4b 1TeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695055460; x=1695660260; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Fry/txs90FaRR4/RVoWIGvjUvUfaUodefgvRvG1rYjc=; b=K/9hwZqH/DgjD1J5xf70A5/89UuqL7iz2BrdTQAOnm2vXKYPXpAMYfzQndFvMoPC/G uuSm65x6ZoZ0lcu0UhourTmcQavwstBgnCxoY47rt6iz0RNqsB2EjSmWq+10OLJY8ddp tw3bbAPrt1YL+rG44awbP07uDK9BLBo7CUj0+UMbJpvahKd3JeK8Fpia4DwyO+bgGzCY nQS/G2ClXATaZ1XL+ZRSx82w91dOxrVWlYyh7RQleg5bWZsGTzpVUV5b8MDMokzWVN1G p4ffkZWr0+uPNNAotZXNoaMgj1cgn840mtKLsZa0hSmRiIL2T/mUMsieGrRWW8x77pjE 0OCQ== X-Gm-Message-State: AOJu0YwY0R94xPC9OP+pvdxIYVk+DNjm29kp404i2eXO2Ns84lCEn1L2 1CGQWa8RSjmqq9POEl5Gm6gBdA== X-Google-Smtp-Source: AGHT+IGulcrvAJINwwXzYJW6Lo2bROdTEvu6OIVyzdpLQphwdxNgJqn6NEIpZoJMzN0qaRNa4++D3Q== X-Received: by 2002:a17:90a:670d:b0:271:9c57:1c9a with SMTP id n13-20020a17090a670d00b002719c571c9amr7125233pjj.21.1695055460231; Mon, 18 Sep 2023 09:44:20 -0700 (PDT) Received: from hermes.local (204-195-112-131.wavecable.com. [204.195.112.131]) by smtp.gmail.com with ESMTPSA id fv23-20020a17090b0e9700b002740e66851asm9258708pjb.35.2023.09.18.09.44.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 09:44:20 -0700 (PDT) Date: Mon, 18 Sep 2023 09:44:18 -0700 From: Stephen Hemminger To: Bruce Richardson Cc: dev@dpdk.org Subject: Re: [PATCH v3 0/2] Enable apps to use external memory as native Message-ID: <20230918094418.5448052f@hermes.local> In-Reply-To: <20230918163206.1010611-1-bruce.richardson@intel.com> References: <20230915122703.475834-1-bruce.richardson@intel.com> <20230918163206.1010611-1-bruce.richardson@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Mon, 18 Sep 2023 17:32:04 +0100 Bruce Richardson wrote: > Sometimes apps (or perhaps DPDK driver components) may want to allow > use of "external" i.e. non EAL allocated, memory as though it were > standard DPDK memory. This patchset provides the ability to do this, > by: firstly, adding an explicit flag to indicate non-EAL memory, > rather than relying on the socket_id implicitly, and then secondly, > allowing heaps to be swapped, so an external heap can be used as the > default heap for socket 0 or 1, etc. > > V3: > * Expand to 2 patch set, adding patch to tag external memory > explicitly, before adding the swap function > * Add locks to improve thread safety of the swap opperation. > * Add additional notes to function to clarify usage. > > V2: > * Fix doxygen comment issue on doc builds > > Bruce Richardson (2): > eal: add flag to indicate non-EAL malloc heaps > eal: allow swapping of malloc heaps > > lib/eal/common/malloc_heap.c | 46 ++++++++++++++++++++++++++++-------- > lib/eal/common/malloc_heap.h | 1 + > lib/eal/common/malloc_mp.c | 5 ++-- > lib/eal/common/rte_malloc.c | 14 ++++++----- > lib/eal/include/rte_malloc.h | 34 ++++++++++++++++++++++++++ > lib/eal/version.map | 2 ++ > 6 files changed, 83 insertions(+), 19 deletions(-) > > -- > 2.39.2 > Series-Acked-by: Stephen Hemminger