Gentoo Archives: gentoo-user

From: Michael Mol <mikemol@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] SSDs, swap, caching, other unusual uses
Date: Mon, 01 Aug 2011 16:41:01
Message-Id: CA+czFiBXmXkquT=6CdBJ+gye1u+6+3KCDHpoa0cV6diBPiikbw@mail.gmail.com
In Reply to: Re: [gentoo-user] SSDs, swap, caching, other unusual uses by Paul Hartman
1 On Mon, Aug 1, 2011 at 12:29 PM, Paul Hartman
2 <paul.hartman+gentoo@×××××.com> wrote:
3 > On Fri, Jul 29, 2011 at 1:18 PM, Michael Mol <mikemol@×××××.com> wrote:
4 >> Something that's been tickling my brain for a couple years now, and
5 >> you guys are probably the right ones to ask.
6 >>
7 >> I haven't dropped coin for an SSD (yet), but I was wondering about
8 >> uses for them beyond using them for / or /home.
9 >>
10 >> 1) What about sitting swap (partition, file, whatever) on the SSD?
11 >> Presumably, in scenarios where expanding the RAM in a system is
12 >> prohibitively expensive, an SSD could reduce the impact of swap
13 >> thrash.
14 >
15 > Swap on flash memory is faster than on disk, but it is still swap and
16 > still sucks. :) There's no reason why it won't work, but I doubt it'll
17 > have as much of a positive impact as you're hoping. In fact depending
18 > on the SSD some don't cope with a storm of tiny simultaneous random
19 > reads and writes and might block even worse than a fast HDD. IMO.
20
21 Yeah, true; the write caching and queuing of some of the lower-end
22 drives are crap, from what I've heard. The primary reason I haven't
23 spent on and SSD yet is while I could afford a low-end drive, I can't
24 afford a smaller-size drive that's a good implementation.
25
26 >
27 >> 2) While my system rarely goes above using 2-2.5GB of RAM, I enjoy
28 >> having 6-8GB of RAM, just for the file cache. Of course, I lose that
29 >> when I reboot; the cache needs to be repopulated. Has there been any
30 >> work in the kernel for doing things like Vista/Win7's ReadyBoost?
31 >> ReadyBoost has a ridiculous limit to only using 4GB of a flash drive,
32 >> but I'd think that an 80GB SSD would be a massive performance
33 >> improvement.
34 >
35 > I believe DM-Cache provides this kind of functionality in Linux. I've
36 > never tried it.
37
38 That's *exactly* the kind of thing I was hoping was being worked on. I
39 hadn't heard anyone was actually *doing* it.
40
41 >
42 > You can also buy a hybrid hard drive, it is a traditional HDD with SSD
43 > built-in for caching. That is transparent to the operating system.
44
45 They've sounded interesting, yes.
46
47 --
48 :wq