发明名称 |
Refreshing memory topology in virtual machine operating systems |
摘要 |
According to one aspect of the present disclosure a system and technique for refreshing memory topology in virtual machine operating systems is disclosed. The system includes a processor and logic executable by the processor to: responsive to receiving, by an operating system of a virtual machine, a notification of an affinity change relative to workload memory resources, poll a hypervisor for updated memory affinity data; determine, for each logical memory block of the workload memory resources, whether an affinity string for the respective logical memory block has changed; responsive to determining that the affinity string for the respective logical memory block has changed, identify a data structure of the logical memory block maintained by the operating system; and update affinity information in the data structure based on the change to the affinity string of the logical memory block. |
申请公布号 |
US9342342(B2) |
申请公布日期 |
2016.05.17 |
申请号 |
US201313833748 |
申请日期 |
2013.03.15 |
申请人 |
INTERNATIONAL BUSINESS MACHINES CORPORATION |
发明人 |
Aslot Vishal C.;Flores Arnold;Rogers Mark D. |
分类号 |
G06F9/46;G06F9/455;G06F12/02 |
主分类号 |
G06F9/46 |
代理机构 |
|
代理人 |
Baudino James L. |
主权项 |
1. A system, comprising:
a processor; and logic executable by the processor to:
responsive to receiving, by an operating system of a virtual machine, a notification of an affinity change relative to workload memory resources, poll a hypervisor for updated memory affinity data, the affinity data comprising an affinity string indicating one of a plurality of affinity domains, each affinity domain indicating a collection of logical memory blocks having a particular affinity level to the processor;identify, by parsing the affinity data, for each logical memory block of the workload memory resources, the affinity string of the respective logical memory block;determine whether the affinity string for the respective logical memory block has changed;responsive to determining that the affinity string for the respective logical memory block has changed, identify a data structure of the logical memory block maintained by the operating system;determine if an affinity domain exists for the data structure based on the affinity string;responsive to determining that the affinity domain does not exist for the data structure, allocate the affinity domain for the affinity string; andupdate affinity information in the data structure based on the change to the affinity string of the logical memory block. |
地址 |
Armonk NY US |