From owner-freebsd-fs@FreeBSD.ORG Tue Mar 19 14:57:41 2013 Return-Path: Delivered-To: freebsd-fs@FreeBSD.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 71D76FEC for ; Tue, 19 Mar 2013 14:57:41 +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 B8C9CD1E for ; Tue, 19 Mar 2013 14:57:40 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id QAA14239; Tue, 19 Mar 2013 16:57:38 +0200 (EET) (envelope-from avg@FreeBSD.org) Message-ID: <51487CE1.5090703@FreeBSD.org> Date: Tue, 19 Mar 2013 16:57:37 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130313 Thunderbird/17.0.4 MIME-Version: 1.0 To: Freddie Cash Subject: Re: Strange slowdown when cache devices enabled in ZFS References: <51430744.6020004@FreeBSD.org> In-Reply-To: X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: FreeBSD Filesystems X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Mar 2013 14:57:41 -0000 on 15/03/2013 16:58 Freddie Cash said the following: > How does one do that? I've never done that before. > > Point me to some docs, and I'll see what I can find out. hwpmc(4), pmcstat(8) and/or /usr/share/dtrace/toolkit/hotkernel and/or (just an example) dtrace -n 'profile:::profile-4001 { @stacks[pid, tid, execname, stack()] = count(); } END { trunc(@stacks, 10); printa(@stacks); }' > On Fri, Mar 15, 2013 at 4:34 AM, Andriy Gapon > wrote: > > on 14/03/2013 20:13 Freddie Cash said the following: > > the l2arc_feed_thread of zfskern will spin until it takes up 100% > > of a CPU core > > If you see a thread taking 100% where it shouldn't, then just profile it and > actually see what it's doing. -- Andriy Gapon