Content-Type: multipart/mixed; boundary="===============0694198211010794513==" MIME-Version: 1.0 From: trevordkramer at gmail.com Subject: [SPDK] spdk_nvme_ns_cmd_read returning -ENOMEM Date: Fri, 24 Apr 2020 20:12:38 +0000 Message-ID: <20200424201238.2763.11589@ml01.vlan13.01.org> List-ID: To: spdk@lists.01.org --===============0694198211010794513== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hello, I have a system with 8 1GB hugepages configured at boot time split between = 2 sockets. I reserve all 8 for spdk with = struct spdk_env_opts opts{}; spdk_env_opts_init(&opts); opts.mem_size =3D 1024 * 8; When I call spdk_nvme_ns_cmd_read I get -ENOMEM if my buffer (which I alloc= ated with spdk_zmalloc) is too large. The call to spdk_zmalloc succeeds so = the buffer is created. I don't understand what the buffer size would have t= o do with spdk_nvme_ns_cmd_read failing. Can anyone shed any light? I've lo= oked though the code a bit and it looks like nvme_allocate_request must be = failing but I don't understand why. Thanks, Trevor --===============0694198211010794513==--