This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug runtime/16719] systemtap runs hold vmlinux file descriptor open
- From: "jistone at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Mon, 17 Mar 2014 18:41:12 +0000
- Subject: [Bug runtime/16719] systemtap runs hold vmlinux file descriptor open
- Auto-submitted: auto-generated
- References: <bug-16719-6586 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=16719
Josh Stone <jistone at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jistone at redhat dot com
--- Comment #1 from Josh Stone <jistone at redhat dot com> ---
(In reply to Lars R. Damerow from comment #0)
> Can this file descriptor be closed once the kernel module is built?
There's no technical reason not to. Nearly all resources used during passes
1-4 could be released for pass 5, and I think we do some, just not all. I
thought we did release all the dwfl handles, which would include the open
vmlinux, but I could be wrong (or we could have something like a refcount
leak).
As a workaround, you could use stap -p4 to build the module, then staprun
separately to load and run it. That will give you the least runtime overhead
possible, with none of the build-time files open nor the associated memory use.
But we should still make stap cleanup after pass1-4 as much as possible.
--
You are receiving this mail because:
You are the assignee for the bug.