Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1184353

Re: [PATCH 1/1] suspend: make sync() on suspend-to-RAM optional

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Pavel Machek <pavel@ucw.cz>
Newsgroups linux.kernel
Subject Re: [PATCH 1/1] suspend: make sync() on suspend-to-RAM optional
Date Wed, 15 Jul 2015 08:50:01 +0200
Message-ID <pMoFX-83L-13@gated-at.bofh.it> (permalink)
References <pMkCm-2kr-5@gated-at.bofh.it> <pMkCm-2kr-7@gated-at.bofh.it>
X-Original-To Len Brown <lenb@kernel.org>
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
User-Agent Mutt/1.5.23 (2014-03-12)
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 33
Organization linux.* mail to news gateway
X-Original-Cc rjw@rjwysocki.net, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Len Brown <len.brown@intel.com>
X-Original-Date Wed, 15 Jul 2015 08:43:21 +0200
X-Original-Message-ID <20150715064320.GA23713@amd>
X-Original-References <1436927091-32520-1-git-send-email-lenb@kernel.org> <505338dbbcdce9416ac05f67288b10442fbda179.1436926113.git.len.brown@intel.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref aioe.org linux.kernel:1184353

Show key headers only | View raw


On Tue 2015-07-14 22:24:51, Len Brown wrote:
> From: Len Brown <len.brown@intel.com>
> 
> The Linux kernel suspend path has traditionally invoked sys_sync().
> 
> But sys_sync() can be expensive, and some systems do not want
> to pay the cost of sys_sync() on every suspend.

Have you measured how expesive it can be, and why it is expensive?

> So make sys_sync on suspend optional.
> 
> Create sysfs attribute /sys/power/pm_suspend_do_sync.
> When set to 1, the kernel will sys_sync() on suspend,
> When set to 0, it will not.
> 
> This attribute can be changed by root at run-time.
> Kernel build parameter CONFIG_PM_SUSPEND_DO_SYNC_DEFAULT.
> As this is 1, by default, this patch does not change
> default behavior.

Why do you need CONFIG parameter?


									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v4 0/1] suspend: make sync() on suspend-to-RAM optional Len Brown <lenb@kernel.org> - 2015-07-15 04:30 +0200
  [PATCH 1/1] suspend: make sync() on suspend-to-RAM optional Len Brown <lenb@kernel.org> - 2015-07-15 04:30 +0200
    Re: [PATCH 1/1] suspend: make sync() on suspend-to-RAM optional Pavel Machek <pavel@ucw.cz> - 2015-07-15 08:50 +0200
      Re: [PATCH 1/1] suspend: make sync() on suspend-to-RAM optional Austin S Hemmelgarn <ahferroin7@gmail.com> - 2015-07-15 16:10 +0200
        RE: [PATCH 1/1] suspend: make sync() on suspend-to-RAM optional "Brown, Len" <len.brown@intel.com> - 2015-07-15 17:00 +0200
  Re: [PATCH 1/1] suspend: make sync() on suspend-to-RAM optional Pavel Machek <pavel@ucw.cz> - 2015-07-22 09:30 +0200
  Re: [PATCH 1/1] suspend: make sync() on suspend-to-RAM optional Oliver Neukum <oneukum@suse.com> - 2015-07-22 11:00 +0200

csiph-web