mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Huiwen He <hehuiwen@kylinos.cn>
To: Namjae Jeon <linkinjeon@kernel.org>,
	Stefan Chulski <stefan.chulski@broadcom.com>
Cc: Sergey Senozhatsky <senozhatsky@chromium.org>,
	Tom Talpey <tom@talpey.com>,
	ChenXiaoSong <chenxiaosong@chenxiaosong.com>,
	linux-cifs@vger.kernel.org, linux-doc@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Ilya Lifshits <ilya.lifshits@broadcom.com>,
	Gil Benamar <gil.benamar@broadcom.com>,
	Florian Fainelli <florian.fainelli@broadcom.com>,
	bcm-kernel-feedback-list@broadcom.com
Subject: Re: [PATCH RFC v1] ksmbd: add use_unbound_wq module parameter for the ksmbd-io workqueue
Date: Tue, 17 Nov 2026 22:38:21 +0800	[thread overview]
Message-ID: <1840b905-479a-46e3-97a9-b2f40cd50c29@kylinos.cn> (raw)
In-Reply-To: <CAKYAXd-xM=gmpjz7g0+n+ZBA4Vb0Sz2i7B89Cs7XdHUY7U6WdA@mail.gmail.com>

Hi Namjae, Stefan,

Simply routing WRITE requests to an unbound workqueue is not sufficient,
as I've observed performance regressions across a number of workloads. 
I've since developed a more complete approach and will post it soon.

Thanks,
Huiwen

在 2026/11/17 22:25, Namjae Jeon 写道:
> On Tue, Nov 17, 2026 at 5:51 PM Stefan Chulski
> <stefan.chulski@broadcom.com> wrote:
>>
>> On Tue, Nov 17, 2026 at 3:34 AM Namjae Jeon <linkinjeon@kernel.org> wrote:
>>>
>>> On Mon, Nov 16, 2026 at 9:52 PM Stefan Chulski
>>> <stefan.chulski@broadcom.com> wrote:
>>>>
>>>> On Mon, Nov 16, 2026 at 2:10 PM Namjae Jeon <linkinjeon@kernel.org> wrote:
>>>>
>>>> While both address the underlying scheduling limitations of per-CPU
>>>> workqueues for ksmbd, my patch introduces the `use_unbound_wq` module
>>>> parameter rather than changing the behavior unconditionally. Because
>>>> the optimal behavior (cache locality vs. load balancing) heavily
>>>> depends on the specific workload and platform, this approach keeps the
>>>> existing per-CPU behavior as the default while allowing platforms to
>>>> easily opt-in to the unbound workqueue when it yields better
>>>> performance.
>>> Could you provide the benchmark setup and actual results? If
>>> WQ_UNBOUND generally performs better across representative workloads,
>>> We could make it the default and provide a module parameter to opt
>>> into WQ_PERCPU instead.
>>
>> These are the results from our embedded systems featuring dual-core ARM CPUs.
>> The benchmark setup is fairly simple: writing to a USB disk over the
>> network. Because the network traffic is a single 5-tuple TCP stream,
>> it is pinned to one of the CPUs (depending on the 5-tuple hash).
>>
>> We tested this on two different platforms and saw the following
>> throughput improvements:
>> Platform 1: Improved from 178 MB/s to 210 MB/s
>> Platform 2: Improved from 215 MB/s to 263 MB/s
> Okay.
> 
> https://lore.kernel.org/linux-cifs/20261022092514.2590010-1-huiwen.he@linux.dev/
> 
> Huiwen’s RFC also provides a write_wq module parameter, disabled by
> default, so both approaches keep per-CPU request processing as the
> default. The main difference is that Huiwen’s patch routes eligible
> single-channel WRITEs to a separate unbound queue, while your patch
> switches the entire ksmbd-io queue to unbound.
> So, Could you test Huiwen’s patch series with write_wq=1 on your
> platform and compare the results with your patch ?
> 
> Thanks.


  reply	other threads:[~2026-11-17 14:38 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-16  7:48 Stefan Chulski
2026-11-16 12:10 ` Namjae Jeon
2026-11-16 12:52   ` Stefan Chulski
2026-11-17  1:34     ` Namjae Jeon
2026-11-17  8:51       ` Stefan Chulski
2026-11-17 14:25         ` Namjae Jeon
2026-11-17 14:38           ` Huiwen He [this message]
2026-11-17 14:57             ` Stefan Chulski
2026-11-29  8:20               ` Stefan Chulski
2026-11-30  1:05                 ` ChenXiaoSong
2026-11-30  1:30                   ` Huiwen He

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1840b905-479a-46e3-97a9-b2f40cd50c29@kylinos.cn \
    --to=hehuiwen@kylinos.cn \
    --cc=bcm-kernel-feedback-list@broadcom.com \
    --cc=chenxiaosong@chenxiaosong.com \
    --cc=florian.fainelli@broadcom.com \
    --cc=gil.benamar@broadcom.com \
    --cc=ilya.lifshits@broadcom.com \
    --cc=linkinjeon@kernel.org \
    --cc=linux-cifs@vger.kernel.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=senozhatsky@chromium.org \
    --cc=stefan.chulski@broadcom.com \
    --cc=tom@talpey.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®