From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26673 invoked by alias); 26 Oct 2009 23:14:17 -0000 Received: (qmail 26652 invoked by uid 48); 26 Oct 2009 23:14:05 -0000 Date: Mon, 26 Oct 2009 23:14:00 -0000 Message-ID: <20091026231405.26651.qmail@sourceware.org> From: "jistone at redhat dot com" To: systemtap@sources.redhat.com In-Reply-To: <20091024022959.10839.jistone@redhat.com> References: <20091024022959.10839.jistone@redhat.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug kprobes/10839] kretprobes use excessive memory on x86_64 rawhide X-Bugzilla-Reason: AssignedTo Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org X-SW-Source: 2009-q4/txt/msg00296.txt.bz2 ------- 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.