* [PATCH] Documentation: fix image_size default value
@ 2018-09-01 4:51 Vladimir D. Seleznev
2018-09-12 14:45 ` Vladimir D. Seleznev
2018-09-14 8:30 ` Rafael J. Wysocki
0 siblings, 2 replies; 3+ messages in thread
From: Vladimir D. Seleznev @ 2018-09-01 4:51 UTC (permalink / raw)
To: linux-pm, linux-doc
Cc: Rafael J. Wysocki, Len Brown, Pavel Machek, Jonathan Corbet,
Vladimir D. Seleznev
This commit updates the default value of /sys/power/image_size in
the documentation.
Since ac5c24ec1e983313ef0015258fba6f630e54e7cn the `image_size' value is
set to about 2/5 of RAM, according to kernel/power/snapshot.c:
image_size = ((totalram_pages * 2) / 5) * PAGE_SIZE;
but this change was not reflected everywhere in the documentation.
Signed-off-by: Vladimir D. Seleznev <vseleznv@altlinux.org>
---
Documentation/ABI/testing/sysfs-power | 2 +-
Documentation/power/swsusp.txt | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Documentation/ABI/testing/sysfs-power b/Documentation/ABI/testing/sysfs-power
index 2f813d644c69..18b7dc929234 100644
--- a/Documentation/ABI/testing/sysfs-power
+++ b/Documentation/ABI/testing/sysfs-power
@@ -99,7 +99,7 @@ Description:
this file, the suspend image will be as small as possible.
Reading from this file will display the current image size
- limit, which is set to 500 MB by default.
+ limit, which is set to around 2/5 of available RAM by default.
What: /sys/power/pm_trace
Date: August 2006
diff --git a/Documentation/power/swsusp.txt b/Documentation/power/swsusp.txt
index cc87adf44c0a..236d1fb13640 100644
--- a/Documentation/power/swsusp.txt
+++ b/Documentation/power/swsusp.txt
@@ -56,7 +56,7 @@ If you want to limit the suspend image size to N bytes, do
echo N > /sys/power/image_size
-before suspend (it is limited to 500 MB by default).
+before suspend (it is limited to around 2/5 of available RAM by default).
. The resume process checks for the presence of the resume device,
if found, it then checks the contents for the hibernation image signature.
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] Documentation: fix image_size default value
2018-09-01 4:51 [PATCH] Documentation: fix image_size default value Vladimir D. Seleznev
@ 2018-09-12 14:45 ` Vladimir D. Seleznev
2018-09-14 8:30 ` Rafael J. Wysocki
1 sibling, 0 replies; 3+ messages in thread
From: Vladimir D. Seleznev @ 2018-09-12 14:45 UTC (permalink / raw)
To: linux-pm, linux-doc, Rafael J . Wysocki, Len Brown, Pavel Machek,
Jonathan Corbet
Cc: vseleznv
This commit updates the default value of /sys/power/image_size in
the documentation.
Since ac5c24ec1e983313ef0015258fba6f630e54e7cn the `image_size' value is
set to about 2/5 of RAM, according to kernel/power/snapshot.c:
image_size = ((totalram_pages * 2) / 5) * PAGE_SIZE;
but this change was not reflected everywhere in the documentation.
Signed-off-by: Vladimir D. Seleznev <vseleznv@altlinux.org>
Acked-by: Pavel Machek <pavel@ucw.cz>
---
Documentation/ABI/testing/sysfs-power | 2 +-
Documentation/power/swsusp.txt | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Documentation/ABI/testing/sysfs-power b/Documentation/ABI/testing/sysfs-power
index 2f813d644c69..18b7dc929234 100644
--- a/Documentation/ABI/testing/sysfs-power
+++ b/Documentation/ABI/testing/sysfs-power
@@ -99,7 +99,7 @@ Description:
this file, the suspend image will be as small as possible.
Reading from this file will display the current image size
- limit, which is set to 500 MB by default.
+ limit, which is set to around 2/5 of available RAM by default.
What: /sys/power/pm_trace
Date: August 2006
diff --git a/Documentation/power/swsusp.txt b/Documentation/power/swsusp.txt
index cc87adf44c0a..236d1fb13640 100644
--- a/Documentation/power/swsusp.txt
+++ b/Documentation/power/swsusp.txt
@@ -56,7 +56,7 @@ If you want to limit the suspend image size to N bytes, do
echo N > /sys/power/image_size
-before suspend (it is limited to 500 MB by default).
+before suspend (it is limited to around 2/5 of available RAM by default).
. The resume process checks for the presence of the resume device,
if found, it then checks the contents for the hibernation image signature.
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Documentation: fix image_size default value
2018-09-01 4:51 [PATCH] Documentation: fix image_size default value Vladimir D. Seleznev
2018-09-12 14:45 ` Vladimir D. Seleznev
@ 2018-09-14 8:30 ` Rafael J. Wysocki
1 sibling, 0 replies; 3+ messages in thread
From: Rafael J. Wysocki @ 2018-09-14 8:30 UTC (permalink / raw)
To: Vladimir D. Seleznev
Cc: linux-pm, linux-doc, Len Brown, Pavel Machek, Jonathan Corbet
On Saturday, September 1, 2018 6:51:15 AM CEST Vladimir D. Seleznev wrote:
> This commit updates the default value of /sys/power/image_size in
> the documentation.
>
> Since ac5c24ec1e983313ef0015258fba6f630e54e7cn the `image_size' value is
> set to about 2/5 of RAM, according to kernel/power/snapshot.c:
>
> image_size = ((totalram_pages * 2) / 5) * PAGE_SIZE;
>
> but this change was not reflected everywhere in the documentation.
>
> Signed-off-by: Vladimir D. Seleznev <vseleznv@altlinux.org>
> ---
> Documentation/ABI/testing/sysfs-power | 2 +-
> Documentation/power/swsusp.txt | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/ABI/testing/sysfs-power b/Documentation/ABI/testing/sysfs-power
> index 2f813d644c69..18b7dc929234 100644
> --- a/Documentation/ABI/testing/sysfs-power
> +++ b/Documentation/ABI/testing/sysfs-power
> @@ -99,7 +99,7 @@ Description:
> this file, the suspend image will be as small as possible.
>
> Reading from this file will display the current image size
> - limit, which is set to 500 MB by default.
> + limit, which is set to around 2/5 of available RAM by default.
>
> What: /sys/power/pm_trace
> Date: August 2006
> diff --git a/Documentation/power/swsusp.txt b/Documentation/power/swsusp.txt
> index cc87adf44c0a..236d1fb13640 100644
> --- a/Documentation/power/swsusp.txt
> +++ b/Documentation/power/swsusp.txt
> @@ -56,7 +56,7 @@ If you want to limit the suspend image size to N bytes, do
>
> echo N > /sys/power/image_size
>
> -before suspend (it is limited to 500 MB by default).
> +before suspend (it is limited to around 2/5 of available RAM by default).
>
> . The resume process checks for the presence of the resume device,
> if found, it then checks the contents for the hibernation image signature.
>
Applied, thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-09-14 8:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-01 4:51 [PATCH] Documentation: fix image_size default value Vladimir D. Seleznev
2018-09-12 14:45 ` Vladimir D. Seleznev
2018-09-14 8:30 ` Rafael J. Wysocki
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.