Re: swap storage alignment and stride size

From: Martin K. Petersen
Date: Wed Dec 15 2010 - 14:31:23 EST


>>>>> "Hugh" == Hugh Dickins <hughd@xxxxxxxxxx> writes:

Hugh> (scan_swap_map does try to allocate in 1MB clusters, but they're
Hugh> not written out that way, and there's no attempt to align: if it
Hugh> worked out better for the lower level to require that these 1MB
Hugh> clusters are aligned, we could probably go for that - though the
Hugh> swap header page might then be a nuisance.)

You called it a "header page". Does that imply that it is page sized?
Or will it cause pages written to a 4k-aligned swap device to be
misaligned?

--
Martin K. Petersen Oracle Linux Engineering
--
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/