<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    That will be the process ID.<br>
    <br>
    <br>
    Regards,<br>
    Liang<br>
    <br>
    <div class="moz-cite-prefix">On 09/09/2014 04:56 PM, Narayanan,
      Krishnaprasad wrote:<br>
    </div>
    <blockquote
      cite="mid:529a52d2aed94c0aaec6dc4a1a671ac7@e15be-03.zdv.Uni-Mainz.DE"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;
        mso-fareast-language:EN-US;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:"Calibri","sans-serif";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;
        mso-fareast-language:EN-US;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
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]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span style="color:#1F497D">Hi,<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">I
            used the command ps –AL | grep qemu and I was able to see
            the process ID 6850 having 6 thread IDs. In case, if I am
            interested to measure the hardware performance counters /
            event provided by the CPU registers such as
            CPU_CLK_UNHALTED, BRANCH_MISSES and etc…, can I know which
            process ID should I be using to get this information?<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D">Regards,<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D">Krishnaprasad<o:p></o:p></span></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <div>
          <div style="border:none;border-top:solid #E1E1E1
            1.0pt;padding:3.0pt 0cm 0cm 0cm">
            <p class="MsoNormal"><b><span
                  style="color:windowtext;mso-fareast-language:DE"
                  lang="EN-US">From:</span></b><span
                style="color:windowtext;mso-fareast-language:DE"
                lang="EN-US"> lchen [<a class="moz-txt-link-freetext" href="mailto:cl55hhdu@gmail.com">mailto:cl55hhdu@gmail.com</a>]
                <br>
                <b>Sent:</b> Dienstag, 9. September 2014 20:16<br>
                <b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
                <b>Subject:</b> Re: [Openstack] KVM shows several
                processes for a single VM on the host<o:p></o:p></span></p>
          </div>
        </div>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><span
            style="font-size:12.0pt;mso-fareast-language:DE"><o:p> </o:p></span></p>
        <div>
          <p class="MsoNormal">On 09/09/2014 11:08 AM, Narayanan,
            Krishnaprasad wrote:<o:p></o:p></p>
        </div>
        <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
          <p class="MsoPlainText">Hi Chris,<o:p></o:p></p>
          <p class="MsoPlainText"> <o:p></o:p></p>
          <p class="MsoPlainText"><span lang="EN-US">They appear to be
              processes when I see it in htop. I have attached the
              screenshot of a VM named "instance-000001bf" that has 4
              virtual cores. In total, I can see 6 processes for the
              above referred VM.</span><o:p></o:p></p>
          <p class="MsoPlainText"><span lang="EN-US"> </span><o:p></o:p></p>
          <p class="MsoPlainText"><span style="mso-fareast-language:DE"><img
                id="Picture_x0020_1"
                src="cid:part1.02010007.09090700@gmail.com" height="142"
                width="1732"></span><o:p></o:p></p>
          <p class="MsoPlainText"><span lang="EN-US"> </span><o:p></o:p></p>
          <p class="MsoPlainText"><span lang="EN-US">Can I know is there
              a way to differentiate between  processes and threads?</span><o:p></o:p></p>
          <p class="MsoPlainText"><span lang="EN-US"> </span><o:p></o:p></p>
        </blockquote>
        <p class="MsoNormal"><span
            style="font-size:12.0pt;font-family:"Times New
            Roman","serif";mso-fareast-language:DE"><br>
            They ought to be processes according to the htop man page. 
            But I suspect those are actually the thread IDs - one thread
            per each vcpu and another thread executing the main loop
            dispatching events. The last one seems to be a temporal work
            thread kicked off by the main loop.<br>
            The four threads spent similar amount of time running guest
            code - the guest work load is spread evenly across all
            vcpus.<br>
            <br>
            You may also run 'ps -AL | grep qemu' to have a look at the
            thead Ids and the associated process ID (thread group ID).<br>
            <br>
            <br>
            Liang<br>
            <br>
            <br>
            <o:p></o:p></span></p>
        <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
          <p class="MsoPlainText"><span lang="EN-US">Best regards,</span><o:p></o:p></p>
          <p class="MsoPlainText"><span lang="EN-US">Krishnaprasad</span><o:p></o:p></p>
          <p class="MsoPlainText"><span lang="EN-US"> </span><o:p></o:p></p>
          <p class="MsoPlainText"><span style="mso-fareast-language:DE"
              lang="EN-US">-----Original Message-----<br>
              From: Chris Friesen [<a moz-do-not-send="true"
                href="mailto:chris.friesen@windriver.com">mailto:chris.friesen@windriver.com</a>]
              <br>
              Sent: Dienstag, 9. September 2014 16:31<br>
              To: <a moz-do-not-send="true"
                href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
              Subject: Re: [Openstack] KVM shows several processes for a
              single VM on the host</span><o:p></o:p></p>
          <p class="MsoPlainText"> <o:p></o:p></p>
          <p class="MsoPlainText">On 09/09/2014 07:58 AM, Narayanan,
            Krishnaprasad wrote:<o:p></o:p></p>
          <p class="MsoPlainText">> Hallo all,<o:p></o:p></p>
          <p class="MsoPlainText">> <o:p></o:p></p>
          <p class="MsoPlainText">> I have an OpenStack setup based
            on Havana with several compute nodes.<o:p></o:p></p>
          <p class="MsoPlainText">> When I instantiate a virtual
            machine with 1 or more virtual cores, in
            <o:p></o:p></p>
          <p class="MsoPlainText">> the process list of the compute
            node, I am able to see more than 1
            <o:p></o:p></p>
          <p class="MsoPlainText">> process associated to the same
            VM. The process list that I refer is
            <o:p></o:p></p>
          <p class="MsoPlainText">> the process which can be seen by
            running either top or htop.<o:p></o:p></p>
          <p class="MsoPlainText">> <o:p></o:p></p>
          <p class="MsoPlainText">> Can I know the significance of
            other processes which are associated to
            <o:p></o:p></p>
          <p class="MsoPlainText">> the same VM? Are these child
            processes?<o:p></o:p></p>
          <p class="MsoPlainText"> <o:p></o:p></p>
          <p class="MsoPlainText">Are they separate processes or
            separate threads?  Separate threads would be expected, but
            separate processes would not be.<o:p></o:p></p>
          <p class="MsoPlainText"> <o:p></o:p></p>
          <p class="MsoPlainText">Chris<o:p></o:p></p>
          <p class="MsoPlainText"> <o:p></o:p></p>
          <p class="MsoPlainText"> <o:p></o:p></p>
          <p class="MsoPlainText">_______________________________________________<o:p></o:p></p>
          <p class="MsoPlainText"><span lang="EN-US">Mailing list: </span><a
              moz-do-not-send="true"
              href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack"><span
                style="color:windowtext;text-decoration:none"
                lang="EN-US">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</span></a><o:p></o:p></p>
          <p class="MsoPlainText"><span lang="EN-US">Post to     : </span><a
              moz-do-not-send="true"
              href="mailto:openstack@lists.openstack.org"><span
                style="color:windowtext;text-decoration:none"
                lang="EN-US">openstack@lists.openstack.org</span></a><o:p></o:p></p>
          <p class="MsoPlainText"><span lang="EN-US">Unsubscribe : </span><a
              moz-do-not-send="true"
              href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack"><span
                style="color:windowtext;text-decoration:none"
                lang="EN-US">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</span></a><o:p></o:p></p>
          <p class="MsoNormal"><span
              style="font-size:12.0pt;font-family:"Times New
              Roman","serif";mso-fareast-language:DE"><br>
              <br>
              <br>
              <o:p></o:p></span></p>
          <pre>_______________________________________________<o:p></o:p></pre>
          <pre>Mailing list: <a moz-do-not-send="true" href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><o:p></o:p></pre>
          <pre>Post to     : <a moz-do-not-send="true" href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><o:p></o:p></pre>
          <pre>Unsubscribe : <a moz-do-not-send="true" href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><o:p></o:p></pre>
        </blockquote>
      </div>
    </blockquote>
    <br>
  </body>
</html>