* raid5: how to bind worker threads to specified cpus
@ 2018-09-13 8:18 蒋雄伟(蒋冲)
0 siblings, 0 replies; only message in thread
From: 蒋雄伟(蒋冲) @ 2018-09-13 8:18 UTC (permalink / raw)
To: linux-kernel; +Cc: shli, neilb
Since commit b721420e8719131896b009b11edbbd27d9b85e98, raid5 has been
enabled to support workqueue offload handling of stripes. However, if I hope
to bind worker threads to specified cpus, for example 0-3, is it possible?
The reason for doing this is that I hope applications will not be disturbed
by raid5's jobs. My naive idea is to add a field named "affinity_hint" to
struct r5conf, and then add a sysfs entry to input cpu list, and then take
stripe_head's sector as the hash key to evenly distribute stripe_head across
the cpus.
Anyone has suggestion about my idea or any alternative solutions to bind
worker threads to specified cpus ? thanks a lot .
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-09-13 8:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-13 8:18 raid5: how to bind worker threads to specified cpus 蒋雄伟(蒋冲)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®