[Bug runtime/16719] systemtap runs hold vmlinux file descriptor open
jistone at redhat dot com
sourceware-bugzilla@sourceware.org
Mon Mar 17 18:41:00 GMT 2014
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.
More information about the Systemtap
mailing list