From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751749AbXDZTAn (ORCPT ); Thu, 26 Apr 2007 15:00:43 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751750AbXDZTAn (ORCPT ); Thu, 26 Apr 2007 15:00:43 -0400 Received: from ebiederm.dsl.xmission.com ([166.70.28.69]:33132 "EHLO ebiederm.dsl.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751744AbXDZTAm (ORCPT ); Thu, 26 Apr 2007 15:00:42 -0400 From: ebiederm@xmission.com (Eric W. Biederman) To: Jens Axboe Cc: Nick Piggin , David Chinner , Christoph Lameter , linux-kernel@vger.kernel.org, Mel Gorman , William Lee Irwin III , Badari Pulavarty , Maxim Levitsky Subject: Re: [00/17] Large Blocksize Support V3 References: <463048FE.5000600@yahoo.com.au> <46304D50.1040706@yahoo.com.au> <46305327.2000206@yahoo.com.au> <4630593C.8070905@yahoo.com.au> <20070426092014.GT65285596@melbourne.sgi.com> <4630C326.2030906@yahoo.com.au> <20070426174254.GD2017@kernel.dk> Date: Thu, 26 Apr 2007 12:59:20 -0600 In-Reply-To: <20070426174254.GD2017@kernel.dk> (Jens Axboe's message of "Thu, 26 Apr 2007 19:42:54 +0200") Message-ID: User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Jens Axboe writes: > On Fri, Apr 27 2007, Nick Piggin wrote: >> Why do we limit drivers to 128 sg entries? > > No particular reason, except than to avoid 2^bigger order allocations. > 2MiB requests would require 3 contig pages to setup the sg list, which > is (probably) a little troublesome especially since it's sometimes > atomically allocated. > > Larger pages are by no means a prerequisite to getting larger requests, > assuming your hardware can handle the bigger sglist. There are other > ways of doing that, I've contemplated doing chained sglists and adding > sg_for_each_segment() macros for iterating these things. Drivers that > want larger sglists would then be required to update their sg mapping > loop to use the provided macros. It wouldn't be too hard. Thanks. At least in the long term supporting larger scatter gather lists in the kernel looks like something we need to do assuming bandwidth goes up exponentially but I/O device latency remains high. Eric