From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S264929AbUHMMNa (ORCPT ); Fri, 13 Aug 2004 08:13:30 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S265022AbUHMMNa (ORCPT ); Fri, 13 Aug 2004 08:13:30 -0400 Received: from mx2.elte.hu ([157.181.151.9]:24704 "EHLO mx2.elte.hu") by vger.kernel.org with ESMTP id S264929AbUHMMNX (ORCPT ); Fri, 13 Aug 2004 08:13:23 -0400 Date: Fri, 13 Aug 2004 14:15:02 +0200 From: Ingo Molnar To: Andi Kleen Cc: linux-kernel@vger.kernel.org Subject: Re: [patch] Latency Tracer, voluntary-preempt-2.6.8-rc4-O6 Message-ID: <20040813121502.GA18860@elte.hu> References: <2md5B-36u-11@gated-at.bofh.it> <2mkTt-BZ-11@gated-at.bofh.it> <2nrJd-7Dx-19@gated-at.bofh.it> <2ouFe-2vz-63@gated-at.bofh.it> <2rfT9-5wi-17@gated-at.bofh.it> <2rF1c-6Iy-7@gated-at.bofh.it> <2sxEs-46P-1@gated-at.bofh.it> <2sCkH-7i5-15@gated-at.bofh.it> <2sHu9-2EW-31@gated-at.bofh.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-ELTE-SpamVersion: MailScanner 4.31.6-itk1 (ELTE 1.2) SpamAssassin 2.63 ClamAV 0.73 X-ELTE-VirusStatus: clean X-ELTE-SpamCheck: no X-ELTE-SpamCheck-Details: score=-4.9, required 5.9, autolearn=not spam, BAYES_00 -4.90 X-ELTE-SpamLevel: X-ELTE-SpamScore: -4 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org * Andi Kleen wrote: > >> Interesting results. One of the problems is kallsyms_lookup, > >> triggered by the printks: > > > > yeah - kallsyms_lookup does a linear search over thousands of symbols. > > Especially since /proc/latency_trace uses it too it would be worthwile > > to implement some sort of binary searching. > > Or just stick some cond_sched()s in there. It was designed to be slow, > but there are no locking issues. the speedup would be important: even on a 2GHz box reading 10,000 trace entries takes a couple of seconds. [ the /proc/latency_trace read()ing itself is fully preemptible, i'd be ashamed if it werent ;) ] Ingo