The present invention relates to the field of computers, and in particular, to a memory system, a memory module, a memory module access method, and a computer system.
Since the end of 1990s, the speed of a processor increases at a rate about 27% faster than that of a memory, so that a computer memory system gradually becomes a bottleneck restricting performance of the entire system, and a “memory wall” also gradually appears. Performance indexes of a memory system mainly are a memory bandwidth and a memory delay. For a memory delay, a reasonable request scheduling policy may be adopted according to a sensitivity level of a different request to a delay to weaken the influence of an access delay on application performance. However, as a request pressure of an application on a memory is continuously increased, a restriction of a memory bandwidth is highlighted. A “memory bandwidth wall” phenomenon summarizes a restriction of a bandwidth of an existing memory system on performance of the entire system.
One or more memory channels may exist in a conventional memory system, these memory channels are managed by a memory controller, each memory channel may support one or more memory slots, a memory module and a memory chip are mounted on each memory slot, an interactive path exists between the memory controller and a memory channel, and between the memory channel and the memory module, and different memory channels and memory modules are independent from each other. In the foregoing conventional memory system, if memory requests are centralized on a certain memory channel, an unbalanced phenomenon that a single memory channel is busy while other memory channels are idle occurs in the memory system.
Additionally, a memory channel and a memory controller comply with a synchronous DDR (Double Data Rate) protocol and a time sequence constraint. When a current idle memory module is constrained by a time sequence, the current idle memory module cannot receive a command or transmit data. When a next request accesses the memory module, the memory module cannot return data in time. In this way, an idle phenomenon may occur on a data bus, thereby causing waste of a memory bandwidth resource.
Under the background of the “memory bandwidth wall”, a memory bandwidth belongs to a valuable resource, and waste of a bandwidth seems very regrettable. How to improve an effective utilization rate of the memory bandwidth is an important challenge to alleviate a memory system bottleneck.
A main idea of an existing technology for exploring a memory system bandwidth resource is to allocate requests uniformly to each memory channel, each rank, or even each bank, thereby improving a concurrency level of request processing. A high request concurrency level means that requests can be processed simultaneously on a plurality of memory channels, thereby reducing an idle ratio of a memory bus and waste of a memory bandwidth resource. If a memory address is given, a physical location (such as a memory channel number, a rank number, and a bank number) corresponding to the memory address is decided by an address mapping manner of a memory controller. Therefore, a memory address mapping technology directly decides the magnitude of a request parallelism degree. A current memory address mapping technology improves a concurrency level of a memory system by modifying a memory address mapping manner, thereby improving a memory bandwidth utilization rate. However, a modification of the memory address mapping manner depends on a characteristic of an application. A large difference may exist between characteristics of different applications and characteristics of a same application in different periods of time, so that efficiency of modifying the memory address mapping manner is low. Furthermore, the method is applicable to only part of applications, and a certain limitation exists.
Embodiments of the present invention provide a memory system, a memory module, a memory module access method, and a computer system, so as to improve a memory channel utilization rate, and alleviating a memory system bottleneck to a certain extent.
In order to achieve the foregoing objectives, the embodiments of the present invention provide the following technical solutions.
In a first aspect, an embodiment of the present invention provides a memory system, and the memory system includes: a first memory module and a second memory module, where the first memory module is provided with a first memory channel interface, and connected to a first memory channel through the first memory channel interface; the second memory module is provided with a second memory channel interface, and connected to a second memory channel through the second memory channel interface; and the first memory module and the second memory module each are further provided with a first inter-memory-module interconnection interface, and the first inter-memory-module interconnection interface of the first memory module and the first inter-memory-module interconnection interface of the second memory module are connected.
In combination with the first aspect, in a first implementation manner, the first memory module is configured to receive or send access data for the memory system through the second memory channel and a connection between the first inter-memory-module interconnection interface of the first memory module and the first inter-memory-module interconnection interface of the second memory module; and receive or send access data for the memory system through the first memory channel.
In combination with the first implementation manner of the first aspect, in a second implementation manner, the access data for the memory system includes one or more of the following: an access request for the first memory module, response data or association data of the access request for the first memory module, an access request for the second memory module, and response data or association data of the access request for the second memory module.
In combination with the first aspect or the first implementation manner of the first aspect or the second implementation manner of the first aspect, in a third implementation manner, the first memory module includes a first memory management unit and at least one storage unit, where the first memory management unit is connected to the first inter-memory-module interconnection interface, the first memory channel interface, and the storage unit, and the first memory management unit is configured to: receive access data through the first memory channel interface; determine, according to the access data, whether a destination memory module of the access data is the first memory module; send the access data to the second memory module through the first inter-memory-module interconnection interface, if the destination memory module of the access data is not the first memory module; and determine, according to the access data, a destination storage unit associated with the access data, if the destination memory module of the access data is the first memory module, and execute an operation on the destination storage unit according to the access data, where the destination storage unit is one or more of storage units of the first memory module.
In combination with the third implementation manner of the first aspect, in a fourth implementation manner, the first memory management unit is further configured to: receive access data through the first inter-memory-module interconnection interface, and determine a destination storage unit associated with the access data; and execute an operation on the destination storage unit according to the access data.
In combination with the first implementation manner of the first aspect, in a fifth implementation manner, the memory system further includes a third memory module, where the third memory module is provided with a third channel interface, and the third memory module is connected to a third memory channel through the third channel interface; the first memory module and the third memory module each are further provided with a second inter-memory-module interconnection interface, and the second-inter-memory-module interconnection interface of the first memory module and the second-inter-memory-module interconnection interface of the third memory module are connected; and the first memory module is further configured to receive or send access data for the memory system through the third memory channel and a connection between the second inter-memory-module interconnection interface of the first memory module and the second inter-memory-module interconnection interface of the third memory module.
In combination with the fifth implementation manner of the first aspect, in a sixth implementation manner, the access data for the memory system includes one or more of the following: an access request for the first memory module, response data or association data of the access request for the first memory module, an access request for the second memory module, response data or association data of the access request for the second memory module, an access request for the third memory module, and response data or association data of the access request for the third memory module.
In combination with the fifth implementation manner of the first aspect or the sixth implementation manner of the first aspect, in a seventh implementation manner, the first memory module includes a first memory management unit and at least one storage unit, where the first memory management unit is connected to the first inter-memory-module interconnection interface, the second inter-memory-module interconnection interface, the first memory channel interface, and the storage unit, and the first memory management unit is configured to: receive access data through the first memory channel interface; determine, according to the access data, whether a destination memory module of the access data is the first memory module; determine, according to correspondence between a destination address of the access data and the inter-memory-module interconnection interface, an inter-memory-module interconnection interface corresponding to the access data, if the destination memory module of the access data is not the first memory module; send the access data to the second memory module through the first inter-memory-module interconnection interface, if the inter-memory-module interconnection interface corresponding to the access data is the first inter-memory-module interconnection interface; send the access data to the third memory module through the second inter-memory-module interconnection interface, if the inter-memory-module interconnection interface corresponding to the access data is the second inter-memory-module interconnection interface; and determine, according to the access data, a destination storage unit associated with the access data, if the destination memory module of the access data is the first memory module, and execute an operation on the destination storage unit according to the access data, where the destination storage unit is one or more of storage units of the first memory module.
In a second aspect, an embodiment of the present invention provides a memory module, where the memory module is provided with a memory channel interface and a first inter-memory-module interconnection interface, the memory module includes a memory management unit and at least one storage unit, and the memory management unit is connected to the memory channel interface, the first inter-memory-module interconnection interface, and the storage unit; the memory channel interface is configured to connect to a memory channel; the memory management unit is configured to receive or send access data through the memory channel interface and the memory channel connecting to the memory channel interface; the first inter-memory-module interconnection interface is configured to connect to a first memory module other than the memory module; and the memory management unit is further configured to send or receive access data through the first inter-memory-module interconnection interface and a connection between the memory module and the first memory module.
In combination with the second aspect, in a first implementation manner, the access data includes one or more of the following: an access request for the memory module, response data or association data of the access request for the memory module, an access request for the first memory module, and response data or association data of the access request for the first memory module.
In combination with the second aspect or the first implementation manner of the second aspect, in a second implementation manner, the memory management unit is specifically configured to: receive access data through the memory channel interface and the memory channel; determine, according to the access data, whether a destination memory module of the access data is a current memory module; send the access data to the first memory module through the first inter-memory-module interconnection interface, if the destination memory module of the access data is not the current memory module; and determine, according to the access data, a destination storage unit associated with the access data, if the destination memory module of the access data is the current memory module, and execute an operation on the destination storage unit according to the access data, where the destination storage unit is one or more of storage units of the current memory module.
In combination with the second implementation manner of the second aspect, in a third implementation manner, the memory management unit is further configured to: receive access data through the first inter-memory-module interconnection interface and the connection between the memory module and the first memory module, and determine a destination storage unit associated with the access data; and execute an operation on the destination storage unit according to the access data.
In combination with the second aspect, in a fourth implementation manner, the memory module is further provided with a second inter-memory-module interconnection interface, and the memory management unit is further connected to the second inter-memory-module interconnection interface; the second inter-memory-module interconnection interface is configured to connect to a second memory module other than the memory module and the first memory module; and the memory management unit is further configured to receive or send access data through the second inter-memory-module interconnection interface and a connection between the memory module and the second memory module.
In combination with the fourth implementation manner of the second aspect, in a fifth implementation manner, the access data includes one or more of the following: an access request for the memory module, response data or association data of the access request for the memory module, an access request for the first memory module, response data or association data of the access request for the first memory module, an access request for the second memory module, and response data or association data of the access request for the second memory module.
In combination with the fourth implementation manner of the second aspect or the fifth implementation manner of the second aspect, in a sixth implementation manner, the memory management unit is specifically configured to: receive access data through the memory channel interface; determine, according to the access data, whether a destination memory module of the access data is a current memory module; determine, according to correspondence between a destination address of the access data and the inter-memory-module interconnection interface, an inter-memory-module interconnection interface corresponding to the access data, if the destination memory module of the access data is not the current memory module; send the access data to the first memory module through the first inter-memory-module interconnection interface, if the inter-memory-module interconnection interface corresponding to the access data is the first inter-memory-module interconnection interface; send the access data to the second memory module through the second inter-memory-module interconnection interface, if the inter-memory-module interconnection interface corresponding to the access data is the second inter-memory-module interconnection interface; and determine, according to the access data, a destination storage unit associated with the access data, if the destination memory module of the access data is the current memory module, and execute an operation on the destination storage unit according to the access data, where the destination storage unit is one or more of storage units of the current memory module.
In combination with the sixth implementation manner of the second aspect, in a seventh implementation manner, the memory management unit is further configured to: receive access data through the first inter-memory-module interconnection interface; determine, according to the access data, whether a destination memory module of the access data is a current memory module; send the access data to the second memory module through the second inter-memory-module interconnection interface, if the destination memory module of the access data is not the current memory module; and determine, according to the access data, a destination storage unit associated with the access data, if the destination memory module of the access data is the current memory module, and execute an operation on the destination storage unit according to the access data, where the destination storage unit is one or more of storage units of the current memory module.
In a third aspect, an embodiment of the present invention provides a memory module access method, where the access method includes: receiving a read request through an inter-memory-module interconnection interface, where the inter-memory-module interconnection interface is configured to connect to a memory module other than a current memory module; determining, according to the read request, a destination storage unit associated with the read request, where the destination storage unit is one or more of storage units included in the memory module; reading data stored in the destination storage unit as response data of the read request; and sending the response data of the read request through the inter-memory-module interconnection interface or through a memory channel interface on the memory module.
In combination with the third aspect, in a first implementation manner, when the number of inter-memory-module interconnection interfaces is two or more than two, after the step of receiving a read request through an inter-memory-module interconnection interface, where the inter-memory-module interconnection interface is configured to connect to a memory module other than a current memory module, the method further includes: determining, according to the read request, whether a destination memory module of the read request is the current memory module; sending the read request to another memory module through an inter-memory-module interconnection interface associated with the read request, if the destination memory module of the read request is not the current memory module; and executing the step of determining, according to the read request, a destination storage unit associated with the read request, if the destination memory module of the read request is the current memory module.
In combination with the first implementation manner of the third aspect, in a second implementation manner, the determining, according to the read request, whether a destination memory module of the read request is the current memory module specifically includes: determining whether a destination address of the read request belongs to an address space of the current memory module; or, determining whether a destination address of the read request is an address of the current memory module.
In combination with the first implementation manner of the third aspect or the second implementation manner of the third aspect, in a third implementation manner, the sending the read request to another memory module through an inter-memory-module interconnection interface associated with the read request, if the destination memory module of the read request is not the current memory module specifically includes: querying a routing table of the current memory module according to the destination address of the read request and obtaining an identifier of an inter-memory-module interconnection interface associated with the destination address of the read request, if the destination memory module of the read request is not the current memory module; and sending the read request to the another memory module through an inter-memory-module interconnection interface corresponding to the identifier of the inter-memory-module interconnection interface, where the routing table stores correspondence between an identifier of an inter-memory-module interconnection interface of the current memory module and an address of another memory module connected to the current memory module.
In combination with the first implementation manner of the third aspect or the second implementation manner of the third aspect, in a fourth implementation manner, the sending the read request to another memory module through an inter-memory-module interconnection interface associated with the read request, if the destination memory module of the read request is not the current memory module specifically includes: obtaining an identifier of an inter-memory-module interconnection interface from the destination address of the read request, if the destination memory module of the read request is not the current memory module; and sending the read request to the another memory module through an inter-memory-module interconnection interface corresponding to the identifier of the inter-memory-module interconnection interface.
In combination with the third aspect, in a fifth implementation manner, the method further includes: receiving a write request through an inter-memory-module interconnection interface; receiving association data of the write request through the inter-memory-module interconnection interface; or, receiving association data of the write request through a memory channel interface of the memory module; determining, according to the write request, a destination storage unit associated with the write request; and writing the association data of the write request into the destination storage unit.
In combination with the fifth implementation manner of the third aspect, in a sixth implementation manner, when the number of inter-memory-module interconnection interfaces is two or more than two, after the step of receiving a write request through an inter-memory-module interconnection interface, the method further includes: determining, according to the write request, whether a destination memory module of the write request is the current memory module; sending the write request and the association data of the write request to another memory module through an inter-memory-module interconnection interface associated with the write request, if the destination memory module of the write request is not the current memory module; and executing the step of receiving association data of the write request through the inter-memory-module interconnection interface, if the destination memory module of the write request is the current memory module; or, executing the step of receiving association data of the write request through a memory channel interface of the memory module.
In a fourth aspect, an embodiment of the present invention provides a memory module access method, where the access method includes: receiving an access request through a memory channel interface of a memory module; determining, according to the access request, whether a destination memory module of the access request is a current memory module; and sending the access request to another memory module through an inter-memory-module interconnection interface that is of the current memory module and is associated with the access request, if the destination memory module of the access request is not the current memory module.
In combination with the fourth aspect, in a first implementation manner, the determining, according to the access request, whether a destination memory module of the access request is a current memory module specifically includes: determining whether a destination address of the access request belongs to an address space of the current memory module; or, determining whether a destination address of the access request is an address of the current memory module.
In combination with the fourth aspect or the first implementation manner of the fourth aspect, in a second implementation manner, the sending the access request to another memory module through an inter-memory-module interconnection interface that is of the current memory module and is associated with the access request, if the destination memory module of the access request is not the current memory module specifically includes: querying a routing table of the current memory module according to the destination address of the access request and obtaining an identifier of an inter-memory-module interconnection interface associated with the destination address of the access request, if the destination memory module of the access request is not the current memory module; and sending the access request to the another memory module through an inter-memory-module interconnection interface corresponding to the identifier of the inter-memory-module interconnection interface, where the routing table stores correspondence between an identifier of an inter-memory-module interconnection interface of the current memory module and an address of another memory module connected to the current memory module.
In combination with the fourth aspect or the first implementation manner of the fourth aspect, in a third implementation manner, the sending the access request to another memory module through an inter-memory-module interconnection interface that is of the current memory module and is associated with the access request, if the destination memory module of the access request is not the current memory module specifically includes: obtaining an identifier of an inter-memory-module interconnection interface from the destination address of the access request, if the destination memory module of the access request is not the current memory module; and sending the access request to the another memory module through an inter-memory-module interconnection interface corresponding to the identifier of the inter-memory-module interconnection interface.
In a fifth aspect, an embodiment of the present invention provides a memory module access control method, where the method includes: when a destination address of an access request received by a memory controller is located at a first memory module and a first memory channel accessing the first memory module is busy, sending, by the memory controller, the access request to the first memory module through a second memory channel accessing a second memory module, a second inter-memory-module interconnection interface that is of the second memory module and is configured to connect to the first memory module, and a connection between the second memory module and the first memory module through the second inter-memory-module interconnection interface.
In combination with the fifth aspect, in a first implementation manner, the method further includes: when the destination address of the access request received by the memory controller is located at the second memory module and the second memory channel accessing the second memory module is busy, sending, by the memory controller, the access request to the second memory module through the first memory channel accessing the first memory module, a first inter-memory-module interconnection interface that is of the first memory module and is configured to connect to the second memory module, and a connection between the first memory module and the second memory module through the first inter-memory-module interconnection interface.
In a sixth aspect, an embodiment of the present invention provides a computer system, and the computer system includes: at least one memory controller, a first memory module, and a second memory module, where the memory modules are connected to the memory controller; the first memory module is provided with a first memory channel interface, and connected to a first memory channel through the first memory channel interface; the second memory module is provided with a second memory channel interface, and connected to a second memory channel through the second memory channel interface, the first memory module is connected to the memory controller through the first memory channel, and the second memory module is connected to the memory controller through the second memory channel; and the first memory module and the second memory module each are further provided with a first inter-memory-module interconnection interface, and the first inter-memory-module interconnection interface of the first memory module and the first inter-memory-module interconnection interface of the second memory module are connected.
In combination with the sixth aspect, in a first implementation manner, the first memory module is configured to receive or send access data through the second memory channel and a connection between the first inter-memory-module interconnection interface of the first memory module and the first inter-memory-module interconnection interface of the second memory module; and receive or send access data through the first memory channel.
In combination with the first implementation manner of the sixth aspect, in a second implementation manner, the access data includes one or more of the following: an access request for the first memory module, response data or association data of the access request for the first memory module, an access request for the second memory module, and response data or association data of the access request for the second memory module.
In combination with the sixth aspect or the first implementation manner of the sixth aspect or the second implementation manner of the sixth aspect, in a third implementation manner, the first memory module includes a first memory management unit and at least one storage unit, where the first memory management unit is connected to the first inter-memory-module interconnection interface, the first memory channel interface, and the storage unit, and the first memory management unit is configured to: receive access data through the first memory channel interface; determine, according to the access data, whether a destination memory module of the access data is the first memory module; send the access data to the second memory module through the first inter-memory-module interconnection interface, if the destination memory module of the access data is not the first memory module; and determine, according to the access data, a destination storage unit associated with the access data, if the destination memory module of the access data is the first memory module, and execute an operation on the destination storage unit according to the access data, where the destination storage unit is one or more of storage units of the first memory module.
In combination with the third implementation manner of the sixth aspect, in a fourth implementation manner, the first memory management unit is further configured to: receive access data through the first inter-memory-module interconnection interface, and determine a destination storage unit associated with the access data; and execute an operation on the destination storage unit according to the access data.
In combination with the first implementation manner of the sixth aspect, in a fifth implementation manner, the system further includes a third memory module, where the third memory module is provided with a third channel interface, and the third memory module is connected to a third memory channel through the third channel interface; the first memory module and the third memory module each are further provided with a second inter-memory-module interconnection interface, and the second inter-memory-module interconnection interface of the first memory module and the second inter-memory-module interconnection interface of the third memory module are connected; and the first memory module is further configured to receive or send access data for the memory system through the third memory channel and a connection between the second inter-memory-module interconnection interface of the first memory module and the second inter-memory-module interconnection interface of the third memory module.
In combination with the fifth implementation manner of the sixth aspect, in a sixth implementation manner, the access data includes one or more of the following: an access request for the first memory module, response data or association data of the access request for the first memory module, an access request for the second memory module, response data or association data of the access request for the second memory module, an access request for the third memory module, and response data or association data of the access request for the third memory module.
In combination with the fifth implementation manner of the sixth aspect or the sixth implementation manner of the sixth aspect, in a seventh implementation manner, the first memory module includes a first memory management unit and at least one storage unit, where the first memory management unit is connected to the first inter-memory-module interconnection interface, the second inter-memory-module interconnection interface, the first memory channel interface, and the storage unit, and the first memory management unit is configured to: receive access data through the first memory channel interface; determine, according to the access data, whether a destination memory module of the access data is the first memory module; determine, according to correspondence between a destination address of the access data and the inter-memory-module interconnection interface, an inter-memory-module interconnection interface corresponding to the access data, if the destination memory module of the access data is not the first memory module; send the access data to the second memory module through the first inter-memory-module interconnection interface, if the inter-memory-module interconnection interface corresponding to the access data is the first inter-memory-module interconnection interface; and send the access data to the third memory module through the second inter-memory-module interconnection interface, if the inter-memory-module interconnection interface corresponding to the access data is the second inter-memory-module interconnection interface; and determine, according to the access data, a destination storage unit associated with the access data, if the destination memory module of the access data is the first memory module, and execute an operation on the destination storage unit according to the access data, where the destination storage unit is one or more of storage units of the first memory module.
In combination with the sixth aspect or the first implementation manner of the sixth aspect or the second implementation manner of the sixth aspect or the third implementation manner of the sixth aspect or the fourth implementation manner of the sixth aspect, in an eighth implementation manner, the first memory channel is connected to a first memory controller, and the second memory channel is connected to a second memory controller.
In combination with the eighth implementation manner of the sixth aspect, in a ninth implementation manner, the first memory controller is connected to a first processor, and the second memory controller is connected to a second processor; or, the first memory controller is built in a first processor, and the second memory controller is built in a second processor.
In combination with the ninth implementation manner of the sixth aspect, in a tenth implementation manner, the first processor is disposed on a first board, and the second processor is disposed on a second board.
In combination with the ninth implementation manner of the sixth aspect or the tenth implementation manner of the sixth aspect, in an eleventh implementation manner, the first processor and the second processor run different operating systems separately.
It can be known from the foregoing technical solutions that, in the embodiments of the present invention, one or more inter-memory-module interconnection interfaces are added into a memory module, so that a plurality of memory modules in a memory system that separately belong to different memory channels can establish a communication connection through the inter-memory-module interconnection interface, and further, a memory module in the memory system can be accessed by a plurality of memory channels simultaneously. When a load of a certain memory channel is excessively large, accessing a memory module on the memory channel with an excessively large load through another memory channel with a lighter load is implemented, so that a problem that memory channel loads are unbalanced is solved to a certain extent, and a memory channel utilization rate is effectively improved.
To describe the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings required for describing the embodiments of the present invention.
a is a schematic diagram of a logic structure of another memory system according to an embodiment of the present invention;
b is a schematic diagram of a logic structure of another memory system according to an embodiment of the present invention;
c is a schematic diagram of a logic structure of another memory system according to an embodiment of the present invention;
a is a schematic diagram of a logic structure of a memory module according to an embodiment of the present invention;
b is a schematic diagram of a logic structure of another memory module according to an embodiment of the present invention;
a to
a is a schematic diagram of a local logic structure of a computer system according to an embodiment of the present invention;
b is a schematic diagram of a local logic structure of another computer system according to an embodiment of the present invention;
To make the objectives, technical solutions, and advantages of the embodiments of the present invention more comprehensible, the following clearly describes the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention.
To better understand the technical solutions of the present invention, some technical terms in the embodiments of the present invention are introduced first. A CPU (Central Processing Unit) mentioned in the embodiments of the present invention is one type of processor, and the processor may also be an ASIC (Application Specific Integrated Circuit), or be configured as one or more integrated circuits for implementing the embodiments of the present invention. Persons skilled in the art may understand that, other implementation manners of the processor may also replace the CPU in the embodiments of the present invention.
A memory controller is an important component for controlling a memory module (or referred to as a memory) and enabling the memory and the processor to exchange data between each other through the memory controller in a computer system. Currently, it is popular that a memory controller is embedded into a CPU, but it may also be that the memory controller and the CPU are implemented separately, and the two communicate through a connection.
A memory module is used to store running data of a processor (such as a CPU), and one memory module generally includes one or more storage units (or referred to as memory chips). A memory channel interface is an interface that is on a memory module and is used to connect to a memory channel. A memory channel is a channel through which a memory module and a memory controller are connected. Generally, one or more memory modules are connected to a memory channel through a memory channel interface, and further connected to a memory controller through the memory channel. Unless explicitly specified, types of the memory channel interface and the memory channel and a transport protocol to be complied with are not limited in the embodiments of the present invention.
Several types of frequently-used memory modules are exemplified in the following. A DIMM (Dual Inline Memory Module) is a new memory module emerging after the Pentium CPU is launched, and the DIMM provides a 64-bit data channel, so that the DIMM can be used in a single piece on a Pentium mainboard, a slot of the DIMM is longer than that of an SIMM (single in-line memory module), and furthermore, the DIMM also supports a new 168-pin EDORAM (Extended Data Output RAM) memory. A DRAM (Dynamic Random Access Memory) is a most common memory chip, and one DIMM or SIMM may include one or more DRAMs. A DRAM can maintain data only for a very short time. In order to maintain data, the DRAM performs storage by using a capacitor, and therefore, refreshing has to be done once at intervals, and if a storage unit is not refreshed, stored information is lost. Data stored in the DRAM is also lost after power-off or power-down. An NVM (Non-Volatile Memory) is another storage particle that may serves as a memory chip, and one DIMM or SIMM may include one or more NVMs. The NVM is generally used to store a program and data, and its characteristic is different from a characteristic of the DRAM, data stored in the NVM is not lost after power-off or power-down.
Additionally, it should be noted that, the “connection” in the embodiments of the present invention refers to a communication connection between two or more than two virtual modules, between two or more than two physical modules, or between a physical module and a virtual module, and its specific implementation may be one or more communication lines or signal lines. Unless explicitly specified, the “connection” may be a direct connection, may be a connection through an interface or a port, and may also be a connection through another virtual module or physical module. In the embodiments of the present invention, unless explicitly specified, the “first” and the “second” are used only for the purpose of distinguishing, but are not in a specific sequence relationship.
In some embodiments of the present invention, the first memory module 101 is configured to receive or send access data for the memory system through the second memory channel 104 and the connection between the first inter-memory-module interconnection interface 1012 of the first memory module 101 and the first inter-memory-module interconnection interface 1022 of the second memory module 102; and receive or send access data for the memory system through the first memory channel 103. In some other embodiments of the present invention, the first memory module 101 is configured to receive or send access data for the memory system through a connection between the first inter-memory-module interconnection interface 1012 of the first memory module 101 and an inter-memory-module interconnection interface of another memory module.
The access data for the memory system includes one or more of the following: an access request for the first memory module, response data or association data of the access request for the first memory module, an access request for the second memory module, and response data or association data of the access request for the second memory module. It should be noted that, the access request may be a read request, or may be a write request. When the access request is a read request, the response data of the access request may be data to be read by the read request from the memory system; and when the access request is a write request, the association data of the access request may be data to be written by the write request into the memory system.
In the memory system shown in
It should be noted that, in the memory system provided in the embodiment of the present invention, storage media of different memory modules may be different, and may also be the same, which is not limited in the embodiment of the present invention.
a is a schematic diagram of a logic structure of a memory system 200 according to an embodiment of the present invention. 201 to 205, 210, 211, 2011, 2012, 2021, and 2022 in
The memory controller 206 is configured to monitor a running status of a first memory channel 203 and a second memory channel 204; and receive access data for the memory system, and send the access data to the memory system according to the running status of the first memory channel and the second memory channel. In an implementation manner, the running status includes a busy status and an idle status. When a destination address of a received access request is located at the first memory module 201 and the first memory channel 203 is busy, the memory controller 206 transfers the access request to the first memory module 201 through a path 211, namely, sends the access request to the second memory module 202 through the second memory channel 204, and the second memory module 202 sends the access request to the first memory module 201 through a connection 205 between a first inter-memory-module interconnection interface 2022 of the second memory module 202 and a first inter-memory-module interconnection interface 2012 of the first memory module 201. Likewise, when the destination address of the received access request is located at the second memory module 202 and the second memory channel 204 is busy, the memory controller 206 transfers the access request to the first memory module 201 through the first memory channel 203, and the first memory module 201 sends the access request to the second memory module 202 through the connection 205 between the first inter-memory-module interconnection interface 2012 of the first memory module 201 and the first inter-memory-module interconnection interface 2022 of the second memory module 202. In this implementation manner, response data returned according to a read request may be returned through an idle path, or may be returned through a busy path; and association data of a write request and the read request may be sent through a same path, or may be sent through different paths, which is not limited in the embodiment of the present invention.
Further, the memory controller 206 is further configured to record a path of the access data and a status of the access data, where the path of the access data includes the first memory channel or the second memory channel and the status of the access data includes whether the access data is sent. In the embodiment of the present invention, the path of the access request may be a path 210 or the path 211 for accessing the first memory module 201, and definitely may also be a corresponding path for accessing the second memory module 202. The status of the access request includes whether an access request is sent and/or whether a result of an access request is returned.
The memory controller 206 shown in
In some embodiments of the present invention, the first memory channel is connected to a first memory controller, and the second memory channel is connected to a second memory controller, namely, the first memory channel and the second memory channel may be connected to different memory controllers separately, and the two memory controllers may be embedded into the CPU, or may exist independently of the CPU. In an implementation manner, a communication connection may exist between the two memory controllers. When the first memory channel connected to the first memory controller is busy, an access request may be sent to the second memory controller through the communication connection between the two, so that the second memory controller sends the access request to the second memory module through the second memory channel, and then the second memory module sends the access request to the first memory module through an inter-memory-module interconnection interface. In another implementation manner, if no communication connection exists between the two memory controllers, a module responsible for scheduling may be disposed, a communication connection exists between the module and each of the two memory controllers, the module monitors an idle or busy status of a memory channel or a memory controller sends a status of a memory channel to the module, and the module decides, according to statuses of two (or more) memory channels, which memory controller to which an access request is sent. For a specific scheduling method, reference is made to the foregoing embodiment of the present invention, which is not described herein again.
Further, as shown in
In some other embodiments of the present invention, two or more than two memory channels in a memory system may be connected to two or more than two memory modules, and a one-to-one, one-to-multiple and/or multiple-to-one connection relationship may be established between the memory modules according to a requirement. For example, as shown in
It should be noted that, in the embodiment of the present invention, storage media of the memory modules may be the same, and may also be different. For example, the first memory module 201 is a DRAM memory module and the second memory module 202 is an NVM memory module or another type of memory module. In the embodiment of the present invention, the memory module may be an independent physical module, and the memory channel interface and the inter-memory-module interconnection interface are physical interfaces. In the embodiment of the present invention, the memory channel interface may be a double rate interface complying with a DDR or DDR2 or DDR3 or DDR4 protocol, and may also be another type of interface complying with another protocol.
a is a schematic diagram of an internal structure of a memory module 301 according to an embodiment of the present invention. The memory module may be applied to the memory system in the foregoing embodiments of the present invention (such as the first memory module 201 shown in
As shown in
In an implementation manner, the step of determining, according to the access data, whether a destination memory module of the access data is a current memory module specifically includes: determining whether a destination address of the access data belongs to an address space of the current memory module; or, determining whether a destination address of the access data is an address of the current memory module. The destination address of the access data is an address of the destination memory module of the access data, and may be a value and may also be a value range. The destination address may be carried by the access data. In another implementation manner, the access data may include an identification bit, where the identification bit is used to identify whether a memory module where the destination address of the access data is located is the current memory module. The identification bit may be implemented as 0 and 1, and if an identification bit of received access data is 0, it is determined that a memory module where a destination address of the access data is located is the current memory module; and if it is 1, it is determined that the memory module where the destination address of the access data is located is not the current memory module.
In some embodiments of the present invention, if the access data is a read request, a read operation is executed on the destination storage unit; and if the access data is a write request, a write operation is executed on the destination storage unit.
The memory management unit 3011 is further configured to: receive access data through the inter-memory-module interconnection interface 3013 and the connection between the memory module 301 and the memory module other than the memory module, and determine a destination storage unit associated with the access data; and execute an operation on the destination storage unit according to the access data.
In some embodiments of the present invention, a memory module may include two or more than two inter-memory-module interconnection interfaces. In this implementation, for access data, such as a read request or a write request, received by one of the inter-memory-module interconnection interfaces, it also needs to determine whether a destination memory module of the access data is a current memory module, because the current memory module may be an intermediate memory module between a previous memory module and a next memory module.
Further, as shown in
As shown in
Further, as shown in
It is easily understood by persons skilled in the art that, in the foregoing method, after a memory module receives access data through one of two inter-memory-module interconnection interfaces, whether the access data is forwarded through a memory channel or another inter-memory-module interconnection interface may also be determined. When a memory module has three or more than three inter-memory-module interconnection interfaces, no matter whether access data is received from a memory channel or one of the inter-memory-module interconnection interfaces, which inter-memory-module interconnection interface through which the access data is forwarded needs to be determined through judgment.
In some embodiments of the present invention, the memory module is an independent physical module, and the memory channel interface and the inter-memory-module interconnection interface are physical interfaces. The memory channel interface may be a double data rate DDR or DDR2 or DDR3 or DDR4 interface. The storage unit includes a dynamic random access memory DRAM chip and/or a non-volatile memory NVM chip.
It can be known from the foregoing technical solution that, in the embodiment of the present invention, one or more inter-memory-module interconnection interfaces are added into a memory module, so that a plurality of memory modules in a memory system that separately belong to different memory channels can establish a communication connection through the inter-memory-module interconnection interface, and further, a memory module in the memory system can be accessed by a plurality of memory channels simultaneously. When a load of a certain memory channel is excessively large, accessing a memory module on the memory channel with an excessively large load through another memory channel with a lighter load is implemented, so that a situation that memory channel loads are unbalanced is solved to a certain extent, and a memory channel utilization rate is effectively improved.
Additionally, with the technical solution provided in the embodiment of the present invention, a connection can be established between memory modules connected to different memory controllers, between different memory modules connected to different CPUs, or even between memory modules of different boards, different cabinets, or different computer systems, to form a memory area network, where the memory area network can be shared by different memory controllers, different CPUs, different boards, different cabinets, or different computer systems. Topology formed by the connection between memory modules may be set by setting the number of interconnection interfaces on a memory module and a connection relationship between the interconnection interfaces on the memory module according to a requirement. The following description is made through some specific implementation manners.
In
A plurality of CPUs shown in
It can be seen that, after an inter-memory-module interconnection is implemented, different server nodes can share memory resources of an entire system conveniently and quickly. For a phenomenon that loads of different server memories are unbalanced, memory data may be rapidly moved and deployed between different nodes through a high-speed memory area network. The memory resources of the system may be transparently shared in a virtual global memory address space formed in the memory area network. Additionally, if data exchange, such as an operation of data duplication, needs to be performed between different nodes, the memory area network can directly and rapidly complete a data operation without a conventional set of procedure such as a memory controller, an operating system, and a network protocol stack.
In some other embodiments of the present invention, the DRAM memory module and the NVM memory module shown in
In the embodiment shown in
Compared with the memory system shown in
It should be noted that, in specific implementation, a memory module type other than a DRAM and an NVM may also be selected, and there may be two or more than two hybrid types. A connection relationship between memory modules may be implemented as a grid network shown in
Each CPU is connected to its own private memory module and a memory area network. The memory area network is shared by all processors to a certain extent, shared memory modules may be constrained in aspects such as capacity, delay, and bandwidth, and the private memory module of each CPU may be configured to satisfy an exclusive requirement of the CPU for a memory to a certain extent. The private memory module of each CPU may be configured to store frequently-accessed core data of each CPU, and it does not need to worry that a memory bandwidth and capacity are influenced by another CPU.
It can be seen from the description of the foregoing embodiments that, in the present invention, memory modules are organized in a multi-dimensional manner, and in addition to a connection between a memory module and a memory controller, a connection between memory modules further exists. A memory module not only can be accessed by a memory controller in a conventional memory channel manner, but also can be accessed by another memory module, and further by another memory channel through a connection in another dimension, thereby changing a conventional one-dimensional memory organization form and a phenomenon, which is caused by the conventional one-dimensional memory organization form, that memory channels cannot coordinate between each other, so that memory buses of all memory channels are fully utilized, and a utilization rate of a memory bus bandwidth is improved.
An access manner of a memory module in a memory system provided in the present invention is introduced in the following through some specific embodiments.
S101: Receive a read request through an inter-memory-module interconnection interface, where the inter-memory-module interconnection interface is configured to connect to a memory module other than a current memory module.
S102: Determine, according to the read request, a destination storage unit associated with the read request, where the destination storage unit is one or more of storage units included in the memory module.
S103: Read data stored in the destination storage unit as response data of the read request.
S104: Send the response data of the read request through the inter-memory-module interconnection interface or through a memory channel interface on the memory module.
Further, when the number of inter-memory-module interconnection interfaces is two or more than two, as shown in
S201: Receive a read request through an inter-memory-module interconnection interface, where the inter-memory-module interconnection interface is configured to connect to a memory module other than a current memory module.
S202: Determine, according to the read request, whether a destination memory module of the read request is the current memory module; send the read request to another memory module through an inter-memory-module interconnection interface associated with the read request, if the destination memory module of the read request is not the current memory module (S206); and execute step S203, if the destination memory module of the read request is the current memory module.
Step S203, step S204, and step S205 are the same as step S102, step S103, and step S104 shown in
Specifically, step S202 may be implemented as follows: determining whether a destination address of the read request belongs to an address space of the current memory module; or, determining whether a destination address of the read request is an address of the current memory module. If the destination address of the read request belongs to the address space of the current memory module, or, the destination address of the read request is the address of the current memory module, a determination result is yes; and if the destination address of the read request does not belong to the address space of the current memory module, and the destination address of the read request is not the address of the current memory module, a determination result is no.
In an implementation manner, step S206 specifically is: querying a routing table of the current memory module according to the destination address of the read request and obtaining an identifier of an inter-memory-module interconnection interface associated with the destination address of the read request; and sending the read request to the another memory module through an inter-memory-module interconnection interface corresponding to the identifier of the inter-memory-module interconnection interface, where the routing table stores correspondence between an identifier of an inter-memory-module interconnection interface of the current memory module and an address of another memory module connected to the current memory module.
As shown in
In another implementation manner, step S206 specifically is: obtaining an identifier of an inter-memory-module interconnection interface from the destination address of the read request; and sending the read request to the another memory module through an inter-memory-module interconnection interface corresponding to the identifier of the inter-memory-module interconnection interface.
b is an exemplary diagram of a destination address carried in an access request. The destination address includes an interface identifier, a bank identifier, a row identifier, a column identifier, and other information. The bank identifier, the row identifier, and the column identifier are general identifiers in a memory address well known by persons skilled in the art, while other information is information extended according to a requirement, which is not described herein again. It should be noted that, the interface identifier is used to identify an interface to which the access request needs to be routed, and may be an identifier of a memory channel interface, and may also be an identifier of an inter-memory-module interconnection interface.
In another implementation manner, step S206 specifically is: obtaining an identifier of an inter-memory-module interconnection interface directly from an access request, and then forwarding this access request to an inter-memory-module interconnection interface corresponding to this identifier of the inter-memory-module interconnection interface.
If an interconnection between memory modules adopts an asynchronous serial bus, a data unit transmitted in the bus may be a message packet, a form of the message packet is flexible, and content in the message packet, such as a command and data, may be configured.
Further, as shown in
S301: Receive a write request through an inter-memory-module interconnection interface.
S302: Receive association data of the write request through the inter-memory-module interconnection interface; or, receive association data of the write request through a memory channel interface of a memory module.
S303: Determine, according to the write request, a destination storage unit associated with the write request.
S304: Write the association data of the write request into the destination storage unit.
When the number of inter-memory-module interconnection interfaces is two or more than two, as shown in
S401: Receive a write request through an inter-memory-module interconnection interface.
S402: Determine, according to the write request, whether a destination memory module of the write request is a current memory module. For a specific determining method, reference may be made to the foregoing determining method of the read request.
If the destination memory module of the write request is not the current memory module, step S406 is executed: sending the write request and the association data of the write request to another memory module through an inter-memory-module interconnection interface associated with the write request.
If the destination memory module of the write request is the current memory module, step S403 is executed.
Step S403, step S404, and step S405 are similar to step S302, step S303, and step S304 in the foregoing embodiment, which are not described herein again.
It is easily understood by persons skilled in the art that, in the embodiment of the present invention, a write request and association data of the write request may be received through a same transmission line or may be received through different transmission lines; and the write request and the association data of the write request may be forwarded through a same transmission line or may be forwarded through different lines, and whether the write request and the association data of the write request are transmitted through a same path is not limited. For a process of determining a destination memory module of a write request, reference may be made to the foregoing embodiment of the read request, which is not described herein again.
Additionally, it should be noted that, step S301 to step S304 or step S401 to step S406 and step S101 to S104 or step S201 to step S206 have no specific sequence relationship. A memory module may execute step S101 to step S104 or step S201 to step S206 if a read request is received, and may execute step S301 to step S304 or step S401 to step S406 if a write request is received.
S501: Receive an access request through a memory channel interface of a memory module.
S502: Determine, according to the access request, whether a destination memory module of the access request is a current memory module; and execute step S503, if the destination memory module of the access request is not the current memory module.
Specifically, step S502 may be implemented as follows: determining whether a destination address of the access request belongs to an address space of the current memory module; or, determining whether a destination address of the access request is an address of the current memory module.
S503: Send the access request to another memory module through an inter-memory-module interconnection interface that is of the current memory module and is associated with the access request.
In an implementation manner, step S503 is specifically implemented as follows:
querying a routing table of the current memory module according to the destination address of the access request and obtaining an identifier of an inter-memory-module interconnection interface associated with the destination address of the access request; and sending the access request to the another memory module through an inter-memory-module interconnection interface corresponding to the identifier of the inter-memory-module interconnection interface, where the routing table stores correspondence between an identifier of an inter-memory-module interconnection interface of the current memory module and an address of another memory module connected to the current memory module.
In another implementation manner, step S503 is specifically implemented as follows: obtaining an identifier of an inter-memory-module interconnection interface from the destination address of the access request; and sending the access request to the another memory module through an inter-memory-module interconnection interface corresponding to the identifier of the inter-memory-module interconnection interface.
If the destination memory module of the access request is the current memory module, an execution manner is similar to that in the foregoing embodiment.
An embodiment of the present invention further provides a memory module access control method, and the method may be applied to a memory controller. The method includes:
when a destination address of an access request received by a memory controller is located at a first memory module and a first memory channel accessing the first memory module is busy, sending, by the memory controller, the access request to the first memory module through a second memory channel accessing a second memory module, a first inter-memory-module interconnection interface that is of the second memory module is configured to connect to the first memory module, and a connection between the second memory module and the first memory module through the first inter-memory-module interconnection interface.
Further, the method may further include:
when the destination address of the access request received by the memory controller is located at the second memory module, and the second memory channel accessing the second memory module is busy, sending, by the memory controller, the access request to the second memory module through the first memory channel accessing the first memory module, a first inter-memory-module interconnection interface that is of the first memory module and is configured to connect to the second memory module, and a connection between the first memory module and the second memory module through the first inter-memory-module interconnection interface.
It can be known from the foregoing technical solution that, in the memory access method and the memory access control method provided in the embodiments of the present invention, a memory module can be accessed by a plurality of memory channels simultaneously. When a load of a certain memory channel is excessively large, accessing a memory module on the memory channel with an excessively large load through another memory channel with a lighter load is implemented, so that a situation that memory channel loads are unbalanced is solved to a certain extent, and a memory channel utilization rate is effectively improved.
In some other embodiments of the present invention, a bus connection structure may be adopted in the computer system, for example, a processor, a memory controller, and a communication interface can be connected together through a bus. The bus may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus. The bus may be one or more physical lines, and when the bus is a plurality of physical lines, the physical lines may be classified into an address bus, a data bus, a control bus, and the like.
In some other embodiments of the present invention, the memory controller 801 may be built in the processor 811.
a is a schematic diagram of a local logic structure of a computer system 800 according to an embodiment of the present invention, where the computer system includes: a memory controller 801, a first memory module 802, and a second memory module 803, where the two memory modules are both connected to the memory controller 801; the first memory module 802 is provided with a first memory channel interface 8021, and connected to a first memory channel 805 through the first memory channel interface 8021; the second memory module 803 is provided with a second memory channel interface 8031, and connected to a second memory channel 806 through the second memory channel interface 8031; the first memory module 802 is connected to the memory controller 801 through the first memory channel 805 and the second memory module 803 is connected to the memory controller 801 through the second memory channel 806; and the first memory module 802 and the second memory module 803 are further provided with a first inter-memory-module interconnection interface 8022 and a first inter-memory-module interconnection interface 8032 respectively, and 8022 and 8032 are connected.
The first memory module 802 is configured to receive or send access data through the second memory channel 806 and a connection between the first inter-memory-module interconnection interface 8022 of the first memory module 802 and the first inter-memory-module interconnection interface 8032 of the second memory module 803, and receive or send access data through the first memory channel 805. The access data includes one or more of the following: an access request for the first memory module 802, response data or association data of the access request for the first memory module 802, an access request for the second memory module 803, and response data or association data of the access request for the second memory module 803.
Specifically, the first memory module 802 includes a first memory management unit and at least one storage unit, where the first memory management unit is connected to the first inter-memory-module interconnection interface, the first memory channel interface 8021, and the storage unit, and the first memory management unit is configured to: receive access data through the first memory channel interface 8021; determine, according to the access data, whether a destination memory module of the access data is the first memory module 802; send the access data to the second memory module 803 through the first inter-memory-module interconnection interface 8022, if the destination memory module of the access data is not the first memory module 802; and determine, according to the access data, a destination storage unit associated with the access data, if the destination memory module of the access data is the first memory module 802, and execute an operation on the destination storage unit according to the access data, where the destination storage unit is one or more of storage units of the first memory module 802. Further, the first memory management unit is further configured to: receive access data through the first inter-memory-module interconnection interface 8022, and determine a destination storage unit associated with the access data; and execute an operation on the destination storage unit according to the access data.
Further, referring to
In some other embodiments of the present invention, the third memory module 812 may also be connected to a memory channel other than the first memory channel 805 and the second memory channel 806 through the third channel interface 8121. Protocols with which memory channels among the three modules comply may be the same, and may also be different, which is not limited in the embodiment of the present invention.
The access data includes one or more of the following: an access request for the first memory module 802, response data or association data of the access request for the first memory module 802, an access request for the second memory module 803, response data or association data of the access request for the second memory module 803, an access request for the third memory module 812, and response data or association data of the access request for the third memory module 812. In this implementation manner, the first memory module 802 includes a first memory management unit and at least one storage unit, where the first memory management unit is connected to the first inter-memory-module interconnection interface 8022, the second inter-memory-module interconnection interface 8023, the first memory channel interface 8021, and the storage unit, and the first memory management unit is configured to: receive access data through the first memory channel interface 8021; determine, according to the access data, whether a destination memory module of the access data is the first memory module 802; determine, according to correspondence between a destination address of the access data and the inter-memory-module interconnection interface, an inter-memory-module interconnection interface corresponding to the access data, if the destination memory module of the access data is not the first memory module 802; send the access data to the second memory module 803 through the first inter-memory-module interconnection interface 8022, if the inter-memory-module interconnection interface corresponding to the access data is the first inter-memory-module interconnection interface 8022; and send the access data to the third memory module through the second inter-memory-module interconnection interface 8023, if the inter-memory-module interconnection interface corresponding to the access data is the second inter-memory-module interconnection interface 8023; and determine, according to the access data, a destination storage unit associated with the access data, if the destination memory module of the access data is the first memory module 802, and execute an operation on the destination storage unit according to the access data, where the destination storage unit is one or more of storage units of the first memory module 802.
In the embodiment of the present invention, the memory controller 801 is configured to monitor a running status of the first memory channel 805 and the second memory channel 806; and receive access data for the memory system, and send the access data to the memory system according to the running status of the first memory channel 805 and the second memory channel 806.
Specifically, the memory controller 801 is configured to monitor the running status of the first memory channel 805 and the second memory channel 806, where the running status includes a busy status and an idle status. When a destination address of the received access data is located at the first memory module 802 and the first memory channel 805 is busy, the memory controller sends the access data to the second memory module 803 through the second memory channel 806, and the second memory module 803 sends the access data to the first memory module 802 through the connection between the first inter-memory-module interconnection interface 8032 of the second memory module 803 and the first inter-memory-module interconnection interface 8022 of the first memory module 802; and when the destination address of the received access data is located at the second memory module 803 and the second memory channel 806 is busy, the memory controller sends the access data to the first memory module 802 through the first memory channel 805, and the first memory module 802 sends the access data to the second memory module 803 through the connection between the first inter-memory-module interconnection interface 8022 of the first memory module 802 and the first inter-memory-module interconnection interface 8032 of the second memory module 803.
Further, the memory controller 801 is further configured to record a path of the access data and a status of the access data, where the path of the access data includes the first memory channel or the second memory channel and the status of the access data includes whether the access data is sent and/or whether a result of an access request is returned.
It should be noted that, in some other embodiments of the present invention, each memory channel of a computer system may be connected to two or more than two memory modules. For example, the memory channel 805 may be still further connected to two or more than two memory modules. A connection relationship between memory modules may be set according to a requirement. For specific implementation of a memory module, reference may be made to the description of the foregoing embodiments and the accompanying drawings thereof.
In other embodiments of the present invention, the number of memory controllers in a computer system may also be more than two, and likewise the number of CPUs may be two or more than two. A connection relationship between a plurality of memory modules may be established according to a specific requirement, to form a grid, hierarchical or semi-hierarchical, or centralized memory area network, and for a specific structure, reference may be made to the description of the foregoing embodiments. Additionally, the memory system shown in
It should be noted that, storage media of memory modules in the computer system provided in the embodiment of the present invention may be the same, and may also be different. A memory module may be an independent physical module, and a memory channel interface and an inter-memory-module interconnection interface may be physical interfaces. Specifically, the memory channel interface may be a double data rate DDR interface or DDR2 interface or DDR3 interface or DDR4 interface.
Additionally, the computer system in the embodiment of the present invention may include one board or a plurality of boards, different CPUs may be located on a same board or different boards, and different boards may be located at a same cabinet or may be located at different cabinets. Therefore, the computer system intended to be protected in the present invention is described only by taking
It can be seen that, in the computer system provided in the embodiment of the present invention, one or more inter-memory-module interconnection interfaces are added into a memory module, so that a plurality of memory modules in a memory system that separately belong to different memory channels can establish a communication connection through the inter-memory-module interconnection interface, and further, a memory module in the memory system can be accessed by a plurality of memory channels simultaneously. When a load of a certain memory channel is excessively large, accessing a memory module on the memory channel with an excessively large load through another memory channel with a lighter load is implemented, so that a situation that memory channel loads are unbalanced is solved to a certain extent, and a memory channel utilization rate is effectively improved.
The embodiments in the specification are described in a progressive manner, and reference may be made to same and similar parts of the embodiments. For example, for function implementation of some modules in the apparatus embodiment, reference may be made to the description of the method in the method embodiment.
It should be noted that, the foregoing apparatus embodiments are merely exemplary, and the units described as separate components may be or may not be physically separated. Components shown as units may be or may not be physical units, that is, may be located in one place or may be distributed to a plurality of network units. A part of or all of the modules may be selected according to an actual need to achieve the objectives of the solutions of the embodiments. Additionally, in the accompanying drawings of the apparatus embodiments provided in the present invention, a connection relationship between modules indicates that a communication connection exists between the modules, which may specifically be implemented as one or more communication buses or signal lines.
Through the descriptions of the foregoing implementation manners, persons skilled in the art may clearly understand that the present invention may be implemented by dedicated hardware including a dedicated integrated circuit, a dedicated CPU, a dedicated memory, and a dedicated component. A specific hardware structure used to implement a same function may be diversified, such as an analog circuit, a digital circuit, or a dedicated circuit. The present invention may also be implemented through computer software plus necessary hardware. The computer software product is stored in a readable storage medium, for example, a floppy disk, a USB flash disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk of a computer, and includes several instructions for instructing a computer device (which may be a personal computer, a server, or a network device) to execute the methods described in the embodiments of the present invention.
The foregoing descriptions are merely specific embodiments of the present invention, but are not intended to limit the protection scope of the present invention. Any variation or replacement readily figured out by persons skilled in the art within the technical scope disclosed in the present invention shall all fall within the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
This application is a continuation of International Application No. PCT/CN2012/082824, filed on Oct. 12, 2012, which is hereby incorporated by reference in its entirety.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2012/082824 | Oct 2012 | US |
Child | 14676021 | US |