Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3483007lqp; Tue, 26 Mar 2024 10:14:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVWYXv8+Ut8MkDUYHaYdn8fndYadWwkBwwGg2yWWEsbuApCLybJ8inKImT7Ovuoi8o/MNa0BDRmcyTZrMYNfUHb8F9y7/BhVB+r6K/ZBA== X-Google-Smtp-Source: AGHT+IF69804Hhdwwit78I5oZyZq/E1wxSYs1ao71WbBLTFetK1Gl7eG1OL4p0gukzUJMPCuObON X-Received: by 2002:a05:6808:22a2:b0:3c3:aa9b:1d3e with SMTP id bo34-20020a05680822a200b003c3aa9b1d3emr992194oib.22.1711473239976; Tue, 26 Mar 2024 10:13:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711473239; cv=pass; d=google.com; s=arc-20160816; b=g9+h3AV2dmYXR6MuR+7QvfnL5RHtKvm+0Fsr8xaqdebN81yDpW/12j2kXsV4CJcmxS zbpNcpFHMub+PNmIgEyVIBLFzoCUbhK7M5045hp3LEbNgOscJCw1l+7nch+hp5glm+jY kdQqHCTUh67vWG55EsWivmJ35nO/gJq78e46icQdn0U/YFQXSvWNuWf2uth1wYK1QVRF R+DrZKZKpeYMpILP5wFq6etmLib0BqiZA5w9Gisn0vSsXDTWxuADCVzkRiFVSd60Rf5c rwJjMz1UT19jbH9XQF7U3W7r41mVVNxkjtqpFv1wc/h/oMgqq1TVJGHFpTaxZRF4+aB9 Qbzw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=6O6YSe5hs2dY1yeZMq21PoppQsCAtDRDCET6kUs7n+U=; fh=ERQvn0je9o36Ndc5gFsNyPiQT/LUbYMizwUmeZLlpoc=; b=RRrnPCfUXtGDrwlR3fW2Zajsbv4zRAgxj6V+kRjAkp7Rd8w1uVTxaXfinu9qgeTy7d sKDnl/BHo4yaGaLOgEbQi3G4uyG8lAFFTDKsJOZCXdVgx3LE8DJbq+4u3xAoH7jebGLA vIBVeI9Mk5UQc0ILH7/wv96zEAV6IjJLXbMe+29lcznXBKV0QEzsBJCgylGQIiieLuQa 6rN2Pxn9hcmgBN8B5La55yeZz7iYQO4XHU1NCuP783guU0C3PwrJ5WGIkfgeDAuyttr0 nMDSZZLq3Mr6J3cqITSjkyhoxSBmZeZ0/3TP22PC1lspI5aQFUY41MyXl2Vz/W5NYkC7 UQ0Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=S27HFSzi; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-nfs+bounces-2480-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-2480-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 d3-20020a05621421c300b006967e528a82si7082575qvh.56.2024.03.26.10.13.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 10:13:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs+bounces-2480-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=@redhat.com header.s=mimecast20190719 header.b=S27HFSzi; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-nfs+bounces-2480-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-2480-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 648D11C660F1 for ; Tue, 26 Mar 2024 17:13:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2CF5A1CD20; Tue, 26 Mar 2024 17:13:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="S27HFSzi" X-Original-To: linux-nfs@vger.kernel.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 7350F1C6A4 for ; Tue, 26 Mar 2024 17:13:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711473209; cv=none; b=C5ML26IPGO/di/lUH4GK/8Vn1lxqXf5ffnCs/zSuNup27vROE4fDMLFnsuCsU85eBpSTUTuixp9Z0MoE003Bo5YEEBA5YTfhhWp2OURnhDwDPf6hOk2z7nv6Rl/zDVi5Yhv5R9x0WBBUNBcy83ku5VLy8QOSV83W0QbzVWhDCR8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711473209; c=relaxed/simple; bh=cXmuMVK+zgDb+uN88yBgRNdCQhWi2wyEuwV11UXLIKA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=AMoMoIwVPaXnv/dNoWoJ50fYTU73koqRelxGqLCDJCUUecG2oH+jbj+TNWOzDweU0jp7fxbd0LAk23D7DfCgMEMIlFM0cBJW+bWwMknHBwThoU6vQgAP5R7uT+5BuPgVwYAeVjGWPF9USGDlbZM9nv3OyOr5rYhZq/6ec0eFGnc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=S27HFSzi; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1711473206; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6O6YSe5hs2dY1yeZMq21PoppQsCAtDRDCET6kUs7n+U=; b=S27HFSzifxjx1+nKrYh2/JodDWC/aPFvYdS/yHimwLZYFZalu/CKyVUOC/1vD5IuuQD6cL 0K6vBO9+wZHh7JiHvM4Jorb6NRwe8pXJlnrXtLNjGy0s3DlnEddEfhzUYQzylQLcMNDD71 4havEMX0nfduimQmQfB4iH40B9ia3R0= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-651-H0IpCBMFNMCDzOpdlJTBjw-1; Tue, 26 Mar 2024 13:13:23 -0400 X-MC-Unique: H0IpCBMFNMCDzOpdlJTBjw-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 20DEE3C367E7; Tue, 26 Mar 2024 17:13:23 +0000 (UTC) Received: from [100.115.132.116] (unknown [10.22.50.19]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8CA7B1121306; Tue, 26 Mar 2024 17:13:21 +0000 (UTC) From: Benjamin Coddington To: Jan Schunk Cc: Chuck Lever III , Jeff Layton , Neil Brown , Olga Kornievskaia , Dai Ngo , Tom Talpey , Linux NFS Mailing List , linux-kernel@vger.kernel.org Subject: Re: [External] : nfsd: memory leak when client does many file operations Date: Tue, 26 Mar 2024 13:13:16 -0400 Message-ID: <1AE35F72-77CF-4F5A-9B65-72AB6A53A621@redhat.com> In-Reply-To: References: <567BBF54-D104-432C-99C0-1A7EE7939090@oracle.com> <6F16BCCE-3000-4BCB-A3B4-95B4767E3577@oracle.com> <088D9CC3-C5B0-4646-A85D-B3B9ACE8C532@oracle.com> Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.3 On 26 Mar 2024, at 13:04, Jan Schunk wrote: > Before I start doing this on my own build I tried it with unmodified li= nux-image-6.6.13+bpo-amd64 from Debian 12. > I installed systemtap, linux-headers-6.6.13+bpo-amd64 and linux-image-6= =2E6.13+bpo-amd64-dbg and tried to run stap: > > user@deb:~$ sudo stap -v --all-modules kmem_alloc.stp nfsd_file > WARNING: Kernel function symbol table missing [man warning::symbols] > Pass 1: parsed user script and 484 library scripts using 110120virt/968= 96res/7168shr/89800data kb, in 1360usr/1080sys/4963real ms. > WARNING: cannot find module kernel debuginfo: No DWARF information foun= d [man warning::debuginfo] > semantic error: resolution failed in DWARF builder > > semantic error: while resolving probe point: identifier 'kernel' at kme= m_alloc.stp:5:7 > source: probe kernel.function("kmem_cache_alloc") { > ^ > > semantic error: no match > > Pass 2: analyzed script: 1 probe, 5 functions, 1 embed, 3 globals using= 112132virt/100352res/8704shr/91792data kb, in 30usr/30sys/167real ms. > Pass 2: analysis failed. [man error::pass2] > Tip: /usr/share/doc/systemtap/README.Debian should help you get started= =2E > user@deb:~$ > > user@deb:~$ grep -E 'CONFIG_DEBUG_INFO|CONFIG_KPROBES|CONFIG_DEBUG_FS|C= ONFIG_RELAY' /boot/config-6.6.13+bpo-amd64 > CONFIG_RELAY=3Dy > CONFIG_KPROBES=3Dy > CONFIG_KPROBES_ON_FTRACE=3Dy > CONFIG_DEBUG_INFO=3Dy > # CONFIG_DEBUG_INFO_NONE is not set > CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=3Dy > # CONFIG_DEBUG_INFO_DWARF4 is not set > # CONFIG_DEBUG_INFO_DWARF5 is not set > # CONFIG_DEBUG_INFO_REDUCED is not set > CONFIG_DEBUG_INFO_COMPRESSED_NONE=3Dy > # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set > # CONFIG_DEBUG_INFO_SPLIT is not set > CONFIG_DEBUG_INFO_BTF=3Dy > CONFIG_DEBUG_INFO_BTF_MODULES=3Dy > CONFIG_DEBUG_FS=3Dy > CONFIG_DEBUG_FS_ALLOW_ALL=3Dy > # CONFIG_DEBUG_FS_DISALLOW_MOUNT is not set > # CONFIG_DEBUG_FS_ALLOW_NONE is not set > user@deb:~$ > > Do I need to enable other options? You should just need DEBUG_INFO.. maybe stap can't find it? You can try = to add: -r /path/to/the/kernel/build =2E. but usually I use this option for a cross-compile. Usually I don't = have to muck around without the debuginfo packages either. If I don't ha= ve them then I'm annotating the kernel directly. Maybe just a view of what's happening in /proc/slabinfo would be enough..= Ben