All of lore.kernel.org
 help / color / mirror / Atom feed
* [SPDK] spdk_nvme_ns_cmd_read returning -ENOMEM
@ 2020-04-24 20:12 trevordkramer
  0 siblings, 0 replies; only message in thread
From: trevordkramer @ 2020-04-24 20:12 UTC (permalink / raw)
  To: spdk

[-- Attachment #1: Type: text/plain, Size: 672 bytes --]

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 = 1024 * 8;

When I call spdk_nvme_ns_cmd_read I get -ENOMEM if my buffer (which I allocated 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 to do with spdk_nvme_ns_cmd_read failing. Can anyone shed any light? I've looked though the code a bit and it looks like nvme_allocate_request must be failing but I don't understand why.

Thanks,

Trevor

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-04-24 20:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-24 20:12 [SPDK] spdk_nvme_ns_cmd_read returning -ENOMEM trevordkramer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.