Skip to content

Commit

Permalink
PM / hibernate: Documentation: fix image_size default value
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vladimir D. Seleznev authored and Rafael J. Wysocki committed Sep 10, 2018
1 parent 11da3a7 commit 3bb7564
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Documentation/ABI/testing/sysfs-power
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Documentation/power/swsusp.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 3bb7564

Please sign in to comment.