Linux swap speed suggestion

From: Victor Porton,,,
Date: Mon Feb 13 2006 - 04:52:41 EST


I strongly suggest to add the option whether to prefer to place swap at the
beginning or at the end of the swap partittion (leaving the other end free
when the swap usage is low).

This is useful for performance as the user could suggest to the kernel how to move the
HDD tracks less. For example I have swap partition before root partition and so would
want to put actual swap pages at the end of my swap partition to move HDD tracks less.

This should be option for both swapon command and for mkswap (to set the default for
swapon) command. (Instead of adding an option to swapon command, a kernel option may
be added.) (Imagine the situation of a swap partition BETWEEN two Linux root
partitions to understand why this should be configurable run-time, not only when doing
mkswap.)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/