Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2500514lqz; Tue, 2 Apr 2024 22:30:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUhkENDM7AOt9XJYgCpUWkVkhJVEMF8I2565tzVINwDZmVpaXlmSrzxIGUWLQEsCoCLaOfnT7/g4xhUy3/iKU1VNtaGuI73kQ3lm5TMmg== X-Google-Smtp-Source: AGHT+IHL6j1RTrAPEGOWyyLcldWJqqB2+HlP+mSFLGpd2+ByfwwlPHCvuhJJjbRJMUVJBvl/DYNP X-Received: by 2002:a54:4605:0:b0:3c3:e307:5038 with SMTP id p5-20020a544605000000b003c3e3075038mr12664860oip.57.1712122219010; Tue, 02 Apr 2024 22:30:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712122218; cv=pass; d=google.com; s=arc-20160816; b=enn2ElL0wzkpixknQNzXE+LrpWmRyPRWv+L+uIR3HZLx/OVZFtASoFOLIzNubCzYS/ peV6u6bd82oDbhflKM2bg9Cl3tmNiqlcXcG2R8Q7Wurt30oEeMEIJVa3B1rqohQcdF+m kLujlGW2t1rfcacB/WuyYFq3EwflajOtuVahwzJfzFLXYc2u9j0N8s0znrX1xKeqa3KU DFT9jAWtYYaMMoMmPmgbvS8XXdtO82d2p8vqrESKfs7o7W8d2m1/5SMfiqukSu0LtFoz 1BQZFTf/FIFI4cFYQHXYynjvMfwEltfEHJKnJZSleY4hrHq8BsMnpgrQqjbzL5ipAvhl 0LRA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:dkim-signature; bh=hkez5Yg+zYroB7JVTi/Ayf/Z3EZLR2gXl0JVx5G2w4k=; fh=Mys3y4MwsHRytUQMpdfGBn3oGRYLcLloxNwkFYMYMmg=; b=M6Sy1kqsgyls5Vrf9zPWaKpOWd/d/mPEEKj5DoH9v5olzRVQre2j5l+e/IOTr2o7Uv eV8iu1iZxXX4ZnulXoMYFF3jlfPzaYc8/+2CrAXz6daolqsLx/5yCgacg26vVab+e01T Af/GQEyKWyHi7zlU3kWNZ/JgoyXkfV+yjlG9haymN54ZBcCJs1SGVXtQGqTvqPSaqRPN isD6fYXz9DqmAt3fpqOLyulR6ZQQHc67RmYpX4nXSDUM8SZik6p0MofGK1PY5jCOvNMY pKlXUQVuGboSDo8EqcqIH9xrsLlBITgLt0VojPK+ue5Vduy+YXz+28jnKO5iq47qxRo+ EnGA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=a72jZTAw; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-nfs+bounces-2609-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-2609-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id y11-20020a05622a120b00b004315018d13bsi13339385qtx.107.2024.04.02.22.30.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 22:30:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs+bounces-2609-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=a72jZTAw; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-nfs+bounces-2609-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-2609-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 9FCF01C22597 for ; Wed, 3 Apr 2024 05:30:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7161946435; Wed, 3 Apr 2024 05:30:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="a72jZTAw" X-Original-To: linux-nfs@vger.kernel.org Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BD15946425 for ; Wed, 3 Apr 2024 05:30:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712122217; cv=none; b=ra8lhJiszfFlFndC89ridLcbMqTPe2TpmXS8E71mHGqOblYmENiSUqnP4M0ZV6bGRGLoQBEdfcKfDEBc6UmaV3e+kqrW578Icrp8fcHG1J94y+VIjP8eqKsUxG8d/VgcbovRKACHu+BbV4MUHVUoAJqZv5rGDjC2cgSq77PhJKM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712122217; c=relaxed/simple; bh=yHyVNMxsKAp75gfI9VYRPpTStwqbrbOdktJDkj1lu70=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Content-Type; b=Rhl5IHRClCnjpoRrMOGhA+i+EGtTgFyauREKUN7I1Fh2QJjM9YIIAeSN3aRzmKPITL468DbqNaHyyhM6OFhSO6OcHAZHxTZ+9clNAamYEouqESfPOJmuhh+TOqqpIrNiWeaNFPzvHnFq3TH1PBdodXUlv9td7qlw4UAJwZBYYAI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=a72jZTAw; arc=none smtp.client-ip=209.85.208.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f51.google.com with SMTP id 4fb4d7f45d1cf-56c583f5381so877319a12.1 for ; Tue, 02 Apr 2024 22:30:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712122214; x=1712727014; darn=vger.kernel.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=hkez5Yg+zYroB7JVTi/Ayf/Z3EZLR2gXl0JVx5G2w4k=; b=a72jZTAw8YOJspdZ4899grZF5C0RS7NgIZd2flogOnIjk1veeXRuLJobt8Du0c/AhP xdsknedaldoQAxqwpK/GSyzLiHPJsQxoSpYs9//Z1iln/X3SN8ToXWhmpDTesioaR/qg 3ZCCZyGllPqJZT50NtmdYCYg/I+bgy0/+vuBQlQ0dDZi89RWV8NcqqzSR6kEulhOcbQp C6xafy3FIoXK0Ofk3WNk7twKxbX5A/kDxQZJWvxqUFXPGJBtXX1gIDibgB/PeA7vo3B2 htXS/otrPOYwfm6oEEAghuDbffyls8NuBUOAvbi6blmfiWQTaetHFiIxgbc4dMz3lCz6 /sRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712122214; x=1712727014; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=hkez5Yg+zYroB7JVTi/Ayf/Z3EZLR2gXl0JVx5G2w4k=; b=GRxH/QK8vLA+ROc2mgymZjMpeKkhHtwIhfHZAOejwybitCAVH0TURWCUvEW3B2HB4c kFLx0GzCDM+kKsMByEBabyzzi8nPXpGTFKPZNV7ShFPucBu0Y48IQQUv6SfGmHuM20ks xPG4PQnpdArZ6MFdMUA8u5xrqQpfK8NKdjO89+jkK8LsWV5jgCKi1qEoAZJgLGhJR/kt xeJY4XsmBtb4rx1u2J071sP8ngm94+IatFGVSBADH/S8xMh+TT0RsxZ2DDdXneoBCD0u R7enUyp+mp7OnFREeHNLVw7kVy28iWNAOc/6V1/Ul4hqier64WNuvvrdMza2lygk//eQ 7RpQ== X-Gm-Message-State: AOJu0YyGTpqr3Bzte0LGvHjPkFJVDu8RZvsWKM6f9ryYbfc2Qf8cOTpA mO73aIDNP3U6i8/B2IprIIgo4e8tieUEofp1Y/O2O+4JIu86pwf52/s+8t07t3QCcbr5BBBBfKE E6ziQZo/5B+qvy8y2WYwAb18YSrNWsrDV X-Received: by 2002:a50:9554:0:b0:56d:e74a:2730 with SMTP id v20-20020a509554000000b0056de74a2730mr1367257eda.0.1712122213719; Tue, 02 Apr 2024 22:30:13 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <171208672277.1654.1052289246945629541.stgit@klimt.1015granger.net> In-Reply-To: <171208672277.1654.1052289246945629541.stgit@klimt.1015granger.net> From: Cedric Blancher Date: Wed, 3 Apr 2024 07:29:00 +0200 Message-ID: Subject: Re: [PATCH RFC] SUNRPC: Fix a slow server-side memory leak with RPC-over-TCP To: linux-nfs@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Tue, 2 Apr 2024 at 21:38, Chuck Lever wrote: > > From: Chuck Lever > > Jan Schunk reports that his small NFS servers suffer from memory > exhaustion after just a few days. A bisect shows that commit > e18e157bb5c8 ("SUNRPC: Send RPC message on TCP with a single > sock_sendmsg() call") is the first bad commit. > > That commit assumed that sock_sendmsg() releases all the pages in > the underlying bio_vec array, but the reality is that it doesn't. > svc_xprt_release() releases the rqst's response pages, but the > record marker page fragment isn't one of those, so it was never > released. > > This is a narrow fix that can be applied to stable kernels. A > more extensive fix is in the works. > > Reported-by: Jan Schunk > Closes: https://bugzilla.kernel.org/show_bug.cgi?id=218671 > Fixes: e18e157bb5c8 ("SUNRPC: Send RPC message on TCP with a single sock_sendmsg() call") Is this bug present in 6.6 LTS? Ced -- Cedric Blancher [https://plus.google.com/u/0/+CedricBlancher/] Institute Pasteur