<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    <div class="moz-cite-prefix">On 09/09/2014 11:08 AM, Narayanan,
      Krishnaprasad wrote:<br>
    </div>
    <blockquote
      cite="mid:5ca3aa20f9f2427aa96e8d4e430a9a64@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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        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";
        mso-fareast-language:EN-US;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:"Calibri","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@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="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.<o:p></o:p></span></p>
        <p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoPlainText"><span style="mso-fareast-language:DE"><img
              id="Picture_x0020_1"
              src="cid:part1.06030209.05040700@gmail.com" height="142"
              width="1732"></span><span lang="EN-US"><o:p></o:p></span></p>
        <p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoPlainText"><span lang="EN-US">Can I know is there a
            way to differentiate between  processes and threads?<o:p></o:p></span></p>
        <p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
      </div>
    </blockquote>
    <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>
    <blockquote
      cite="mid:5ca3aa20f9f2427aa96e8d4e430a9a64@e15be-03.zdv.Uni-Mainz.DE"
      type="cite">
      <div class="WordSection1">
        <p class="MsoPlainText"><span lang="EN-US">Best regards,<o:p></o:p></span></p>
        <p class="MsoPlainText"><span lang="EN-US">Krishnaprasad<o:p></o:p></span></p>
        <p class="MsoPlainText"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoPlainText"><span style="mso-fareast-language:DE"
            lang="EN-US">-----Original Message-----<br>
            From: Chris Friesen [<a class="moz-txt-link-freetext" href="mailto:chris.friesen@windriver.com">mailto:chris.friesen@windriver.com</a>] <br>
            Sent: Dienstag, 9. September 2014 16:31<br>
            To: <a class="moz-txt-link-abbreviated" 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></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><span
            lang="EN-US"><o:p></o:p></span></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><span
            lang="EN-US"><o:p></o:p></span></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><span
            lang="EN-US"><o:p></o:p></span></p>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Mailing list: <a class="moz-txt-link-freetext" href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a>
Post to     : <a class="moz-txt-link-abbreviated" href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a>
Unsubscribe : <a class="moz-txt-link-freetext" href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a>
</pre>
    </blockquote>
  </body>
</html>