From owner-freebsd-performance@FreeBSD.ORG Fri Jan 28 17:57:09 2011 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7544E1065670; Fri, 28 Jan 2011 17:57:09 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from zxy.spb.ru (zxy.spb.ru [195.70.199.98]) by mx1.freebsd.org (Postfix) with ESMTP id DCBC58FC26; Fri, 28 Jan 2011 17:57:08 +0000 (UTC) Received: from slw by zxy.spb.ru with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1PisZI-0006N5-06; Fri, 28 Jan 2011 20:57:08 +0300 Date: Fri, 28 Jan 2011 20:57:07 +0300 From: Slawa Olhovchenkov To: Stefan Lambrev Message-ID: <20110128175707.GH18170@zxy.spb.ru> References: <20110128143355.GD18170@zxy.spb.ru> <22E77EED-6455-4164-9115-BBD359EC8CA6@moneybookers.com> <20110128161035.GF18170@zxy.spb.ru> <4D42F87C.7020909@freebsd.org> <20110128172516.GG18170@zxy.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: slw@zxy.spb.ru X-SA-Exim-Scanned: No (on zxy.spb.ru); SAEximRunCond expanded to false Cc: freebsd-performance@freebsd.org, Julian Elischer Subject: Re: Interrupt performance X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Jan 2011 17:57:09 -0000 On Fri, Jan 28, 2011 at 07:44:57PM +0200, Stefan Lambrev wrote: > >> there are profiling tools that you may decide to run. > > > > What tools I can use on amd64? > > Look at this document - http://software.intel.com/sites/oss/pdfs/profiling_debugging_freebsd_kernel_321772.pdf > It contains brief information for all useful profiling tools, or just google for "freebsd kernel profiling" > I'm not sure what the situation with RealTek driver, but in the past when I have done profiling, I saw that much of > the CPU time was spent on expensive (for FreeBSD) calls, which where very cheap in linux. kgmon badly work on amd64. PmcStat don't supported on this CPU. Also, http://lists.freebsd.org/pipermail/freebsd-questions/2008-October/183977.html === This is one of many defects that are not present in high resolution kernel profiling (kgmon -B instead of kgmon -b; availaible on amd64 and i386). However, high resolution kernel profiling doesn't work right with SMP, and was completely broken by gcc-4. Ordinary profiling was less completely broken by gcc-4, and you can recover the old behaviour by turning off new optimizations (mainly -funit-at-a-time and/or -finline-functions-called-once and or all of -O2). === > > > > I boot kernel configured with 'config -p'. > > Most time in spinlock_exit and acpi_cpu_c1.