10c26 Hard shutdown when compiling C++ modules - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Desktop Usage > Mobile Computing

Mobile Computing This forum discusses issues related to running FreeBSD on notebooks, laptops, and other mobile equipment.

Reply
 
Thread Tools Display Modes
  #1  
Old August 2nd, 2012, 08:51
Sceak Sceak is offline
Junior Member
 
Join Date: Jan 2011
Location: Montreal, QC
Posts: 35
Thanks: 2
Thanked 2 Times in 2 Posts
Default Hard shutdown when compiling C++ modules

Hello,

I've been experiencing problems when building certain ports, notoriously Chromium and OpenOffice which are both in C++.

My laptop emergency shutsdown.

It's an i3-380M, 90ºC max temp. I tried lowering the max temp in coretemp alas to no result. This is leading me to think there might be something else but if I monitor the temperature manually and suspend the build when it borders the max temperature everything goes fine.

Any thoughts or insight?
Reply With Quote
  #2  
Old August 2nd, 2012, 09:18
SirDice's Avatar
SirDice SirDice is online now
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,706
Thanks: 47
Thanked 2,022 Times in 1,861 Posts
Default

Your machine most likely heats up too much and shuts down to protect itself.
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #3  
Old August 2nd, 2012, 09:46
Sceak Sceak is offline
Junior Member
 
Join Date: Jan 2011
Location: Montreal, QC
Posts: 35
Thanks: 2
Thanked 2 Times in 2 Posts
Default

Only on C++ builds?

I can compile some pretty hefty stuff written in C but large C++ builds (like Webkit, common to Chromium and OpenOffice) hardshut the machine.

It does overheat but I don't understand why it wouldn't also shutdown while compiling X or libav, for instance.
Reply With Quote
  #4  
Old August 2nd, 2012, 09:54
SirDice's Avatar
SirDice SirDice is online now
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,706
Thanks: 47
Thanked 2,022 Times in 1,861 Posts
Default

Fix the overheating issues, not the symptoms.
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #5  
Old August 2nd, 2012, 10:03
kpa kpa is online now
Giant Locked
 
Join Date: Jul 2010
Location: People's Technocratic Republic of Finland
Posts: 2,007
Thanks: 44
Thanked 466 Times in 396 Posts
Default

See this thread:
http://forums.freebsd.org/showthread.php?t=33265
Reply With Quote
  #6  
Old August 2nd, 2012, 10:07
Sceak Sceak is offline
Junior Member
 
Join Date: Jan 2011
Location: Montreal, QC
Posts: 35
Thanks: 2
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by SirDice View Post
Fix the overheating issues, not the symptoms.
tjmax I lowered to 85ºC with no result. The CPU should've been throttled by coretemp to remain 5ºC below the maximum allowed by the temperature sensors, no?

See /usr/src/sys/dev/coretemp/coretemp.c

Quote:
Originally Posted by kpa View Post
I can buildworld with GCC just fine.

ACPI has nothing to do with it because the firmware handles fan speeds just fine. Boots up full spin if it hard shutdown because of temperature issues.
Reply With Quote
  #7  
Old August 2nd, 2012, 10:28
SirDice's Avatar
SirDice SirDice is online now
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,706
Thanks: 47
Thanked 2,022 Times in 1,861 Posts
Default

I had to look this up... Tj(max) is the maximum junction temperature, which is the real temperature the chip is at. If your system is close to this temperature take out the CPU, reseat it and put some proper thermal paste between it and the cooler. It basically means your CPU can't get rid of it's excess heat.
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #8  
Old August 2nd, 2012, 10:43
Sceak Sceak is offline
Junior Member
 
Join Date: Jan 2011
Location: Montreal, QC
Posts: 35
Thanks: 2
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by SirDice View Post
I had to look this up... Tj(max) is the maximum junction temperature, which is the real temperature the chip is at. If your system is close to this temperature take out the CPU, reseat it and put some proper thermal paste between it and the cooler. It basically means your CPU can't get rid of it's excess heat.
Not going to happen.

Now knowing that:

- ACPI has nothing to do with this;
- CPU is throttled by the coretemp kernel module at 5ºC below the firmware upper limit; and
- This only happens on C++ builds but not on other CPU-intensive tasks like building the OS.

Can anyone offer a reasonable explanation and perhaps hint at a possible solution?
Reply With Quote
  #9  
Old August 2nd, 2012, 11:59
jb_fvwm2 jb_fvwm2 is offline
Senior Member
 
Join Date: Nov 2008
Posts: 1,386
Thanks: 60
Thanked 145 Times in 130 Posts
Default

Run freecolor every minute or so? Start Xorg first so that less memory gets allocated to the build and it runs slower? Start some other process in the background first which would do something similar? Alter the Makefile, commenting out the MAKE_JOBS_SAFE line ?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Loading Modules vs Compiling Kernel nickednamed Installing & Upgrading 5 October 22nd, 2011 17:18
Compiling Into the Kernel vs. Loadable Modules SecretAsianMan Installing & Upgrading 10 August 17th, 2010 23:45
[Solved] X11 Lock-Up -> Hard Shutdown Now Not Rebooting aorchid Installing & Upgrading 8 June 1st, 2010 22:12
[Solved] ZFS Boot problem after hard shutdown while resilvering RAIDZ1 Morrison General 1 March 6th, 2010 15:35
How can I disable compiling some modules when I compile my kernel? tanakorn Installing & Upgrading 14 October 5th, 2009 15:57


All times are GMT +1. The time now is 15:11.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0