Skip to contentSkip to conversation

about the VM's memory distribution on numa nodes

DISCUSSION butian huang 2 participants 2 messages Apr 19, 2013 – Apr 22, 2013

lore
Share & tools
lore
#0 lore raw

hello Dario,

My question is about the virtual machine's memory distribution,I want to get the information from guest os. For example,when the VM has intalled the Win7 or Redhat,how to get the memory distribution? And if know this,then the application on the OS can optimize the performance and access the affinity node.

======= 2013-04-15 22:55:21 Dario wrote:=======

Quoted 32 lines · butian huang
Quoted 2 lines

hello,Dario

Hi,

Quoted 3 lines

How to know about the virtual machine's memory distribution?
That is,The virtual machine's memory may be distributed on multiple nodes,how to get the VM's memory information in distributed node?

Ok, from where, exactly, you want to know that? From host? From guest? At what level (hypervisor, toolstack, user space program running in host/guest)?

I have to admit that, in no one of the cases I tried to enumerate, we have a good method in place to gather that information, but answering (and, of course, implementing one) differs a lot in the various cases...

Right now, in the host, if you send Xen the 'u' debug key, and then check the console, you'll see just that. It can be achieved with something like this:

# xen debug-key u
# xen dmesg | tail

I really think we must make it easier to retrieve this kind of information, and I'll be up to make that happen ASAP. :-)

Quoted 2 lines

And How to move the VM's remote memory to the affinity node and guarantee to access the local memory?

That is something very difficult. I am working on it, and I released an RFC, with the basic architecture of the solution I'd like to have implemented in the coming months. It is here:

Quoted 12 lines

http://markmail.org/thread/m3d6f7m3iius6dad

Have a look, and feel free to comment! :-P

Regards,
Dario

Signature · 4 lines
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)

= = = = = = = = = = = = = = = = = = = =

Thanks,
Regards,
Butine huang
2013-04-19

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#1 lore raw
Quoted 2 lines · butian huang

hello Dario,

Hi,

Quoted 2 lines

My question is about the virtual machine's memory distribution,I want to get the information from guest os.

Ok, then the answer is: that is not possible. :-( Of course, this in only true because no one yet has implemented the set of features required for this to became true, it would be wonderful to receive some help with it! :-)

Quoted 3 lines

For example,when the VM has intalled the Win7 or Redhat,how to get the memory distribution? And if know this,then the application on the OS can optimize the performance and access the affinity node.

Exactly. See here:

http://wiki.xen.org/wiki/Xen_NUMA_Roadmap#Virtual_NUMA_topology_exposure_to_guests

If you have some time to spend on the issue, you're welcome to join the crew! If that is the case, feel free to ask me directly (xen-devel is of course fine, but no need to bother all the other people you're Cc-ing) for anything you need. :-)

Thanks and Regards,
Dario

Signature · 4 lines
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel