From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id D814A1381F4 for ; Sun, 12 Aug 2012 19:47:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 23611E063F; Sun, 12 Aug 2012 19:47:02 +0000 (UTC) Received: from mail-we0-f181.google.com (mail-we0-f181.google.com [74.125.82.181]) by pigeon.gentoo.org (Postfix) with ESMTP id 7E4A4E058E for ; Sun, 12 Aug 2012 19:45:08 +0000 (UTC) Received: by weyt57 with SMTP id t57so2296828wey.40 for ; Sun, 12 Aug 2012 12:45:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:organization :x-mailer:mime-version:content-type:content-transfer-encoding; bh=NW7R5HIN/S7eqOtPKURWXX27QCxUBz+jViIwVgr0RE0=; b=MwO0pid3UPp7eSU34fK74Aof1Y/8ItHZPtMdne3q47wSIyyerJpCx8pwhE0dngKvOU +H5Gez0Qik0tPP1qEiSZDPEY0+Beca50v5g2B1YEiW2WLooOFKwG8YpwCcz89Dyfl7IM NKKDCoCKBAkaox2RZVcBObbhj3frOouTA6srEJcng2qNEv2eKO1Rfdc0kYhErdlNDkqz vnBdwfxKbaVWHKbDNzmAJOOd+dWfONK1P0n34FEAnEZMl2ASmTK5j/gL/RDLvUTBAkJn cM5uAaYLvJEmrJdiXDHziKm6pdAjHbZrJ/pCW6KM2+5zApxB2RWPkNwZpySbfDhhyx5d BveQ== Received: by 10.216.136.66 with SMTP id v44mr5275749wei.159.1344800707684; Sun, 12 Aug 2012 12:45:07 -0700 (PDT) Received: from khamul.example.com (196-210-183-133.dynamic.isadsl.co.za. [196.210.183.133]) by mx.google.com with ESMTPS id ef5sm17674218wib.3.2012.08.12.12.45.05 (version=SSLv3 cipher=OTHER); Sun, 12 Aug 2012 12:45:06 -0700 (PDT) Date: Sun, 12 Aug 2012 21:44:12 +0200 From: Alan McKinnon To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] new installation (ssd, new udev, grub2) Message-ID: <20120812214412.26b20e2e@khamul.example.com> In-Reply-To: References: <20120810212213.0ce6e810@khamul.example.com> Organization: Internet Solutions X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.11; x86_64-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archives-Salt: 7e60e739-6605-4200-8d9b-cf5636495c54 X-Archives-Hash: 00531851e64b2b4b35d5b52623b31b70 On Sun, 12 Aug 2012 14:11:37 -0400 Allan Gottlieb wrote: > On Fri, Aug 10 2012, Alan McKinnon wrote: > > > On Fri, 10 Aug 2012 10:25:51 -0400 > > Allan Gottlieb wrote: > > > >> I am getting a new laptop from dell that will dual boot windows (in > >> case I need dell maintenance) and gentoo (real work). I have done > >> this often, but there are three new aspects this time. > >> > >> 1. ssd. > >> 2. new udev (/usr part of boot partition?) > >> 3. grub2. > > > > I have one of those. But I decided to stick with traditional DOS > > partitioning style and grub instead of GPT and grub2. > > I am leaning toward traditional partitioning, but with grub2. Do > those two not mix well? I've never really used grub2 myself (can't see the point until I have no other option than GPT and EFI), but AFAIK MBR and grub2 isn't a problem. It might not be default, but it isn't a problem > > >> The laptop will have a 256GB ssd. Can I partition it the same as I > >> would have for an hd? Are there extra alignment considerations? > > > > I don't know of any special partition considerations. Just start at > > the 1M mark and align on 4096 like you would for spinning disks. > > Dell normally has a special partition of size > 40MB starting at > sector 63. Presumably I ignore that one. I would then align the > used-only-for-dell-diagnostics windows partition and all linux > partitions at multiples of 4096 Correct > > > What you will need is TRIM support and for that you use ext4. Just > > add "discard" to the mount options for the ext4 volumes. > > Ah so I will now be using ext4. The mount man page says trim is off > by default waiting for more testing. But I will try it. I think that man page is badly out of date (unless the ext4 devs understand "testing" to mean something very different to what you and I understand) > > > You also don't need an IO scheduler - ssd access is random like > > RAM, no heads moving in and out so no sector ordering to worry > > about. Configure the scheduler as NOOP in kernel config if all > > drives are ssd's > > I believe dell with be "throwing in" a removable spinning disk that > can be user swapped with the dvd so I should probably keep the I/O > scheduler. You can set the scheduler per-device too, more info here: https://wiki.archlinux.org/index.php/Solid_State_Drives#I.2FO_Scheduler Someone else reported though that Deadline scheduler can actually performs better, I also read that somewhere. Maybe you should do some initial tests yourself before deciding -- Alan McKinnon alan.mckinnon@gmail.com