Skip to contentSkip to conversation

Strange IO behaviour on wakeup from sleep

DISCUSSION Zachary Amsden 2 participants 2 messages Oct 27, 2004

lore
Share & tools
lore
#0 lore raw
Quoted 8 lines

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.

Quoted 8 lines

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
[email protected]

#1 lore raw
Quoted 5 lines · Zachary Amsden

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.

DMA is restored, and the resulting is way slower than what PIO would explain anyway. I get less than 100Kb/sec !

(I wrote the IDE suspend/resume code and the driver for this chipset, so I'm fairly sure that side is ok, it didn't change for a while, but I'll double check in case Bart latest updates broke something).

Quoted 5 lines

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.

Tried all of that.

Ben.