From owner-freebsd-questions@FreeBSD.ORG Thu May 5 08:40:34 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 B0F131065672 for ; Thu, 5 May 2011 08:40:34 +0000 (UTC) (envelope-from kraduk@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 3389C8FC0A for ; Thu, 5 May 2011 08:40:33 +0000 (UTC) Received: by wwc33 with SMTP id 33so1969435wwc.31 for ; Thu, 05 May 2011 01:40:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=vxj5K/rXZzVIs35vJXze5+SaeIagfPRF0KCr4FNlCio=; b=KiETUs7l+cRNNYkAXavKkvZTlbvCWNsnzdRIFebQZyTL42645awg8lUvCYOTx74/I6 BVXq8blCGtBltStQYZrDHJQOhp+c7XjzsY6CZUyYRwdibywBT8AFGFrgcNnBD5bAWIH2 m0JQ20k+ioHxwFe+B7HPE5TZ3AT7KB/Ax3FV4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=nUNpK9X0p5p0+b7ipbscokff25Zyjh1/fm/6G+kZpDLue0fJrEpN2p+60xsf3R51zF AbacnjWJQIlrud1z5HfL+PBP7xR6IxBJm7JDJr7tVq1L01ok6uDwTZD3o1pwugVRNpyU hRodAGPem96QxKlIf6GW6/I/k+/+qIyhJ90kQ= MIME-Version: 1.0 Received: by 10.217.7.66 with SMTP id z44mr2099411wes.100.1304584833003; Thu, 05 May 2011 01:40:33 -0700 (PDT) Received: by 10.216.15.73 with HTTP; Thu, 5 May 2011 01:40:32 -0700 (PDT) In-Reply-To: <267B4CEEF5135C2FE0F2087E@mac-pro.magehandbook.com> References: <267B4CEEF5135C2FE0F2087E@mac-pro.magehandbook.com> Date: Thu, 5 May 2011 09:40:32 +0100 Message-ID: From: krad To: FreeBSD Questions Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: Laptop Multi-HD partitioning advice (ZFS) 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, 05 May 2011 08:40:34 -0000 On 5 May 2011 00:17, Daniel Staal wrote: > > I just got notified my new Thinkpad X220 is on it's way, and I'm thinking > about the best way to use it. ;) Obviously, FreeBSD with ZFS is on top of > the list. (De-dup and compression on my space-limited laptop? Yes, > please.) > > Some relevant vitals (after a couple of upgrades that are also on their > way): > 6GB of RAM > 250GB 2.5in HDD > 40GB mSATA SSD > > I'm planning on installing the patched version of 8.2, with the patches for > ZFS v28. My idea at this point is to use the main HDD as the primary drive, > with the SSD partitioned into a small[1] ZIL-device and a larger cache > drive. Since it's a SSD, I don't think disk contention should be an issue > for that use, and it should speed up both reads and writes. It might even > reduce the amount of main-disk use that happens. (Or at least, make it > happen in short bursts, and let the drive idle in between.) > > I might still upgrade that HDD to something larger than stock. I could go > to an SSD there too (and it's on a SATA III connection, so it could be a > *faster* SSD), but I think I'm more likely to go with more space if I decide > to upgrade. > > Obviously, I'm not afraid of a weird config in this case. ;) I'm also not > trying to optimize hard for space, or for any specific use-case: I tend to > use a laptop for light-duty when I'm not traveling, then more heavy-duty (as > well as watching movies, etc) during occasional traveling. The idea here is > to let ZFS do the disk optimization. It'll probably slow down my boot times > from what could be possible, but I'm hoping ZFS will do things like move a > movie I'm *currently* watching to the cache drive, and let the machine shut > down the hard drive. > > Two things I'm *not* sure what the best choices for are the swap partition, > and the boot sector. Swap could be on the HDD (slow, reduces my apparent > disk-space), on the SSD (fast, reduces my most valuable disk space), or in > ZFS (doesn't use dedicated space, but has stability issues under heavy > load). Of course I may not ever *need* much swap, as I have a fair amount > of RAM. (And I don't care about crash dumps on this box.) > > The boot sector doesn't really matter as much; if I go with a dedicated > swap partition that will probably also hold the boot sector. Otherwise, I'm > leaning towards the SSD, as I'm already planning on partitioning that, and > I'm less likely to pull it out. > > Or, of course, there may be other considerations that I've overlooked in > the rest. So, I'm looking for wisdom, or other thoughts people have. ;) > > Daniel T. Staal > > [1] As per: > < > http://www.solarisinternals.com/wiki/index.php/ZFS_Best_Practices_Guide#Separate_Log_Devices > > > ZIL devices will never use more than 1/2 of RAM, at absolute max, and in > most cases will use significantly less. Fully upgraded, this machine > supports 8GB of RAM, so a 4GB ZIL device would be plenty in all cases, and > would probably be overkill. > > --------------------------------------------------------------- > This email copyright the author. Unless otherwise noted, you > are expressly allowed to retransmit, quote, or otherwise use > the contents for non-commercial purposes. This copyright will > expire 5 years after the author's death, or in 30 years, > whichever is longer, unless such a period is in excess of > local copyright law. > --------------------------------------------------------------- > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > I think you may be agonizing to much. You would have to to seriously bad to make it slow and even then its a relative thing. Giving it 4GB ZIL, 8 GB swap, and 28 gb l2arc will make it rapid and cover you for most things. Putting the swap on the 250 gig drive wont make much difference though as like you said you wont be paging to disk much Put the bootblocks etc on the hd. They are only 64kb anyhow so will make no noticable difference to the boot time. Also if your ssd dies you wont have an unusable system (apart from a zil issue maybe)