[opensuse] Both Thunderbird and Firefox unresponsive on return for hibernation
Hi, Say that on return from hibernation I don't touch the computer for three minutes. Then I go to the desktop that has Thunderbird opened from yesterday. It is white, nothing can be read. There is a small window, white, that I know says that some script is unresponsive. I have to wait several minutes till Thunderbird fills the text, and even more till it responds to the keyboard. Something like 10 minutes till I can read and write emails since returning from hibernation. Horrible. And all the time the disk is reading something, slowly, at 1.5 MB/s. The XFCE Multiload plugin displays that the CPU is waiting a lot (IOWait). Then why is the disk going that slow? This is something that happens on Leap 42.2 on two computers, which had not this problem on 13.1. Firefox presents the same problem. In fact, I got tired of waiting and killed it, then restarted it. Seems faster. Now systemd-coredump is working like mad. <0.6> 2017-02-14 13:05:24 minas-tirith kernel - - - [ 5171.025740] Chrome_ChildThr[5684]: segfault at 0 ip 000055df53b39e43 sp 00007f57d88fe410 error 6 in plugin-container[55df53b31000+3a000] <0.2> 2017-02-14 13:14:16 minas-tirith systemd-coredump 8458 - - Process 5682 (Web Content) of user 1000 dumped core. This is the first time.
minas-tirith:~ # ls -lh /var/lib/systemd/coredump total 39M -rw-r-----+ 1 root root 39M Feb 14 13:14 core.Web\x20Content.1000.61a92786b073470b9f1e500c67f26a4c.5682.1487073924000000.xz -rw-r----- 1 root root 149K Feb 14 02:09 core.lightdm.0.a116389be6504b379cbf276483833956.25231.1487034584000000.xz minas-tirith:~ #
top - 13:17:05 up 11:06, 7 users, load average: 0.46, 3.98, 5.04 Tasks: 273 total, 2 running, 270 sleeping, 0 stopped, 1 zombie %Cpu(s): 30.9 us, 7.3 sy, 0.2 ni, 60.4 id, 1.3 wa, 0.0 hi, 0.0 si, 0.0 st KiB Mem: 3947112 total, 1937784 used, 2009328 free, 74672 buffers KiB Swap: 6289412 total, 1224644 used, 5064768 free. 727320 cached Mem
So, is this a bug in Thunderbird/Firefox, or in how systemd handles hybernation? -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" (Minas Tirith))
On 2/14/17 6:23 AM, Carlos E. R. wrote:
Hi,
Say that on return from hibernation I don't touch the computer for three minutes. Then I go to the desktop that has Thunderbird opened from yesterday. It is white, nothing can be read. There is a small window, white, that I know says that some script is unresponsive. I have to wait several minutes till Thunderbird fills the text, and even more till it responds to the keyboard. Something like 10 minutes till I can read and write emails since returning from hibernation. Horrible.
And all the time the disk is reading something, slowly, at 1.5 MB/s.
The XFCE Multiload plugin displays that the CPU is waiting a lot (IOWait). Then why is the disk going that slow?
This is something that happens on Leap 42.2 on two computers, which had not this problem on 13.1.
Firefox presents the same problem. In fact, I got tired of waiting and killed it, then restarted it. Seems faster.
Now systemd-coredump is working like mad.
<0.6> 2017-02-14 13:05:24 minas-tirith kernel - - - [ 5171.025740] Chrome_ChildThr[5684]: segfault at 0 ip 000055df53b39e43 sp 00007f57d88fe410 error 6 in plugin-container[55df53b31000+3a000]
<0.2> 2017-02-14 13:14:16 minas-tirith systemd-coredump 8458 - - Process 5682 (Web Content) of user 1000 dumped core.
This is the first time.
minas-tirith:~ # ls -lh /var/lib/systemd/coredump total 39M -rw-r-----+ 1 root root 39M Feb 14 13:14 core.Web\x20Content.1000.61a92786b073470b9f1e500c67f26a4c.5682.1487073924000000.xz -rw-r----- 1 root root 149K Feb 14 02:09 core.lightdm.0.a116389be6504b379cbf276483833956.25231.1487034584000000.xz minas-tirith:~ #
top - 13:17:05 up 11:06, 7 users, load average: 0.46, 3.98, 5.04 Tasks: 273 total, 2 running, 270 sleeping, 0 stopped, 1 zombie %Cpu(s): 30.9 us, 7.3 sy, 0.2 ni, 60.4 id, 1.3 wa, 0.0 hi, 0.0 si, 0.0 st KiB Mem: 3947112 total, 1937784 used, 2009328 free, 74672 buffers KiB Swap: 6289412 total, 1224644 used, 5064768 free. 727320 cached Mem
So, is this a bug in Thunderbird/Firefox, or in how systemd handles hybernation?
Carlos, This may not be your issue, but Firefox constantly and very heavily writes to "recovery.js" almost constantly. I have not heard but suspect Thunderbird does as well. These constant writes are wearing out SSD drives. https://www.servethehome.com/firefox-is-eating-your-ssd-here-is-how-to-fix-i... I had my server main drive take a hard hit a few years ago, got corrupted and was not completely recoverable. The area that was hardest hit was in the Firefox user directory. Not sure if that was related but... Hope this helps, Jim -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Tue, 14 Feb 2017 11:35:03 -0600
Jim Flanagan
On 2/14/17 6:23 AM, Carlos E. R. wrote: [snip]
So, is this a bug in Thunderbird/Firefox, or in how systemd handles hybernation?
Carlos,
This may not be your issue, but Firefox constantly and very heavily writes to "recovery.js" almost constantly.
It doesn't on my system. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2017-02-14 18:35, Jim Flanagan wrote:
On 2/14/17 6:23 AM, Carlos E. R. wrote:
Carlos,
This may not be your issue, but Firefox constantly and very heavily writes to "recovery.js" almost constantly. I have not heard but suspect Thunderbird does as well. These constant writes are wearing out SSD drives.
https://www.servethehome.com/firefox-is-eating-your-ssd-here-is-how-to-fix-i...
Basically, it says to adjust "—browser.sessionstore.interval". The default seems to be 15 seconds. I'll try. ... Does not match, I have: browser.sessionstore.interval;15000 Unless that is precissely 15" ? I'll try 15000. The other thing your link points at is saving cookies. That would depend on the displayed sites, I guess. -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" (Minas Tirith))
On 2/14/17 11:54 AM, Carlos E. R. wrote:
On 2017-02-14 18:35, Jim Flanagan wrote:
On 2/14/17 6:23 AM, Carlos E. R. wrote:
Carlos,
This may not be your issue, but Firefox constantly and very heavily writes to "recovery.js" almost constantly. I have not heard but suspect Thunderbird does as well. These constant writes are wearing out SSD drives.
https://www.servethehome.com/firefox-is-eating-your-ssd-here-is-how-to-fix-i...
Basically, it says to adjust "—browser.sessionstore.interval". The default seems to be 15 seconds. I'll try. ... Does not match, I have:
browser.sessionstore.interval;15000
Unless that is precissely 15" ? I'll try 15000.
The other thing your link points at is saving cookies. That would depend on the displayed sites, I guess.
Its milliseconds, so every 15 seconds (15,000 ms) it writes its entire state to that file. I changed my laptop to 5 minutes, some I've read go much longer, I've read 30 minutes. I think the biggest problem with this is that it is writing the entire content of its browser state, every single time, by default every 15 seconds, over and over again. Hence the wear issues on SSDs. Hopefully Mozilla will fix this behavior soon. (Google Chrome does a similar thing so needs fixing too). I can't help but think it could be causing at least some of your issue, even on a spinning drive. so much writing could weaken that sector on the drive. Jim -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 El 2017-02-14 a las 14:25 -0600, Jim Flanagan escribió:
On 2/14/17 11:54 AM, Carlos E. R. wrote:
browser.sessionstore.interval;15000
Unless that is precissely 15" ? I'll try 15000.
The other thing your link points at is saving cookies. That would depend on the displayed sites, I guess.
Its milliseconds, so every 15 seconds (15,000 ms) it writes its entire state to that file.
I have it at 150" now.
I changed my laptop to 5 minutes, some I've read go much longer, I've read 30 minutes. I think the biggest problem with this is that it is writing the entire content of its browser state, every single time, by default every 15 seconds, over and over again. Hence the wear issues on SSDs. Hopefully Mozilla will fix this behavior soon. (Google Chrome does a similar thing so needs fixing too).
It should save the status when a new tab is added or an url edited. However... I think they should rewrite it. Do not save the entire status, but only the recent changes, incrementally. They are recoding it with threads. If the main thread is a controller and does not crash, it could handle the storing a copy of the status in memory. Something we can do is store it in ramdisk (/run), then copy to hard disk periodically.
I can't help but think it could be causing at least some of your issue, even on a spinning drive. so much writing could weaken that sector on the drive.
Yes, I'll see what happens. But Thunderbird does not have this setting. - -- Cheers Carlos E. R. (from 42.2 x86_64 "Malachite" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iF4EAREIAAYFAlijcJ0ACgkQja8UbcUWM1wU8gD/XeY/SqVdBOZSETOMKwR8TNMJ GYKcTRJ78yYggeSKOrkA/RUXy0iklF3o+NVPIVJJnCPnUa4yVvZMTPBndWMENgKL =Ho1m -----END PGP SIGNATURE-----
On 14/02/17 21:03, Carlos E. R. wrote:
I can't help but think it could be causing at least some of your issue, even on a spinning drive. so much writing could weaken that sector on the drive.
Yes, I'll see what happens.
But Thunderbird does not have this setting.
Dunno whether it's related ... I think it happens with my SuSE laptop, definitely with my gentoo desktop ... TB will respond for a short while at startup, then just goes totally unresponsive for maybe a minute. Very annoying because I start doing my emails and then have to just sit there and wait until it comes back to life :-( Cheers, Wol -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Content-ID:
On 14/02/17 21:03, Carlos E. R. wrote:
I can't help but think it could be causing at least some of your issue, even on a spinning drive. so much writing could weaken that sector on the drive.
Yes, I'll see what happens.
But Thunderbird does not have this setting.
Well, the setting (browser.sessionstore.interval) does not help in this issue.
Dunno whether it's related ... I think it happens with my SuSE laptop, definitely with my gentoo desktop ...
TB will respond for a short while at startup, then just goes totally unresponsive for maybe a minute. Very annoying because I start doing my emails and then have to just sit there and wait until it comes back to life :-(
Well, it appears that the issue is related to swap. The application is swapped out and it is retrieved very slowly, at less than 2 MB/s. Something is wrong in 42.2 how it handles swap. - -- Cheers Carlos E. R. (from 42.2 x86_64 "Malachite" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iF4EAREIAAYFAlikWWEACgkQja8UbcUWM1wjZAD/eew6EBV88waRtAzbNXQBz0MS gepSmOvGxkw7qwHUydgA/1/qxttak/yYKdqnpRtL2T/oXNXoKXYDQsJR9TtlCjK+ =DHpN -----END PGP SIGNATURE-----
participants (4)
-
Carlos E. R.
-
Dave Howorth
-
Jim Flanagan
-
Wols Lists