13
OPW - Xen vNUMA OPW - outreach program for women Me – Elena - Linux kernel XenProject Intern vNUMA – virtual NUMA Xen – you know... was working on OPW all summer 2013, had fun and really enjoyed coding, best mentors in town + +

XPDS13: Gnome outreach - Destination Xen - Elena Ufimtseva

Embed Size (px)

DESCRIPTION

In this talk I plan to describe my first impression from working on open source project, how the community is organized and what can be gained by contributing to open source community. As a supporting fact of positive outcome from participating in similar projects, I will provide an example from my personal experience. It demonstrates how anyone can dive into open source development and work on project of choice. I introduce my work on virtual NUMA within XenProject and OPW program. It will demonstrate the challenges that newbie will face diving into mature development product and process, the necessity of discipline, commitment and self-organization. I will show what I had to learn in order to move forward, what I had to focus on and how to progress. The work what was done at this moment would not be possible without help of project mentors, source code knowledge, learning how to extract information from patches and ask right questions. I hope this example will bring more passionate developers into the community of open source software and hacking.

Citation preview

Page 1: XPDS13: Gnome outreach - Destination Xen - Elena Ufimtseva

OPW - Xen vNUMA

OPW - outreach program for women

Me – Elena - Linux kernel XenProject Intern

vNUMA – virtual NUMA

Xen – you know...was working on OPW all summer 2013, had fun and really enjoyed coding, best mentors in town

+ +

Page 2: XPDS13: Gnome outreach - Destination Xen - Elena Ufimtseva

Outreach program for women

Page 3: XPDS13: Gnome outreach - Destination Xen - Elena Ufimtseva

Mentors

OPW Mentors

Xen and kernelmentors

Page 4: XPDS13: Gnome outreach - Destination Xen - Elena Ufimtseva

NUMA and Linux

NUMA topology parsing NUMA aware scheduling

Automatic NUMA balancing libnuma

Page 5: XPDS13: Gnome outreach - Destination Xen - Elena Ufimtseva

Xen vNUMA

● 'enlighten' guest with vNUMA topology● performance in mind● let user decide on virtual topology

Page 6: XPDS13: Gnome outreach - Destination Xen - Elena Ufimtseva

pNUMA + vNUMA

A B CA B

BA A B C

VM 1 VM 2 VM 3

A B

A B

Physical NUMA nodesPhysical NUMA nodes

node1 node2

virtual NUMA nodes

Page 7: XPDS13: Gnome outreach - Destination Xen - Elena Ufimtseva

OPW internship

● OPW, Linux Foundation, XenProject● Meet my mentors● development community● Learn source code● Xen and kernel● vNUMA

Page 8: XPDS13: Gnome outreach - Destination Xen - Elena Ufimtseva

What was done

● Xen and Linux patches● Understand code● Comments from community● vNUMA in Xen rc 4.4

Page 9: XPDS13: Gnome outreach - Destination Xen - Elena Ufimtseva

name = "vm1"memory = 4096vcpus = 4vnodes = 2vnumamem = [2048, 2048]vdistance = [10, 20]vnuma_vcpumap =[1, 0, 1, 0]vnuma_vnodemap = [0, 1, 1, 0, 1, 1]

PV guest with vNUMA

Configure vNUMA topology

Or leave it automaticname = "vm2"memory = 4096vnodes = 2

Boot vNUMA aware guest

Page 10: XPDS13: Gnome outreach - Destination Xen - Elena Ufimtseva

name = "vm1"memory = 4096vcpus = 4vnodes = 2vnumamem = [2048, 2048]vdistance = [10, 20]vnuma_vcpumap =[1, 0, 1, 0]vnuma_vnodemap = [0, 1, 1, 0, 1, 1]

PV guest with vNUMAConfigure vNUMA topology Boot vNUMA aware guest

Page 11: XPDS13: Gnome outreach - Destination Xen - Elena Ufimtseva

What has to be done

● A lot! :)● Dom0/HVM NUMA awareness● Automatic NUMA balancing support● Performance evaluations● Heuristics/Statistics

Page 12: XPDS13: Gnome outreach - Destination Xen - Elena Ufimtseva

What I have learned

● Source code● Patches● Coding styles● Xen and para-virtual guests● Linux, booting, memory management

Page 13: XPDS13: Gnome outreach - Destination Xen - Elena Ufimtseva

Thank you

● Linux Foundation and GNOME● XenProject, Citrix, Oracle

● Xen project mentors and Linux Kernel Mentors

Dario Steffano GeorgeGeorge Konrad Sarah Greg