From owner-freebsd-questions@FreeBSD.ORG Tue Mar 15 20:59:16 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F3E15106566B for ; Tue, 15 Mar 2011 20:59:15 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id B4AE78FC0A for ; Tue, 15 Mar 2011 20:59:15 +0000 (UTC) Received: from r55.edvax.de (port-92-195-175-53.dynamic.qsc.de [92.195.175.53]) by mx02.qsc.de (Postfix) with ESMTP id 628991E31B; Tue, 15 Mar 2011 21:59:13 +0100 (CET) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id p2FKx7KQ002145; Tue, 15 Mar 2011 21:59:07 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Tue, 15 Mar 2011 21:59:07 +0100 From: Polytropon To: freebsd_user@guice.ath.cx Message-Id: <20110315215907.f8a08352.freebsd@edvax.de> In-Reply-To: <5ab7e13805185464a4adf0c5d326671e.squirrel@wtp1.ath.cx> References: <8a6023db5a3d4c8b34161f7ee0af29bb.squirrel@wtp1.ath.cx> <201103151041.56373.erich@alogreentechnologies.com> <5ab7e13805185464a4adf0c5d326671e.squirrel@wtp1.ath.cx> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: IDE -- mount partitions for better performance X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Mar 2011 20:59:16 -0000 On Tue, 15 Mar 2011 15:17:34 -0400, freebsd_user@guice.ath.cx wrote: > > did I get it right? You have four hard disks? > > Yes, four separate HDD's I assume you have two on each of the two lines: ad0 = primary master ad1 = primary slave ad2 = secondary master ad3 = secondary slave This is how they would be connected: =====primary=====ad0-----ad1 =====secondary===ad2-----ad3 > Are you suggesting something similar to: > > /dev/ad4s1a for / > /dev/ad4s2a for /tmp > /dev/ad4s3a for /usr > /dev/ad4s4a for /var No. You don't need to even slice the disks (if you're running FreeBSD only, use "dangerously" dedicated layout). But if you require compatibility, make the following layout (just a suggestion): ad0s1a = / ad0s1d = /usr ad1s1a = /tmp ad1s1b = swap ad2s1a = /var ad3s1a = /home Keep in mind that performance "across" ad0 and ad2 is best. Masters are always good. Slaves are slower. Using primary and secondary in parallel works good, working on a master and a slave simultanously is worse. So you have the chance to put different subtrees (for example /usr/obj or /usr/src) on different partitions, drives and lines if needed. The positioning always depends on how much activity you expect on the certain file systems. You did get this idea already. Example: /usr is on prim. master, 2nd partition /usr/obj is mounted to /var/uobj on sec. master, 2nd partition You could also add - with the known limitations (fixed size) - other partitions depending on R/W activity, for example if you need /export or /opt. I have successfully used similar approaches in the past, also using (P)ATA disks, but I had them on a separate controller (also 2 ATA channels, just as you use them from the mainboard). If you omit the slicing step, all examples remove "s1". -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...