Message ID | 161142799399.2173328.8759691345812968430.stgit@magnolia (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | xfs: speed up parallel workqueues | expand |
On Sat, Jan 23, 2021 at 10:53:14AM -0800, Darrick J. Wong wrote: > - pctl->wq = alloc_workqueue("%s-%d", WQ_FREEZABLE, nr_threads, tag, > - current->pid); > + pctl->wq = alloc_workqueue("%s-%d", WQ_UNBOUND | WQ_SYSFS | WQ_FREEZABLE, > + nr_threads, tag, current->pid); This adds an overly long line. But more importantly I think xfs.txt needs to grow a section that we now can tune XFS parameters through the workqueue sysfs files, especially as right now I have no idea how to find those based on an actual device or XFS mount I need to adjust the parameters for.
On Sun, Jan 24, 2021 at 09:51:50AM +0000, Christoph Hellwig wrote: > On Sat, Jan 23, 2021 at 10:53:14AM -0800, Darrick J. Wong wrote: > > - pctl->wq = alloc_workqueue("%s-%d", WQ_FREEZABLE, nr_threads, tag, > > - current->pid); > > + pctl->wq = alloc_workqueue("%s-%d", WQ_UNBOUND | WQ_SYSFS | WQ_FREEZABLE, > > + nr_threads, tag, current->pid); > > This adds an overly long line. Changed. > But more importantly I think xfs.txt needs to grow a section that we now > can tune XFS parameters through the workqueue sysfs files, especially as > right now I have no idea how to find those based on an actual device or > XFS mount I need to adjust the parameters for. Ok, I'll add a section. --D
diff --git a/fs/xfs/xfs_pwork.c b/fs/xfs/xfs_pwork.c index 33fe952cdaf8..704a1c2af90c 100644 --- a/fs/xfs/xfs_pwork.c +++ b/fs/xfs/xfs_pwork.c @@ -70,8 +70,8 @@ xfs_pwork_init( #endif trace_xfs_pwork_init(mp, nr_threads, current->pid); - pctl->wq = alloc_workqueue("%s-%d", WQ_FREEZABLE, nr_threads, tag, - current->pid); + pctl->wq = alloc_workqueue("%s-%d", WQ_UNBOUND | WQ_SYSFS | WQ_FREEZABLE, + nr_threads, tag, current->pid); if (!pctl->wq) return -ENOMEM; pctl->work_fn = work_fn;