On Wed, May 25, 2011 at 11:58 AM, Volker Armin Hemmann
<volkerar...@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 via email to