Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 22 Oct 2001 17:21:50 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 22 Oct 2001 17:21:41 -0400 Received: from vasquez.zip.com.au ([203.12.97.41]:25354 "EHLO vasquez.zip.com.au") by vger.kernel.org with ESMTP id ; Mon, 22 Oct 2001 17:21:26 -0400 Message-ID: <3BD48CE9.C8F5FD60@zip.com.au> Date: Mon, 22 Oct 2001 14:17:29 -0700 From: Andrew Morton X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.13-pre6 i686) X-Accept-Language: en MIME-Version: 1.0 To: Marcos Dione CC: linux-kernel@vger.kernel.org Subject: Re: kjournald and disk sleeping In-Reply-To: <3BD4655E.82ED21CC@zip.com.au> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Marcos Dione wrote: > > On Mon, 22 Oct 2001, Andrew Morton wrote: > > > Yes, this is a bit of a problem - it's probably atime updates, > > things which write to inodes, etc. A commit will be forced within > > five seconds of this happening. > > Reading journal.c I guessed that kjournald flushes thing *even if > it doesn't have things to flush*. I guess that from commit_timeout and > the comments on the thread process, but I can be wrong. It's rather convoluted, but a commit fires if: 1: more than approx 1/4 of the journal has been used by the current transaction or 2: this transaction has been open for >5 seconds. And a commit will close off the current transaction, but will *not* open a new one. Opening a new transaction will only happen when new writes come in. So there should be no commit activity on an fs which isn't being written to. You can watch all this happening by building with debug support and running echo 1 > /proc/sys/fs/jbd-debug You may want to stop syslogd first though - otherwise you get into this loop where commits create logs and logs create commits. Tends to fill your logs up rather boringly. - - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/