[Users] hwloc inside virtual machine

Roland Haas roland.haas at physics.gatech.edu
Sun Sep 29 23:03:45 CDT 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello all,

I run a virtual machine (one of the slaves for Jenkins though I think
it is hardly every used) inside of VirtualBox. I allocated 4 cores
(and 4GB of RAM) for it. The host is a  Intel(R) Core(TM) i7-2600 CPU
which supports symmetric multithreading (ht in cpuinfo). hwloc detects
this also inside the the virtual machine and thus sets the default
number of threads to 4, however other places in the code disagree and
I get a warning that more threads than physical SMT units are used:

INFO (hwloc): Extracting CPU/cache/memory properties:
  There are 1 PUs per core (aka hardware SMT threads)
  There are 2 threads per core (aka SMT threads used)
WARNING: This is larger than the number of hardware SMT threads

VirtualBox apparently does not fully support this and indeed I end up
with 8 concurrent threads which make the test unbearably slow (I had
thought the ML tests were stuck).

Explicitly setting OMP_NUM_THREADS=2 fixes the problem for me. If
possible it would be nice though if hwloc detected this situation and
did not start as many threads (useful eg for new users who use the ET
virtual machine to try out Cactus).

I attach the log file output.

Yours,
Roland

- -- 
My email is as private as my paper mail. I therefore support encrypting
and signing email messages. Get my PGP key from http://keys.gnupg.net.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)
Comment: Using GnuPG with Icedove - http://www.enigmail.net/

iEYEARECAAYFAlJI+CEACgkQTiFSTN7SboXvmgCgnpGcPH/2AIUxxB5lFUr9ZjO7
0oAAn04un6Kg41XAW5QXLkak/xBWVxxP
=Xlnk
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ML_BSSN_EE_sgw3d.log
Type: text/x-log
Size: 65536 bytes
Desc: not available
Url : http://lists.einsteintoolkit.org/pipermail/users/attachments/20130929/f44502db/attachment-0002.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ML_BSSN_EE_sgw3d.log.sig
Type: application/pgp-signature
Size: 72 bytes
Desc: not available
Url : http://lists.einsteintoolkit.org/pipermail/users/attachments/20130929/f44502db/attachment-0003.bin 


More information about the Users mailing list