|
|
Log in / Subscribe / Register

vsock/virtio: collapse receive queue under memory pressure

From:  Stefano Garzarella <sgarzare-AT-redhat.com>
To:  netdev-AT-vger.kernel.org
Subject:  [PATCH net 0/2] vsock/virtio: collapse receive queue under memory pressure
Date:  Fri, 26 Jun 2026 15:48:21 +0200
Message-ID:  <20260626134823.206676-1-sgarzare@redhat.com>
Cc:  Jason Wang <jasowang-AT-redhat.com>, Jakub Kicinski <kuba-AT-kernel.org>, Paolo Abeni <pabeni-AT-redhat.com>, "Michael S. Tsirkin" <mst-AT-redhat.com>, kvm-AT-vger.kernel.org, virtualization-AT-lists.linux.dev, Xuan Zhuo <xuanzhuo-AT-linux.alibaba.com>, Eric Dumazet <edumazet-AT-google.com>, Simon Horman <horms-AT-kernel.org>, Stefano Garzarella <sgarzare-AT-redhat.com>, linux-kernel-AT-vger.kernel.org, Stefan Hajnoczi <stefanha-AT-redhat.com>, "David S. Miller" <davem-AT-davemloft.net>, Eugenio Pérez <eperezma-AT-redhat.com>
Archive-link:  Article

This series contains a patch (the first one) that is part of work I'm
doing to improve the tracking of memory used by AF_VSOCK sockets.
The second patch is a test for our suite that highlights the issue.

Since Brien reported an issue with his environment (based on Linux 6.12.y)
related to the work I’m doing, I extracted this patch and tried to make it
as easy as possible to backport. Brien tested it by backporting it to
6.12.y, which now contains the backport of the 059b7dbd20a6
("vsock/virtio: fix potential unbounded skb queue").

This patch primarily fixes STREAM sockets, but also partially fixes
SEQPACKET (with the exception of EOMs, which are kept in separate skbs to
avoid overcomplicating the code).

The rest of the work, I feel, is more net-next material and still needs
some work to be completed.

Thanks,
Stefano

Stefano Garzarella (2):
  vsock/virtio: collapse receive queue under memory pressure
  vsock/test: add test for small packets under pressure

 net/vmw_vsock/virtio_transport_common.c | 148 +++++++++++++++++++++++-
 tools/testing/vsock/vsock_test.c        |  87 ++++++++++++++
 2 files changed, 233 insertions(+), 2 deletions(-)

-- 
2.54.0




Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds