Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 4 Mar 2003 09:01:02 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 4 Mar 2003 09:00:56 -0500 Received: from 205-158-62-139.outblaze.com ([205.158.62.139]:27280 "HELO spf1.us.outblaze.com") by vger.kernel.org with SMTP id ; Tue, 4 Mar 2003 09:00:53 -0500 Message-ID: <20030304141104.65579.qmail@mail.com> Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-Mailer: MIME-tools 5.41 (Entity 5.404) From: "David Anderson" To: axboe@suse.de, david-anderson2003@mail.com Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 04 Mar 2003 09:11:04 -0500 Subject: Re: I/O Request [Elevator; Clustering; Scatter-Gather] X-Originating-Ip: 133.145.164.4 X-Originating-Server: ws1-4.us4.outblaze.com Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2168 Lines: 60 Hi, Thanks a lot for the reply... I am using linux 2.4. Got mislead with the statement in "Linux Device Drivers" "Most high-performance disk controllers can do ?scatter/gather? I/O as well, leading to large performance gains." Thanks and Regards, David Anderson ----- Original Message ----- From: Jens Axboe Date: Tue, 4 Mar 2003 14:50:00 +0100 To: David Anderson Subject: Re: I/O Request [Elevator; Clustering; Scatter-Gather] > On Tue, Mar 04 2003, David Anderson wrote: > > > > Hi, I have been going through some documentation that talks of > > clustering, scatter-gather and elevator being used to improve > > performance. I am confused between these : > > > > This is what I have understood : Elevator The job of the elevator is > > to sort I/O requests to disk drives in such a way that the disk head > > moving in the same direction for maximum performance. Have been able > > to locate the code for the same. > > > > Clustering Combines multiple requests to adjecent blocks into a single > > request. Have not been able to find the code which carries this out. > > Any clue on where this is done in the linux source code ?? > > Both actions are performed by the elevator in Linux. You did not mention > which kernel you are looking at, for 2.4 you need to read > drivers/block/ll_rw_blk.c and drivers/block/elevator.c. For 2.5, read > the same files and drivers/block/deadline-iosched.c in addition. > > > Do Clustering of request and scatter-gather mean the same ?? Confused > > to the core... Kindly help me ... > > No, the elevator clustering refers to clustering request that are > contigious on disk. Scatter-gather may cluster sg entries that are > contigious in memory. > > -- > Jens Axboe > -- __________________________________________________________ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup - 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/