Return-Path: DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org A223882015 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 971EB82005 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunadesign.net; s=default; h=Content-Type:MIME-Version:Message-ID:Date: Subject:In-Reply-To:References:To:From:Sender:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=WMOl21YN2p7HUWLizY2bLnCrJ6hS1LttceTWE01R4vs=; b=aEQM7xN0OwYZyQtmuaEW4Wy9q7 p94stbNFUOvjs1QSaRSexEV47phIWyGTfds1SSIEgose2Qox8rtyoshnORn2aqSRj9ZZR3Xzb/jcY oSEAqYWlCv2YT/BK9Kv1mQta5PSNe4RutnAwlJM2dfavkMTRWNc4VeNSCA2FEM1im9PrbIgugvWuK 1b5rg5hz9EgYPzp0lU1OpzT2kzkuE4Ud62Gm7qRDO04abmphxsEEVeHSn7g+fB6ubnA8KFQZ+K3rD k5R8lQNQne/17eR+zothJCoNOD8Z6jAXmscZ2XHc33cTjtlzpQVQ8qbRhjwlmztS1NlRpPPZFX4WD he0oiE8Q==; From: "Luis Navarro" References: <43f301d96bfc$ebfc6e60$c3f54b20$@lunadesign.net> In-Reply-To: Date: Thu, 20 Apr 2023 15:51:12 -0700 Message-ID: <2c3b01d973da$9b4deb20$d1e9c160$@lunadesign.net> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_2C3C_01D9739F.EEEFFD80" Content-Language: en-us Subject: Re: [SPDK] Can't create large Malloc bdev List-Id: Storage Performance Development Kit List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "'Harris, James R'" , spdk@lists.linuxfoundation.org This is a multipart message in MIME format. ------=_NextPart_000_2C3C_01D9739F.EEEFFD80 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi Jim, My apologies for the delay in responding. I tried both approaches and they both worked perfectly! Thanks! Luis From: Harris, James R [mailto:james.r.harris@intel.com] Sent: Monday, April 10, 2023 4:09 PM To: Luis Navarro ; spdk@lists.linuxfoundation.org Subject: Re: [SPDK] Can't create large Malloc bdev Hi Luis, DPDK has a default limit of 8192 memsegs per list (you probably see some kind of error about this on the target console). A couple of ways I'm aware of that should work: 1) Patch dpdk/config/rte_config.h locally, increasing RTE_MAX_MEMSEG_PER_LIST to something larger. The current 8192 default should enable malloc bdevs slightly smaller than 16GiB. 2) Use 1GB hugepages. -Jim From: SPDK on behalf of Luis Navarro > Date: Monday, April 10, 2023 at 3:39 PM To: spdk@lists.linuxfoundation.org > Subject: [SPDK] Can't create large Malloc bdev Hi all, I'm new to SPDK and testing out the SPDK NVMe-oF target with the latest ESXi 7.x initiator. I've got an Ubuntu 22.04 LTS server with 512 GB RAM and seem to be unable to create a Malloc bdev that's larger than 14 GB. Here's what I am seeing: $ sudo HUGEMEM=102400 scripts/setup.sh $ sudo scripts/rpc.py bdev_malloc_create -b malloc0 16384 512 request: { "num_blocks": 33554432, "block_size": 512, "name": "malloc0", "method": "bdev_malloc_create", "req_id": 1 } Got JSON-RPC error response response: { "code": -12, "message": "Cannot allocate memory" } What am I doing wrong? Thanks! Luis ------=_NextPart_000_2C3C_01D9739F.EEEFFD80 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi = Jim,

 

My = apologies for the delay in responding.  I tried both approaches and = they both worked perfectly!

 

Thanks!

Luis

 

From: Harris, James R = [mailto:james.r.harris@intel.com]
Sent: Monday, April 10, = 2023 4:09 PM
To: Luis Navarro <ln@lunadesign.net>; = spdk@lists.linuxfoundation.org
Subject: Re: [SPDK] Can't = create large Malloc bdev

 

Hi Luis,

 

DPDK has a default = limit of 8192 memsegs per list (you probably see some kind of error = about this on the target console).

 

A couple of ways = I’m aware of that should work:

 

1)      = Patch = dpdk/config/rte_config.h locally, increasing RTE_MAX_MEMSEG_PER_LIST to = something larger.  The current 8192 default should enable malloc = bdevs slightly smaller than 16GiB.

2)      = Use 1GB = hugepages.

 

-Jim

 

 

 

From: = SPDK <spdk-bounces@lists= .linuxfoundation.org> on behalf of Luis Navarro <ln@lunadesign.net>
Date: = Monday, April 10, 2023 at 3:39 PM
To: spdk@lists.linuxfoundation= .org <spdk@lists.linuxfoundation= .org>
Subject: [SPDK] Can't create large Malloc = bdev

Hi = all,

 

I'm new to SPDK and testing out the SPDK = NVMe-oF target with the latest ESXi 7.x = initiator.

 

I've got an Ubuntu 22.04 LTS server with 512 = GB RAM and seem to be unable to create a Malloc bdev that's larger than = 14 GB.

 

Here’s what I am = seeing:

 

$ sudo HUGEMEM=3D102400 = scripts/setup.sh

$ = sudo scripts/rpc.py bdev_malloc_create -b malloc0 16384 512

request:

{

  "num_blocks": = 33554432,

  "block_size": 512,

  "name": "malloc0",

  "method": = "bdev_malloc_create",

  "req_id": 1

}

Got JSON-RPC error = response

response:

{

  "code": = -12,

  "message": = "Cannot allocate memory"

}

 

What am I doing = wrong?

 

Thanks!

Luis

 

------=_NextPart_000_2C3C_01D9739F.EEEFFD80--