Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4375137rwl; Mon, 3 Apr 2023 04:12:59 -0700 (PDT) X-Google-Smtp-Source: AKy350ZTlFcUEoPVjvT7JpZVP6Q8K2LMypsmaw2R5kDrtTGs5QLT6G/9p/VOitR7THIq4Dj0lkmE X-Received: by 2002:aa7:df85:0:b0:502:709e:fc41 with SMTP id b5-20020aa7df85000000b00502709efc41mr11409989edy.33.1680520379532; Mon, 03 Apr 2023 04:12:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680520379; cv=none; d=google.com; s=arc-20160816; b=UGWbNoYOvrWzoBzuB2I2nPHM6bDT8z8swtA7QlVxTl3zBS9cZrT7ggnYK3db/TNS3A C7xDZEiZm6bcYeRqTljMzDb48Conui1oxIme5LfPy52F6A4AFCb8umUvzu4dtLT3coAL W3/AzpRIcErj2fofWypsJM7UUWWx+8DdXJa/BHv1dBr8SIVp3CZSY+FfyHo9HAidapvv AeHUrPBWDCLNa7WYQb+w+olUj0oqLcyh/gvHijl5y281wfRQn350dJXJ0LiyuRzEXXhi gh1JcMvjDYP9Mq68Z6j0ds4TLlwZJsk0JLcf3df/w9hZhQBdu6tZIAY+mijAHR8Skv9x HQaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=2LyTXIwTIB/nVxYXSDDIz7jSdM+ZVkfbUtijN6RN/W0=; b=ipMXDKBPkj9GzG5+kjrg4TWfB9IXm0bCyZ35u6t9JpCYlfOHJGk+pbWiyJUWm0ta7O LIhw/Zy+afGMEe7r5n5KOFG8vO8gcTkSKTCvUTrSqq3sNgw/VLcRH4N/0FTsj2sp0j85 /IB+6j/Yy+xHdR9lr5Y/moCFrue0x5hceB/vwOM1m9DQvIC+6nuEpjoemcopbrdYs/sI unRRhq4gMPWfv+hft04m+ZL+7fuAT33CcBThVVsb++/wWVKVyiV1ye1kMM/kxp+8MMP+ DavhKDhWSeRwipaHMTc5VstJUySfrqtChaJxp+So3XZ5fZxk+/wn1Lf/IwbQT3akvwFK qexg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=eQOzxIBm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dy17-20020a05640231f100b004ab1c20c759si7051516edb.543.2023.04.03.04.12.35; Mon, 03 Apr 2023 04:12:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=eQOzxIBm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232181AbjDCLLP (ORCPT + 99 others); Mon, 3 Apr 2023 07:11:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231836AbjDCLLK (ORCPT ); Mon, 3 Apr 2023 07:11:10 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AA1610C3 for ; Mon, 3 Apr 2023 04:10:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1680520223; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=2LyTXIwTIB/nVxYXSDDIz7jSdM+ZVkfbUtijN6RN/W0=; b=eQOzxIBmubDrJygysoibgT0Ehz51RvK/34tapLj2paIGkGtcgT8gWjchdCXaUA6TNkOO+5 INNgYdmAgzNLaVTGFgtxintov3Cxx176WTWNeBWDZJ0Kbpq9+mE4ueDJoGaKvzORhyzSRg MkU4A3PFDGA/qrwH5i1DWKXTQs0uJSc= Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-144-WHDGaYX3MheYLlFvoCxYVA-1; Mon, 03 Apr 2023 07:10:22 -0400 X-MC-Unique: WHDGaYX3MheYLlFvoCxYVA-1 Received: by mail-qk1-f198.google.com with SMTP id s21-20020a05620a0bd500b0074234f33f24so12765022qki.3 for ; Mon, 03 Apr 2023 04:10:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680520222; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=2LyTXIwTIB/nVxYXSDDIz7jSdM+ZVkfbUtijN6RN/W0=; b=uhuVpuWo3Tdyd3BLnzH2Bk3NeA63Ep2h7z3gTVTUX8pbP/n/ucXBxfJ3JkwVVoh2+u 825ieXoh2xOaniIZPoBgtU1MPzDfPUIlu8+fEgwv8No19T8KwWQqUTGfDg+Sh+7bahIG PfmxlbLzT53b/+JNVNgM5me3vLG70GBlRk5h0UzWwWAzyMVzybsnQBWORkYz7n5YqspE p9g5oXxsD03Q/c771x3EvyCP57xC+O694c4o3iktxGoDAqrBvb5EMVevv+so6Ole6Egk N2Vq3jFEca5Gx+42QSQey3CRunyVBnEmusP2qj2+JE2SSUqnzeNgZwTy0CmLGjLcOS3t EFHg== X-Gm-Message-State: AAQBX9daeXJScs1HtiQ0Dh+ZXSXMhnhe3DRd9OBcbd048tql+D1z4pKo 5yaMOWCFgJDIUfoWmmnySBhU08NaKTygHSbxi0nqHDxneYF5lRQffn49nkg2ZwWjEExEPcUxfbj /Gc/F2OuJAA+7ZVDh7ssUFQ5b X-Received: by 2002:a05:6214:20af:b0:5b7:fc3f:627c with SMTP id 15-20020a05621420af00b005b7fc3f627cmr56199458qvd.41.1680520222102; Mon, 03 Apr 2023 04:10:22 -0700 (PDT) X-Received: by 2002:a05:6214:20af:b0:5b7:fc3f:627c with SMTP id 15-20020a05621420af00b005b7fc3f627cmr56199409qvd.41.1680520221837; Mon, 03 Apr 2023 04:10:21 -0700 (PDT) Received: from sgarzare-redhat (host-82-57-51-130.retail.telecomitalia.it. [82.57.51.130]) by smtp.gmail.com with ESMTPSA id di15-20020ad458ef000000b005e13c17dcb8sm2536442qvb.79.2023.04.03.04.10.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Apr 2023 04:10:21 -0700 (PDT) Date: Mon, 3 Apr 2023 13:10:14 +0200 From: Stefano Garzarella To: John Fastabend Cc: Bobby Eshleman , Stefan Hajnoczi , "Michael S. Tsirkin" , Jason Wang , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Andrii Nakryiko , Mykola Lysenko , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Shuah Khan , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH net-next v4 0/3] Add support for sockmap to vsock. Message-ID: References: <20230327-vsock-sockmap-v4-0-c62b7cd92a85@bytedance.com> <6427838247d16_c503a2087e@john.notmuch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <6427838247d16_c503a2087e@john.notmuch> X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 31, 2023 at 06:06:10PM -0700, John Fastabend wrote: >Bobby Eshleman wrote: >> We're testing usage of vsock as a way to redirect guest-local UDS >> requests to the host and this patch series greatly improves the >> performance of such a setup. >> >> Compared to copying packets via userspace, this improves throughput by >> 121% in basic testing. >> >> Tested as follows. >> >> Setup: guest unix dgram sender -> guest vsock redirector -> host vsock >> server >> Threads: 1 >> Payload: 64k >> No sockmap: >> - 76.3 MB/s >> - The guest vsock redirector was >> "socat VSOCK-CONNECT:2:1234 UNIX-RECV:/path/to/sock" >> Using sockmap (this patch): >> - 168.8 MB/s (+121%) >> - The guest redirector was a simple sockmap echo server, >> redirecting unix ingress to vsock 2:1234 egress. >> - Same sender and server programs >> >> *Note: these numbers are from RFC v1 >> >> Only the virtio transport has been tested. The loopback transport was >> used in writing bpf/selftests, but not thoroughly tested otherwise. >> >> This series requires the skb patch. > >Appears reasonable to me although I didn't review internals of all >the af_vsock stuff. I see it got merged great. Thanks for checking! > >One nit, I have a series coming shortly to pull the tests out of >the sockmap_listen and into a sockmap_vsock because I don't think they >belong in _listen but that is just a refactor. > LGTM! Thanks, Stefano