Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp544601pxu; Wed, 7 Oct 2020 09:31:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5e6dI8gr7nwTrsY3bHa6yevL1GzuAriVGSSBpOkL5Z1XrlD9EOqmL7IszWy/RvDn19mdQ X-Received: by 2002:a17:906:4bc4:: with SMTP id x4mr4329254ejv.240.1602088290378; Wed, 07 Oct 2020 09:31:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602088290; cv=none; d=google.com; s=arc-20160816; b=PJm3Ud4HvLsD4Q0jQmBdkeYacAtdv51kf8l27FcG4+etdhaW3E9z77n9ALoxcdLRuH Rz7eT93aXHAZLlFzHrDfXmv1anEbONwYCzrXVeSWybCEAcYriggA2fVds+Id9OWp7euz WQt0IR3L1ysv3RqK/lXbk6/ORTfxN6mFjuBUc4mDcr02JHg3YeDaC3hs/bIU7mLDNCb4 +4AWWPgco0pmfRzSV/vY9BpFHtxff1jqmwn2kThfgnCHU7ytXLe9apxks24AJrwKtlr7 NCABmmcNtsI4lNx4vgInv2lbOs0zVF/XesQrI8Q0y3eyTrlTuK8CyH31REsS45wx6IxT qOUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=EnhQBerWUQ4B1SJXlk0CfeVXcWu6CUN1xfdJTyciM6A=; b=e3jkxgxPFSP7bQ/ZRqc7AWAzvisy744KxLzI+PLChucEoj83IvGGq6waj2YZVDv4Hb cbieWJc52eHJnH0lHbowkRbxMqrQhBYjOwzos7E/Vv7h+vp03b3JciFlZt6TmeIQR0e+ 4pDCNBKbX3kWfCebB7gYMTLzCSmvhGjWZXe07+gucGD0aKtHkQIM0uCIm77sS7QJT3yU nYbNIZiH6LG3fUZMCorSaFYE7wk4r5Bs5JgmmG+JDrRQZcPU4P2/r9QUuRA5JkH69S0K WQRugkZikFJVw44Z98wFrElcRyhK3VQhT8kYfQcjzu6VIfoxwDflpRHc32KCtwB8UCdS CuJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bjsK0aDx; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x9si2219832ejc.668.2020.10.07.09.31.06; Wed, 07 Oct 2020 09:31:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bjsK0aDx; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-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 S1727997AbgJGQak (ORCPT + 99 others); Wed, 7 Oct 2020 12:30:40 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:36186 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727990AbgJGQaj (ORCPT ); Wed, 7 Oct 2020 12:30:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1602088238; 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=EnhQBerWUQ4B1SJXlk0CfeVXcWu6CUN1xfdJTyciM6A=; b=bjsK0aDxcdUTEr2CWSmHkoxcoH89XZYHOgoLUSlVE6W7CB/2kfm83A2ZEWXtEC7Y8FpRVy wcTOpsXKqzdH/VgyL7egJJ+msarbMPuNZPCGqWaKVBlk7O0rLG6L8xzNw3oJPCNz+QhFNx rykLjjE5hnhPw+kc0i86GxtGa+ypA2o= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-495-rfEf73lmMKCcsCcKfhFZxw-1; Wed, 07 Oct 2020 12:30:36 -0400 X-MC-Unique: rfEf73lmMKCcsCcKfhFZxw-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 202328797F0; Wed, 7 Oct 2020 16:30:35 +0000 (UTC) Received: from [172.16.176.1] (ovpn-64-66.rdu2.redhat.com [10.10.64.66]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 964515DA76; Wed, 7 Oct 2020 16:30:34 +0000 (UTC) From: "Benjamin Coddington" To: "Patrick Goetz" Cc: "J. Bruce Fields" , linux-nfs@vger.kernel.org Subject: Re: unsharing tcp connections from different NFS mounts Date: Wed, 07 Oct 2020 12:30:33 -0400 Message-ID: In-Reply-To: References: <20201006151335.GB28306@fieldses.org> MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On 7 Oct 2020, at 9:56, Patrick Goetz wrote: > On 10/6/20 10:13 AM, J. Bruce Fields wrote: >> NFSv4.1+ differs from earlier versions in that it always performs >> trunking discovery that results in mounts to the same server sharing a >> TCP connection. >> >> It turns out this results in performance regressions for some users; >> apparently the workload on one mount interferes with performance of >> another mount, and they were previously able to work around the problem >> by using different server IP addresses for the different mounts. >> >> Am I overlooking some hack that would reenable the previous behavior? >> Or would people be averse to an "-o noshareconn" option? >> >> --b. >> > > > I don't see how sharing a TCP connection can result in a performance > regression (the performance degradation of *not* sharing a TCP connection > is why HTTP 1.x is being replaced), or how using different IP addresses on > the same interface resolves anything. Does anyone have an explanation? Well, I think the report we're getting may be using two different network interfaces on the server-side. The user was previously doing one mount each to each ip address on each interface. Even if you don't have this arrangement, it may still be possible/desirable to have separate TCP connections if you want to prioritizes some NFS traffic. Multi-CPU systems with modern NICs have a number of different ways to "steer" the traffic they receive to certain CPUs which may have a benefit or detrimental effect on performance. You can prioritize wake-ups from the NIC based on throughput or latency, for example. I don't know for sure which of these specific details are coming into play, if any, though. Ben