Skip to contentSkip to conversation

Query about "Starting I/O failed" exception while using arbitration NVMe example

SPDK Harshit Jain 2 participants 5 messages Jun 17, 2020 – Jun 19, 2020

lore
Share & tools
lore

Harshit Jain

author
#0 lore raw

Hello Team,

I was trying to setup SPDK on Linux Kernel 5.6.4 and get started on using SPDK examples. I hope I have posted the query in the right forum thread.

I was trying to setup SPDK on Linux Kernel 5.6.4. While trying to execute the NVMe arbitration example, I am facing Starting I/O failed exception. I have added debug prints to get the value of error and it was -22.

The attached NVMe SSD has a single namespace of 64MB and 4k sector size format and single controller. Since basic script was giving exception, I tried reducing the IO count to 1 and io size in bytes to 4096 to keep the IO profile simple. But I still faced the same exception.

Is there any configuration missing while setting up SPDK?

I have tried most of the other examples too, it is observed that NVMe Admin commands and queue creation is working fine but the example script is unable to submit NVM I/O commands to the controller due to the mentioned exception.

SPDK version
Starting SPDK v20.07-pre git sha1 e69375b / DPDK 19.11.0 initialization...

Thanks in advance.

Regards,
Harshit

#1 lore raw
Quoted 25 lines

-----Original Message-----
From: Harshit Jain <kumarjain10(a)gmail.com>
Sent: Tuesday, June 16, 2020 10:26 PM
To: spdk(a)lists.01.org
Subject: [SPDK] Query about "Starting I/O failed" exception while using arbitration NVMe example

Hello Team,

I was trying to setup SPDK on Linux Kernel 5.6.4 and get started on using SPDK examples. I hope I have posted the query in the right forum thread.

I was trying to setup SPDK on Linux Kernel 5.6.4. While trying to execute the NVMe arbitration example, I am facing Starting I/O failed exception. I have added debug prints to get the value of error and it was -22.

The attached NVMe SSD has a single namespace of 64MB and 4k sector size format and single controller. Since basic script was giving exception, I tried reducing the IO count to 1 and io size in bytes to 4096 to keep the IO profile simple. But I still faced the same exception.

Is there any configuration missing while setting up SPDK?

Quoted 7 lines

I have tried most of the other examples too, it is observed that NVMe Admin commands and queue creation is working fine but the example script is unable to submit NVM I/O commands to the controller due to the mentioned exception.

SPDK version
Starting SPDK v20.07-pre git sha1 e69375b / DPDK 19.11.0 initialization...

Can you confirm if the other tools like identify and perf are working for you? Does the identify tool report that you device supports arbitration?

Quoted 9 lines

Thanks in advance.

Regards,
Harshit
_______________________________________________
SPDK mailing list -- spdk(a)lists.01.org
To unsubscribe send an email to spdk-leave(a)lists.01.org

#2 lore raw

Hi Harshit,

When you run arbitrary app, If you restrict the huge memeory size, e.g, "-s 512" (to set the app with 512M memory), will this issue be resolved?

Thanks.

Best Regards
Ziye Yang

-----Original Message-----
From: Walker, Benjamin <benjamin.walker(a)intel.com>
Sent: Friday, June 19, 2020 2:48 AM
To: Storage Performance Development Kit <spdk(a)lists.01.org>
Subject: [SPDK] Re: Query about "Starting I/O failed" exception while using arbitration NVMe example

Quoted 23 lines

-----Original Message-----
From: Harshit Jain <kumarjain10(a)gmail.com>
Sent: Tuesday, June 16, 2020 10:26 PM
To: spdk(a)lists.01.org
Subject: [SPDK] Query about "Starting I/O failed" exception while using arbitration NVMe example

Hello Team,

I was trying to setup SPDK on Linux Kernel 5.6.4 and get started on using SPDK examples. I hope I have posted the query in the right forum thread.

I was trying to setup SPDK on Linux Kernel 5.6.4. While trying to execute the NVMe arbitration example, I am facing Starting I/O failed exception. I have added debug prints to get the value of error and it was -22.

The attached NVMe SSD has a single namespace of 64MB and 4k sector size format and single controller. Since basic script was giving exception, I tried reducing the IO count to 1 and io size in bytes to 4096 to keep the IO profile simple. But I still faced the same exception.

Is there any configuration missing while setting up SPDK?

Quoted 7 lines

I have tried most of the other examples too, it is observed that NVMe Admin commands and queue creation is working fine but the example script is unable to submit NVM I/O commands to the controller due to the mentioned exception.

SPDK version
Starting SPDK v20.07-pre git sha1 e69375b / DPDK 19.11.0 initialization...

Can you confirm if the other tools like identify and perf are working for you? Does the identify tool report that you device supports arbitration?

Quoted 9 lines

Thanks in advance.

Regards,
Harshit
_______________________________________________
SPDK mailing list -- spdk(a)lists.01.org To unsubscribe send an email to spdk-leave(a)lists.01.org

_______________________________________________
SPDK mailing list -- spdk(a)lists.01.org
To unsubscribe send an email to spdk-leave(a)lists.01.org

author
#4 lore raw
In reply to Walker

Hi Benjamin,
Thanks for the support.

No identify example is also not working. It gets stuck after printing the below statement "EAL: No available hugepages reported in hugepages-1048576kB"

Should this be ignored, or hugepages is not configured correctly..?

Regards,
Harshit

author
#3 lore raw
In reply to Yang

Hi Yang,

Thanks for the support,

I tried restricting the hugepage size to 512 using sudo HUGEMEM=512 scripts/setup.sh. But still the issue exists. I hope I am configuring the hugepage using proper command.

Regards,
Harshit