Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1423069AbWLUUPM (ORCPT ); Thu, 21 Dec 2006 15:15:12 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1423070AbWLUUPM (ORCPT ); Thu, 21 Dec 2006 15:15:12 -0500 Received: from smtp.osdl.org ([65.172.181.25]:36843 "EHLO smtp.osdl.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1423069AbWLUUPK (ORCPT ); Thu, 21 Dec 2006 15:15:10 -0500 Date: Thu, 21 Dec 2006 12:14:30 -0800 From: Andrew Morton To: Jens Axboe Cc: linux-kernel@vger.kernel.org, Linus Torvalds Subject: Re: performance regression from block merge Message-Id: <20061221121430.33392935.akpm@osdl.org> In-Reply-To: <20061221194741.GH17199@kernel.dk> References: <20061221112540.e4ba58bc.akpm@osdl.org> <20061221193549.GF17199@kernel.dk> <20061221194741.GH17199@kernel.dk> X-Mailer: Sylpheed version 2.2.7 (GTK+ 2.8.6; i686-pc-linux-gnu) Mime-Version: 1.0 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 Content-Length: 1542 Lines: 41 On Thu, 21 Dec 2006 20:47:41 +0100 Jens Axboe wrote: > On Thu, Dec 21 2006, Jens Axboe wrote: > > On Thu, Dec 21 2006, Andrew Morton wrote: > > > > > > Jens, elapsed time for `mke2fs /dev/hdc5' with the anticipatory scheduler > > > (at least) has gone from nine seconds to sixty as a result of the recent > > > block merge. > > > > About when? I'll double check and test here, I'm assuming you mean since > > 2.6.19? In yesterday's merge. I double-checked by testing yesterday's-Linus versus yesterday's-Linus-plus-yesterday's-git-block. The latter was slow. > Auch, brown paper bag time, I spotted an obvious typo in the recent > merge. Does this fix it? It should be safe to kill the ->special check, > but lets leave that for another time. > > diff --git a/block/elevator.c b/block/elevator.c > index 62c7a30..536be74 100644 > --- a/block/elevator.c > +++ b/block/elevator.c > @@ -82,7 +82,7 @@ inline int elv_rq_merge_ok(struct reques > /* > * must be same device and not a special request > */ > - if (rq->rq_disk != bio->bi_bdev->bd_disk || !rq->special) > + if (rq->rq_disk != bio->bi_bdev->bd_disk || rq->special) > return 0; > > if (!elv_iosched_allow_merge(rq, bio)) > I shan't be near that machine for eight hours or so; shall test then. - 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/