View previous topic :: View next topic |
Author |
Message |
graysky Tux's lil' helper
Joined: 25 Nov 2006 Posts: 118 Location: above the flames and the ashes
|
Posted: Sat Feb 23, 2013 3:43 pm Post subject: Gentoo in a VM not using all cores |
|
|
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 |
|
|
hydrapolic Tux's lil' helper
Joined: 07 Feb 2008 Posts: 126
|
Posted: Sat Feb 23, 2013 4:11 pm Post subject: |
|
|
What did you try to emerge? |
|
Back to top |
|
|
graysky Tux's lil' helper
Joined: 25 Nov 2006 Posts: 118 Location: above the flames and the ashes
|
Posted: Sat Feb 23, 2013 4:22 pm Post subject: |
|
|
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 |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21633
|
Posted: Sat Feb 23, 2013 4:40 pm Post subject: |
|
|
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 |
|
|
graysky Tux's lil' helper
Joined: 25 Nov 2006 Posts: 118 Location: above the flames and the ashes
|
Posted: Sat Feb 23, 2013 6:28 pm Post subject: |
|
|
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 |
|
|
|