Skip to contentSkip to conversation

Documentation: fix image_size default value

PATCH Applied Vladimir D. Seleznev 2 participants 3 messages Sep 1, 2018 – Sep 14, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 Documentation/ABI/testing/sysfs-power | 2 +-
 Documentation/power/swsusp.txt        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Documentation/ABI/testing/sysfs-power +1 -1
index 2f813d644c69..18b7dc929234 100644
@@ -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
Documentation/power/swsusp.txt +1 -1
index cc87adf44c0a..236d1fb13640 100644
@@ -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.
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 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.

---
 Documentation/ABI/testing/sysfs-power | 2 +-
 Documentation/power/swsusp.txt        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Documentation/ABI/testing/sysfs-power +1 -1
index 2f813d644c69..18b7dc929234 100644
@@ -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
Documentation/power/swsusp.txt +1 -1
index cc87adf44c0a..236d1fb13640 100644
@@ -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.
Signature · 1 line
2.17.1
#2 lore raw
In reply to Vladimir D. Seleznev
Quoted 35 lines · CEST 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.

---
 Documentation/ABI/testing/sysfs-power | 2 +-
 Documentation/power/swsusp.txt        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Documentation/ABI/testing/sysfs-power +1 -1
index 2f813d644c69..18b7dc929234 100644
@@ -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
Documentation/power/swsusp.txt +0 -0
index cc87adf44c0a..236d1fb13640 100644

Documentation/power/swsusp.txt If you want to limit the suspend image size to N bytes, do · line 62

Quoted 8 lines
Documentation/power/swsusp.txt +1 -1
@@ -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!