public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Strange IO behaviour on wakeup from sleep
@ 2004-10-27  2:56 Benjamin Herrenschmidt
  2004-10-27  6:24 ` Jens Axboe
  2004-10-27 11:20 ` Tim Schmielau
  0 siblings, 2 replies; 10+ messages in thread
From: Benjamin Herrenschmidt @ 2004-10-27  2:56 UTC (permalink / raw)
  To: Linux Kernel list
  Cc: Paul Mackerras, Andrew Morton, Bartlomiej Zolnierkiewicz

Hi !

Not much datas at this point yet, but paulus and I noticed that current
bk (happened already last saturday or so) has a very strange problem
when waking up from sleep (suspend to ram) on our laptops.

This doesn't seem to be directly related to the PM code, at least not
the arch one, as far as I know. The IDE throughput goes down to less
than 100k/sec on hdparm. We haven't yet figured out where the time is
lost, the disk seem to properly be restored to UDMA4 as usual, that code
didn't change for ages, I don't think it's a problem at that level in
IDE.

I'm not sure yet how to track that down, it could be the IO scheduler
getting messed up on wakeup for some reason. Any clue appreciated.

Ben.




^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: Strange IO behaviour on wakeup from sleep
@ 2004-10-27 14:18 Zachary Amsden
  2004-10-27 22:40 ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 10+ messages in thread
From: Zachary Amsden @ 2004-10-27 14:18 UTC (permalink / raw)
  To: benh, linux-kernel

>
>
>Hi !
>
>Not much datas at this point yet, but paulus and I noticed that current
>bk (happened already last saturday or so) has a very strange problem
>when waking up from sleep (suspend to ram) on our laptops.
>
>This doesn't seem to be directly related to the PM code, at least not
>the arch one, as far as I know. The IDE throughput goes down to less
>than 100k/sec on hdparm. We haven't yet figured out where the time is
>lost, the disk seem to properly be restored to UDMA4 as usual, that code
>didn't change for ages, I don't think it's a problem at that level in
>IDE.
>  
>

I would tend to be very suspicious of DMA not being restored correctly 
because on some systems, prior to or during suspend, DMA may be shutdown 
to conserve power.  There are changes afloat that touch suspend/resume, 
and there have been historical problems with DMA not being restored 
properly after wakeup on some laptops.

Although this may be another shot in the dark, it might rule out the DMA 
problem:  try cat /proc/ide/yourchipset before and after suspend and 
note any changes.  Failing that, use hdparm to turn off DMA before 
suspend and see if the performance suffers to the same degree as after 
wakeup.

Zachary Amsden
zach@vmware.com

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

end of thread, other threads:[~2004-10-27 22:49 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-27  2:56 Strange IO behaviour on wakeup from sleep Benjamin Herrenschmidt
2004-10-27  6:24 ` Jens Axboe
2004-10-27 11:20 ` Tim Schmielau
2004-10-27 12:06   ` Benjamin Herrenschmidt
2004-10-27 12:13     ` Tim Schmielau
2004-10-27 13:01     ` Nigel Cunningham
2004-10-27 13:08       ` Benjamin Herrenschmidt
2004-10-27 13:20         ` Nigel Cunningham
  -- strict thread matches above, loose matches on Subject: below --
2004-10-27 14:18 Zachary Amsden
2004-10-27 22:40 ` Benjamin Herrenschmidt

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