Specifications
Administration Guide
362 VMware, Inc.
where!<set>!comprises!CPU!numbers!on!a!single!NUMA!node.!This!entry!binds!
all!virtual!CPUs!in!this!virtual!machine!to!the!NUMA!node.
For!example,!typing!sched.cpu.affinity = 4,5,6,7!binds!this!virtual!machine!
to!the!NUMA!node!that!has!physical!CPUs!4!through!7.
See!“Editing!the!Virtual!Machine!Configuration!File”!on!page 337.
! procfs!interface!on!the!service!console
/proc/vmware/vm/<id>/cpu/affinity
Write!a!comma‐separated!list!of!the!CPU!numbers!on!a!single!NUMA!node.!See!
“Using!procfs”!on!page 339.
Associating Future Virtual Machine Memory Allocations with a NUMA
Node
You!can!improve!performance!by!specifying!that!all!future!memory!allocations!on!a!
virtual!machine!use!pages!associated!with!a!single!NUMA!node!(manual!memory!
affinity).!When!the!virtual!machine!uses!“local”!memory,!the!performance!improves!on!
this!virtual!machine.!(See!“Obtaining!NUMA!Statistics”!on!page 359!to!determine!the!
NUMA!node
!number.)
Do!one!of!the!following:
! VMware!Management!Interface!–!Associate!a!virtual!machine!to!a!single!NUMA!
node.!Click!Edit!in!the!Memory!Affinity!section!of!the!Memory!pane!for!the!
virtual!machine.!Click!the!appropriate!choices!next!to!the!NUMA!nodes!and!click!
OK.
See!“Managing!Memory!Resources!from!the!Management!Interface”!on!page 351.
! Virtual!machine!configuration!file!–!Add!the!following:
sched.mem.affinity = <NUMA_node>
where!<NUMA_node>!is!the!number!of!a!single!NUMA!node.!
N
OTE If!you!manually!set!CPU!affinity!using!one!of!the!preceding!options,!ESX!Server!sets!the!
virtual!machine’s!memory!to!be!allocated!on!the!same!NUMA!node.!To!disable!this!
feature,!change!the!NUMAAutoMemAffinity! configuration!option!to!0!(zero).!See!
“A d v a n c e d !Settings”!on!page 205.
NOTE Specify!nodes!to!be!used!for!future!memory!allocations!only!if!you!have!also!specified!
CPU!affinity.!If!you!make!manual!changes!only!to!the!memory!affinity!settings,!
automatic!NUMA!rebalancing!will!not!work!properly.