mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@ucw.cz>
To: Barry Song <Barry.Song@csr.com>
Cc: linux-pm@lists.linux-foundation.org, rjw@sisk.pl,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org, Barry Song <Baohua.Song@csr.com>,
	Xiangzhen Ye <Xiangzhen.Ye@csr.com>
Subject: Re: [PATCH] PM: HIBERNATION: skip the swap size check if the snapshot image size is anticipative
Date: Sat, 5 Nov 2011 19:22:44 +0100	[thread overview]
Message-ID: <20111105182244.GB6772@elf.ucw.cz> (raw)
In-Reply-To: <1320392176-3906-1-git-send-email-Barry.Song@csr.com>

Hi!

> From: Barry Song <Baohua.Song@csr.com>
> 
> Current swsusp requires swap partitions even larger than real saved pages
> due to the worst compress ratio:
> but for an embedded system, which has limited storage space, then it might
> can't give the big size partition to save snapshot.
> In the another way, some embedded systems can definitely know the most size
> needed for snapshot since they run some specific application lists.
> So this patch provides the possibility for bootloader to tell kernel even
> the system has a little snapshot partition, but it is still enough.
> For example, if the system need to save 120MB memory, origin swsusp will require
> a 130MB partition to save snapshot. but if users know 30MB is enough for them(
> compressed image will be less than 30MB), they just make a 30MB
> partition.

Would it be better to have /sys/power/... entry which would allow
configuring expected compression ratio at runtime?
								Pavel

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

  parent reply	other threads:[~2011-11-05 18:22 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-04  7:36 Barry Song
2011-11-04 22:29 ` Rafael J. Wysocki
2011-11-05  1:51   ` [linux-pm] " Barry Song
2011-11-05 18:22 ` Pavel Machek [this message]
2011-11-06  3:24   ` Barry Song
2011-11-07  1:31     ` Barry Song
2011-11-18 19:02       ` Pavel Machek
2011-11-19 11:17         ` Barry Song
2011-11-04  7:37 Barry Song

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20111105182244.GB6772@elf.ucw.cz \
    --to=pavel@ucw.cz \
    --cc=Baohua.Song@csr.com \
    --cc=Barry.Song@csr.com \
    --cc=Xiangzhen.Ye@csr.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@lists.linux-foundation.org \
    --cc=rjw@sisk.pl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®