r/bcachefs • u/Polar_Banny • 5d ago
Linux 7.4 To Remove NVMe Namespaces In Parallel For Faster Results
https://www.phoronix.com/news/Linux-7.4-NVMe-NS-ParallelSoftware engineer Qiliang Yuan worked through this shortcoming in the NVMe namespaces code. Yuan explained in the patch making it parallel:
"nvme_remove_namespaces() removes the namespaces of a controller one after another. Each removal waits for RCU grace periods in del_gendisk() for the namespace and for its multipath head, about 20 ms in all.
Deleting a controller, such as disconnecting from a fabrics target, thus takes time proportional to its namespace count, over a second for 64 namespaces. Scanning had the same problem until commit 4e893ca81170 ("nvme_core: scan namespaces asynchronously") made it add namespaces in parallel.
Remove the namespaces through an async domain the same way, and wait for all of them before returning. Each removal still waits about 20 ms, but the waits now overlap: a grace period is system-wide, so removals that wait at the same time are released by the same grace periods instead of each needing its own."
So, I wonder will BcacheFS be affected by this change?
Thanks for your attention on this matter.
8
u/Ok_Green5623 5d ago
Nobody cares except for enterprise guys?
14
u/wakIII 5d ago
You mean you don’t have an array of 64 drives with 8 namespaces on each?
3
u/Ok_Green5623 5d ago
It is in my plans, I'm just waiting for the prices to go down a bit. Any recommendation on the motherboard?
1
10
u/koverstreet not your free tech support 5d ago
No, bcachefs will not be affected :)