All of lore.kernel.org
 help / color / mirror / Atom feed
* View for virtual machine monitoring
@ 2013-07-09 18:32 Mohamad Gebai
       [not found] ` <1373394774.51dc57569fe05-AbLIzcVVHEexwLxtslwksLDks+cytr/Z@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Mohamad Gebai @ 2013-07-09 18:32 UTC (permalink / raw)
  To: linuxtools-dev-j9T/66MeVpFAfugRpC6u6w,
	lttng-dev-bnB2LGs2QVJ+nrgayQ7rhA

[-- Attachment #1: Type: text/plain, Size: 1801 bytes --]

Hello,
We are currently working on a new view in Eclipse's TMF plugin (Tracing and
Monitoring Framework) specific to virtual machine analysis. This view requires
kernel traces from the host and from each guest with a set of specific
tracepoints activated. The traces are then merged together and analysed in a
way that the real state of each system can be rebuilt, while taking into
account all the interactions between the different systems.

The main purpose of this view is to easily point out latency problems due to
resource sharing. For now, we only consider CPU time, but more resources (such
as memory allocation, disks...) will be added.

Two screenshots are attached. The first one shows the virtual machines and the
state of their respective virtual CPUs. The second screenshot gives in-depth
information about one of the virtual CPUs, showing only the threads that
interacted with this vCPU and their state during the time of the trace. We
think that this approach of showing information across the layers (OS, KVM,
guest OS, and eventually JVM...) can be helpful to investigate latency-related
problems specific to virtual machines.

Legend:
Green: user mode
Blue: kernel mode
Yellow: process blocked
Purple: vCPU preempted
Grey: vCPU idle

For the sake of our experience, we pinned vCPU0 of VM1 and vCPU0 of VM2 on the
same physical CPU, and ran a CPU-intensive workload for one second one each one
of them. We generated our traces using the low-overhead LTTng tracer. We can
clearly see that during that second, both of the virtual CPUs are fighting over
the same physical CPU.

We seek any thoughts or suggestions on the effectiveness of this view or on our
approach. Any real life problems waiting for investigation are also welcome.

Mohamad Gebai

[-- Attachment #2: screenshot_1.png --]
[-- Type: image/png, Size: 36963 bytes --]

[-- Attachment #3: screenshot_2.png --]
[-- Type: image/png, Size: 86040 bytes --]

[-- Attachment #4: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: View for virtual machine monitoring
@ 2013-07-09 19:12 Thibault, Daniel
  0 siblings, 0 replies; 8+ messages in thread
From: Thibault, Daniel @ 2013-07-09 19:12 UTC (permalink / raw)
  To: lttng-dev@lists.lttng.org; +Cc: Mohamad Gebai

----------------------------------------------------------------------
Date: Tue, 09 Jul 2013 14:32:54 -0400
From: Mohamad Gebai <mohamad.gebai@polymtl.ca>
To: linuxtools-dev@eclipse.org, lttng-dev@lists.lttng.org

> For the sake of our experience, we pinned vCPU0 of VM1 and vCPU0 of VM2 on the same physical CPU, and ran a CPU-intensive workload for one second one each one of them.
> We generated our traces using the low-overhead LTTng tracer. We can clearly see that during that second, both of the virtual CPUs are fighting over the same physical CPU.

   You should have said "and ran a CPU-intensive workload for one second on both of them simultaneously".  Otherwise you may be misconstrued as meaning you ran the workloads consecutively.  (The third sentence dispels this incorrect reading, but it's better to get the meaning across unambiguously the first time)

Daniel U. Thibault
Protection des systèmes et contremesures (PSC) | Systems Protection & Countermeasures (SPC)
Cyber sécurité pour les missions essentielles (CME) | Mission Critical Cyber Security (MCCS)
R & D pour la défense Canada - Valcartier (RDDC Valcartier) | Defence R&D Canada - Valcartier (DRDC Valcartier)
2459 route de la Bravoure
Québec QC  G3J 1X5
CANADA
Vox : (418) 844-4000 x4245
Fax : (418) 844-4538
NAC : 918V QSDJ <http://www.travelgis.com/map.asp?addr=918V%20QSDJ>
Gouvernement du Canada | Government of Canada
<http://www.valcartier.drdc-rddc.gc.ca/>

^ permalink raw reply	[flat|nested] 8+ messages in thread
[parent not found: <48CF5AC71E61DB46B70D0F388054EFFD13423326@VAL-E-02.valcartier.drdc-rddc.gc.ca>]

end of thread, other threads:[~2013-07-11 18:08 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-09 18:32 View for virtual machine monitoring Mohamad Gebai
     [not found] ` <1373394774.51dc57569fe05-AbLIzcVVHEexwLxtslwksLDks+cytr/Z@public.gmane.org>
2013-07-09 19:23   ` Aaron Spear
     [not found]     ` <77342852.21701313.1373397836659.JavaMail.root-pghWNbHTmq7QT0dZR+AlfA@public.gmane.org>
2013-07-09 20:28       ` Mohamad Gebai
     [not found]         ` <1373401690.51dc725a2c350-AbLIzcVVHEexwLxtslwksLDks+cytr/Z@public.gmane.org>
2013-07-09 20:43           ` Mohamad Gebai
2013-07-09 19:37   ` Alexandre Montplaisir
     [not found]     ` <51DC6662.8080807-GLOHREzkiE4oS2+YlJWNIQ@public.gmane.org>
2013-07-09 20:31       ` Mohamad Gebai
  -- strict thread matches above, loose matches on Subject: below --
2013-07-09 19:12 Thibault, Daniel
     [not found] <48CF5AC71E61DB46B70D0F388054EFFD13423326@VAL-E-02.valcartier.drdc-rddc.gc.ca>
2013-07-11 18:08 ` Mohamad Gebai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.