* [SPDK] Does BlobFS Asynchronous API support multi thread writing?
@ 2018-08-01 9:07 chen.zhenghua
0 siblings, 0 replies; only message in thread
From: chen.zhenghua @ 2018-08-01 9:07 UTC (permalink / raw)
To: spdk
[-- Attachment #1: Type: text/plain, Size: 780 bytes --]
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
[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 5620 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-08-01 9:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-01 9:07 [SPDK] Does BlobFS Asynchronous API support multi thread writing? chen.zhenghua
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox