Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo in a VM not using all cores
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
graysky
Tux's lil' helper
Tux's lil' helper


Joined: 25 Nov 2006
Posts: 117
Location: above the flames and the ashes

PostPosted: Sat Feb 23, 2013 3:43 pm    Post subject: Gentoo in a VM not using all cores Reply with quote

Following the handbook to spin up gentoo in a VM. The host machine is an Intel i7-3770K (quad + hyperthreads), and I told virtualbox to give the VM all 8 cores. As well, my /etc/portage/make.conf has

Code:
CFLAGS="-O2 -march=native -pipe"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j8"

CHOST="i686-pc-linux-gnu"

USE="-gtk -gnome qt4 dvd cdr"


Looking at /proc/cpuinfo shows all 8 are detected, but emerge operations only use 2-3 cores. What am I doing wrong? Just a limitation of virtualization or PEBKAC?
Back to top
View user's profile Send private message
hydrapolic
Tux's lil' helper
Tux's lil' helper


Joined: 07 Feb 2008
Posts: 124

PostPosted: Sat Feb 23, 2013 4:11 pm    Post subject: Reply with quote

What did you try to emerge?
Back to top
View user's profile Send private message
graysky
Tux's lil' helper
Tux's lil' helper


Joined: 25 Nov 2006
Posts: 117
Location: above the flames and the ashes

PostPosted: Sat Feb 23, 2013 4:22 pm    Post subject: Reply with quote

hydrapolic wrote:
What did you try to emerge?


genkernel... it eventually built, but did so not using all of my cores. When I built vim on the other hand, it did use all cores. :/
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13848

PostPosted: Sat Feb 23, 2013 4:40 pm    Post subject: Reply with quote

Your settings look fine for granting the package the option of using all cores. However, if the package build system is not sufficiently parallel, it will not have enough work to keep all cores busy.
Back to top
View user's profile Send private message
graysky
Tux's lil' helper
Tux's lil' helper


Joined: 25 Nov 2006
Posts: 117
Location: above the flames and the ashes

PostPosted: Sat Feb 23, 2013 6:28 pm    Post subject: Reply with quote

This could be... when I compile kernels on my workstation outside of the VM, gcc has NO problem using all cores. It's no biggie. Thanks for the replies all.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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