From owner-freebsd-stable@FreeBSD.ORG Wed Feb 3 11:12:28 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D30DD106568B for ; Wed, 3 Feb 2010 11:12:28 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from out2.smtp.messagingengine.com (out2.smtp.messagingengine.com [66.111.4.26]) by mx1.freebsd.org (Postfix) with ESMTP id A37AB8FC14 for ; Wed, 3 Feb 2010 11:12:28 +0000 (UTC) Received: from compute1.internal (compute1.internal [10.202.2.41]) by gateway1.messagingengine.com (Postfix) with ESMTP id D5842DCDBD for ; Wed, 3 Feb 2010 06:12:27 -0500 (EST) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute1.internal (MEProxy); Wed, 03 Feb 2010 06:12:27 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com; h=message-id:date:from:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; s=smtpout; bh=c0K7jpfBzHBoDxO4Qc6k6BCL1cY=; b=KXi79xHqh65ypIdhlWnNR5LEu8v905qz8htftoLdO+ourHIPvLaf2VPUcLt4aqg9JwnQHmZtp90oDiYo2va3ZJtCziSmMRUzKdkJds+eJHspUqip1B24hI/cYw8beUke3EGuMUKlAd5V1gUTZrPNZRW9AQHwJxj0Oc2rnjuRpnY= X-Sasl-enc: /m46GmBXzPOOs5rcwJ3ZlKtZzZvCIWpwpY98HjFGMB6Z 1265195547 Received: from [192.168.123.18] (cpc2-dals7-0-0-cust253.hari.cable.virginmedia.com [82.35.112.254]) by mail.messagingengine.com (Postfix) with ESMTPSA id 6CBD24A5FA3 for ; Wed, 3 Feb 2010 06:12:27 -0500 (EST) Message-ID: <4B695A1A.1000505@incunabulum.net> Date: Wed, 03 Feb 2010 11:12:26 +0000 From: Bruce Simpson User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-GB; rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1 MIME-Version: 1.0 To: freebsd-stable@freebsd.org References: <4B685EBA.4020501@minibofh.org> In-Reply-To: <4B685EBA.4020501@minibofh.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: ionice in FreeBSD? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Feb 2010 11:12:28 -0000 On 02/02/2010 17:19, Jordi Espasa Clofent wrote: > > In FreeBSD we've nice(1), renice(8) and even rtprio, idprio(1) but if > I'm understanding correctly, they're related to CPU priorty only, not > to I/O. That's not entirely true. A thread's CPU priority is still going to affect its ability to be scheduled on the CPU, and if it's waiting in the read() or write() syscalls, then this will make a difference to how quickly it can complete the next call. However, it doesn't explicitly affect relative I/O prioritization. This is another story entirely. I suspect in a lot of cases adding a weight to per thread I/O, isn't going to make much difference for disk I/Os which are being sorted for the geometry (e.g. AHCI NCQ). So I guess my question is, 'why do you need I/O scheduling, and what aspect of system performance are you trying to solve with it' ?