Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2930363lqp; Mon, 25 Mar 2024 13:28:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUWlK8thexNx2pzPtao7lipG8eZCCKhph910Hf15384XE2jyBGLVBkOF4tfHp1gEcRVR7EitFwPs1a/4y65deAfH5s9iMqJdSTMu6lgZA== X-Google-Smtp-Source: AGHT+IFcKfilzU4kRAN1BIq+ED1u0KWZ+tFW5N0kPNcyphvPBTsCCcTI8hIAWJBdkFdaPy9kpNIR X-Received: by 2002:a05:622a:1109:b0:431:5586:5b11 with SMTP id e9-20020a05622a110900b0043155865b11mr4069561qty.49.1711398484986; Mon, 25 Mar 2024 13:28:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711398484; cv=pass; d=google.com; s=arc-20160816; b=AnWlZ6DepZ6GPSPyUCk/sWDEwyKyvUKZ6GiNpqeCzi3ehg4abC3zMdFgN0veVO1uGZ cnp8uUDkMCKql7ZP54P1k+d7M2Xkyi0+MPClFI0b8SGK9TAYcDiZ8qTdga/cVaMpeceH SQx1129EvwSxrquVRa6zIbPjixBGsZx6sZm7vhaxnRLHOnqtM0B3Jvs9weQbn6nVb7x8 Ov8Gu6Y4x8jY2CiYsm+bqSU+mfikDG46mYj4MFTu9A5AV09mOA/yk2cnIO10M3/luj8G cMmBdW1cBdMNSqfIFP71ecz+psDhMOtxuvIhb1PsvOZ+f92kTOwEx6GBeubBgi74iomA U4gg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=ui-outboundreport:references:in-reply-to:date :content-transfer-encoding:sensitivity:importance:subject:cc:to:from :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:dkim-signature; bh=TFWhVf6FAP0u+nZm5RqM5xg+6k2IVEXLXNjFBZXAJTg=; fh=p8IhWfW6nCdyZI/rtchP6ZjlQ9/65gDBjWWCQHQn1q0=; b=ld2QEWFjDZPAkVLx0bkQsTlhMdUKNAvbgSDjZICT6uslbAmm+KwTKssxkH22pZnEaZ 6s5ALCJatK6dTn29ffusRsPIIlsa5cv8+0f4kYSr/5b93jI7sqFUi81yjr1WuevNwbjk RuWahIGnavDof2O4aMDd7usp88ohbUj1p09EUJ4ITNlfRKZNPCDSFfIZD8UhIQZ8Lme/ +7501Etlq1SfXmXB3gZSDzkbyt/DXH+MvEiW19Kt0XqOLz3LLh6zfYbJy/m1cMm56zu4 XsyZMUHlXAweimeLNJLDPLzPONWQcrCE89tjc2fhezxNI3AD75KTnAdRTAaL7h5qa5D9 QDkQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=m28Sj9V7; arc=pass (i=1 spf=pass spfdomain=gmx.de dkim=pass dkdomain=gmx.de dmarc=pass fromdomain=gmx.de); spf=pass (google.com: domain of linux-nfs+bounces-2470-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-2470-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=gmx.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id f17-20020a05622a105100b0043162c3928bsi1415558qte.529.2024.03.25.13.28.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 13:28:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs+bounces-2470-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=@gmx.de header.s=s31663417 header.b=m28Sj9V7; arc=pass (i=1 spf=pass spfdomain=gmx.de dkim=pass dkdomain=gmx.de dmarc=pass fromdomain=gmx.de); spf=pass (google.com: domain of linux-nfs+bounces-2470-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-2470-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=gmx.de 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 A4ACC1C37C85 for ; Mon, 25 Mar 2024 20:28:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1DD934AEF9; Mon, 25 Mar 2024 20:26:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmx.de header.i=scpcom@gmx.de header.b="m28Sj9V7" X-Original-To: linux-nfs@vger.kernel.org Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8EA07487AE; Mon, 25 Mar 2024 20:26:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.227.15.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711398413; cv=none; b=RPc7chL5A/rXnZi7hM/qwERnJMmbkn5YDR2UR4iMG6tTw9vbwNSgabFNx7qzoKxfsUilE/5GGhwbnSZV89pkkGARaP8KPO3BA/J9acbjA9z2sbQ0EnCwccXtOhJN9GAzgVqiwfqoWCzgZcsJPQ30tk9vHlq1vZnD7eUgn5p4MGY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711398413; c=relaxed/simple; bh=sirxy7fEgeaEeO6FTxMzd8nAXM+znP7Hzj8NSE0pTnk=; h=MIME-Version:Message-ID:From:To:Cc:Subject:Content-Type:Date: In-Reply-To:References; b=A/zkKZdy7miNgdL+8xMr8Ki+qyN0dJnTmODld1OJ3bivH5gqtTxuFgm3oGlaeMJ3VEJUkyVg+ka/D7Cr38EZKDiOgosGufxqa9Kay1xobUxD1goduJPIPjaZlogzPDEEyQgZfrU6iih5/xlhOwqbjrS6jAtHYqELzaRBFRdp+4I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=gmx.de; spf=pass smtp.mailfrom=gmx.de; dkim=pass (2048-bit key) header.d=gmx.de header.i=scpcom@gmx.de header.b=m28Sj9V7; arc=none smtp.client-ip=212.227.15.18 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=gmx.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1711398394; x=1712003194; i=scpcom@gmx.de; bh=TFWhVf6FAP0u+nZm5RqM5xg+6k2IVEXLXNjFBZXAJTg=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To: References; b=m28Sj9V7bEpljZpCRxs45km+eFyhrs21Dw7c4d0opxxMRdcz4T4h1iRDDUlFBzZU RUFqUjJzWK3opSi9ZywTFw9dkm68jBFL6Or3SR4pT9zyyPL3uTEuUqtRzXeyX1jGk p+33yUUMbygHss7qsvTcLwqg0s0qrTMLkx/gHoMNoTd89IoH+vd/Bi2BOLvwyAmOh BBKkaHeu7GjRSC+GFb0Znm2roccDpzwcrxozOW34TbmfoTwOR0CjbttXfZetz25bM VIfRdWDHuN5fhkKE8lg8jG1fvUtiXdTyJAAIef2vL3jeXYAZ7M7rwKHkr5pyBa0em vofyXctujx24Vv8FLg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [10.236.12.4] ([10.236.12.4]) by msvc-mesg-gmx001 (via HTTP); Mon, 25 Mar 2024 21:26:34 +0100 Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: From: Jan Schunk To: Chuck Lever III Cc: Jeff Layton , Neil Brown , Olga Kornievskaia , Dai Ngo , Tom Talpey , Linux NFS Mailing List , "linux-kernel@vger.kernel.org" Subject: Aw: Re: [External] : nfsd: memory leak when client does many file operations Content-Type: text/plain; charset=UTF-8 Importance: normal Sensitivity: Normal Content-Transfer-Encoding: quoted-printable Date: Mon, 25 Mar 2024 21:26:34 +0100 In-Reply-To: <088D9CC3-C5B0-4646-A85D-B3B9ACE8C532@oracle.com> References: <567BBF54-D104-432C-99C0-1A7EE7939090@oracle.com> <6F16BCCE-3000-4BCB-A3B4-95B4767E3577@oracle.com> <088D9CC3-C5B0-4646-A85D-B3B9ACE8C532@oracle.com> X-Priority: 3 X-Provags-ID: V03:K1:ZFw7evkSY6o6F1YQ1W5m+DbHIfZY4qKTfHzoAohk5C8L6s9QBbeYDbswgf+ea4NuJ+gSv QSYKvq+1Rc25VhTi6ToUuiyOXiiyjZwHGGyHiIiAYnpTGpcYH7wYqMnqgl714kRyA2CvJTtC+Hz0 WcwvetN7SwmszmDnlaOk/5UUgE4K/jswrHlTI0AiQiVbeWJVfEj+CkoceK9q3kGEIWdlcTXE5xWm 5p4CKpfcGAARRDsG6gKOIWhuluvJlxxHbqv4jLCi8UHY2ctR57fhPW/cJfKhh/0gi7a3CxMyeqTd QM= X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:UsaWHKC/ZJI=;xg6p6NfN7pMdG8ExPZVQTWnGdDX skcEndFmF3hhdOkXiE/DrFI/ZoSeM5G4TO8G0o/TBw/M+byIa6HQJDL4efSglPX3JAOLY2Jrg rVIyvXnkcjIOmNdA/T9LShOvs1TassDavG8yYMZgYZoiwo6govVu7VpPvixMY7Sc4W+8fPaP0 Wc5aIZVRH4EuVDVzjWjeua6QzSIQkF+aU0vYbNbgvdnHtcgsAKriOka+DKQ9jtSDTvScReIBB O8UM2/OIrT+ILwZU+j0bk6nOtgPCltEyFMYbzugcnJ8PrBsMN0qGliri8nRROM2Dx3O60GsQI bgdeOoMcueJ+JK+akzTJ9gRyHvORX4RS4TcWHvUrhu8ErI6+1Rhc9PFu9TdPmIlYGs0nN/nU3 ssYvUGLUxKXUjbv7UP1uwxi4ij99aSzAzHDlgQam65yfRoQzwjYuYePO0CgfEgDXHog5MmGWh PfOYo7+md8IPi7CiStOmZpGywRLQrUwZKJphTXu3s6mfnl1Xn5KTBDVsenLD1FFHHz1kWRXig IJ4EYutg3kSpT5KftvaOtmwrKt89gvog4RJoyUQKaq8AEuknE/A84A7FP+jJ0u7KeSqEN04E7 ehidLwjuDbKKqv0cQ3ZEsK+nEgatwnHigYfguwHv42T0lUs/xAVT5l/sqYeOwy7eMSHu5C25E 9zb5tlWKfI3apmyZ125GgqtJ7i1PXq37YVFj+tId++tqWFcs0Pe8ssCYx9/Vuf8= I am building my own kernels, but I never tried kmemleak, is this just a Kc= onfig option? What do you mean with "bisect between v6=2E3 and v6=2E4"? Everything including v6=2E4 is OK, the problem starts at v6=2E5=2E I also looked at some code already but there are huge changes to mm that h= appened in v6=2E5 and v6=2E6 so for me it is heavy to compare it with older= versions to find one or more commits that may cause the issue=2E Btw=2E thanks for guiding me so far=2E > Gesendet: Montag, den 25=2E03=2E2024 um 21:11 Uhr > Von: "Chuck Lever III" > An: "Jan Schunk" > Cc: "Jeff Layton" , "Neil Brown" = , "Olga Kornievskaia" , "Dai Ngo" , "Tom Talpey" , "Linux NFS Mailing List" , "linux-kernel@vger=2Ekernel=2Eorg" > Betreff: Re: [External] : nfsd: memory leak when client does many file o= perations >=20 >=20 >=20 > > On Mar 25, 2024, at 3:55=E2=80=AFPM, Jan Schunk wrot= e: > >=20 > > The VM is now running 20 hours with 512MB RAM, no desktop, without the= "noatime" mount option and without the "async" export option=2E > >=20 > > Currently there is no issue, but the memory usage is still contantly g= rowing=2E It may just take longer before something happens=2E > >=20 > > top - 00:49:49 up 3 min, 1 user, load average: 0,21, 0,19, 0,09 > > Tasks: 111 total, 1 running, 110 sleeping, 0 stopped, 0 zombie > > %CPU(s): 0,2 us, 0,3 sy, 0,0 ni, 99,5 id, 0,0 wa, 0,0 hi, 0,0 si= , 0,0 st=20 > > MiB Spch: 467,0 total, 302,3 free, 89,3 used, 88,1 buff/= cache =20 > > MiB Swap: 975,0 total, 975,0 free, 0,0 used=2E 377,7 ava= il Spch > >=20 > > top - 15:05:39 up 14:19, 1 user, load average: 1,87, 1,72, 1,65 > > Tasks: 104 total, 1 running, 103 sleeping, 0 stopped, 0 zombie > > %CPU(s): 0,2 us, 4,9 sy, 0,0 ni, 53,3 id, 39,0 wa, 0,0 hi, 2,6 si= , 0,0 st=20 > > MiB Spch: 467,0 total, 21,2 free, 147,1 used, 310,9 buff/= cache =20 > > MiB Swap: 975,0 total, 952,9 free, 22,1 used=2E 319,9 ava= il Spch > >=20 > > top - 20:48:16 up 20:01, 1 user, load average: 5,02, 2,72, 2,08 > > Tasks: 104 total, 5 running, 99 sleeping, 0 stopped, 0 zombie > > %CPU(s): 0,2 us, 46,4 sy, 0,0 ni, 11,9 id, 2,3 wa, 0,0 hi, 39,2 si= , 0,0 st=20 > > MiB Spch: 467,0 total, 16,9 free, 190,8 used, 271,6 buff/= cache =20 > > MiB Swap: 975,0 total, 952,9 free, 22,1 used=2E 276,2 ava= il Spch >=20 > I don't see anything in your original memory dump that > might account for this=2E But I'm at a loss because I'm > a kernel developer, not a support guy -- I don't have > any tools or expertise that can troubleshoot a system > without rebuilding a kernel with instrumentation=2E My > first instinct is to tell you to bisect between v6=2E3 > and v6=2E4, or at least enable kmemleak, but I'm guessing > you don't build your own kernels=2E >=20 > My only recourse at this point would be to try to > reproduce it myself, but unfortunately I've just > upgraded my whole lab to Fedora 39, and there's a grub > bug that prevents booting any custom-built kernel > on my hardware=2E >=20 > So I'm stuck until I can nail that down=2E Anyone else > care to help out? >=20 >=20 > -- > Chuck Lever >=20 >