mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: ChenXiaoSong <chenxiaosong@chenxiaosong.com>
To: Huiwen He <huiwen.he@linux.dev>,
	Namjae Jeon <linkinjeon@kernel.org>,
	linux-cifs@vger.kernel.org
Cc: Sergey Senozhatsky <senozhatsky@chromium.org>,
	Tom Talpey <tom@talpey.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 0/2] ksmbd: splice READ payloads over TCP
Date: Wed, 25 Nov 2026 12:29:01 +0800	[thread overview]
Message-ID: <a5b87baf-0573-4c47-85f4-0629dc1cf000@chenxiaosong.com> (raw)
In-Reply-To: <20261124132554.1185817-1-huiwen.he@linux.dev>

Reviewed-by: ChenXiaoSong <chenxiaosong@kylinos.cn>

On 11/24/26 21:25, Huiwen He wrote:
> From: Huiwen He <hehuiwen@kylinos.cn>
> 
> ksmbd reads file data into a private response buffer. TCP then copies
> the payload into an skb. If the reply must be queued, ksmbd also
> copies the unsent bytes into a queue buffer.
> 
> This series uses MSG_SPLICE_PAGES to avoid those TCP copies for plain,
> standalone READs: patch 1 splices the initial TCP send from private
> pages and a header page fragment, and patch 2 retains references to
> unsent payload folios on the send queue so the send worker can splice
> them as well.
> 
> Summary of fio sequential read results (16 jobs, QD32 per job, SMB3.1.1
> tmpfs; each column is relative to the preceding commit):
> 
> Channels  I/O         Throughput change        Host Gcycles/GiB change
>                       patch 1    patch 2          patch 1    patch 2
>         1  4 KiB        -0.3%      -0.9%            +1.8%      -1.1%
>         1  64 KiB      +28.4%      +0.9%           -31.5%      -5.9%
>         1  256 KiB     +60.8%      +5.3%           -40.5%     -22.5%
>         1  1 MiB       +51.5%      +9.2%           -33.1%     -32.2%
>         4  4 KiB        +0.2%      +0.2%            +0.9%      +0.2%
>         4  64 KiB       +3.9%      +2.6%            -6.9%      +0.8%
>         4  256 KiB     +12.1%      -0.4%           -43.0%      -0.8%
>         4  1 MiB       +17.6%      +7.1%           -39.5%     -34.7%
> 
> Huiwen He (2):
>    ksmbd: send READ payloads with MSG_SPLICE_PAGES
>    ksmbd: retain unsent READ pages on the TCP send queue
> 
>   fs/smb/server/connection.c    |  18 +++
>   fs/smb/server/connection.h    |   1 +
>   fs/smb/server/ksmbd_work.c    |  24 ++--
>   fs/smb/server/ksmbd_work.h    |   8 +-
>   fs/smb/server/smb2pdu.c       |  74 +++++++++--
>   fs/smb/server/transport_tcp.c | 223 ++++++++++++++++++++++++++++++----
>   fs/smb/server/transport_tcp.h |   1 +
>   7 files changed, 301 insertions(+), 48 deletions(-)
> 
> 
> base-commit: 89d5e8fdd5a74a318d18b7267c4ec5d70b2285f1

-- 
ChenXiaoSong <chenxiaosong@chenxiaosong.com>
Chinese Homepage: https://chenxiaosong.com
English Homepage: https://chenxiaosong.com/en


      parent reply	other threads:[~2026-11-25  4:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-24 13:25 Huiwen He
2026-11-24 13:25 ` [PATCH 1/2] ksmbd: send READ payloads with MSG_SPLICE_PAGES Huiwen He
2026-11-24 13:33 ` [PATCH 2/2] ksmbd: retain unsent READ pages on the TCP send queue Huiwen He
2026-11-25  4:29 ` ChenXiaoSong [this message]

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=a5b87baf-0573-4c47-85f4-0629dc1cf000@chenxiaosong.com \
    --to=chenxiaosong@chenxiaosong.com \
    --cc=huiwen.he@linux.dev \
    --cc=linkinjeon@kernel.org \
    --cc=linux-cifs@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=senozhatsky@chromium.org \
    --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®