public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Paul Hartman <paul.hartman+gentoo@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Swap performance
Date: Wed, 25 May 2011 14:34:49 -0500	[thread overview]
Message-ID: <BANLkTim6W2JCLcpB3jq4WkdVJUrr6TFpeA@mail.gmail.com> (raw)
In-Reply-To: <3411637.6h55QLqd4n@localhost>

On Wed, May 25, 2011 at 11:58 AM, Volker Armin Hemmann
<volkerarmin@googlemail.com> wrote:
> On Wednesday 25 May 2011 10:31:19 Paul Hartman wrote:
>
>> When I move the swap to a slow SD card instead (2MB/sec transfer
>> rate), even in that slow device, swapoff on the eMMC swap partition
>> with ~500M in-use takes about 2 or 3 minutes at most with the data
>> being swapped slowly into the SD card.
>>
>> So I think in your case it should be much faster than that!
>
> you are comparing apples with oranges (harddisks with moving arms with solid
> state devices).
>
> Do yourself a favour. Look up how long a harddisk needs to position its head.

Yeah, measuring speed in microseconds versus milliseconds. :)

My SD read/write speed is about 0.9MB/sec in benchmark, and about 2
MB/sec in real-life swap usage. Based on Alex's timings it seems his
HDD is getting about 0.5 MB/sec in swap usage. HDD benchmark random
read/write is usually faster than that. But probably you're right and
the seek operations are really killing it. HDD is about 20 times
slower than SD card in seeking.

If he has a USB flash drive, or memory card reader, he can use it for
swap and see if it's any better or worse. I am curious how it will
compare.

Or, if he has multiple disks, he could create more swap partitions
with equal priority and kernel will stripe/load balance automatically,
hopefully improving his swap performance.

Or better yet, figure out why his system is swapping at all which is
what he was going for I think. With 8 GB I think he should be able to
disable swap entirely anyway. :)



  reply	other threads:[~2011-05-25 19:37 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-25 14:20 [gentoo-user] Swap performance Alex Schuster
2011-05-25 15:31 ` Paul Hartman
2011-05-25 16:58   ` Volker Armin Hemmann
2011-05-25 19:34     ` Paul Hartman [this message]
2011-05-25 20:03     ` Alan McKinnon
2011-05-25 20:38       ` Alex Schuster
2011-05-25 22:40   ` Alex Schuster
2011-05-26 16:30     ` Volker Armin Hemmann
2011-05-25 16:49 ` Alan McKinnon
2011-05-26 20:49   ` Mick
2011-05-25 16:53 ` Volker Armin Hemmann
2011-05-25 20:07   ` Alan McKinnon
2011-05-26 13:32     ` Sebastian Beßler
2011-05-25 22:18   ` Alex Schuster
  -- strict thread matches above, loose matches on Subject: below --
2011-05-26 17:26 Alex Schuster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BANLkTim6W2JCLcpB3jq4WkdVJUrr6TFpeA@mail.gmail.com \
    --to=paul.hartman+gentoo@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox