Skip to content

Commit 3bb7564

Browse files
wladmisrafaeljw
authored andcommitted
PM / hibernate: Documentation: fix image_size default value
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> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 11da3a7 commit 3bb7564

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎Documentation/ABI/testing/sysfs-power‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Description:
9999
this file, the suspend image will be as small as possible.
100100

101101
Reading from this file will display the current image size
102-
limit, which is set to 500 MB by default.
102+
limit, which is set to around 2/5 of available RAM by default.
103103

104104
What: /sys/power/pm_trace
105105
Date: August 2006

‎Documentation/power/swsusp.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ If you want to limit the suspend image size to N bytes, do
5656

5757
echo N > /sys/power/image_size
5858

59-
before suspend (it is limited to 500 MB by default).
59+
before suspend (it is limited to around 2/5 of available RAM by default).
6060

6161
. The resume process checks for the presence of the resume device,
6262
if found, it then checks the contents for the hibernation image signature.

0 commit comments

Comments
 (0)