From owner-freebsd-stable@FreeBSD.ORG Sun Feb 6 09:41:27 2011 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 ACE68106566B for ; Sun, 6 Feb 2011 09:41:27 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from qmta03.westchester.pa.mail.comcast.net (qmta03.westchester.pa.mail.comcast.net [76.96.62.32]) by mx1.freebsd.org (Postfix) with ESMTP id 1F8978FC13 for ; Sun, 6 Feb 2011 09:41:26 +0000 (UTC) Received: from omta02.westchester.pa.mail.comcast.net ([76.96.62.19]) by qmta03.westchester.pa.mail.comcast.net with comcast id 4ZhS1g0010QuhwU53ZhSDX; Sun, 06 Feb 2011 09:41:26 +0000 Received: from koitsu.dyndns.org ([98.248.34.134]) by omta02.westchester.pa.mail.comcast.net with comcast id 4ZhR1g00T2tehsa3NZhSjU; Sun, 06 Feb 2011 09:41:26 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id 7F9C99B427; Sun, 6 Feb 2011 01:41:24 -0800 (PST) Date: Sun, 6 Feb 2011 01:41:24 -0800 From: Jeremy Chadwick To: Kostik Belousov Message-ID: <20110206094124.GA51336@icarus.home.lan> References: <20110206092732.GH78089@deviant.kiev.zoral.com.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110206092732.GH78089@deviant.kiev.zoral.com.ua> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Daniel O'Connor , freebsd-stable Stable Subject: Re: Xorg in swwrt 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: Sun, 06 Feb 2011 09:41:27 -0000 On Sun, Feb 06, 2011 at 11:27:32AM +0200, Kostik Belousov wrote: > On Sun, Feb 06, 2011 at 03:19:12PM +1030, Daniel O'Connor wrote: > > I updated ports (portmaster -a basically) on this 8.2-PRE box and now I find X takes a long, long time to start up and uses lots of CPU. It shows the wchan as swwrt. > > > > eg.. > > last pid: 21791; load averages: 0.12, 0.29, 0.23 up 0+16:09:07 15:16:15 > > 496 processes: 2 running, 494 sleeping > > CPU: 0.0% user, 0.0% nice, 46.7% system, 0.0% interrupt, 53.3% idle > > Mem: 190M Active, 33M Inact, 3217M Wired, 198M Cache, 15M Buf, 171M Free > > Swap: 4096M Total, 621M Used, 3475M Free, 15% Inuse, 212K Out > > > > PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND > > 21787 fiona 1 76 0 168M 134M swwrt 0 0:04 32.37% Xorg > swwrt means waiting for the syncronous swap-out to finish. > This is consistent with the top indicating the non-trivial amount of > swap space used and swapout happen right now. > > Look at the working set of the application you are starting. > Another thing that is standing out is huge wired count. Regarding the large wired count: I'm willing to bet ZFS is in use on the machine, which would explain this (specifically ARC usage). -- | 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 |