From patchwork Sat Sep 1 04:51:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Vladimir D. Seleznev" X-Patchwork-Id: 10584609 X-Patchwork-Delegate: rjw@sisk.pl Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B1FEF139B for ; Sat, 1 Sep 2018 05:07:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 98E0E2B422 for ; Sat, 1 Sep 2018 05:07:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8AD682B8E6; Sat, 1 Sep 2018 05:07:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 969622B422 for ; Sat, 1 Sep 2018 05:07:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726163AbeIAJSS (ORCPT ); Sat, 1 Sep 2018 05:18:18 -0400 Received: from imap.cs.msu.ru ([188.44.42.39]:55610 "EHLO mail.cs.msu.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726158AbeIAJSR (ORCPT ); Sat, 1 Sep 2018 05:18:17 -0400 X-Greylist: delayed 962 seconds by postgrey-1.27 at vger.kernel.org; Sat, 01 Sep 2018 05:18:15 EDT DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=altlinux.org; s=dkim; h=Subject:Message-Id:Date:Cc:To:From:Sender:Reply-To: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=3wqEMQZHFNxKgmMGmkZAJq6pv5nWKKC1wNxx1OHLznI=; b=edrUCfWdSZ6vtKEYHbG6zwhEVX NcyJae8BTrhUV0A6tKQMWvAc3zc1DJk/3gX8+iecSfSubqSid1oMjU+dLBhdbPrAQVGvuzXY1i5ok QMwiuOeyEmIjNltasP5CUYV9xKyYzZbWA3Bus0HJBSnQ3+lNFf+YdDkqCvzY+vPKkf5S3XNUwasQ0 96bJIGjtQ0aDxORaaY3FzgEiz9ESeo4LzN6JVxHxAVh9cURCwKthgCa+qixqGIv1YYNGBT0kxObdd F+6/1irxdTkNGkay4CkFIkD4AQjWHxnidDwKQ0QvEedGTqTPUY31r7QF+dbrJrVe4ADs7AKGU0/p8 15Wx4hSg==; Received: from [188.44.42.210] (port=57613 helo=localhost.cs.msu.ru) by mail.cs.msu.ru with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91 (FreeBSD)) (envelope-from ) id 1fvxsf-000NfZ-9i; Sat, 01 Sep 2018 07:51:29 +0300 From: "Vladimir D. Seleznev" To: linux-pm@vger.kernel.org, linux-doc@vger.kernel.org Cc: "Rafael J. Wysocki" , Len Brown , Pavel Machek , Jonathan Corbet , "Vladimir D. Seleznev" Date: Sat, 1 Sep 2018 07:51:15 +0300 Message-Id: <20180901045115.18338-1-vseleznv@altlinux.org> X-Mailer: git-send-email 2.17.1 X-SA-Exim-Connect-IP: 188.44.42.210 X-SA-Exim-Mail-From: vseleznv@altlinux.org Subject: [PATCH] Documentation: fix image_size default value X-SA-Exim-Version: 4.2 X-SA-Exim-Scanned: Yes (on mail.cs.msu.ru) Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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.