>>>>> "Gionatan" == Gionatan Danti <g.danti@xxxxxxxxxx> writes: Gionatan> On 09/12/19 11:26, Daniel Janzon wrote: >> Exactly. The md driver executes on a single core, but with a bunch of RAID5s >> I can distribute the load over many cores. That's also why I cannot join the >> bunch of RAID5's with a RAID0 (as someone suggested) because then again >> all data is pulled through a single core. Gionatan> MD RAID0 is extremely fast, using a single core at the Gionatan> striping level should pose no problem. Did you actually Gionatan> tried this setup? Gionatan> Anyway, the suggestion from Guoqing Jiang sound promising. Let me quote him: >> Perhaps set "/sys/block/mdx/md/group_thread_cnt" could help here, >> see below commits: >> >> commit b721420e8719131896b009b11edbbd27d9b85e98 >> Author: Shaohua Li <shli@xxxxxxxxxx> >> Date: Tue Aug 27 17:50:42 2013 +0800 >> >> raid5: sysfs entry to control worker thread number >> >> commit 851c30c9badfc6b294c98e887624bff53644ad21 >> Author: Shaohua Li <shli@xxxxxxxxxx> >> Date: Wed Aug 28 14:30:16 2013 +0800 >> >> raid5: offload stripe handle to workqueue I think this requires a much newer kernel, but since he's running on RHEL7 using kernel 3.10.x with RH patches and such, that feature doesn't exist. I just checked on my one my RHEL7.6 systems and I don't see that option. And I just setup a RAID5 four device RAID and it doesn't have that option. So I think maybe you need to try: mdadm -C -l 0 -c 64 md_stripe /dev/md_raid5[1-8] But thinking some more, maybe you want to pin the RAID5 threads for each of your RAID5s to a seperate CPU using cpusets? Maybe that will help performance? But wait, why using use an MD stripe on top of the RAID5 setup? Or are you? Can you please provide the setup of the system? cat /proc/mdstat vgs -av pvs -av lvs -av Just so we can look at what you're doing? Also, what's the queue depth of your devices? Maybe with NVMe you can bump it up higher? Or maybe it wants to be lower... something else to check. John _______________________________________________ linux-lvm mailing list linux-lvm@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/linux-lvm read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/