virtualization.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] virtio-fs: introduce multi-queue support
@ 2024-05-01 15:38 Peter-Jan Gootzen
  2024-05-01 15:38 ` [PATCH 1/2] virtio-fs: limit number of request queues Peter-Jan Gootzen
                   ` (3 more replies)
  0 siblings, 4 replies; 18+ messages in thread
From: Peter-Jan Gootzen @ 2024-05-01 15:38 UTC (permalink / raw)
  To: virtualization, vgoyal, stefanha, miklos
  Cc: mst, dgilbert, yorayz, gurtovoy, Peter-Jan Gootzen

In this patch set we are adding multi-queue support in the virtio-fs
driver to enhance performance.
While multi-queue functionality has been in the virtio-fs specification
since its inception, the current implementation in the Linux kernel
creates multiple queues, but only enqueues requests on the first request
queue.

The first commit in this patch set limits the number of request queues
to the number of CPUs in the system, to reduce unnecessary resource
consumption on the device-side.
The second commit adds a multi queue mapping to the virtio-fs device
driver that is created using MSI-X affinity mappings or, in case of no
existing mappings, by evenly grouping the CPUs and dividing the queues
over these groups.

Future work in this direction could include:
- CPU hotplug support
- In case of no MSI-X, using the created multi-queue mapping to set
  interrupt affinities

See the commit message of the second patch for performance results.

Peter-Jan Gootzen (2):
  virtio-fs: limit number of request queues
  virtio-fs: add multi-queue support

 fs/fuse/virtio_fs.c | 73 ++++++++++++++++++++++++++++++++++++++++-----
 1 file changed, 65 insertions(+), 8 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2024-05-29  9:27 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-01 15:38 [PATCH 0/2] virtio-fs: introduce multi-queue support Peter-Jan Gootzen
2024-05-01 15:38 ` [PATCH 1/2] virtio-fs: limit number of request queues Peter-Jan Gootzen
2024-05-06 19:10   ` Stefan Hajnoczi
2024-05-28  8:40   ` Jingbo Xu
2024-05-28  9:05     ` Peter-Jan Gootzen
2024-05-28  9:13       ` Jingbo Xu
2024-05-01 15:38 ` [PATCH 2/2] virtio-fs: add multi-queue support Peter-Jan Gootzen
2024-05-28  8:51   ` Jingbo Xu
2024-05-28 11:59     ` Miklos Szeredi
2024-05-28 12:39       ` Peter-Jan Gootzen
2024-05-28 13:22         ` Miklos Szeredi
2024-05-28 13:35       ` Jingbo Xu
2024-05-28 14:21         ` Peter-Jan Gootzen
2024-05-29  1:52           ` Jingbo Xu
2024-05-29  9:27             ` Peter-Jan Gootzen
2024-05-06 19:52 ` [PATCH 0/2] virtio-fs: introduce " Stefan Hajnoczi
2024-05-10 11:05 ` Michael S. Tsirkin
2024-05-10 11:41   ` Miklos Szeredi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).