On Wed 24-10-07 23:27:41, Jaimon Jose wrote:
Jan Kara wrote, On 10/24/2007 08:51 PM:
Hello,
On Sun 21-10-07 22:43:16, Jaimon Jose wrote:
I have been observing that laptop is too slow when it resumes from suspend (T61p with 2GB ram), it takes more than 10 minutes before the system starts responding normally. There will be continuous read from the hard disk during this time. Yes, that's the problem with swapping in large applications - you get mostly random-access load on the swap partition and so it takes horribly long to swap in anything larger...
As I mentioned below, I don't have any large applications. All that I have is firefox, thunderbird and VMWare. One more correction is that my laptop never recovers from this state. I noticed that, if I restart X, it comes back to normal. For eg. Cpu(s): 1.8%us, 2.8%sy, 0.3%ni, 78.7%id, 2.5%wa, 0.0%hi, 13.8%si, 0.0%st Mem: 2075132k total, 1954952k used, 120180k free, 349592k buffers Swap: 2097140k total, 14392k used, 2082748k free, 919952k cached
You can see that most of the memory is used and hardly any swap area is used. This is by just restarting the X. Yes, but when you suspend do disk, almost all the memory is first "swapped out". So after you resume, you are in a situation as if all the applications were in swap. So in your case you'll be something like 1.5GB to swap in after resume... How have you found out that the laptop never recovers? Or better, how long have you waited? :) Still, I think that swap-prefetch patches are worth trying...
Honza
--
Jan Kara