Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5848279ybl; Tue, 10 Dec 2019 12:30:08 -0800 (PST) X-Google-Smtp-Source: APXvYqw2HFCzPdDq1+GcOfVWJlU+0WGRL6rGyAVi48hO0eT/T5HZ2SUolzq7nG+6TykqKQrCrojZ X-Received: by 2002:aca:4712:: with SMTP id u18mr666412oia.93.1576009808265; Tue, 10 Dec 2019 12:30:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576009808; cv=none; d=google.com; s=arc-20160816; b=YIu22aGIMEAysPIDMCtnt34iXtD6t/lIUAkmXAXibWW1WD2s4wyVV1A4ErhFqWBbX9 XPK9BEqCpIfzb3nwRL3l8Kv7CGzsLUErHfxkgeSrIhPMhlDUZb+01kzg0GgJYVk0ayYr spXNduxi2v18tjfwT3NmZ0ga6PuY+YatuiqLxiaUzfjUXnxdFSZ8JGyKUqdV63q+ojDm cLt4Gm40mylrrnA2yVLdbd4xyNUBjrH/w9yNssun0HfsO+sV71DIA5D7dyM/KQIx9esX Be50NdEZinZBq3f2AKqH6vY3KqVly5WaVC/C8Xgt/p1EOpoVhmkaw0vazjrx6KAUi0mw npXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=16Yd6aY8YBgFiSCHA0icskP/AMX1AsNAz6GKG5gYC40=; b=YepYZdqxeK6zEuQySzFQ523dCxB7pI21vHRzj9SwBxYuW5S8gkSyrOxC+wAoWHRxN4 vPVhfPwhvo82aSOUrIc5lqB1wJfAlLC+babZ6+Q3GYmZAsFfrCICm5p/fj0YrVEC0i0E L5TtKNP7LyoVC6G6RHm//tsN8M8rpKL+H59uYyi01YU3/02ctsVlfFkN+Ns1lv4q9QZR HvWfejEZ/fO7NDYX7LwB6Mx/sOr6DV7CQJuvntEf2ggqKm+5ozoyYsUVH3ICjnJ1ylds etxqF0mjHzLvqXHANZsrq/UxUg2n/olSQ/i0SxJRG4Lepe2N8A3k3+gCaDdm4+nNl68G kk6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nAzSmZuR; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r10si2501396otn.241.2019.12.10.12.29.48; Tue, 10 Dec 2019 12:30:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nAzSmZuR; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726682AbfLJU3q (ORCPT + 99 others); Tue, 10 Dec 2019 15:29:46 -0500 Received: from mail-yw1-f66.google.com ([209.85.161.66]:41237 "EHLO mail-yw1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726589AbfLJU3q (ORCPT ); Tue, 10 Dec 2019 15:29:46 -0500 Received: by mail-yw1-f66.google.com with SMTP id l22so7831208ywc.8 for ; Tue, 10 Dec 2019 12:29:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=16Yd6aY8YBgFiSCHA0icskP/AMX1AsNAz6GKG5gYC40=; b=nAzSmZuRCfASmJGlbehG3OS16g7ah8kReubqMeGdDCzQTFgDQpxO9GS9fTKdV2zMfY Ja9+6OXuzpmkzkxzk7yHsukgdn/sBm1Ww3fF4lJYPOSIoo5jKW6q5wo87DbNDXbR9y1a 6aMiCE24GZqxqHpj10FB0CmTvApSrx3uRjND9eTyRfsXHg9XYOMC+C08v1Rc88zhoy+H +xZ+ZEa2xSUagE0bXaOy/UnCGqGR3gPEhkTfrThFOJjcdU8FCTDYtJJpsYiKloOdtvOk 5dNkbqvU7za2IdWMKPSHs69lID80Zm61sBY+Kd5MKBrYAYIlg3Y/Wus3ECRAaCSroGUR X2fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=16Yd6aY8YBgFiSCHA0icskP/AMX1AsNAz6GKG5gYC40=; b=RwJDeCM+xdM0kY1ktBOAbyaO19Uv3oewDhMQvgdvp8XGT5bDzu9ez6iQcNXOiuqK7r LGuTEbgsqTLcpf1fSrRcvcwwppyMezTBiSM2LXjN7VaHuynHhrTQJ+iYzf4fn73wCMGM yKGdSb9T/NtcnnmQDGWm0nvttOgm/xTqF+KIsYBljy5k6MS+UTnxqBgYogaA/LMPvYhx HsWoDxWO4XKc7ninyZJYOIQAK1y5hUv+dGgCvZsumR4Us9GA7jOXxHbmDfmDgE+ZIp/M nPNZXdWMr+DULecUQZPpS2Dr7fpfnyngO5OwbJfEDZlwb1Kjjsh0oSMZwAnSLl2Ml/Pf UrPQ== X-Gm-Message-State: APjAAAU6DPEZE7FWERLVtrlpQl2x7jYT2GafC6R6pGCwKXAcMCijXZ7p 3qVIy9l+OKxbWOXJykz+NMt4nsg= X-Received: by 2002:a81:b60d:: with SMTP id u13mr11265044ywh.382.1576009784710; Tue, 10 Dec 2019 12:29:44 -0800 (PST) Received: from localhost.localdomain (c-68-40-189-247.hsd1.mi.comcast.net. [68.40.189.247]) by smtp.gmail.com with ESMTPSA id x84sm1947508ywg.47.2019.12.10.12.29.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Dec 2019 12:29:44 -0800 (PST) From: Trond Myklebust X-Google-Original-From: Trond Myklebust To: "J. Bruce Fields" Cc: Chuck Lever , linux-nfs@vger.kernel.org Subject: [PATCH 0/6] Improve performance of containerised knfsd Date: Tue, 10 Dec 2019 15:27:29 -0500 Message-Id: <20191210202735.304477-1-trond.myklebust@hammerspace.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org The following patches fix up the garbage collection for the knfsd file cache, to make the behaviour under load be more predictable. It also separates out the garbage collectors for knfsd instances running under different containers to ensure that a close() or fput() of a file in one container that hangs or is slow won't gum up the system for all the other containers. Trond Myklebust (6): nfsd: fix filecache lookup nfsd: cleanup nfsd_file_lru_dispose() nfsd: Containerise filecache laundrette nfsd: Remove unused constant NFSD_FILE_LRU_RESCAN nfsd: Schedule the laundrette regularly irrespective of file errors nfsd: Reduce the number of calls to nfsd_file_gc() fs/nfsd/filecache.c | 285 ++++++++++++++++++++++++++++++++++---------- fs/nfsd/filecache.h | 2 + fs/nfsd/nfssvc.c | 9 +- 3 files changed, 230 insertions(+), 66 deletions(-) -- 2.23.0