From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 25 07:23:46 2013 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 7214480; Fri, 25 Oct 2013 07:23:46 +0000 (UTC) (envelope-from satan@ukr.net) Received: from hell.ukr.net (hell.ukr.net [212.42.67.68]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2CCF22302; Fri, 25 Oct 2013 07:23:46 +0000 (UTC) Received: from satan by hell.ukr.net with local ID 1VZbkF-0008AU-M5 ; Fri, 25 Oct 2013 10:23:43 +0300 Date: Fri, 25 Oct 2013 10:23:43 +0300 From: Vitalij Satanivskij To: Andriy Gapon Subject: Re: FreeBSD 10.0-BETA1 #8 r256765M spend too much time in locks Message-ID: <20131025072343.GA31310@hell.ukr.net> References: <20131024074826.GA50853@hell.ukr.net> <20131024075023.GA52443@hell.ukr.net> <20131024115519.GA72359@hell.ukr.net> <20131024165218.GA82686@hell.ukr.net> <526A11B2.6090008@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <526A11B2.6090008@FreeBSD.org> User-Agent: Mutt/1.5.22 (2013-10-16) Cc: Vitalij Satanivskij , freebsd-hackers@FreeBSD.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Oct 2013 07:23:46 -0000 http://quad.org.ua/profiling.tgz results of both methods but for pmcstat to few buffers configured by default so not all statistics in summary ^( Andriy Gapon wrote: AG> AG> When that high load happens again could you please run some profiling tool that AG> is capable of capturing the whole stacks of hot code paths? AG> AG> I can suggest two alternatives: AG> AG> 1. hwpmc AG> pmcstat -S instructions -O sample.out AG> pmcstat -R sample.out -G summary.out AG> AG> 2. The following DTrace script: AG> AG> profile:::profile-1113 AG> /!(curthread->td_flags & 0x20)/ AG> { AG> AG> @stacks[stack()] = count(); AG> } AG> AG> END AG> { AG> trunc(@stacks, 10); AG> printa(@stacks); AG> } AG> -- AG> Andriy Gapon AG> _______________________________________________ AG> freebsd-hackers@freebsd.org mailing list AG> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers AG> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"