Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Swap performance
Date: Wed, 25 May 2011 20:13:47
Message-Id: 201105252203.44570.alan.mckinnon@gmail.com
In Reply to: Re: [gentoo-user] Swap performance by Volker Armin Hemmann
1 Apparently, though unproven, at 18:58 on Wednesday 25 May 2011, Volker Armin
2 Hemmann did opine thusly:
3
4 > On Wednesday 25 May 2011 10:31:19 Paul Hartman wrote:
5 > > When I move the swap to a slow SD card instead (2MB/sec transfer
6 > > rate), even in that slow device, swapoff on the eMMC swap partition
7 > > with ~500M in-use takes about 2 or 3 minutes at most with the data
8 > > being swapped slowly into the SD card.
9 > >
10 > > So I think in your case it should be much faster than that!
11 >
12 > you are comparing apples with oranges (harddisks with moving arms with
13 > solid state devices).
14 >
15 > Do yourself a favour. Look up how long a harddisk needs to position its
16 > head.
17 >
18 > Now you can calculate how many times a second a harddisk can position its
19 > head.
20 >
21 > Now remember: swap is stupid, so lots and lots of head movement needed (and
22 > a cash flush is running too - so even more movements to write all that
23 > crap to disk),
24 >
25 > The result: the whole mess is fscking slow.
26 >
27 > You can have a nice fat raid with nice and fast harddisks - if you try to
28 > stream to a 15 year old DLT drive with 5/10mb/sec speed the dlt drive will
29 > constantly rewind - because harddisks suck when they have to seek. And swap
30 > (just like a backup) = lots and lots and lots of seeks.
31
32 That reminds me of how SSDs ought to be much faster than hard disks.
33
34 But every time I use my Acer netbook (8G SSD) I curse and swear and commit
35 random acts of violence - that first gen SSD controller is the worst possible
36 thing to ever hit computers. I swear the 4G SDHC expansion card is leaps
37 faster....
38
39 (completely OT, I know. I'll keep quiet now.)
40
41 --
42 alan dot mckinnon at gmail dot com

Replies

Subject Author
Re: [gentoo-user] Swap performance Alex Schuster <wonko@×××××××××.org>