Assigning memory to chip-integrated coherence domains

The mechanism for assigning memory to chip-integrated coherence domains addresses inefficiencies in cache coherence by dynamically reallocating RAM, optimizing cache coherence based on application needs, thereby reducing administrative effort and improving efficiency.

DE112011100825B4Active Publication Date: 2024-10-24BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
DE112011100825
Authority / Receiving Office
DE · DE
Patent Type
Patents
Current Assignee / Owner
Priority Date
2010-05-26
Filing Date
2011-05-09
Publication Date
2024-10-24
Estimated Expiration
2031-05-09

AI Technical Summary

Technical Problem

Maintaining cache coherence in data processing systems with numerous cache stores is administratively demanding and inefficient, as not all applications require full coherence, leading to unnecessary complexity and resource overhead.

Method used

A mechanism for assigning memory to chip-integrated coherence domains, which includes assigning cache storage and RAM blocks to these domains, using dynamic or static methods, and maintaining an assignment table to manage cache coherence efficiently.

Benefits of technology

This approach reduces administrative effort by optimizing cache coherence based on application requirements, improving efficiency and resource utilization by dynamically reallocating RAM to coherence domains as needed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

Method in a data processing system for allocating memory to chip-integrated coherence domains (210, 215, 220), wherein the method comprises: Assigning cache memories (121, 122, 123, 124, 125, 126) in a chip of a processing unit (110) to a plurality of coherence domains (210, 215, 220); Allocating portions of memory (142, 144) to the multitude of coherence domains (210, 215, 220); Generating an allocation table (410) wherein the allocation table (410) maps each part of memory (142, 144) to an identifier of a coherence domain (210, 215, 220) to which it is assigned; in response to the generation of a cache miss by a cache memory (121, 122, 123, 124, 125, 126), search for an address of the cache miss in the mapping table (410) to identify a coherence domain (210, 215, 220); and Browsing cache stores (121, 122, 123, 124, 125, 126) within the identified coherence domain (210, 215, 220).
Need to check novelty before this filing date? Find Prior Art

Description

BACKGROUND

[0001] The present invention relates generally to an improved data processing apparatus and method, and more particularly to mechanisms for allocating memory to on-chip coherence domains.

[0002] In computing, cache coherence refers to the consistency of data stored in local caches of a shared resource. When client computers in a system maintain caches of a shared memory resource, problems with inconsistent data can arise. This is especially true for processing units in a multiprocessor system. Cache coherence is designed to manage such conflicts and maintain consistency between cache and main memory.

[0003] A data processing system can contain many processing units with many caches. Cache coherence becomes problematic as the number of caches increases. Coherence domains divide the caches and memory into domains. Each domain contains one or more caches and a range of memory. Coherence domains can have different levels of subdivision depending on the environment.

[0004] A coherence domain can contain multiple chips. In some data processing systems, a coherence domain can contain thousands of chips. Many data processing systems today have small coherence domains. Maintaining coherence incurs high overhead. Not every application requires cache coherence.

[0005] The document DE 10 2008 062 044 A1 describes an in-memory, intra-page directory cache coherence configuration. SUMMARY

[0006] According to claim 1, a method in a data processing system for allocating memory to on-chip coherency domains is provided. The method comprises allocating cache memories in a processing unit to a plurality of coherency domains, allocating portions of memory to the plurality of coherency domains, and generating a mapping table, the mapping table mapping each portion of memory to an identifier of a coherency domain to which it is assigned. The method further comprises, in response to a cache memory generating a cache miss, searching for an address of the cache miss in the mapping table to identify a coherency domain and browsing cache memories within the identified coherency domain.

[0007] In other illustrative embodiments, a computer program product is provided comprising a computer-usable or computer-readable medium embodying a computer-readable program. The computer-readable program, when executed on a computing device, causes the computing device to perform various of the operations outlined above with respect to the illustrative method embodiment, and combinations thereof.

[0008] In another illustrative embodiment, an apparatus is provided. The apparatus may include one or more processors and a memory connected to the one or more processors. The memory may include instructions that, when executed by the one or more processors, cause the one or more processors to perform various of the operations outlined above with respect to the illustrative embodiment of the method, and combinations thereof.

[0009] These and other features and advantages of the present invention are described in the following detailed description of the exemplary embodiments of the present invention or will become apparent to one skilled in the art in view of this description. BRIEF DESCRIPTION OF THE DIFFERENT VIEWS OF THE DRAWINGS

[0010] The invention, as well as a preferred embodiment and further objects and advantages thereof, will be best understood by reference to the following detailed description of illustrative embodiments when read in conjunction with the accompanying drawings. Fig. 1 is a block diagram illustrating an example computing environment having a coherence domain according to an illustrative embodiment; Fig. 2 is a block diagram illustrating an exemplary computing environment with multiple on-chip coherence domains according to an illustrative embodiment; Fig. 3 is a block diagram illustrating an example computing environment with static allocation of memory to multiple coherence domains, according to an illustrative embodiment; Fig. 4 is a block diagram illustrating an example computing environment with dynamic allocation of memory to multiple coherence domains according to an illustrative embodiment; Fig. 5 is a flowchart illustrating operation of a mechanism for allocating memory to on-chip cache coherence domains according to an illustrative embodiment; Fig. 6 is a flowchart illustrating the operation of a memory controller that handles a cache miss in dynamically allocated cache coherence domains according to an illustrative embodiment; and Fig. 7 is a block diagram of an exemplary data processing system in which aspects of the illustrative embodiments may be implemented. DETAILED DESCRIPTION

[0011] The illustrative embodiments provide a mechanism for allocating memory to on-chip cache coherence domains. The mechanism assigns cores and their associated caches within a processing unit to coherence domains. The mechanism then allocates blocks of memory to the coherence domains. The mechanism monitors applications running on cores within the processing unit and detects applications' requests. This can be accomplished through a variety of mechanisms, including, but not limited to, a change in the operating system so that applications that page more than other applications (e.g.,(Read data from disk or other secondary storage) allocates more memory; or a traffic-monitoring hardware component in a very busy memory controller that generates an exception and requests that the operating system allocate some of its memory to a less busy memory controller. The mechanism can then reallocate blocks of memory to the cache coherence domains based on the requirements of the applications running in the coherence domains.

[0012] When a cache miss occurs, the cache may generate a cache miss. A memory controller receives the cache miss. The memory controller, or whatever device houses the mapping table, can look up the address in a reference table that maps blocks of memory to cache coherence domains. After discovering the coherence domain, snoop requests are sent to caches within the coherence domain. Each cache determines whether it contains the cache line corresponding to the address. If a cache contains the cache line corresponding to the address, it returns the cache line either directly to the source cache or to the associated memory controller. If a cache line is returned to the memory controller, the memory controller returns the cache line to the source cache.If a cache line is not found in any cache within the coherence domain, the memory controller accesses memory to retrieve the cache line and then sends the cache line to the source cache.

[0013] Fig. Figure 1 shows a block diagram illustrating an exemplary computing environment with a coherence domain according to an illustrative embodiment. The processing unit 110 includes sixteen cores (core 0 to core 15) 111 to 116. Each core 111 to 116 has a corresponding cache memory 121 to 126. A core and its cache memories may be called a "chiplet." For example, core 0 111 and cache memory 121 form one chiplet, and core 1 112 and cache memory 122 form another chiplet. In the Fig. In the example shown in Figure 1, the processing unit 110 comprises sixteen chiplets. The cores 111 to 116 and their cache memories 121 to 126 exchange data with each other and with the memory controllers 132, 134 via the on-chip interconnect structure 140. The processing unit 110 may, for example, have four memory controllers.

[0014] Although the illustrated example shows a processing unit with sixteen cores, each with sixteen corresponding caches, and four memory controllers (MC 0 through MC 3), the processing unit may include more or fewer cores, more or fewer caches, or more or fewer memory controllers. Processing unit 110 may be embodied on a single chip. In an alternative embodiment, memory controllers 132, 134 may be located off-chip.

[0015] Memory controllers 132 and 134 provide access to memory 142 and 144, respectively. In one illustrative embodiment, the computing environment has a coherency domain. Thus, the coherency domain includes cores 111 to 116, caches 121 to 126, and all memory 142, 144. The more cores integrated into each chip of a processing unit, the greater the challenge of keeping all caches coherent within a chip—that is, maintaining one coherency domain per chip. Furthermore, many applications do not require all caches to be coherent with memory, which may result in simpler designs that maintain multiple coherency domains on each chip.

[0016] Fig. Figure 2 shows a block diagram illustrating an example computing environment with multiple on-chip coherence domains, according to an illustrative embodiment. In the depicted example, the computing environment is divided into eight coherence domains, each coherence domain comprising two cores with their corresponding caches. Thus, coherence domain 210 includes cores 111 and 112 and caches 121 and 122, and coherence domain 220 includes cores 115 and 116 and caches 125 and 126. Cores 111 and 112 execute applications in coherence domain 210, and cores 115 and 116 execute applications in coherence domain 220.

[0017] In this example, a mechanism must assign the memory locations 142, 144 to eight coherence domains, including the coherence domain 210 and the coherence domain 220. All memory locations are accessible by all cores.

[0018] Fig. Figure 3 shows a block diagram illustrating an example computing environment with static allocation of memory to multiple coherence domains according to an illustrative embodiment. This example shows coherence domains 210 and 220 as shown in Fig. 2 and the coherence domain 215, which contains the cache memories 123 and 124 corresponding to the cores 113 and 114, respectively.

[0019] In the example shown, a mechanism allocates a fixed amount of memory to each coherence domain. Thus, each coherence domain receives 1 / 8 of the accessible memory. As shown, portion 310 of memory 142 is allocated to coherence domain 210, portion 315 of memory 142 is allocated to coherence domain 215, and portion 320 of memory 144 is allocated to coherence domain 220.

[0020] According to an illustrative embodiment, a dynamic allocation mechanism is provided that allows arbitrary allocation of memory to coherence domains. The mechanism allocates memory to the coherence domains in the form of fixed-size "blocks" (e.g., 256 MB). The mechanism uses a mapping table. Each entry in the mapping table stores a coherence domain identifier for a corresponding memory block. The mechanism looks up each memory access in a mapping table so that the access is sent to the correct coherence domain. The mechanism can then browse caches within that coherence domain. The mapping table can be located in a memory controller, an on-chip interconnect structure, a cache, an external interface device, or another device that can detect memory accesses to a memory controller.The operating system or the virtualization layer within the data processing system sets up the mapping tables.

[0021] Fig. Figure 4 shows a block diagram illustrating an exemplary computing environment with dynamic allocation of memory to multiple coherence domains, according to an illustrative embodiment. The operating system or virtualization component executing in the computing environment establishes one or more allocation tables, such as allocation table 410, in memory controller 132. Each entry in allocation table 410 maps a memory block to a coherence domain identifier.

[0022] In step 1, core 14 or core 15 performs a store operation that results in a cache miss in one of the caches 125, 126 in the coherence domain 220. For example, cache 125 may generate a cache miss. Memory controller 132 receives the cache miss. In step 2, memory controller 132 looks up the memory block in the mapping table 410 to identify the associated coherence domain.

[0023] The memory controller 132 determines that the accessed memory block is located in the coherency domain 215.

[0024] Then, in step 3, the memory controller 132 sends a request to browse the caches 123, 124 in the coherence domain 215. The caches 123, 124 determine a response to the browse, as is known in the art. For example, the cache 123 may locate the cache line, determine that it is "dirty," meaning that the data in the cache line has been changed, change the label to "valid," and return the cache line to the cache 125 or the memory controller 132. In the latter case, the memory controller 132 in the above example would return the cache line to the cache 125.

[0025] Alternatively, caches 123, 124 may determine that the cache line is not present and indicate this in response to the browse. In this case, memory controller 132 accesses memory 142 in step 4 and returns the cache line to cache 125 in the example above. In an alternative embodiment, memory controller 132 may begin accessing memory 142 in parallel with browsing the caches of the identified coherence domain. Thus, memory controller 132 has already begun accessing memory if the browse does not result in the return of data.

[0026] Those skilled in the art will appreciate that the present invention may be embodied as a system, method, or computer program product. Accordingly, aspects of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, in-memory software, microcode, etc.), or an embodiment combining software and hardware aspects, all of which may be generally referred to herein as a "circuit," "module," or "system." Furthermore, aspects of the present invention may take the form of a computer program product embodied on one or more computer-readable media containing computer-usable program code.

[0027] Any combination of one or more computer-readable media may be used. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium may be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or unit, or any suitable combination thereof. More specific examples (a non-exhaustive list) of the computer-readable storage medium include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM).Flash memory), an optical fiber, a portable compact disk read-only memory (CDROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the context of this document, a computer-readable storage medium may be any physical medium that can contain or store a program used by or in connection with a system, apparatus, or device for executing instructions.

[0028] A computer-readable signal medium may include a propagated data signal with computer-readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated signal may take any of a variety of forms, including, but not limited to, electromagnetic, optical, or any suitable combination thereof. A computer-readable signal medium may be any computer-readable medium, other than a computer-readable storage medium, that can transmit, carry, or transport a program for use by or in connection with an instruction-executing system, apparatus, or device.

[0029] Computer code embodied on a computer-readable medium may be transmitted using any suitable medium, including, but not limited to, wireless, wired, fiber optic cable, radio frequency (RF), etc., or any suitable combination thereof. Computer program code for performing operations for aspects of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java™, Smalltalk™, C++, or the like, as well as conventional procedural programming languages ​​such as the "C" programming language or similar programming languages.The program code may run entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In the latter case, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, over the Internet using an Internet service provider).

[0030] Aspects of the present invention are described below with reference to flowcharts and / or block diagrams or functional diagrams of methods, apparatus (systems), and computer program products according to illustrative embodiments of the invention. It should be noted that each block of the flowcharts and / or block diagrams or diagrams, as well as combinations of blocks in the flowcharts and / or block diagrams or diagrams, may be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions executed via the processor of the computer or other programmable data processing apparatus provide a means for implementing the functions embodied in the block or diagram.generate the functions / steps defined in the blocks of the flow charts and / or the block diagrams or charts.

[0031] These computer program instructions may also be stored on a computer-readable medium that can direct a computer or other programmable data processing apparatus or devices to function in a particular manner such that the instructions stored on the computer-readable medium produce a product of manufacture, including instructions that implement the function / step specified in the block(s) of the flowchart and / or diagrams.

[0032] The computer program instructions may also be loaded onto a computer or other programmable data processing apparatus or devices to cause a series of process steps to be executed on the computer, other programmable device or devices to produce a computer-executed process, such that the instructions executing on the computer or other programmable device produce methods for implementing the functions / steps defined in the flowchart block(s) and / or block diagrams.

[0033] Fig. 5 shows a flowchart illustrating the operation of a mechanism for allocating memory to on-chip cache coherence domains, according to an illustrative embodiment. The mechanism may be embodied, for example, in the operating system or a virtualization component within the computing environment. The process begins, and the mechanism allocates cache memory to coherence domains on a chip of a processing unit (block 502). The mechanism then allocates blocks of memory to the coherence domains (block 504). The blocks of memory may be fixed-size portions of memory, for example, 256 MB blocks of memory. The mechanism creates one or more mapping tables to map the blocks of memory to the coherence domains (block 506).

[0034] According to the illustrative embodiment, the mechanism then monitors applications running on the cores of the processing unit chip to determine the memory usage by the cores in the coherence domain (block 508), using a method similar to that previously described or another suitable method. The mechanism determines whether the memory usage by the applications justifies a change in the allocation of memory to the coherence domains (block 510). If the mechanism determines that the application requirements do not justify a change in the allocation, the process returns to block 508 and monitors the applications.

[0035] If the mechanism determines at block 510 that memory usage by applications running on the cores of the coherence domain justifies a change in allocation, the mechanism reallocates blocks of memory to the coherence domains (block 512). The mechanism updates the allocation tables within the processing unit to reflect the allocation changes (block 514). Afterward, the process returns to block 508 and monitors the applications. In another embodiment, not all memory blocks are allocated to a coherence domain at block 504. Coherence domains may issue a request for unallocated memory blocks at block 510.

[0036] Fig. 6 shows a flowchart illustrating the operation of a memory controller handling a cache miss in dynamically allocated cache coherence domains according to an illustrative embodiment. The process begins, and the memory controller receives a cache miss (block 602). The memory controller looks up the address in a mapping table (block 604). The memory controller identifies a coherence domain corresponding to the memory block to which the address belongs (block 606). The memory controller then sends a request to browse the caches within the identified coherence domains (block 608).

[0037] The memory controller determines whether any of the caches in the coherence domain return a cache line to the source cache (block 610). If a cache returns a cache line, the operation ends. If a cache does not return a cache line at block 610, the memory controller accesses memory (block 614) and returns the cache line to the cache that generated the cache miss (block 612). The operation then ends.

[0038] The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of the systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowcharts or block diagrams may represent a module, segment, or portion of code comprising one or more executable instructions for performing the particular logical function(s). It should also be noted that in some alternative implementations, the functions specified in the block may occur in a different order than shown in the figures. For example, two blocks shown in succession may in reality execute substantially concurrently, or the blocks may sometimes execute in reverse order depending on the corresponding functionality.It is further to be understood that each block of the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by special purpose hardware-based systems that perform the specified functions or steps, or by combinations of special purpose hardware and computer instructions.

[0039] The illustrative embodiments may be used in many different types of computing environments, including a distributed computing environment, a single computing device, or the like. To provide context for describing the specific elements and functionality of the illustrative embodiments, Fig. 7 as an exemplary environment in which aspects of the illustrative embodiments may be implemented. Although the description according to Fig. 7 focuses primarily on implementation in a single computing device, this is merely an example and is not intended to state or imply any limitations on the functions of the present invention. To the contrary, the illustrative embodiments are intended to encompass distributed computing environments.

[0040] Fig. 7 shows a block diagram of an example data processing system in which aspects of the illustrative embodiments may be implemented. Data processing system 700 is an example of a computer in which computer-usable code or instructions may be located. In the depicted example, data processing system 700 uses a 3D-chip architecture including processing unit(s) 706, on-chip memory controller(s) 702, stacked main memory 708, on-chip input / output and interconnect controller (IOIC) 704, and external main memory 710.

[0041] The processing unit(s) 706 may, for example, be the processing cores 111 to 116 in the Fig. 1 to Fig. 4. The on-chip main memory 708 and the off-chip main memory 710 may be shared memory shared by a plurality of processing units. That is, the on-chip main memory 708 and the off-chip main memory 710 may be higher-level memories that complement the main memory in each processing unit 706. The stacked main memory 708 and the off-chip main memory 710 may, for example, be main memory 142 and 144, respectively, in the Fig. 1 to Fig. 4 act.

[0042] In the example shown, the local area network (LAN) adapter 712 is connected to the IOIC 704 via bus 738. The audio adapter 716, the keyboard and mouse adapter 720, the modem 722, the read-only memory (ROM) 724, the hard disk drive (HDD) 726, the CD-ROM drive 730, the universal serial bus (USB) and other data transfer ports 732, and the PCI / PCIe devices 734 are connected to the IOIC 704 via bus 738. PCI / PCIe devices can include, for example, Ethernet adapters, add-in cards, and PC cards for notebook computers. Unlike PCIe, PCI uses a card bus controller. The ROM 724 can be, for example, a Flash Basic Input / Output System (BIOS).

[0043] The HDD 726 and CD-ROM drive 730 are connected to the IOIC 704 via bus 738. The HDD 726 and CD-ROM drive 730 can use, for example, an IDE (Integrated Drive Electronics) or SATA (Serial Advanced Technology Attachment) interface. The Super I / O (SIO) unit 736 can be connected to the IOIC 704.

[0044] An operating system runs on the processing unit 706. The operating system coordinates and provides control of various components within the data processing system 700 in Fig. 7. For a client computer, the operating system may be a commercially available operating system such as Microsoft® Windows® XP (Microsoft and Windows are trademarks of Microsoft Corporation in the U.S. and / or other countries). An object-oriented programming system such as the Java™ programming system may run in conjunction with the operating system and provide calls to Java™ programs or applications running on the data processing system 700 to the operating system (Java is a trademark of Sun Microsystems, Inc. in the U.S. and / or other countries).

[0045] As a server, data processing system 700 may be, for example, an IBM® eServer™ System p® computer system executing the Advanced Interactive Executive (AlX®) operating system or the LINUX® operating system (eServer, System p, and AlX are trademarks of International Business Machines Corporation in the U.S. and / or other countries, while LINUX is a trademark of Linus Torvalds in the U.S. and / or other countries). Data processing system 700 may be a symmetric multiprocessor (SMP) system including a plurality of processors in processing unit 706. Alternatively, a single-processor system may be employed.

[0046] Storage devices such as HDD 726 contain instructions for the operating system, the object-oriented programming system, and applications or programs that can be loaded into main memory 708 for execution by processing unit 706. The processes of the illustrative embodiments of the present invention may be performed by processing unit 706 using computer-usable code that may be located in memory such as on-chip main memory 708, off-chip main memory 710, ROM 724, or one or more peripheral devices 726 or 730.

[0047] A bus system like the one in Fig. The bus 738 shown in Figure 7 may consist of one or more buses. Of course, the bus system may be implemented using any data transmission network or architecture that ensures the transmission of data between various components or units connected to the network or architecture. A data transmission unit such as the modem 722 or the network adapter 712 of Fig. 7 may contain one or more units used for sending and receiving data. For example, a working memory may be the on-chip main memory 708, the off-chip main memory 710, the ROM 724, or a memory controller such as the on-chip memory controller 702 in Fig. 7 contained cache memory.

[0048] A professional will understand that the Fig. 7 hardware may vary depending on the implementation. In addition to or instead of the hardware shown in the Fig.Other internal hardware or peripheral devices such as flash memory, equivalent non-volatile memory, or optical disk drives, and the like may be used in addition to the hardware depicted in Figure 7. Likewise, the processes of the illustrative embodiments may be applied to a multiprocessor data processing system other than the aforementioned SMP system without departing from the spirit and scope of the present invention.

[0049] Additionally, data processing system 700 may take the form of any of a variety of data processing systems, including client computing devices, server computing devices, a tablet computer, a laptop computer, a telephone or other data transmission device, a personal digital assistant (PDA), or the like. In some illustrative examples, data processing system 700 may, for example, be a portable computing device generally configured with flash memory to provide non-volatile memory for storing operating system files and / or user-generated data. Essentially, data processing system 700 may be any known or later developed data processing system without structural limitations.

[0050] Thus, the illustrative embodiments provide a mechanism for allocating memory to on-chip cache coherence domains. The mechanism allocates cache memory within a processing unit to coherence domains. The mechanism then allocates blocks of memory to the coherence domains. The mechanism monitors applications running on cores within the processing unit and detects applications' requests. The mechanism can then reallocate blocks of memory to the cache coherence domains based on the requests of the applications running in the coherence domains.

[0051] When a cache miss occurs, the cache may generate a cache miss. A memory controller receives the cache miss. The memory controller may look up the address in a lookup table that maps blocks of memory to cache coherence domains. After identifying the coherence domain, the memory controller sends browse requests to the caches within the coherence domain. If a cache line is found in a cache within the coherence domain, the cache that provided the cache line returns the cache line to the source cache, either directly or via the memory controller. If a cache line is not found in a cache within the coherence domain, the memory controller accesses memory to retrieve the cache line and then returns the cache line to the source cache.

[0052] As noted above, it should be understood that the illustrative embodiments may be implemented as an entirely hardware embodiment, an entirely software embodiment, or an embodiment that includes both hardware and software elements. In an exemplary embodiment, the mechanisms of the illustrative embodiments are implemented as software or program code, including, but not limited to, firmware, in-memory software, microcode, etc.

[0053] A data processing system suitable for storing and / or executing program code includes at least one processor connected directly or indirectly to storage elements via a system bus. The storage elements may include local memory used during actual execution of the program code, mass storage, and cache memory, which provide temporary storage of at least some program code to reduce the frequency with which code must be retrieved from the mass storage during execution.

[0054] Input / output (I / O) devices (including, but not limited to, keyboards, displays, pointing devices, etc.) can be connected to the system either directly or through shared I / O controllers. Network adapters can also be connected to the system to enable the computing system to connect to other computing systems or remote printers or storage devices via shared private or public networks. Modems, cable modems, and Ethernet cards are just a few of the types of network adapters currently available.

Claims

[1] A method in a data processing system for allocating memory to on-chip coherence domains (210, 215, 220), the method comprising: Assigning cache memories (121, 122, 123, 124, 125, 126) in a chip of a processing unit (110) to a plurality of coherence domains (210, 215, 220); Assigning portions of working memory (142, 144) to the plurality of coherence domains (210, 215, 220); Creating a mapping table (410), the mapping table (410) mapping each portion of the memory (142, 144) to an identifier of a coherence domain (210, 215, 220) to which it is assigned; in response to a cache memory (121, 122, 123, 124, 125, 126) generating a cache miss, searching for an address of the cache miss in the mapping table (410) to identify a coherence domain (210, 215, 220); and Browsing caches (121, 122, 123, 124, 125, 126) within the identified coherence domain (210, 215, 220). [2] The method of claim 1, further comprising: Monitoring applications running on processing cores (111, 112, 113, 114, 115, 116) in the chip of the processing unit (110) to determine the use of memory (142, 144) by the applications; and Reallocating the portions of memory (142, 144) to the plurality of coherence domains (210, 215, 220) based on the determined usage of memory (142, 144) by the applications. [3] The method of claim 2, further comprising: Updating the mapping table (410) to reflect the reassignment of the portions of the working memory (142, 144) to the plurality of coherence domains (210, 215, 220). [4] The method of claim 1, wherein the portions of the memory (142, 144) are fixed-size areas in the memory (142, 144). [5] The method of claim 1, further comprising: in response to a browse request, returning a cache line to the cache (121, 122, 123, 124, 125, 126) that generated the cache miss by a cache (121, 122, 123, 124, 125, 126) in the identified coherence domain (210, 215, 220). [6] The method of claim 1, further comprising: Accessing a portion of memory (142, 144) corresponding to the cache miss to receive a cache line; and Return the cache line to the cache (121, 122, 123, 124, 125, 126) that generated the cache miss. [7] A computer program product comprising a computer-readable storage medium having stored thereon a computer-readable program, the computer-readable program, when executed on a data processing device, causing the data processing device to perform the following: Assigning cache memories (121, 122, 123, 124, 125, 126) in a chip of a processing unit (110) to a plurality of coherence domains (210, 215, 220); Assigning portions of working memory (142, 144) to the plurality of coherence domains (210, 215, 220); and Creating a mapping table (410), the mapping table (410) mapping each portion of the memory (142, 144) to an identifier of a coherence domain (210, 215, 220) to which it is assigned; in response to a cache memory (121, 122, 123, 124, 125, 126) generating a cache miss, searching for an address of the cache miss in the mapping table (410) to identify a coherence domain (210, 215, 220); and Browsing caches (121, 122, 123, 124, 125, 126) within the identified coherence domain (210, 215, 220). [8] The computer program product of claim 7, wherein the computer readable program further causes the data processing unit to perform the following: Monitoring applications running on processing cores (111, 112, 113, 114, 115, 116) in the chip of the processing unit (110) to determine the use of memory (142, 144) by the applications; and Reallocating the portions of memory (142, 144) to the plurality of coherence domains (210, 215, 220) based on the determined usage of memory (142, 144) by the applications. [9] The computer program product of claim 8, wherein the computer readable program further causes the data processing unit to perform the following: Updating the mapping table (410) to reflect the reassignment of the portions of the working memory (142, 144) to the plurality of coherence domains (210, 215, 220). [10] The computer program product of claim 7, wherein the portions of the memory (142, 144) are fixed-size areas in the memory (142, 144). [11] The computer program product of claim 7, wherein the computer readable program is stored in a computer readable storage medium in a data processing system (700), and wherein the computer readable program was downloaded from a remote data processing system over a network. [12] The computer program product of claim 7, wherein the computer readable program is stored in a computer readable storage medium in a server data processing system, and wherein the computer readable program is downloaded over a network to a remote data processing system (700) for use in a computer readable storage medium with the remote system. [13] Chip of a processing unit (110) comprising: a multitude of processor cores; a plurality of cache memories (121, 122, 123, 124, 125, 126), wherein each processor core within the plurality of processor cores has a corresponding cache memory (121, 122, 123, 124, 125, 126) within the plurality of cache memories (121, 122, 123, 124, 125, 126); at least one memory controller, wherein the at least one memory controller provides access to a memory (142, 144), the memory (142, 144) comprising instructions that, when executed by a particular processor core within the plurality of processor cores, cause the particular processor core to perform the following: Assigning the plurality of cache memories (121, 122, 123, 124, 125, 126) to a plurality of coherence domains (210, 215, 220); Assigning portions of working memory (142, 144) to the plurality of coherence domains (210, 215, 220); Creating a mapping table (410), the mapping table (410) mapping each portion of the memory (142, 144) to an identifier of a coherence domain (210, 215, 220) to which it is assigned; wherein, in response to a cache (121, 122, 123, 124, 125, 126) within the plurality of caches (121, 122, 123, 124, 125, 126) generating a cache miss, the memory controller searches for an address of the cache miss in the mapping table (410) to identify a coherency domain (210, 215, 220) and send requests to browse caches within the identified coherency domain (210, 215, 220). [14] The processing unit chip (110) of claim 13, wherein the instructions further cause the particular processor core to perform: Monitoring applications running on processing cores (111, 112, 113, 114, 115, 116) in the processing unit chip to determine the use of memory (142, 144) by the applications; and Reallocating the portions of memory (142, 144) to the plurality of coherence domains (210, 215, 220) based on the determined usage of memory (142, 144) by the applications. [15] The processing unit chip (110) of claim 14, wherein the instructions further cause the particular processor core to perform: Updating the mapping table (410) to reflect the reassignment of the portions of the working memory (142, 144) to the plurality of coherence domains (210, 215, 220). [16] The processing unit chip (110) of claim 13, wherein the portions of the memory (142, 144) are fixed-size areas in the memory (142, 144). [17] The processing unit chip (110) of claim 13, wherein a cache (121, 122, 123, 124, 125, 126) in the identified coherence domain (210, 215, 220) returns a cache line to the cache (121, 122, 123, 124, 125, 126) that generated the cache miss in response to a browse request. [18] The processing unit chip (110) of claim 13, wherein the memory controller accesses a portion of the memory (142, 144) corresponding to the cache miss to receive a cache line and returns the cache line to the cache memory (121, 122, 123, 124, 125, 126) that generated the cache miss.

Citation Information

Patent Citations

  • 1in-memory, in-page directory cache coherency configuration

    DE102008062044A1