Skip to content

Improve performance of gvisor-tap-vsock port driver #529

Closed

Description

@fahedouch

Currently, using the gvisor-tap-vsock port driver adds a userspace TCP proxy, which reduces throughput from ~6.5 Gbit/s to ~4.0 Gbit/s due to extra copies and wakeups.

It seems possible to improve performance by using tunneling via `/services/tunnel in gvisor-tap-vsock. This approach would remove the TCP proxy and allow buffer control in rootlesskit, potentially reducing latency and increasing throughput.

Proposal:

  • Investigate and implement port forwarding via tunnel in rootlesskit.
  • Document possible performance impacts and any new bottlenecks.

Activity

  1. added this to the v3.0.0 milestone on Sep 22, 2025
  2. fahedouch commented on Dec 2, 2025

    @fahedouch
    ContributorAuthor

    the optimization is not straightforward. I propose implementing this for the next minor versions of v3. I want us to release it first and play with it in nerdctl.

    @AkihiroSuda

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions