public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* swsusp performance problems in 2.6.15-rc3-mm1
@ 2005-12-05  8:19 Andy Isaacson
  2005-12-05 12:17 ` Pavel Machek
  2005-12-05 23:05 ` swsusp performance problems in 2.6.15-rc3-mm1 Rafael J. Wysocki
  0 siblings, 2 replies; 52+ messages in thread
From: Andy Isaacson @ 2005-12-05  8:19 UTC (permalink / raw)
  To: linux-kernel; +Cc: Rafael J. Wysocki, Pavel Machek

On recent kernels such as 2.6.14-rc2-mm1, a swsusp of my laptop (1.25
GB, P4M 1.4 GHz) was a pretty fast process; freeing memory took about 3
seconds or less, and writing out the swap image took less than 5
seconds, so within 15 seconds of running my suspend script power was
off.

The downside was that after suspend, *everything* needed to be paged
back in, so all my apps were *very* slow for the first few interactions.
It would take about 15 or 20 seconds for Firefox to repaint the first
time I switched to its virtual desktop, and it was perceptibly slower
than normal for the next 5 or 10 minutes of use.

Now that I'm running 2.6.15-rc3-mm1, the page-in problem seems to be
largely gone; I don't notice a significant lagginess after resuming from
swsusp.

But the suspend process is *slow*.  It takes a good 20 or 30 seconds to
write out the image, which makes the overall suspend process take close
to a minute; it's writing about 400 MB, and my disk seems to only be
good for about 18 MB/sec according to hdparm -t.

And, the resume is about the same amount slower, too.

Certainly there's a tradeoff to be made, and I'm glad to lose the slow
re-paging after resume, but I'm hoping that some kind of improvement can
be made in the suspend/resume time.

Could we perhaps throw away *half* the cached memory rather than all of
it?  Or keep a lazy list of pages that need re-reading and page them in
asynchronously after restarting userland?

-andy

^ permalink raw reply	[flat|nested] 52+ messages in thread

end of thread, other threads:[~2005-12-12 17:44 UTC | newest]

Thread overview: 52+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-05  8:19 swsusp performance problems in 2.6.15-rc3-mm1 Andy Isaacson
2005-12-05 12:17 ` Pavel Machek
2005-12-05 13:58   ` Nigel Cunningham
2005-12-05 17:29     ` Pavel Machek
2005-12-05 21:11       ` Nigel Cunningham
2005-12-05 23:34         ` Pavel Machek
2005-12-06  1:26           ` Nigel Cunningham
2005-12-06  1:52             ` Pavel Machek
2005-12-05 22:44       ` Rafael J. Wysocki
2005-12-06  0:01         ` Pavel Machek
2005-12-05 22:28     ` Rafael J. Wysocki
2005-12-06  1:07       ` Nigel Cunningham
2005-12-06  1:37         ` Pavel Machek
2005-12-06  1:47           ` Andy Isaacson
2005-12-06  1:56             ` IDE performance on notebooks [was Re: swsusp performance problems in 2.6.15-rc3-mm1] Pavel Machek
2005-12-06  6:23               ` Andy Isaacson
2005-12-06 11:56                 ` Pavel Machek
2005-12-06  1:57             ` swsusp performance problems in 2.6.15-rc3-mm1 Nigel Cunningham
2005-12-06  3:50             ` Mark Lord
2005-12-06 15:03               ` Mark Lord
2005-12-06  2:02           ` Nigel Cunningham
2005-12-06 12:09             ` Pavel Machek
2005-12-06  1:36       ` Nigel Cunningham
2005-12-06  2:06         ` Andy Isaacson
2005-12-06  2:21           ` Nigel Cunningham
2005-12-06 14:22             ` Pavel Machek
2005-12-07 22:05               ` Nigel Cunningham
2005-12-07 22:23                 ` Pavel Machek
2005-12-06  2:21           ` Nigel Cunningham
2005-12-06 12:18           ` Pavel Machek
2005-12-06 18:15             ` Andy Isaacson
2005-12-07  1:05               ` Rafael J. Wysocki
2005-12-07  1:10                 ` Pavel Machek
2005-12-07 11:17                   ` Rafael J. Wysocki
2005-12-07 11:30                     ` Pavel Machek
2005-12-08 22:42                       ` Rafael J. Wysocki
2005-12-08 22:50                         ` Pavel Machek
2005-12-05 21:18   ` Rafael J. Wysocki
2005-12-05 23:55     ` swsusp: how much memory to free? [was Re: swsusp performance problems in 2.6.15-rc3-mm1] Pavel Machek
2005-12-07 11:53       ` Rafael J. Wysocki
2005-12-07 11:59         ` Pavel Machek
2005-12-07 12:16           ` Rafael J. Wysocki
2005-12-07 12:18             ` Pavel Machek
2005-12-05 23:05 ` swsusp performance problems in 2.6.15-rc3-mm1 Rafael J. Wysocki
2005-12-06  0:12   ` Andy Isaacson
2005-12-06  0:51     ` Pavel Machek
2005-12-10 22:21   ` Andrew Morton
2005-12-10 23:07     ` Rafael J. Wysocki
2005-12-10 23:33       ` Andrew Morton
2005-12-11 12:16         ` Rafael J. Wysocki
2005-12-11 23:28           ` Pavel Machek
2005-12-12 17:45             ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox