From owner-freebsd-questions@FreeBSD.ORG Thu Dec 14 23:01:32 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5042516A412 for ; Thu, 14 Dec 2006 23:01:32 +0000 (UTC) (envelope-from wojtek@tensor.3miasto.net) Received: from chylonia.3miasto.net (chylonia.3miasto.net [213.192.74.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id A368744017 for ; Thu, 14 Dec 2006 22:48:56 +0000 (GMT) (envelope-from wojtek@tensor.3miasto.net) Received: from chylonia.3miasto.net (localhost [127.0.0.1]) by chylonia.3miasto.net (8.13.4/8.13.4) with ESMTP id kBEMng4e033703; Thu, 14 Dec 2006 23:49:42 +0100 (CET) (envelope-from wojtek@tensor.3miasto.net) Received: from localhost (wojtek@localhost) by chylonia.3miasto.net (8.13.4/8.13.4/Submit) with ESMTP id kBEMneS3033698; Thu, 14 Dec 2006 23:49:42 +0100 (CET) (envelope-from wojtek@tensor.3miasto.net) X-Authentication-Warning: chylonia.3miasto.net: wojtek owned process doing -bs Date: Thu, 14 Dec 2006 23:49:40 +0100 (CET) From: Wojciech Puchar X-X-Sender: wojtek@chylonia.3miasto.net To: Dieter In-Reply-To: <200612132215.WAA11949@sopwith.solgatos.com> Message-ID: <20061214234546.C32744@chylonia.3miasto.net> References: <200612132215.WAA11949@sopwith.solgatos.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-questions@freebsd.org Subject: Re: disk I/O tuning parameters X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Dec 2006 23:01:32 -0000 > Is there a different, more detailed, description of > its effects (and/or similar tuning parameters) than found in > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning-disk.html > > Is there a way to limit the runningspace, bufspace, or similar parameters > on a per disk, per process, or per file basis rather than system wide? > I haven't been able to find anything. > > I need a way to protect the disk I/O bandwidth of one process from > other processes. Having its own disk, and running at rtprio is not IMHO no, while it could be useful. priority schedules only CPU usage. BTW - if you are processing huge files often consider editing /usr/src/sys/sys/param.h and change #define MAXPHYS (128 * 1024) /* max raw I/O transfer size */ to #define MAXPHYS (1024 * 1024) /* max raw I/O transfer size */ it won't make disk I/O scheduling better (even a bit worse) but will GREATLY speed up huge file I/O. bump hi and lorunning space at least twice the default (4 and 2MB) maybe more if you have many concurrent disks. i'm using that settings on every FreeBSD machine, no problems. when making new filesystem set -a option right when doing newfs (read man). PS. it's not answer for your question but it may help either