Recently I've begun having problems with my desktop momentarily freezing, then increasingly so, and finally becoming unresponsive.
I've tracked it down to my hard drive going into the sleep mode, causing all applications that access it to freeze.
I set the "spindown_time = 0" in /etc/hdparm.conf:
That didn't appear to work so I set it in /etc/rc.local ahead of "exit 0"l:
That didn't appear to work, either.
At the first sign of an app hanging I open a Konsole and issue:
That always worked, if I could get a Konsole open in time to issue it.
With spindown_time set to zero I began watching to see which app had the problem first.
Nepomuk was usually the first but it going into sleep mode didn't seem to cause a hang. The "sleep" word disappeared fast while watching in KSysGuard, which itself caused no problems.
The apps I use the most are KMail and Chromium. I started KMail and watched it. It behaved ok.
I started Chromium-browser (the latest version from Google). That's when the problems began! (I am making this post using FireFox, which has not caused a spin down, yet.)
Chromium-Browser creates multiple threads, and eventually puts each one of them to sleep. FireFox does not. I've also noticed that while running Chromium-Browser a memory leak causes xorg to consume memory. Xorg was up to 3.5GB out of 6GB yesterday, before the last hangup. It looks like I'll be reverting to the version of Chromium in the repository.
As an old programmer it seems to me that Google's Chromium developers are relying on polling to determine the status of hardware and not interrupts. Either that or they are deliberately sending a "-y" or "-Y" hdparm to my hard disk. That requires root. That I don't like.
I've tracked it down to my hard drive going into the sleep mode, causing all applications that access it to freeze.
I set the "spindown_time = 0" in /etc/hdparm.conf:
Code:
/dev/sda { spindown_time = 0 }
Code:
spindown_time = 0
At the first sign of an app hanging I open a Konsole and issue:
Code:
sudo hdparm -S 0 /dev/sda
With spindown_time set to zero I began watching to see which app had the problem first.
Nepomuk was usually the first but it going into sleep mode didn't seem to cause a hang. The "sleep" word disappeared fast while watching in KSysGuard, which itself caused no problems.
The apps I use the most are KMail and Chromium. I started KMail and watched it. It behaved ok.
I started Chromium-browser (the latest version from Google). That's when the problems began! (I am making this post using FireFox, which has not caused a spin down, yet.)
Chromium-Browser creates multiple threads, and eventually puts each one of them to sleep. FireFox does not. I've also noticed that while running Chromium-Browser a memory leak causes xorg to consume memory. Xorg was up to 3.5GB out of 6GB yesterday, before the last hangup. It looks like I'll be reverting to the version of Chromium in the repository.
As an old programmer it seems to me that Google's Chromium developers are relying on polling to determine the status of hardware and not interrupts. Either that or they are deliberately sending a "-y" or "-Y" hdparm to my hard disk. That requires root. That I don't like.
Comment