]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
xfstests: add a multithreaded mode to bstat
authorDave Chinner <dchinner@redhat.com>
Fri, 15 Nov 2024 14:08:41 +0000 (01:08 +1100)
committerZorro Lang <zlang@kernel.org>
Sun, 8 Dec 2024 13:57:55 +0000 (21:57 +0800)
commit9f775a4d85e0578c2686c154e37be10dfc4e9db7
tree09744322bb97686cd990b6cb9707e469fc3daf11
parent8467552f09e1672a02712653b532a84bd46ea10e
xfstests: add a multithreaded mode to bstat

For benchmarking of bulkstat, add a multithreaded mode that spawns a
thread per AG and runs bulkstat on every AG in parallel. There is a
small amount of overlap between each AG because of the way the
interface works only on inode numbers, so some inodes are reported
twice. A real implementation of this sort of parallelism would be
greatly helped by adding an AG parameter to the bulkstat interface.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Zorro lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
src/bstat.c