Gentoo Archives: gentoo-user

From: Volker Armin Hemmann <volkerarmin@××××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Swap performance
Date: Wed, 25 May 2011 17:00:56
Message-Id: 3411637.6h55QLqd4n@localhost
In Reply to: Re: [gentoo-user] Swap performance by Paul Hartman
1 On Wednesday 25 May 2011 10:31:19 Paul Hartman wrote:
2
3 > When I move the swap to a slow SD card instead (2MB/sec transfer
4 > rate), even in that slow device, swapoff on the eMMC swap partition
5 > with ~500M in-use takes about 2 or 3 minutes at most with the data
6 > being swapped slowly into the SD card.
7 >
8 > So I think in your case it should be much faster than that!
9
10 you are comparing apples with oranges (harddisks with moving arms with solid
11 state devices).
12
13 Do yourself a favour. Look up how long a harddisk needs to position its head.
14
15 Now you can calculate how many times a second a harddisk can position its
16 head.
17
18 Now remember: swap is stupid, so lots and lots of head movement needed (and a
19 cash flush is running too - so even more movements to write all that crap to
20 disk),
21
22 The result: the whole mess is fscking slow.
23
24 You can have a nice fat raid with nice and fast harddisks - if you try to
25 stream to a 15 year old DLT drive with 5/10mb/sec speed the dlt drive will
26 constantly rewind - because harddisks suck when they have to seek. And swap
27 (just like a backup) = lots and lots and lots of seeks.

Replies

Subject Author
Re: [gentoo-user] Swap performance Paul Hartman <paul.hartman+gentoo@×××××.com>
Re: [gentoo-user] Swap performance Alan McKinnon <alan.mckinnon@×××××.com>