mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Saravanan D <saravanand@crusoe.ai>
To: Daniel Wagner <dwagner@suse.de>
Cc: Saravanan D <saravanand@crusoe.ai>,
	Hannes Reinecke <hare@suse.de>,
	linux-nvme@lists.infradead.org, kbusch@kernel.org, hch@lst.de,
	sagi@grimberg.me, axboe@kernel.dk, nilay@linux.ibm.com,
	sgogte@purestorage.com, hare@kernel.org,
	linux-kernel@vger.kernel.org, iyamahata@crusoe.ai,
	kiyer@crusoe.ai, ganbalagane@crusoe.ai, sjpark@crusoe.ai,
	bchen@crusoe.ai
Subject: Re: [PATCH v5 2/2] nvme-tcp: allow setting per-queue io_cpu through sysfs
Date: Tue, 24 Nov 2026 01:29:10 -0800	[thread overview]
Message-ID: <20261124092915.90075-1-saravanand@crusoe.ai> (raw)
In-Reply-To: <79b5a23a-5ecf-4e96-85c8-031b5eca2867@flourine.local>

On Wed, Oct 21, 2026 at 10:19:37AM +0200, Daniel Wagner wrote:
> However, to make this truly user-friendly, I think nvme-cli should be
> extended so it is aware of this and can configure it directly. I've
> merged Nilay's --nr-io-queues patches, so this is the natural next
> feature nvme-cli should support; see commit:
>
> e170d6985797 ("news: document the use of --nr-io-queues during nvme connect")

Hi Daniel,

Now that Keith has queued v8 for 7.5, I have started on the nvme-cli
support and I would like to get alignment on the command shape.

To show the values, I plan to have show-topology and its JSON output
list io_cpu and managed for each queue of a TCP controller, next to
the existing per controller fields such as NUMANode and Reconnects.

Setting io_cpu cannot follow --nr-io-queues as a connect option,
because the kernel only exposes it in sysfs once the queues exist. As
far as I can tell no nvme-cli command writes a kernel sysfs attribute
today, and the only writes are the vendor defaults libnvme applies
after a connect. So I am proposing a new command

  nvme set-io-cpu <ctrl> --qid=<qid> --cpu=<cpu>

backed by a libnvme call that reads and writes queues/<qid>/io_cpu.
When privilege separation is in use, the helper's handle_set_attr()
would gain an io_cpu case that only accepts a valid controller name, a
numeric qid and a cpu number or -1, alongside ctrl_loss_tmo and
iopolicy.

Would you prefer a different name or home for this, for example a more
general command for setting controller attributes?

I can post the series as soon as we agree on the command. If you
would rather wait for the kernel patches to land in Linus's tree, I
will hold it until then.

Thanks,
Saravanan D.

  parent reply	other threads:[~2026-11-24  9:29 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-18  1:00 [PATCH v5 0/2] " Saravanan D
2026-10-18  1:00 ` [PATCH v5 1/2] nvme: add per-queue sysfs directories Saravanan D
2026-10-18  1:00 ` [PATCH v5 2/2] nvme-tcp: allow setting per-queue io_cpu through sysfs Saravanan D
2026-10-20 15:28   ` Daniel Wagner
2026-10-21  7:21     ` Hannes Reinecke
2026-10-21  8:19       ` Daniel Wagner
2026-10-21 10:00         ` Saravanan D
2026-11-24  9:29         ` Saravanan D [this message]
2026-10-21  7:28   ` Hannes Reinecke
2026-10-21  9:53     ` Saravanan D
     [not found]   ` <sashiko-outbox-175868@kernel.org>
2026-10-21  9:45     ` Saravanan D

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=20261124092915.90075-1-saravanand@crusoe.ai \
    --to=saravanand@crusoe.ai \
    --cc=axboe@kernel.dk \
    --cc=bchen@crusoe.ai \
    --cc=dwagner@suse.de \
    --cc=ganbalagane@crusoe.ai \
    --cc=hare@kernel.org \
    --cc=hare@suse.de \
    --cc=hch@lst.de \
    --cc=iyamahata@crusoe.ai \
    --cc=kbusch@kernel.org \
    --cc=kiyer@crusoe.ai \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-nvme@lists.infradead.org \
    --cc=nilay@linux.ibm.com \
    --cc=sagi@grimberg.me \
    --cc=sgogte@purestorage.com \
    --cc=sjpark@crusoe.ai \
    /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®