发明名称 Affinity group access to global data
摘要 A method, system, and computer readable medium to share data on a global basis within a symmetric multiprocessor (SMP) computer system are disclosed. The method may include grouping a plurality of processor cores into a plurality of affinity groups. Global data may be copied into a plurality of group data structures. Each group data structure may correspond to an affinity group. The method may read a first group data structure by a thread executing on a processor core associated with a first affinity group.
申请公布号 US9304921(B2) 申请公布日期 2016.04.05
申请号 US201313799056 申请日期 2013.03.13
申请人 International Business Machines Corporation 发明人 Jacobs Stuart Z.;Larson David A.
分类号 G06F12/00;G06F12/08;G06F9/00;G06F3/06 主分类号 G06F12/00
代理机构 代理人 Dobson Scott S.;Johnson Grant
主权项 1. An affinity group global data sharing symmetric multiprocessing (SMP) computer system, comprising: a plurality of affinity groups, each affinity group having a plurality of processor cores; a memory, communicatively coupled with the plurality of processor cores, wherein the memory contains global data accessible to the plurality of affinity groups and a hypervisor, the memory configured to: copy the global data from a global data structure into each of a plurality of group data structures in the memory, each group data structure corresponding to an affinity group of the plurality of affinity groups, the plurality of group data structures providing read access to the global data for threads executing on processor cores in the corresponding affinity group, the plurality of group data structures are duplicates of each other;read from a first of the plurality of group data structures corresponding to a first of the affinity groups, by a thread executing on a processor core, based on the first processor core being associated with the first of the affinity groups;determine to modify the global data;obtain, in response to the determining to modify the global data, a lock on the global data structure by the thread, wherein the lock on the global data structure prevents a different thread from updating the global data; andmodify, in response to the obtaining the lock and prior to modifying any of the plurality of group data structures based on the determining to modify the global data, the global data in the global data structure to create a modified global data.
地址 Armonk NY US