From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25314 invoked by alias); 24 May 2013 23:56:16 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Received: (qmail 25281 invoked by uid 48); 24 May 2013 23:56:09 -0000 From: "amonakov at gmail dot com" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/15533] New: LD_AUDIT introduces an avoidable performance degradation Date: Fri, 24 May 2013 23:56:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: dynamic-link X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: amonakov at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-05/txt/msg00220.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=15533 Bug ID: 15533 Summary: LD_AUDIT introduces an avoidable performance degradation Product: glibc Version: unspecified Status: NEW Severity: normal Priority: P2 Component: dynamic-link Assignee: unassigned at sourceware dot org Reporter: amonakov at gmail dot com Created attachment 7044 --> http://sourceware.org/bugzilla/attachment.cgi?id=7044&action=edit testcase Introducing an audit library currently force-enables instrumenting for profiling in the dynamic linker (as if LD_AUDIT implied LD_PROFILE). However, this is not necessary if the audit library does not provide la_plt{enter,exit} symbols. Attached testcase demonstrates the performance hit: $ make test time ./main 0.47user 0.00system 0:00.48elapsed 99%CPU (0avgtext+0avgdata 1984maxresident)k 0inputs+0outputs (0major+170minor)pagefaults 0swaps time env LD_AUDIT=./libaudit.so ./main 8.96user 0.00system 0:08.97elapsed 99%CPU (0avgtext+0avgdata 3264maxresident)k 0inputs+0outputs (0major+442minor)pagefaults 0swaps -- You are receiving this mail because: You are on the CC list for the bug.