public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@ucw.cz>
To: Mihai Don??u <mihai.dontu@gmail.com>,
	"Rafael J. Wysocki" <rjw@sisk.pl>,
	Linux-pm mailing list <linux-pm@lists.osdl.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: slow resume from suspend to disk
Date: Tue, 16 Feb 2010 14:54:44 +0100	[thread overview]
Message-ID: <20100216135444.GA1337@ucw.cz> (raw)
In-Reply-To: <201002110140.16122.mihai.dontu@gmail.com>

Hi!
> 
> Is there any way to speed up the resume from suspend to disk? Currently, on my 
> laptop it suspends in ~15s (wrote about 360MB) but resumes in ~120s and after 
> that I'm still left with ~361MB in swap:
> 
>              total       used       free     shared    buffers     cached
> Mem:       3333472    1139332    2194140          0      12808     473084
> -/+ buffers/cache:     653440    2680032
> Swap:      2104472     369428    1735044
> 
> Right now I'm better off with a cold boot.

That's way too slow. Are you using in-kernel swsusp, or userland
s2disk? dmesgM
> 
> Although I did not study the kernel code to see how things really work, I 
> suspect on resume only necessary kernel data is loaded from swap and the 
> userland tasks are left with the page fault mechanism to bring back their own 
> data, which leads to an I/O storm on the swap device. Maybe changing the I/O 
> scheduler from CFQ would help? or better yet, is there any way to tell the 
> kernel to bring back all the pages from swap in one quick move? That would be 
> something I want to put in my resume scripts.
> 
> $ uname -a
> Linux mdontu-dell 2.6.32-gentoo-r3 #1 SMP PREEMPT Mon Feb 1 02:36:01 EET 2010 
> x86_64 Intel(R) Core(TM)2 CPU T5500 @ 1.66GHz GenuineIntel GNU/Linux
> 
> I've installed Windows XP just for a test, started a few apps (like visual 
> studio, mplayer, etc.) and then suspended/hibernated (~15s). It took roughly 
> 15s to come back.
> 
> Thanks,
> 
> PS: I'm editing this e-mail as I do tests and I just noticed that my /sbin 
> directory is empty. rmmod is there and I needed it to reload the b43 driver 
> which generally does not feel well after a suspend/resume. A reboot fixed it. 
> Weird ...
> 

Seems like your system has problems...

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

           reply	other threads:[~2010-02-16 13:54 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <201002110140.16122.mihai.dontu@gmail.com>]

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=20100216135444.GA1337@ucw.cz \
    --to=pavel@ucw.cz \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@lists.osdl.org \
    --cc=mihai.dontu@gmail.com \
    --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