From: Josef Bacik Subject: Re: Severe slowdown caused by jbd2 process Date: Fri, 21 Jan 2011 07:59:22 -0500 Message-ID: <20110121125922.GB8949@dhcp231-156.rdu.redhat.com> References: <1295568782.2459.29.camel@tybalt> <20110121013140.GA8949@dhcp231-156.rdu.redhat.com> <1295601083.5799.3.camel@tybalt> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Josef Bacik , linux-ext4@vger.kernel.org To: Jon Leighton Return-path: Received: from mx1.redhat.com ([209.132.183.28]:57684 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754403Ab1AUNDJ (ORCPT ); Fri, 21 Jan 2011 08:03:09 -0500 Content-Disposition: inline In-Reply-To: <1295601083.5799.3.camel@tybalt> Sender: linux-ext4-owner@vger.kernel.org List-ID: On Fri, Jan 21, 2011 at 09:11:23AM +0000, Jon Leighton wrote: > Hi Josef, > > Thanks for the reply. > > On Thu, 2011-01-20 at 20:31 -0500, Josef Bacik wrote: > > What kind of database is this? Does it use lots of files? > > This happens with all databases that I test with: sqlite3, mysql and > postgresql. Which would seem to indicate that the issue is not actually > related to the databases, but is being made evident by them when they do > lots of reads/writes. (The jbd2 every 2 seconds thing happens even when > all database are completely shut down.) > Right I'm not trying to blame the database, more trying to get an idea the kind of IO that they are generating so we can figure out what is being slow. > > When it's being > > particularly slow could you run > > > > echo w > /proc/sysrq-trigger > > > > a couple of times, spread out. This will give us an idea of what everybody is > > doing when things are going slow. Thanks, > > Cool, I have done that and attached the results. The partition in > question (the one with the databases on) is /dev/sda4. > Hrm so an fsync heavy workload it looks like. I'll run some fsync tests locally and see if I can see the kind of slowdowns you are experiencing. Thanks, Josef