This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug kprobes/10839] kretprobes use excessive memory on x86_64 rawhide
- From: "jistone at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 26 Oct 2009 23:14:05 -0000
- Subject: [Bug kprobes/10839] kretprobes use excessive memory on x86_64 rawhide
- References: <20091024022959.10839.jistone@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From jistone at redhat dot com 2009-10-26 23:14 -------
(In reply to comment #2)
> That's 37MB for a change of 100 maxactive, which comes to about 136 bytes each.
This waste is because kretprobes allocates each instance with a separate
kmalloc, which usually allocates more than actually requested.
global waste
probe kernel.trace("kmalloc") {
waste <<< ($bytes_alloc - $bytes_req)
}
probe timer.s(1) {
if (@count(waste))
printdln(" ", @count(waste), @sum(waste), @avg(waste))
delete waste
}
During KRETACTIVE=100, I get:
271 21949 80
281281 27015907 96
141 13280 94
During KRETACTIVE=200, I get:
25 2664 106
561746 53935824 96
127 12264 96
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10839
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.