Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cc1 used greatest stack depth: xxx bytes left
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
iceaway
n00b
n00b


Joined: 11 Aug 2011
Posts: 21

PostPosted: Wed Oct 19, 2011 5:18 pm    Post subject: cc1 used greatest stack depth: xxx bytes left Reply with quote

When I try to emerge qemu my computer starts lagging really badly after a while, very hard to switch windows, type anything into consoles etc. When checking dmesg right after this happens I get:
[ 100.516740] make used greatest stack depth: 4616 bytes left
[ 156.897561] ar used greatest stack depth: 4480 bytes left
[ 276.281353] as used greatest stack depth: 3992 bytes left
[ 289.349700] cc1 used greatest stack depth: 3896 bytes left

Any ideas what could be causing this? Doesn't happen with other packages (not any that I have noticed so far, anyway).
Back to top
View user's profile Send private message
azp
Guru
Guru


Joined: 16 Nov 2003
Posts: 456
Location: Sweden

PostPosted: Thu Oct 20, 2011 7:17 am    Post subject: Reply with quote

A quick googling shows two answers saying "it's nothing to worry about, you've just enabled debugging output in your kernel".

http://www.mail-archive.com/gentoo-amd64@lists.gentoo.org/msg11510.html
http://lists.ozlabs.org/pipermail/linuxppc-dev/2010-January/079911.html
_________________
Weeks of coding can save you hours of planning.
Back to top
View user's profile Send private message
iceaway
n00b
n00b


Joined: 11 Aug 2011
Posts: 21

PostPosted: Thu Oct 20, 2011 8:40 am    Post subject: Reply with quote

azp wrote:
A quick googling shows two answers saying "it's nothing to worry about, you've just enabled debugging output in your kernel".

http://www.mail-archive.com/gentoo-amd64@lists.gentoo.org/msg11510.html
http://lists.ozlabs.org/pipermail/linuxppc-dev/2010-January/079911.html


I found those results as well, but neither of them indicated any computer lag. But both times when I tried to emerge qemu, they appeared in the dmesg log. Possibly these messages are unrelated to the computer lag, but it was all I could see in the logs indicating some kind of error/warning.
Back to top
View user's profile Send private message
DirtyHairy
l33t
l33t


Joined: 03 Jul 2006
Posts: 608
Location: Würzburg, Deutschland

PostPosted: Thu Oct 20, 2011 8:45 am    Post subject: Reply with quote

How much ram do you have? Do you run several make instances in parallel (make -j)? Have you tried monitoring memory usage during the compile?
Back to top
View user's profile Send private message
iceaway
n00b
n00b


Joined: 11 Aug 2011
Posts: 21

PostPosted: Thu Oct 20, 2011 12:13 pm    Post subject: Reply with quote

DirtyHairy wrote:
How much ram do you have? Do you run several make instances in parallel (make -j)? Have you tried monitoring memory usage during the compile?


I have 4GB of RAM and I have -j5 in my makeopts. It seems weird though that his has never happened before, for any package. I did not watch my memory usage, I could barely switch windows in gnome so I focused on getting a CTRL-C to the make processes. I didn't dare tying to open up a new terminal :-)

I can try adjusting my makeopts, and watch the memory usage, to see if that helps.
Back to top
View user's profile Send private message
DirtyHairy
l33t
l33t


Joined: 03 Jul 2006
Posts: 608
Location: Würzburg, Deutschland

PostPosted: Thu Oct 20, 2011 1:42 pm    Post subject: Reply with quote

:) With 4GB ram memory problems seem a bit far-fetched, but on the other hand, in nasty cases, the compiler can eat up several 100s of MBs, so, with make -j5, I guess it is worth checking.
Back to top
View user's profile Send private message
iceaway
n00b
n00b


Joined: 11 Aug 2011
Posts: 21

PostPosted: Thu Oct 20, 2011 3:01 pm    Post subject: Reply with quote

DirtyHairy wrote:
:) With 4GB ram memory problems seem a bit far-fetched, but on the other hand, in nasty cases, the compiler can eat up several 100s of MBs, so, with make -j5, I guess it is worth checking.


On the other hand, the different gcc threads/processes that compile the code will all have their own stacks, so the number of parallel compiles shouldn't be the issue. I'll give it a shot however and see if it yields any different results.
Back to top
View user's profile Send private message
DirtyHairy
l33t
l33t


Joined: 03 Jul 2006
Posts: 608
Location: Würzburg, Deutschland

PostPosted: Thu Oct 20, 2011 3:13 pm    Post subject: Reply with quote

To clarify: I don't thing that the stack depth messages are related to the problem, I more suspect that the machine starts swapping.
Back to top
View user's profile Send private message
iceaway
n00b
n00b


Joined: 11 Aug 2011
Posts: 21

PostPosted: Thu Oct 20, 2011 5:10 pm    Post subject: Reply with quote

I think I have found the problem, seems like it was a memory usage issue. I googled around some more and found this:
https://bugs.launchpad.net/gcc-linaro/+bug/714921

It appears to be a bug in gcc which causes very high memory usage when compiling just qemu.

I compiled it successfully using -j1 in my make opts. Thanks for all your help!
Back to top
View user's profile Send private message
azp
Guru
Guru


Joined: 16 Nov 2003
Posts: 456
Location: Sweden

PostPosted: Fri Oct 21, 2011 11:39 am    Post subject: Reply with quote

Cool that you found it, and weird that it only happens when compiling qemu!
_________________
Weeks of coding can save you hours of planning.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum