From owner-freebsd-questions@FreeBSD.ORG Thu Jan 29 13:26:56 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4B56610656D0 for ; Thu, 29 Jan 2009 13:26:56 +0000 (UTC) (envelope-from wmoran@potentialtech.com) Received: from mail.potentialtech.com (internet.potentialtech.com [66.167.251.6]) by mx1.freebsd.org (Postfix) with ESMTP id 186188FC0C for ; Thu, 29 Jan 2009 13:26:56 +0000 (UTC) (envelope-from wmoran@potentialtech.com) Received: from vanquish.ws.pitbpa0.priv.collaborativefusion.com (pr40.pitbpa0.pub.collaborativefusion.com [206.210.89.202]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.potentialtech.com (Postfix) with ESMTPSA id 59FDFEBC3F; Thu, 29 Jan 2009 08:26:55 -0500 (EST) Date: Thu, 29 Jan 2009 08:26:54 -0500 From: Bill Moran To: Artem Kuchin Message-Id: <20090129082654.f4f9ae25.wmoran@potentialtech.com> In-Reply-To: <498196B8.1060101@itlegion.ru> References: <498196B8.1060101@itlegion.ru> X-Mailer: Sylpheed 2.5.0 (GTK+ 2.12.11; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: "freebsd-questions@freebsd.org" Subject: Re: 6.8 became very slow X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jan 2009 13:26:57 -0000 In response to Artem Kuchin : > I have a very strange situation here. There was a hosting box with 5 > jails. > Everything is 6.4 > It was running twe driver with RAID 5. > > Then i had a crash and had to reinstall the system. > > So, i have installed FREEBSD 6.8, cvsed the latest, rebuilt everything > and then > just copied jails from the prev installation. So, the host system is 6.8 > and the jails are 6.4. > Also, raid is MIRROR now, not RAID5. OK. I originally thought your subject was a typo, but this is the second place where you mentioned 6.8. Not only would you have to go into the future to get 6.8, but you'd have to slip into an alternate reality, since 6.5 is expected to be the last release on the 6 branch. What is the output of uname -a? If you really have something called 6.8, where on earth did you get it? > The problem is that now everything became really slow. > > When i do top i see: > load averages: 16.45, 14.86, 13.86 > 737 processes: 20 running, 703 sleeping, 14 zombie > CPU: 15.9% user, 0.0% nice, 81.9% system, 2.2% interrupt, 0.0% idle > > Everything pretty much as it was. But 82% system CPU is really weird. I > don;t remember > exactly, but i think it was not like this before. AFAIK it meas 82% of > CPU time is spent in > the kernel. gstat output seems to indicate nothing unusual, so the time spent in the kernel must be for something else, network traffic maybe? Try checking top with -m io to see if anything is showing an unusually high # of context switches. Perhaps do a little easter egg hunting and try shutting down processes to see what is using up all the system time. Once you've got it narrowed down you can run ktrace on the problematic process to see what it's doing. HTH -- Bill Moran http://www.potentialtech.com http://people.collaborativefusion.com/~wmoran/