Facilitating access to memory locality domain information
Processing within a computing environment is facilitated by ascertaining locality domain information of a unit of memory to processing capability within the computing environment. Once ascertained, the locality domain information of the unit of memory may be cached in a data structure to facilitate one or more subsequent lookups of the locality domain information associated with one or more affinity evaluations of the unit of memory to processing capability of the computing environment.
1. A computer program product for facilitating processing within a computing environment, the computer program product comprising:
a computer readable storage medium readable by a processing circuit and storing instructions for performing a method comprising:
ascertaining locality domain information of a unit of memory to processing capability within the computing environment;
caching the locality domain information of the unit of memory in a data structure to facilitate one or more subsequent lookups of the locality domain information associated with one or more affinity evaluations of the unit of memory to the processing capability of the computing environment; and
wherein the caching comprises caching the locality domain information of the unit of memory in a translation lookaside buffer of the computing environment.
2. The computer program product of claim 1 , wherein the unit of memory is a virtual memory unit, and the ascertaining comprises translating the virtual memory unit to a real memory unit and using the real memory unit to fetch the locality domain information from a configuration array comprising system location information on physical components of the computing environment.
3. The computer program product of claim 1 , wherein the computing environment is a non-uniform memory access (NUMA) computing environment, and the locality domain information of the unit of memory to the processing capability comprises information identifying a particular processing domain of the NUMA computing environment to which the unit of memory has locality based affinity.
4. The computer program product of claim 1 , further comprising determining whether the unit of memory has locality affinity to a processing domain of a plurality of processing domains of the computing environment, the determining including retrieving the locality domain information of the unit of memory from the data structure for comparison to locality of the processing domain within the computing environment.
5. The computer program product of claim 4 , further comprising setting an indicator specifying local affinity when the locality domain information of the unit of memory matches the locality of the processing domain.
6. The computer program product of claim 4 , further comprising, based on the unit of memory having locality affinity to the processing domain, performing by the processing domain a garbage collection process on the unit of memory.
7. A computer system for facilitating processing within a computing environment, the computer system comprising:
a memory; and
a processor in communications with a memory, wherein the computer system is configured to perform a method, the method comprising:
ascertaining locality domain information of a unit of memory to processing capability within the computing environment;
caching the locality domain information of the unit of memory in a data structure to facilitate one or more subsequent lookups of the locality domain information associated with one or more affinity evaluations of the unit of memory to the processing capability of the computing environment; and
wherein the caching comprises caching the locality domain information of the unit of memory in a translation lookaside buffer of the computing environment.
8. The computer system of claim 7 , wherein the unit of memory is a virtual memory unit, and the ascertaining comprises translating the virtual memory unit to a real memory unit and using the real memory unit to fetch the locality domain information from a configuration array comprising system location information on physical components of the computing environment.
9. The computer system of claim 7 , wherein the computing environment is a non-uniform memory access (NUMA) computing environment, and the locality domain information of the unit of memory to the processing capability comprises information identifying a particular processing domain of the NUMA computing environment to which the unit of memory has locality based affinity.
10. The computer system of claim 7 , further comprising determining whether the unit of memory has locality affinity to a processing domain of a plurality of processing domains of the computing environment, the determining including retrieving the locality domain information of the unit of memory from the data structure for comparison to locality of the processing domain within the computing environment.
11. The computer system of claim 10 , further comprising, based on the unit of memory having locality affinity to the processing domain, performing by the processing domain a garbage collection process on the unit of memory.
12. A computer-implemented method of facilitating processing within a computing environment, the computer-implemented method comprising:
ascertaining locality domain information of a unit of memory to processing capability within the computing environment;
caching the locality domain information of the unit of memory in a data structure to facilitate one or more subsequent lookups of the locality domain information associated with one or more affinity evaluations of the unit of memory to the processing capability of the computing environment; and
wherein the caching comprises caching the locality domain information of the unit of memory in a translation lookaside buffer of the computing environment.
13. The computer-implemented method of claim 12 , wherein the computing environment is a non-uniform memory access (NUMA) computing environment, and the locality domain information of the unit of memory to the processing capability comprises information identifying a particular processing domain of the NUMA computing environment to which the unit of memory has locality based affinity.
14. The computer-implemented method of claim 12 , further comprising determining whether the unit of memory has locality affinity to a processing domain of a plurality of processing domains of the computing environment, the determining including retrieving the locality domain information of the unit of memory from the data structure for comparison to locality of the processing domain within the computing environment.
15. The computer-implemented method of claim 14 , further comprising, based on the unit of memory having locality affinity to the processing domain, performing by the processing domain a garbage collection process on the unit of memory.