From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 25 06:38:43 2013 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 93FE1F66 for ; Fri, 25 Oct 2013 06:38:43 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id E66B12003 for ; Fri, 25 Oct 2013 06:38:42 +0000 (UTC) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id JAA11202; Fri, 25 Oct 2013 09:38:35 +0300 (EEST) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1VZb2Z-000A4H-15; Fri, 25 Oct 2013 09:38:35 +0300 Message-ID: <526A11B2.6090008@FreeBSD.org> Date: Fri, 25 Oct 2013 09:37:38 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 MIME-Version: 1.0 To: Vitalij Satanivskij Subject: Re: FreeBSD 10.0-BETA1 #8 r256765M spend too much time in locks References: <20131024074826.GA50853@hell.ukr.net> <20131024075023.GA52443@hell.ukr.net> <20131024115519.GA72359@hell.ukr.net> <20131024165218.GA82686@hell.ukr.net> In-Reply-To: <20131024165218.GA82686@hell.ukr.net> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: 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 06:38:43 -0000 When that high load happens again could you please run some profiling tool that is capable of capturing the whole stacks of hot code paths? I can suggest two alternatives: 1. hwpmc pmcstat -S instructions -O sample.out pmcstat -R sample.out -G summary.out 2. The following DTrace script: profile:::profile-1113 /!(curthread->td_flags & 0x20)/ { @stacks[stack()] = count(); } END { trunc(@stacks, 10); printa(@stacks); } -- Andriy Gapon