lkml.org 
[lkml]   [2022]   [May]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [RFC 2/6] PM: Hibernate: Add option to disable disk offset randomization
From


On 5/18/22 00:48, 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.
>
> Signed-off-by: Vivek Kumar <quic_vivekuma@quicinc.com>
> Signed-off-by: Prasanna Kumar <quic_kprasan@quicinc.com>
> ---
> Documentation/admin-guide/kernel-parameters.txt | 11 +++++++++++
> kernel/power/swap.c | 9 +++++++++
> 2 files changed, 20 insertions(+)
>
> diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt
> index 666ade9..06b4f10 100644
> --- a/Documentation/admin-guide/kernel-parameters.txt
> +++ b/Documentation/admin-guide/kernel-parameters.txt
> @@ -5192,6 +5192,17 @@
> Useful for devices that are detected asynchronously
> (e.g. USB and MMC devices).
>
> + noswap_randomize
> + Kernel uses random disk offsets to help with wear-levelling

wear-leveling

> + of SSD devices, while saving the hibernation snapshot image to
> + disk. Use this parameter to disable this feature for SSD
> + devices in scenarios when, such randomization is addressed at

no comma ^

> + the firmware level and hibenration image is not re-generated

hibernation

> + frequently.
> + (Useful for improving hibernation resume time as snapshot pages
> + are available in disk serially and can be read in bigger chunks
> + without seeking)
> +
> retain_initrd [RAM] Keep initrd memory after extraction
>
> rfkill.default_state=


--
~Randy

\
 
 \ /
  Last update: 2022-05-23 22:50    [W:0.201 / U:0.860 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site