Skip to contentSkip to conversation

Does BlobFS Asynchronous API support multi thread writing?

SPDK chen.zhenghua at zte.com.cn 1 participant 2 messages Aug 1, 2018 – Apr 15, 2022

lore
Share & tools
lore

chen.zhenghua at zte.com.cn

#0 lore raw

Hi everyone,

I simply tested the BlobFS Asynchronous API by using SPDK events framework to execute multi tasks, each task writes one file.

But it doesn't work, the spdk_file_write_async() reported an error when resizing the file size.

The call stack looks like this:

spdk_file_write_async() -> __readwrite() -> spdk_file_truncate_async() -> spdk_blob_resize()

The resize operation must be done in the metadata thread which invoked the spdk_fs_load(), so only the task dispatched to the metadata CPU core works.

That's to say only one thread can be used to write files. It's hard to use, and performance issues may arise.

Does anyone knows further more about this?

thanks very much

#1 lore raw

Because I continued to obtain school at the age of 33, I completely understand you. They're dealing with issues and a lack of time, and they already have a family to look after. But, because my family came first, I was able to essaygeek https://www.essaygeeks.co.uk . It now provides assignment assistance. That appeals to me. My college grades are good, and my family receives adequate care.