From owner-freebsd-stable@FreeBSD.ORG Tue Nov 16 16:01:52 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EDFC8106564A for ; Tue, 16 Nov 2010 16:01:52 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from qmta08.emeryville.ca.mail.comcast.net (qmta08.emeryville.ca.mail.comcast.net [76.96.30.80]) by mx1.freebsd.org (Postfix) with ESMTP id CE96D8FC16 for ; Tue, 16 Nov 2010 16:01:52 +0000 (UTC) Received: from omta05.emeryville.ca.mail.comcast.net ([76.96.30.43]) by qmta08.emeryville.ca.mail.comcast.net with comcast id XpDL1f0040vp7WLA8s1sWQ; Tue, 16 Nov 2010 16:01:52 +0000 Received: from koitsu.dyndns.org ([98.248.41.155]) by omta05.emeryville.ca.mail.comcast.net with comcast id Xs1q1f00L3LrwQ28Rs1r67; Tue, 16 Nov 2010 16:01:51 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id 84F389B427; Tue, 16 Nov 2010 08:01:50 -0800 (PST) Date: Tue, 16 Nov 2010 08:01:50 -0800 From: Jeremy Chadwick To: Christer Solskogen Message-ID: <20101116160150.GA93581@icarus.home.lan> References: <20101116003029.GC79816@numachi.com> <20101116131128.GB21229@rron.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-stable@freebsd.org Subject: Re: "High" cpu usage when using ZFS cache device X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Nov 2010 16:01:53 -0000 On Tue, Nov 16, 2010 at 04:53:57PM +0100, Christer Solskogen wrote: > On Tue, Nov 16, 2010 at 2:11 PM, Ollivier Robert > wrote: > > According to Christer Solskogen: > >> See, that is why I think it is a ZFS issue. Because I did that. > >> I created a UFS filesystem on the same usb stick. Mounted it and did a > >> "dd if=/dev/zero of=/mnt/file". > >> The systemload goes +0.6 instead if +10.3. > > > > Do not forget that everything that is read/written from/to USB devices goes through the CPU (no DMA or anything for USB devices). > > > > I didn't forget that. Thats why I also tested with UFS. And I do not > have the same issue with that. > > With top -HS I discovered this: > 5 root -8 - 0K 76K zio->i 4 403.2H 85.06% > {l2arc_feed_threa} Please provide the output from: sysctl -a | grep vfs.zfs.arc sysctl -a | grep vm.kmem sysctl kstat.zfs.misc.arcstats Thank you. -- | Jeremy Chadwick jdc@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |