public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* btrfs thread_pool_size logic out of sync with workqueue
@ 2025-04-28 23:23 Junxuan Liao
  2025-04-29 18:12 ` Tejun Heo
  0 siblings, 1 reply; 7+ messages in thread
From: Junxuan Liao @ 2025-04-28 23:23 UTC (permalink / raw)
  To: Chris Mason, Josef Bacik, David Sterba, Tejun Heo, Lai Jiangshan,
	linux-btrfs, linux-kernel

Hi all,

Commit 636b927eba5bc63375 (workqueue: Make unbound workqueues to use
per-cpu pool_workqueues) makes max_active per CPU for unbounded
workqueues as well, but thread_pool_size in btrfs_fs_info and the mount
option thread_pool still assume the limit is global.

e.g. The default value of 8 allows a total of 64 workers on an 8-CPU
machine.

As far as I know, this means that on the Btrfs side we can no longer
control the concurrency level at the same granularity as before. We
should rewrite the auto-scaling logic, change the default
thread_pool_size value, and update the documentation. 

Am I missing something?

-- 
Thanks,
Junxuan

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-04-30 18:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-28 23:23 btrfs thread_pool_size logic out of sync with workqueue Junxuan Liao
2025-04-29 18:12 ` Tejun Heo
2025-04-29 18:28   ` Junxuan Liao
2025-04-29 18:35     ` Tejun Heo
2025-04-29 21:15       ` Junxuan Liao
2025-04-29 21:26         ` Junxuan Liao
2025-04-30 18:46           ` Tejun Heo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox