Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262413AbUC1UCu (ORCPT ); Sun, 28 Mar 2004 15:02:50 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262416AbUC1UCu (ORCPT ); Sun, 28 Mar 2004 15:02:50 -0500 Received: from parcelfarce.linux.theplanet.co.uk ([195.92.249.252]:29919 "EHLO www.linux.org.uk") by vger.kernel.org with ESMTP id S262413AbUC1UCr (ORCPT ); Sun, 28 Mar 2004 15:02:47 -0500 Message-ID: <40672F54.1050703@pobox.com> Date: Sun, 28 Mar 2004 15:02:28 -0500 From: Jeff Garzik User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030703 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Nuno Silva CC: Bartlomiej Zolnierkiewicz , William Lee Irwin III , Jens Axboe , Nick Piggin , linux-ide@vger.kernel.org, Linux Kernel , Andrew Morton Subject: Re: [PATCH] speed up SATA References: <4066021A.20308@pobox.com> <20040328175436.GL24370@suse.de> <20040328181223.GA791@holomorphy.com> <200403282030.11743.bzolnier@elka.pw.edu.pl> <40672D07.2060201@vgertech.com> In-Reply-To: <40672D07.2060201@vgertech.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1605 Lines: 40 Nuno Silva wrote: > With this kind of control we could have /etc/init.d/io-optimize that > paused the startup for 10 seconds and tests every device|controller in > fstab and optimizes according to the .conf file for latency or speed... > Or a daemon that retrieves statistics and adjusts the policies every > minute? > > Also, everybody says "do it in userland". This is doing (some of) it in > userland :) An iotune daemon that sits in userland -- probably mlockall'd into memory -- would be fun. Like the existing irqbalance daemon that Red Hat (disc: my employer) ships, "iotuned" could run in the background, adjusting policies every so often. It would be a good place to put some of the more high-level "laptop mode" or "high throughput mode" tunables, so that the user wouldn't have to worry about the minute details of such things. Just watch the IO statistics and tweak the queue settings... Gotta make sure the queue settings don't get tweaked beyond what the hardware can do, though. A good iotune daemon would probably have to pay attention to various VM statistics as well, since the VM is often the one that decides when to start writing out stuff... such an app could (quite justifiably) mushroom into a io-and-vmtune daemon. This is a side issue from the topic of finding a decent in-kernel default, of course... Jeff - 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/