[prev in list] [next in list] [prev in thread] [next in thread] 

List:       qemu-discuss
Subject:    [Qemu-discuss] cpu socket/cores/threads nor extra flags not showing up in guest's cpuinfo
From:       "Nelson, Bjorn" <Bjorn.Nelson () morganstanley ! com>
Date:       2012-03-27 17:57:34
Message-ID: A65DF704A866CE43A176E00CE9D5520CE13C64CD92 () NYWEXMBX2124 ! msad ! ms ! com
[Download RAW message or body]

Hi,

I am trying to use the -smp option to setup a couple different layouts for the cpu \
but am finding that it doesn't respect them.  I can either go all cpus or all cores, \
but not some mix of the two.

`> /ms/dist/fsf/PROJ/qemu/1.0/bin/qemu-system-x86_64 -version
QEMU emulator version 1.0, Copyright (c) 2003-2008 Fabrice Bellard
-smp cores=4,sockets=2,threads=1
-smp cores=2,sockets=2,threads=2

Results in /proc/cpuinfo output showing for all physical id: 0 but cores: 1 and \
siblings: 8

-smp 8

Results in /proc/cpuinfo output showing 8 with different physical ids which makes \
sense.

This is with version qemu 1.0 with cpu qemu64.  Also, for some reason using -cpu \
qemu64,+sse3,+sse4.1,+sse4.2, didn't enable these cpu flags in the guest either.  I \
get the same behavior with -cpu Nehalem (which is the underlying hardware).

I tried setting different -numa ids to see if that would help trigger something, but \
it didn't help.  Also I tried this with the kvm binary version 0.12.1 where it seemed \
to work.  My guess is there isn't much performance different between all cpus and all \
cores under a vm, but if someone can confirm that, I would appreciate it.

-Bjorn

--------------------------------------------------------------------------
NOTICE: Morgan Stanley is not acting as a municipal advisor and the opinions or views \
contained herein are not intended to be, and do not constitute, advice within the \
meaning of Section 975 of the Dodd-Frank Wall Street Reform and Consumer Protection \
Act. If you have received this communication in error, please destroy all electronic \
and paper copies and notify the sender immediately. Mistransmission is not intended \
to waive confidentiality or privilege. Morgan Stanley reserves the right, to the \
extent permitted under applicable law, to monitor electronic communications. This \
message is subject to terms available at the following link: \
http://www.morganstanley.com/disclaimers. If you cannot access these links, please \
notify us by reply message and we will send the contents to you. By messaging with \
Morgan Stanley you consent to the foregoing.


[Attachment #3 (text/html)]

<HTML xmlns="http://www.w3.org/TR/REC-html40" \
xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:x="urn:schemas-microsoft-com:office:excel"><head><META content="text/html; \
charset=us-ascii" http-equiv="Content-Type"> <meta content="text/html; \
charset=us-ascii" http-equiv=Content-Type><meta content="Microsoft Word 14 (filtered \
medium)" name=Generator><style><!-- /* Font Definitions */
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri","sans-serif";}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><BODY>
<DIV><SPAN STYLE="FONT-SIZE: 7.5pt; COLOR: gray; mso-bidi-font-family: Arial"><FONT \
COLOR="gray" FACE="Arial" SIZE="1"><SPAN STYLE="FONT-SIZE: 14pt; FONT-FAMILY: \
'Arial','sans-serif'"><FONT SIZE="2"><FONT COLOR="#000000" FACE="Times New Roman" \
SIZE="3"><FONT FACE="Arial" SIZE="1"><FONT SIZE="2"><div class=WordSection1><p \
class=MsoNormal>Hi,<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p \
class=MsoNormal>I am trying to use the -smp option to setup a couple different \
layouts for the cpu but am finding that it doesn&#8217;t respect them.&nbsp; I can \
either go all cpus or all cores, but not some mix of the two.&nbsp; <o:p></o:p></p><p \
class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal \
style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Courier \
New"'>`&gt; /ms/dist/fsf/PROJ/qemu/1.0/bin/qemu-system-x86_64 -version<span \
style='color:black;background:black;mso-highlight:black'><o:p></o:p></span></span></p><p \
class=MsoNormal style='text-autospace:none'><span \
style='font-size:10.0pt;font-family:"Courier New"'>QEMU emulator version 1.0, \
Copyright (c) 2003-2008 Fabrice Bellard<span \
style='color:black;background:black;mso-highlight:black'><o:p></o:p></span></span></p><p \
class=MsoNormal>-smp cores=4,sockets=2,threads=1<o:p></o:p></p><p \
class=MsoNormal>-smp cores=2,sockets=2,threads=2<o:p></o:p></p><p \
class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Results in /proc/cpuinfo \
output showing for all physical id: 0 but cores: 1 and siblings: 8<o:p></o:p></p><p \
class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>-smp 8<o:p></o:p></p><p \
class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Results in /proc/cpuinfo \
output showing 8 with different physical ids which makes sense.<o:p></o:p></p><p \
class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>This is with version qemu 1.0 \
with cpu qemu64.&nbsp; Also, for some reason using <span \
style='font-size:10.0pt;font-family:"Courier New"'>-</span>cpu \
qemu64,+sse3,+sse4.1,+sse4.2, didn&#8217;t enable these cpu flags in the guest \
either.&nbsp; I get the same behavior with -cpu Nehalem (which is the underlying \
hardware).&nbsp; <o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p \
class=MsoNormal>I tried setting different -numa ids to see if that would help trigger \
something, but it didn&#8217;t help.&nbsp; Also I tried this with the kvm binary \
version 0.12.1 where it seemed to work.&nbsp; My guess is there isn&#8217;t much \
performance different between all cpus and all cores under a vm, but if someone can \
confirm that, I would appreciate it.&nbsp; <o:p></o:p></p><p \
class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><span \
style='font-size:10.0pt;font-family:"Arial","sans-serif";color:black'>-Bjorn</span><span \
style='font-size:7.5pt;font-family:"Arial","sans-serif";color:black'>&nbsp;&nbsp;&nbsp \
;</span><o:p></o:p></p></div></FONT></FONT></FONT></FONT></SPAN></FONT></SPAN></DIV> \
<DIV><SPAN STYLE="FONT-SIZE: 7.5pt; COLOR: gray; mso-bidi-font-family: Arial"><FONT \
COLOR="gray" FACE="Arial" SIZE="1"><SPAN STYLE="FONT-SIZE: 14pt; FONT-FAMILY: \
'Arial','sans-serif'"><FONT SIZE="2"><FONT COLOR="#000000" FACE="Times New Roman" \
SIZE="3"><FONT FACE="Arial" SIZE="1"> <HR>
</FONT></FONT></FONT></SPAN></FONT></SPAN></DIV>
<DIV><SPAN STYLE="FONT-SIZE: 7.5pt; COLOR: gray; mso-bidi-font-family: Arial"><FONT \
FACE="Arial"><SPAN STYLE="FONT-SIZE: 14pt; FONT-FAMILY: 'Arial','sans-serif'"><FONT \
FACE="Times New Roman"><FONT FACE="Arial"><FONT COLOR="#808080" SIZE="1">NOTICE: \
<SPAN STYLE="FONT-SIZE: 7.5pt; COLOR: gray; mso-bidi-font-family: Arial"><FONT \
FACE="Arial"><SPAN STYLE="FONT-SIZE: 14pt; FONT-FAMILY: 'Arial','sans-serif'"><FONT \
FACE="Times New Roman"><FONT FACE="Arial"><FONT SIZE="1"><FONT COLOR="#808080"><SPAN \
LANG="EN-GB" STYLE="FONT-SIZE: 9pt; FONT-FAMILY: 'Arial','sans-serif'; \
mso-fareast-font-family: SimSun; mso-fareast-theme-font: minor-fareast; \
mso-ansi-language: EN-GB; mso-fareast-language: ZH-CN; mso-bidi-language: \
AR-SA"><FONT SIZE="1">Morgan Stanley is not acting as a municipal advisor and the \
opinions or views contained herein are not intended to be, and do not constitute, \
advice within the meaning of Section 975 of the Dodd-Frank Wall Street Reform and \
Consumer Protection Act. \
</FONT></SPAN></FONT></FONT></FONT></FONT></SPAN></FONT></SPAN>If you have received \
this communication in error, please destroy all electronic and paper copies and \
notify the sender immediately. Mistransmission is not intended to waive \
confidentiality or privilege. Morgan Stanley reserves the right, to the extent \
permitted under applicable law, to monitor electronic communications. This message is \
subject to terms available at the following link: </FONT><A \
HREF="http://www.morganstanley.com/disclaimers"><FONT COLOR="#808080" \
SIZE="1">http://www.morganstanley.com/disclaimers</FONT></A><FONT COLOR="#808080" \
SIZE="1">. If you cannot access these links, please notify us by reply message and we \
will send the contents to you. By messaging with Morgan Stanley you consent to the \
foregoing.</FONT></FONT></FONT></SPAN></FONT></SPAN></DIV><FONT \
SIZE="+0"></FONT><FONT SIZE="+0"></FONT><FONT SIZE="+0"></FONT><SPAN></SPAN><FONT \
SIZE="+0"></FONT><SPAN></SPAN></BODY></HTML>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic