Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp21745119ybl; Mon, 6 Jan 2020 10:20:45 -0800 (PST) X-Google-Smtp-Source: APXvYqxKYy5gp1E7ys2q56haXPAzpNiA6+RcG5O2ixFw0IJEI71koQZ+XXx5lJjuUWpCX63sfGrA X-Received: by 2002:aca:af8b:: with SMTP id y133mr6125953oie.73.1578334845502; Mon, 06 Jan 2020 10:20:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578334845; cv=none; d=google.com; s=arc-20160816; b=xk5dmEo2P34bW65xsUXJXbQ5+VqClXO43dduQDLTZSM0sWiRagYmFSN+FGuBLFIWHE tQcuKYq6W0G7snRBCu7jREpn3XcLKwpsXps9u8SIO2pMNQuo56xgmAUK3kmcpm33hy9v R0daoOsaxZpqteHjQ+A+6B2437fWEIGB9aX8vSZ43uikKEx6pypm3Ty2jRBtw0ughutT is6snO0T96E3SnaFnoOP/NNixUM5gKSKSx2bh+mi+g021orhIMkoltreqP/PlsvWsG7P 4ne0mtV+ZtGCXb0zoY1d7rwFr53cbO2Ng7D898qDSrqh0uqQ7K14NeutzN01PQc1I34K jIZQ== 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=b+xTjyKzwQACWyT3C/3CNIHOhiIHoL2LFf21qMaJHHE=; b=0zAQhRVzOk/0QoQ43Fm3daVq1Nj7drz07+kHi4LW56VqDZ/lvYjyTKQZOoUbTtMezA JrliPS/2clhwRsDJTRmeWWdHeIbZD8/+rJpz8kNfeq0edjgg31SFU+THav9CkuxMPT+p qrPBIGmFcUi01/EULoXmHluGRCm9pisDCq3n/Jkoqo6GD4d5jyMore6wXBLFied/EAC3 N57vq9YkpnRuYcK/D0qfvSdBpKDcVVkr8XssEk1fpaCD/zRFTl6rJYU/LPrtl5LnNEDu UNlsm8XWz3gnaQlAQWy1IUshvzDHPmDpbrsqNvVyrt8G2k+rxOmjlKdSQjeuArqTQVAV iEPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=M89g1lDA; 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 a205si34028789oii.95.2020.01.06.10.20.25; Mon, 06 Jan 2020 10:20:45 -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=M89g1lDA; 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 S1726612AbgAFSUY (ORCPT + 99 others); Mon, 6 Jan 2020 13:20:24 -0500 Received: from mail-yb1-f196.google.com ([209.85.219.196]:45490 "EHLO mail-yb1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726569AbgAFSUX (ORCPT ); Mon, 6 Jan 2020 13:20:23 -0500 Received: by mail-yb1-f196.google.com with SMTP id y67so12770510yba.12 for ; Mon, 06 Jan 2020 10:20:23 -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=b+xTjyKzwQACWyT3C/3CNIHOhiIHoL2LFf21qMaJHHE=; b=M89g1lDAT6T9mGzbVb2KVjuPvVOBeuldwPnZxO3eAoyGviupz5JzQt4cxAoMG2WJF3 MxOAI2jmgth+johJ0yBKZS8R79+OYHBytOx49ue+1KicbTTaV1LO2aygM3nXAlENhvhq zQfFJgsEk7gGr6go/glNNtzgWdDALheWyV7DeyM5ZUnJMzvDc3BgV0vPIvWYRUPYzqfz 6cZ8JW6eOvAOLA5z1ApahGB/clpoOySwdd4MZpDW1GzzpZW3LYMgCV3IaPvmplasCIwk LxEqScMLnoZHBQ+k6JakALP8gGw/SPklJscjlCqyZN0GZmuzLCbgvuwFZmRMtNAd2JvK 7AQA== 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=b+xTjyKzwQACWyT3C/3CNIHOhiIHoL2LFf21qMaJHHE=; b=cQOoVLaZ5oky9miJnn25tnqftERAdzNztR59NeethbJtdRpuI+ywvAHqdVGPtXGiKV eDHL721lxXx++eNewfA6CyjhjU6bk2XopPq71hhcqewc0n2wKvEoB/Qq0BHHaOEipHZt 7iKfHrlMZsgoUqryEkhUZo5ygtzdFo8VKqG7sdRhvDlqr0oPQlY5KPAEwITEp6vhWuda Olq6+HTj3Adt9joOl0fkSI8MfofeUTtjcH8hyE3a49jdibr3t4Pxt06BNd4tIQ1z97Il uu/hqT+cnmbhUDW1MC+veldQjui9gbm3+yiOCD1K0UJl238ebgyklAJmKxduBClzdDoW jeSw== X-Gm-Message-State: APjAAAUzOwPC2ggnFbxd9uEnBJVs5YeL4Fkk6HbFK/WaHCcSsUyv9WVW 3kRFnOXsFx+9yJlfhuzzlK9cYfHJIA== X-Received: by 2002:a25:dcc3:: with SMTP id y186mr66303426ybe.351.1578334822593; Mon, 06 Jan 2020 10:20:22 -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 r31sm24800524ywa.82.2020.01.06.10.20.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jan 2020 10:20:22 -0800 (PST) From: Trond Myklebust X-Google-Original-From: Trond Myklebust To: "J. Bruce Fields" Cc: linux-nfs@vger.kernel.org Subject: [PATCH RESEND 0/6] Improve performance of containerised knfsd Date: Mon, 6 Jan 2020 13:18:02 -0500 Message-Id: <20200106181808.562969-1-trond.myklebust@hammerspace.com> X-Mailer: git-send-email 2.24.1 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.24.1