[lkml]   [2006]   [Apr]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Slow swapon for big (12GB) swap
Grzegorz Kulewski <> wrote:
> I am using big swap here (as a backing for potentially huge tmpfs). And I
> wonder why swapon on such big (like 12GB) swap takes about 7 minutes
> (continuous disk IO).

It's a bit quicker here:

vmm:/usr/src/25# mkswap /dev/hda6
Setting up swapspace version 1, size = 54031826 kB
vmm:/usr/src/25# time swapon /dev/hda6
swapon /dev/hda6 0.00s user 0.04s system 74% cpu 0.054 total

> Is this expected?


> Why it is like that?

Are you using a swapfile or a swap partition?

If it's a swapfile then perhaps the filesystem is being inefficient in its
bmap() function. Which filesystem is it?

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2006-04-10 10:43    [from the cache]
©2003-2014 Jasper Spaans. hosted at Digital Ocean