From owner-svn-src-all@FreeBSD.ORG Tue Aug 26 19:35:28 2014 Return-Path: Delivered-To: svn-src-all@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 ESMTPS id DD1E6821; Tue, 26 Aug 2014 19:35:27 +0000 (UTC) Received: from mail-lb0-x22b.google.com (mail-lb0-x22b.google.com [IPv6:2a00:1450:4010:c04::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D107B3069; Tue, 26 Aug 2014 19:35:26 +0000 (UTC) Received: by mail-lb0-f171.google.com with SMTP id w7so1964489lbi.30 for ; Tue, 26 Aug 2014 12:35:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=LnhjAqFfQPOsnOzXwcpvz1K2MExgN07zKRhS7m1ATrQ=; b=eQ0rAFIdS3xna/ynMMOxZWfXT4GUD2V8XDhTyH1M9w5uBFfQp2aqPP73D+z2fcfWLh 3MqH5wGM0e1yZALuE/p16c+qpYGLjMi8e8jKdNFZe9m6tlCRB9DUKMw0HPmdiRzj70Mv ZdFJgmvRL/wfE1HAc0CzdEurr6JNH8hFq3vQ2qnE8h0p0oB4geQBi7o78It1xMnX9oHp vJx29dr7ZgkRnwGKiM7bQAKpv//8TNDhyTNF+iX6vJOnF/DQsJvmGZhtTnQoj6d8xVNd 07biiaK5lf1g9vF3PKiAQddRiVYo9GjZbpsSP40fxnGAoUUM8GAubzhxuHOZNFNQZtRV YePw== X-Received: by 10.152.9.170 with SMTP id a10mr16214730lab.79.1409081724775; Tue, 26 Aug 2014 12:35:24 -0700 (PDT) Received: from mavbook.mavhome.dp.ua ([134.249.139.101]) by mx.google.com with ESMTPSA id lf2sm2641423lac.27.2014.08.26.12.35.23 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 26 Aug 2014 12:35:24 -0700 (PDT) Sender: Alexander Motin Message-ID: <53FCE179.9030804@FreeBSD.org> Date: Tue, 26 Aug 2014 22:35:21 +0300 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Slawa Olhovchenkov , Adrian Chadd Subject: Re: svn commit: r265792 - head/sys/kern References: <201405100053.s4A0rbF9080571@svn.freebsd.org> <20140511083114.GA53503@zxy.spb.ru> <20140520154113.GA23318@zxy.spb.ru> <20140826185407.GE2075@zxy.spb.ru> In-Reply-To: <20140826185407.GE2075@zxy.spb.ru> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: "svn-src-head@freebsd.org" , "svn-src-all@freebsd.org" , "src-committers@freebsd.org" X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Aug 2014 19:35:28 -0000 On 26.08.2014 21:54, Slawa Olhovchenkov wrote: > On Tue, May 20, 2014 at 09:04:25AM -0700, Adrian Chadd wrote: > >> On 20 May 2014 08:41, Slawa Olhovchenkov wrote: >> >>>> (But if you try it on 10.0 and it changes things, by all means let me know.) >>> >>> I am try on 10.0, but not sure about significant improvement (may be >>> 10%). >>> >>> For current CPU (E5-2650 v2 @ 2.60GHz) hwpmc don't working (1. after >>> collect some data `pmcstat -R sample.out -G out.txt` don't decode any; >>> 2. kldunload hwpmc do kernel crash) and I can't collect detailed >>> profile information. >> >> Yup. I'm starting to get really ticked off at how pmc logging on >> multi-core devices just "stops" after a while. I'll talk with other >> pmc people and see if we can figure out what the heck is going on. :( > > Now I can test you work on CPU w/ working pmc. > @ CPU_CLK_UNHALTED_CORE [241440 samples] > > 10.59% [25561] _mtx_lock_spin_cookie @ /boot/kernel/kernel > 94.25% [24092] pmclog_reserve @ /boot/kernel/hwpmc.ko > 100.0% [24092] pmclog_process_callchain > 100.0% [24092] pmc_process_samples > 100.0% [24092] pmc_hook_handler > 100.0% [24092] hardclock_cnt @ /boot/kernel/kernel Slava, on large SMP systems you should specify some much bigger division rate (like `-n 100000000`) when doing PMC sampling. Otherwise you are mostly measuring PMC's internal lock congestion. -- Alexander Motin