mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Benjamin Coddington <bcodding@redhat.com>
To: Jan Schunk <scpcom@gmx.de>
Cc: Chuck Lever III <chuck.lever@oracle.com>,
	Jeff Layton <jlayton@kernel.org>, Neil Brown <neilb@suse.de>,
	Olga Kornievskaia <kolga@netapp.com>,
	Dai Ngo <dai.ngo@oracle.com>, Tom Talpey <tom@talpey.com>,
	Linux NFS Mailing List <linux-nfs@vger.kernel.org>,
	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	[thread overview]
Message-ID: <1AE35F72-77CF-4F5A-9B65-72AB6A53A621@redhat.com> (raw)
In-Reply-To: <trinity-0ed602bd-15d4-4110-b3f4-668c2051904a-1711472684521@msvc-mesg-gmx122>

On 26 Mar 2024, at 13:04, Jan Schunk wrote:

> Before I start doing this on my own build I tried it with unmodified linux-image-6.6.13+bpo-amd64 from Debian 12.
> I installed systemtap, linux-headers-6.6.13+bpo-amd64 and linux-image-6.6.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/96896res/7168shr/89800data kb, in 1360usr/1080sys/4963real ms.
> WARNING: cannot find module kernel debuginfo: No DWARF information found [man warning::debuginfo]
> semantic error: resolution failed in DWARF builder
>
> semantic error: while resolving probe point: identifier 'kernel' at kmem_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.
> user@deb:~$
>
> user@deb:~$ grep -E 'CONFIG_DEBUG_INFO|CONFIG_KPROBES|CONFIG_DEBUG_FS|CONFIG_RELAY' /boot/config-6.6.13+bpo-amd64
> CONFIG_RELAY=y
> CONFIG_KPROBES=y
> CONFIG_KPROBES_ON_FTRACE=y
> CONFIG_DEBUG_INFO=y
> # CONFIG_DEBUG_INFO_NONE is not set
> CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
> # 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=y
> # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
> # CONFIG_DEBUG_INFO_SPLIT is not set
> CONFIG_DEBUG_INFO_BTF=y
> CONFIG_DEBUG_INFO_BTF_MODULES=y
> CONFIG_DEBUG_FS=y
> CONFIG_DEBUG_FS_ALLOW_ALL=y
> # 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

.. 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 have them then I'm annotating the kernel directly.

Maybe just a view of what's happening in /proc/slabinfo would be enough..

Ben


  reply	other threads:[~2024-03-26 17:13 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-24 19:57 Jan Schunk
2024-03-24 20:14 ` [External] : " Chuck Lever III
2024-03-24 20:48   ` Aw: " Jan Schunk
2024-03-24 21:10     ` Chuck Lever III
2024-03-24 21:39       ` Aw: " Jan Schunk
2024-03-24 22:13         ` Chuck Lever III
2024-03-24 22:54           ` Aw: " Jan Schunk
2024-03-25 19:55           ` Jan Schunk
2024-03-25 20:11             ` Chuck Lever III
2024-03-25 20:26               ` Aw: " Jan Schunk
2024-03-25 20:36                 ` Chuck Lever III
2024-03-26 16:50                   ` Aw: " Jan Schunk
2024-03-28 22:03                   ` Jan Schunk
2024-03-29  0:25                     ` Chuck Lever III
2024-03-30 15:26                       ` Aw: " Jan Schunk
2024-03-30 16:26                         ` Chuck Lever
2024-04-01 14:08                           ` Chuck Lever III
2024-04-01 17:35                             ` Aw: " Jan Schunk
2024-04-01 17:51                               ` Chuck Lever III
2024-03-26 11:15               ` Benjamin Coddington
2024-03-26 17:04                 ` Aw: " Jan Schunk
2024-03-26 17:13                   ` Benjamin Coddington [this message]
2024-03-26 17:15                     ` Benjamin Coddington
2024-03-26 19:05                       ` Aw: " Jan Schunk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1AE35F72-77CF-4F5A-9B65-72AB6A53A621@redhat.com \
    --to=bcodding@redhat.com \
    --cc=chuck.lever@oracle.com \
    --cc=dai.ngo@oracle.com \
    --cc=jlayton@kernel.org \
    --cc=kolga@netapp.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-nfs@vger.kernel.org \
    --cc=neilb@suse.de \
    --cc=scpcom@gmx.de \
    --cc=tom@talpey.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®