RohanRNS Post
RohanRNS wrote:I have also experienced the strange freeze while randomly working in X.
#1) When I am running a cpu-intensive program, the laptop begins making a good amount of noise (due to fans starting), and the laptop carries out the process. But as soon as the cpu intensive process ends and I close the application, the laptop freezes. An example is playing a flash animation on a website using firefox, and then closing firefox. This repeatedly causes the laptop to hang.
#2) Firefox, for some bizarre reason, firefox spikes the cpu and causes the laptop to hang. I have no idea what causes this spike, they usually appear during causal browsing.
My laptop:
Dell 5160 Inspiron
p4 3.0ghz HT (ht is enabled in kernel config)
I'm stable now for several hours - but your observations might explain why.
The Theory
It's an SMT/HT problem. In other words we all have a P4 and:
Code: Select all
$ cat /usr/src/linux/.config|grep SMT
CONFIG_SCHED_SMT=y
But we don't habe set up the march flag correctly. For example:
Code: Select all
$ cat /etc/make.conf|grep march
CFLAGS="-O2 -march=i686 -fomit-frame-pointer -pipe"
Additionally the firefox binaries seem not to be "SMT save". Whenever this technology is used by firefox (eg. CPU intensive flash games) the box locks up.
What I have done - or: the fix?
I set my march flag to:
Then I compilied Firefox from source
Code: Select all
# emerge unmerge mozilla-firefox-bin
# emerge mozilla-firefox
I guess this way firefox is made "SMT save".
Can you acknowledge this?
Please compile a Kernel without SMT support an give your firefox another run. If it doesn't crash I'm right and you can reenable SMT and compile firefox with the correct march flag.