Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262248AbTIHOd1 (ORCPT ); Mon, 8 Sep 2003 10:33:27 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262408AbTIHOd0 (ORCPT ); Mon, 8 Sep 2003 10:33:26 -0400 Received: from ns.virtualhost.dk ([195.184.98.160]:54914 "EHLO virtualhost.dk") by vger.kernel.org with ESMTP id S262248AbTIHOdX (ORCPT ); Mon, 8 Sep 2003 10:33:23 -0400 Date: Mon, 8 Sep 2003 16:33:34 +0200 From: Jens Axboe To: Sven =?iso-8859-1?Q?K=F6hler?= Cc: linux-kernel@vger.kernel.org Subject: Re: [blockdevices/NBD] huge read/write-operations are splitted by the kernel Message-ID: <20030908143334.GS840@suse.de> References: <20030908085802.GH840@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 938 Lines: 27 On Mon, Sep 08 2003, Sven K?hler wrote: > >You'll probably find that if you bump the max_sectors count if your > >drive to 256 from 255 (that is the default if you haven't set it), then > >you'll see 128kb chunks all the time. > > Why is 255 the default. It seems to be an inefficient value. Perhaps the > NBD itself should set it to 256. To avoid 8-bit wrap arounds, basically. Not sure it's still very valid, you are free to compile your kernel with it set to 256. 2.6 uses 256 by default. > >See max_sectors[] array. > > Well, i found the declaration, but i can't imagine how to set the values > in it. You can grep for other examples in the kernel, I would imagine? -- Jens Axboe - 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/