VMware vSphere

 View Only
  • 1.  Understand single threaded and multi threaded app

    Posted May 15, 2009 04:21 PM

    Hi,

    I need to know, how can I understand whether a application is single threaded OR multi-threaded application?

    I am having trouble with the VM's and I need to know, whether having SMP is really helping OR further slowing down the VM ?

    Thanks



  • 2.  RE: Understand single threaded and multi threaded app

    Posted May 15, 2009 04:35 PM

    A fast and simple way is to monitor the CPU graph (or from inside the VM or from VIC) and verify if load il distribuited between the vCPU.

    If yes then you can have benefits from SMP, if not probably is best to use a single vCPU.

    Andre

    **if you found this or any other answer useful please consider allocating points for helpful or correct answers



  • 3.  RE: Understand single threaded and multi threaded app

    Posted May 15, 2009 04:41 PM

    It is probably worth looking at the cpu ready in esxtop too.

    If this is high, it would indicate too much time spent waiting for cpu allocation and it could be that you would get better performance by reducing some of your smp vms to single cpu.



  • 4.  RE: Understand single threaded and multi threaded app

    Posted May 17, 2009 04:27 PM

    I agree that looking in either esxtop or the CPU graphs in the VI Client should give you an idea of what is going on. That should tell you whether or not both CPUs are being fully utilized. Looking at the CPU utilization in Task Manager inside the VM might be a bit misleading and I have seen it reporting completely incorrect info. ESX will be able to tell you exactly how much CPU is being used.

    What application are you referring to? It might make sense to just reach out to the vendor as well..



  • 5.  RE: Understand single threaded and multi threaded app

    Posted May 17, 2009 06:38 PM

    Looking at ESXtop will not tell what is happening with in a guest. to do that you need monitoring tool internal to the guest ie Perfmon.

    If you found this or any other answer useful please consider the use of the Helpful or correct buttons to award points

    Tom Howarth VCP / vExpert

    VMware Communities User Moderator

    Blog: www.planetvm.net

    Contributing author for the upcoming book "[VMware vSphere and Virtual Infrastructure Security: Securing ESX and the Virtual Environment|http://my.safaribooksonline.com/9780136083214]”. Currently available on roughcuts



  • 6.  RE: Understand single threaded and multi threaded app

    Posted May 18, 2009 12:19 PM

    It may not tell you which process is using up CPU or memory, but esxtop will tell you whether or not both CPUs are being utilized fully. In this case I believe that is what the goal is.



  • 7.  RE: Understand single threaded and multi threaded app

    Posted May 18, 2009 01:08 PM

    How so, it will only tell you that the OS is using both CPU, a OS like Windows will throw instructions at available resource. if CPU one is running 100% all other instructions will goto CPU2. it all depends upon load on the guest. you may see a imbalance in CPU throughput, you will not be able to deciphere why that is so. I read the original posters question as needing to know if "MY APPLICATION" is using both CPU. this would have to be done from within the guest.

    If you found this or any other answer useful please consider the use of the Helpful or correct buttons to award points

    Tom Howarth VCP / vExpert

    VMware Communities User Moderator

    Blog: www.planetvm.net

    Contributing author for the upcoming book "[VMware vSphere and Virtual Infrastructure Security: Securing ESX and the Virtual Environment|http://my.safaribooksonline.com/9780136083214]”. Currently available on roughcuts



  • 8.  RE: Understand single threaded and multi threaded app

    Posted May 21, 2009 08:07 PM

    Any idea, which third party application can tell me which process is running on which cCPU ?

    Thanks



  • 9.  RE: Understand single threaded and multi threaded app

    Posted May 23, 2009 04:21 PM

    Have you tried the SysInternals Tools?

    http://technet.microsoft.com/en-us/sysinternals/default.aspx

    Andre

    **if you found this or any other answer useful please consider allocating points for helpful or correct answers