Re: [RFC 2/6] PM: Hibernate: Add option to disable disk offset randomization

Christoph Hellwig
2022-05-18T13:00:44Z

On Wed, May 18, 2022 at 01:18:37PM +0530, Vivek Kumar wrote:
> Add a kernel parameter to disable the disk offset randomization
> for SSD devices in which such feature is available at the
> firmware level. This is helpful in improving hibernation
> resume time.

This patch just adds a global variable which is then entirely
igored.

But the idea of "randomizing" offsets on SSDs sounds like complete BS to
start with. The whole job of the SSD is to remap from a random writable
block device to difference physical blocks to deal with erases and wear
leveling. In other words it really doesn't matter what offset your
write to. That being said I could not actually find any code that does
this randomization to start with, but that might just be my lack of grep
skills.