Memory controller, storage device, and computer system
The memory controller optimizes page placement across multiple banks by managing access attributes, reducing contention and improving performance by matching usage and purpose, addressing the issue of access conflicts in multi-master memory systems.
Patent Information
- Application Number
- PCT/JP2024/001637
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-15
- Filing Date
- 2024-01-22
- Publication Date
- 2024-09-19
AI Technical Summary
In systems with multiple memory banks accessed by multiple masters, access contention and performance deterioration occur due to conflicts, even when data is remapped, as the detection of conflicts alone does not provide an essential solution.
A memory controller and system that manage attributes of each bank and page, moving pages between banks based on access attributes to match usage and purpose, using an attribute information management unit and control unit to optimize page placement and reduce conflicts.
This approach effectively reduces access contention by matching page and bank attributes, minimizing conflicts and improving performance by distributing shared and exclusive usage appropriately across banks.
Smart Images

Figure JP2024001637_19092024_PF_FP_ABST
Abstract
Description
MEMORY CONTROLLER, STORAGE DEVICE AND COMPUTER SYSTEM
[0001] The present technology relates to a memory device, and more particularly to a memory controller, a memory device, and a computer system that reduce access conflicts from multiple masters in a memory consisting of multiple banks.
[0002] In memory accessed by multiple masters, it is known to provide multiple banks to enable simultaneous operation and improve overall throughput. However, in this case, if accesses from different masters are concentrated on the same bank, performance will be degraded. To address this issue, a system has been proposed that detects the occurrence of access conflicts in a first memory bank and remaps the accesses to a second memory bank (see, for example, Patent Document 1).
[0003] Special Publication No. 2020-511706
[0004] In the above-mentioned conventional technology, a conflict detector is installed to detect conflicts that actually occur during program operation and then remap between memory banks. However, when a memory consisting of multiple banks is used by multiple masters, conflicts themselves can potentially occur, and if the data itself is shared, even if the data is moved each time a conflict occurs, the possibility of a conflict occurring at the destination still remains. Therefore, detecting the conflict itself does not lead to a fundamental solution.
[0005] This technology was developed in light of these circumstances, and aims to reduce access conflicts from multiple masters in a memory consisting of multiple banks by taking into account the attributes of each bank.
[0006] The present technology has been made to solve the above-mentioned problems, and a first aspect thereof is a memory controller, a storage device, and a computer system including an attribute information management unit that manages attributes determined for each of a plurality of pages and a plurality of banks in a memory having a plurality of banks, each of the plurality of pages being accessed by a plurality of masters, and a control unit that moves any of the plurality of pages between the plurality of banks based on the attribute, thereby achieving the effect of moving a page between the banks based on the attributes of the page and the bank.
[0007] In this first aspect, the attributes may include a use indicating whether each of the plurality of pages and the plurality of banks is a shared one accessed by two or more of the plurality of masters, or a dedicated one accessed exclusively by one of the plurality of masters, and the control unit may move any of the plurality of pages between the plurality of banks so that the use of each of the plurality of pages matches that of each of the plurality of banks, thereby achieving the effect of moving a page between banks so that the use of the page matches that of the bank.
[0008] In addition, in this first aspect, when the use of a specific page belonging to a specific bank among the plurality of banks indicates the shared use and the use of the specific bank does not indicate the shared use, the control unit may move the specific page to another bank whose use indicates the shared use, thereby achieving the effect of moving the shared page to the shared bank.
[0009] In addition, in this first aspect, if the uses of the plurality of pages and the plurality of banks indicate the dedicated use, the attribute may include a master identifier of a specific master among the plurality of masters that last accessed the page or bank, and if the use of a specific page belonging to a specific bank among the plurality of banks indicates the dedicated use and the use of the specific bank does not indicate the dedicated use, the control unit may move the specific page to another bank whose use indicates the dedicated use and whose master identifier matches that of the specific page. This brings about the effect of moving the dedicated page to a dedicated bank whose master identifier matches.
[0010] In addition, in this first aspect, each of the plurality of pages may include a plurality of words, and the attribute may include a state indicating whether valid word data is stored for each of the plurality of words, and, if valid word data is stored, a master identifier indicating a specific master among the plurality of masters that last accessed the word data, and the attribute information management unit may be configured to update the state and master identifier of the specific word when access to a specific word among the plurality of words occurs. This brings about the effect of updating the word state and master identifier in response to access to the word.
[0011] In addition, in this first aspect, when a specific word in the plurality of words is accessed, the attribute information management unit may update the attribute of a specific page of the plurality of pages to which the specific word belongs, thereby achieving the effect of updating the attribute of the page in response to access to the word.
[0012] In addition, in this first aspect, when an access occurs to a specific word among the plurality of words, if the master identifiers of all words that store valid word data among the words included in a specific page to which the specific word belongs indicate the same master, the attribute information management unit may set the use of the specific page to the dedicated use. This brings about an effect that, in response to the access to the word, the use of the page in which the master identifiers of all words indicate the same master is set to the dedicated use.
[0013] In this first aspect, the initial values of the attributes of the plurality of pages and the plurality of banks may be common.
[0014] In addition, in the first aspect, the memory device may further include a setting register for setting an upper limit for the number of banks whose use indicates the shared use and the number of banks whose use indicates the dedicated use, thereby providing the effect of allowing an external program or the like to set the upper limit for the shared banks and the dedicated banks.
[0015] In addition, in this first aspect, a page conversion table may be further provided for managing destination page addresses of pages moved between the plurality of banks among the plurality of pages and for page address conversion, thereby providing the effect of identifying the physical page of the moved page based on its attribute.
[0016] In addition, in the first aspect, a status register may be further provided as an interface for observing and changing the attribute, thereby providing the effect of allowing the attribute to be observed and changed from an external program or the like.
[0017] FIG. 1 is a diagram showing an example of the configuration of a computer system in an embodiment of the present technology. FIG. 2 is a diagram showing an example of the configuration of a bank 310 of a memory 300 in an embodiment of the present technology. FIG. 3 is a diagram showing an example of the configuration of a memory controller 200 in an embodiment of the present technology. FIG. 4 is a diagram showing example contents of attributes related to banks 310 and pages 320 in an embodiment of the present technology. FIG. 5 is a diagram showing example contents of attributes related to words 330 in an embodiment of the present technology. FIG. 6 is a diagram showing specific examples of attributes related to banks 310, pages 320, and words 330 in an embodiment of the present technology. FIG. 7 is a diagram showing an example of a page translation table 220 in an embodiment of the present technology. FIG. 8 is a flowchart showing an example of an operation algorithm of a computer system in an embodiment of the present technology. FIG. 9 is a flowchart showing an example of a processing procedure of shared page migration processing (step S940) in an embodiment of the present technology. FIG. 10 is a flowchart showing an example of a processing procedure of dedicated page migration processing (step S950) in an embodiment of the present technology.
[0018] Hereinafter, a description will be given of an embodiment of the present technology. The description will be made in the following order: 1. System configuration 2. Operation algorithm
[0019] 1. System Configuration Computer System FIG. 1 is a diagram showing an example of the configuration of a computer system according to an embodiment of the present technology.
[0020] This computer system includes N masters 100, a memory controller 200, and a memory 300. The memory 300 includes M banks 310, where N and M are both integers greater than 1. The masters 100, memory controller 200, and banks 310 are interconnected via a bus 199, with arbitration performed by the bus 199.
[0021] The master 100 is a device that accesses the memory 300, and is assumed to be, for example, a processor. The N masters 100 can each access the M banks 310 of the memory 300 in parallel.
[0022] The memory controller 200 is a controller that controls access from the master 100 to the memory 300. In this embodiment, the memory controller 200 manages the arrangement of data in the memory 300, as will be described later.
[0023] It is assumed that access to the memory 300 from each of the N masters 100 can be performed out of order on the bus 199 .
[0024] [Memory] The memory 300 is a storage device that stores data for the master 100. For example, the memory 300 is assumed to store programs and data necessary for the processor to operate. The memory 300 includes M banks 310, each configured to be accessible in parallel. The M banks 310 only need to be able to operate independently, and the circuit configuration can be selected as appropriate.
[0025] 2 is a diagram illustrating an example of the configuration of a bank 310 of a memory 300 according to an embodiment of the present technology. Note that although the figure illustrates an i-th bank #i, the other banks 310 also have a similar configuration, and therefore will be described below as the bank 310.
[0026] The bank 310 includes P pages 320. Each page 320 is made up of W words 330. P is an integer greater than 1, and W is a positive integer.
[0027] A word 330 is a unit for read or write access from the master 100, and is assumed to be, for example, 8 or 16 bytes of data. A page 320 is a unit for managing data allocation by the memory controller 200.
[0028] [Memory Controller] FIG. 3 is a diagram showing an example of the configuration of the memory controller 200 according to the embodiment of the present technology.
[0029] The memory controller 200 includes an attribute management table 210 , a page conversion table 220 , a status register 230 , a setting register 240 , and a control unit 290 .
[0030] The attribute management table 210 is a table that manages the attributes of each of the banks 310, pages 320, and words 330 of the memory 300. The memory controller 200 moves pages 320 between banks 310 based on the attributes managed in this attribute management table 210. Details of the attributes managed in this attribute management table 210 will be described later. The attribute management table 210 is an example of an attribute information management unit described in the claims.
[0031] The page conversion table 220 is a table for managing the destination page address when the location address is changed due to the movement of the page 320, and for page address conversion. An example of the configuration of the page conversion table 220 will be described later.
[0032] The status register 230 is an interface for observing and changing the attributes managed by the attribute management table 210. By using this status register 230, for example, it is possible to fine-tune the attributes from software depending on the system status.
[0033] The setting register 240 is a register for setting in advance the upper limit values of the attributes of the bank 310. The contents of the attributes for which upper limit values are set will be described later.
[0034] The control unit 290 controls the overall operation of the memory controller 200. For example, the control unit 290 controls the movement of a page 320 between banks 310 by referencing the attributes managed in the attribute management table 210. The control unit 290 also controls the management of a destination page address using the page conversion table 220 when the location address is changed due to the movement of the page 320. The control unit 290 also controls the management of attributes in the attribute management table 210 by referencing the status register 230 and the setting register 240.
[0035] Here, data transfer when moving a page 320 between banks 310 will be described. When moving a page 320 via the bus 199 using DMA (Direct Memory Access) transfer, first, transfer using a normal data bus is considered. In this case, a dedicated DMA controller or a controller that issues transfer instructions to a general-purpose DMA controller is installed. Second, transfer using a dedicated bus is considered. In this case, a DMA controller with a sequencer is installed on the dedicated bus. In the former case, fewer additional circuits are required, but there is a risk of increasing the degree of access contention. In the latter case, data can be transferred without increasing access contention, but there is a problem that the additional circuitry becomes relatively large. Therefore, these trade-offs must be taken into consideration when designing the system.
[0036] 4 is a diagram showing an example of the contents of attributes related to the bank 310 and the page 320 according to the embodiment of the present technology. The attributes related to the bank 310 and the page 320 include two attributes: usage and master information.
[0037] The first attribute, usage, indicates the usage of the bank 310 and page 320 when accessed by the master 100. This usage can have one of three values: "Shared," "Exclusive," and "Invalid." "Shared" indicates that the bank 310 or page 320 is accessed by two or more masters 100. "Exclusive" indicates that the bank 310 or page 320 is accessed exclusively by one master 100. "Invalid" indicates that the bank 310 or page 320 does not store valid data.
[0038] The second attribute, master information, indicates information about the master 100 that uses the bank 310 and page 320. This master information indicates one of two values: "Master ID" and "Void." The "Master ID" is an identifier for the master 100, and indicates the number of the master 100 that last accessed the bank 310 or page 320 whose usage indicates "dedicated." "Void" means that there is no specific master 100 that uses the bank 310 or page 320, and indicates "Void" if the usage of the bank 310 or page 320 is "shared" or "invalid."
[0039] The control unit 290 of the memory controller 200 moves a page 320 between banks 310 so that the usage of the page 320 and the bank 310 matches. That is, if the usage of the page 320 belonging to a bank 310 indicates "shared" and the usage of the bank 310 does not indicate "shared," the control unit 290 moves the page 320 to another bank 310 whose usage indicates "shared." Also, if the usage of the page 320 belonging to a bank 310 indicates "dedicated" and the usage of the bank 310 does not indicate "dedicated," the control unit 290 moves the page 320 to another bank 310 whose usage indicates "dedicated" and whose master identifier matches that of the page 320. This matches the usage of the page 320 and the bank 310, and banks 310 that may cause conflicts can be consolidated into banks 310 whose usage indicates "shared." Therefore, conflicts can be avoided in banks 310 whose usage indicates "dedicated," and performance degradation can be avoided.
[0040] The initial value of the usage of the bank 310 and the page 320 is "shared," and a "dedicated" bank is set for a specific master as needed. The number of "dedicated" banks is not limited to one; when one bank becomes full, multiple banks may be "dedicated" to a specific master. However, the upper limit of the number of "dedicated" banks and "shared" banks can be set by the setting register 240.
[0041] 5 is a diagram showing an example of the contents of attributes related to the word 330 according to the embodiment of the present technology. The attributes related to the word 330 include two attributes: a state and master information.
[0042] The first attribute, status, indicates one of two values: "Valid" and "Invalid." "Valid" indicates that the word 330 stores valid word data. "Invalid" indicates that the word 330 does not store valid word data.
[0043] The second attribute, master information, indicates information about the master 100 that accesses the word 330. This master information indicates one of two values: "Master ID" and "Void." The "Master ID" is an identifier for the master 100, and indicates the number of the master 100 that last accessed the word 330 when the word 330 is in the "valid" state. "Void" means that there is no specific master 100 that uses the word 330, and when the word 330 is in the "invalid" state, this "Void" is indicated.
[0044] When a word 330 is accessed, the attribute management table 210 updates the state and master information of that word 330. That is, when a new write access occurs to a word 330 whose state is "invalid," the state is changed to "valid" and the master information is changed to "none." Also, when the state of word 330 is "valid" and an access occurs from a master 100 different from the current master information, the master information of that word 330 is updated to the number of the new master 100.
[0045] When a word 330 is accessed, the attribute management table 210 updates the state and master information of the word 330, and also updates the attribute of the page 320 to which the word 330 belongs. That is, when a word 330 is accessed, if the master information of all words that store valid word data among the words included in the page 320 to which the word 330 belongs indicates the same master 100, the attribute management table 210 sets the use of the page 320 to "dedicated" and sets the master information to the number of the master 100.
[0046] FIG. 6 is a diagram showing a specific example of attributes relating to a bank 310, a page 320, and a word 330 according to the embodiment of the present technology.
[0047] In this example, assume that bank #1 is a "shared" bank, bank #2 is a "dedicated" bank for master #2, and bank #M is an "invalid" bank.
[0048] Here, since page #2 of bank #2 is a "shared" page, its usage does not match that of bank #2. Therefore, the control unit 290 moves page #2 of bank #2 to bank #1. As a result, the usage of page 320 and bank 310 becomes consistent.
[0049] Furthermore, page #3 of bank #1 is a "dedicated" page for master #2, and therefore its usage does not match that of bank #1. Therefore, the control unit 290 moves page #3 of bank #1 to bank #2. As a result, the usage and master information of page 320 and bank 310 match.
[0050] Furthermore, page #2 of bank #1 is a page "dedicated" to master #3, so its usage does not match that of bank #1. Here, we assume that there are no other banks "dedicated" to master #3, and that bank #M, which has an "invalid" usage, will be used as a new bank "dedicated" to master #3. Therefore, the control unit 290 moves page #2 of bank #1 to bank #M and makes bank #M a "dedicated" bank for master #3. This causes the usage and master information of page 320 and bank 310 to match.
[0051] In this way, pages 320 are moved between banks 310 so that their uses match. Then, the use of the banks is changed as necessary. At this time, the upper limit of the number of banks whose use indicates "shared" and the upper limit of the number of banks whose use indicates "dedicated" can be set by the setting register 240 described above. This makes it possible to balance the number of "dedicated" banks and "shared" banks.
[0052] [Page Conversion Table] FIG. 7 is a diagram showing an example of the page conversion table 220 according to the embodiment of the present technology.
[0053] The page translation table 220 is a table for managing the destination page address when the allocation address changes due to the movement of the page 320, and for performing page address conversion. The page translation table 220 holds the physical page address in the memory 300 corresponding to the logical page address. In other words, the page translation table 220 holds the correspondence between the actual physical address of the page data relocated due to the movement of the page 320 and the logical address accessed by the program before the relocation. This allows the page translation table 220 to be used when converting from the logical address to the physical address in the memory 300 when an access from the master 100 occurs.
[0054] 2. Operation Algorithm FIG. 8 is a flowchart showing an example of an operation algorithm of the computer system according to the embodiment of the present technology.
[0055] When a write access from the master 100 to the memory 300 occurs (step S911: Yes, step S912: Yes), the write data from the master 100 is written to the memory 300 (step S913). At this time, if the state of the write destination word 330 does not indicate "valid" (step S914: No), the state of the write destination word 330 is set to "valid" and the master information is set to "none" (step S915).
[0056] When a read access from the master 100 to the memory 300 occurs (step S911: Yes, step S912: No), data is read from the memory 300 (step S918). At that time, if the state of the read destination word is not "valid" (step S916: No), a warning is issued (step S917).
[0057] If the state of the word 330 to which the write access is made indicates "valid" (step S914: Yes), or if a read access is made (step S912: No), and the access is not from the same master 100 as the previous master information of that word 330 (step S921: No), the state of that word 330 is "valid" and the master information is set to the number of the new master 100 (step S922). In this case, the page 320 to which that word 330 belongs is considered to be "shared," and shared page movement processing is performed (step S940).
[0058] On the other hand, if the access is from the same master 100 as the previous master information of that word 330 (step S921: Yes), and the master information of all words 330 on the page 320 to which that word 330 belongs contains only one master number or "none" (step S923: Yes), a dedicated page move process is performed (step S950); otherwise (step S923: No), a shared page move process is performed (step S940).
[0059] In this way, the allocation of "shared" pages and "dedicated" pages is performed. The memory controller 200 repeats these processes until the operation is completed (step S960).
[0060] FIG. 9 is a flowchart showing an example of the processing procedure of the shared page migration process (step S940) according to the embodiment of the present technology.
[0061] In this shared page transfer process, first, the use of the page 320 to which the word 330 belongs is set to "shared" and the master information is set to "none" (step S941). At this time, if the use of the bank 310 in which the page exists is "shared" (step S942: Yes), no further processing is required, and the shared page transfer process is terminated.
[0062] If the use of the bank 310 in which the page 320 resides is not "shared" (step S942: No), and if the page 320 can be moved to another bank 310 whose use is "shared" (step S943: Yes), the page 320 is moved (step S947). On the other hand, if a new bank 310 whose use is "shared" can be created (step S944: Yes), such a "shared" bank is created (step S945), and the page 320 is moved to that "shared" bank (step S947). However, if a new bank 310 whose use is "shared" cannot be created (step S944: No), a warning is issued (step S946), and the shared page move process is terminated without moving the page 320.
[0063] In this way, if the system runs out of memory resources and is unable to create a new "dedicated" bank, or if there is no free space and data cannot be transferred, the transfer is abandoned and a warning is issued to indicate that the transfer was not successful. When a warning is issued, an interrupt may be generated and the address of the target page and the status of the warning may be left in the status register 230.
[0064] FIG. 10 is a flowchart showing an example of the processing procedure of the dedicated page transfer process (step S950) according to the embodiment of the present technology.
[0065] In this dedicated page moving process, first, the use of page 320 to which word 330 belongs is set to "dedicated" and the number of accessed master 100 is set in the master information (step S951). At this time, if the use of bank 310 in which the page exists is "dedicated" (step S952: Yes) and the master information of bank 310 and page 320 matches (step S953: Yes), no further processing is required, and this dedicated page moving process is terminated.
[0066] If the use of the bank 310 in which the page resides is not "dedicated" (step S952: No), or if the master information of the bank 310 and the page 320 does not match (step S953: No), if another "dedicated" bank with matching master information exists and the page 320 can be moved to that "dedicated" bank (step S954: Yes), the page 320 is moved (step S958). On the other hand, if a new "dedicated" bank with matching master information can be created (step S955: Yes), such a "dedicated" bank is created (step S956), and the page 320 is moved to that "dedicated" bank (step S958). However, if a new bank 310 with a "dedicated" use cannot be created (step S955: No), a warning is issued (step S957), and the dedicated page move process is terminated without the page 320 being moved.
[0067] In the above processing procedure, it is assumed that the master information is set to "none" when writing to a page whose usage was "invalid" or a word whose status was "invalid." This is because it is assumed that when a program or data is initially placed in memory, it is deployed to memory from a processor for system control or from external memory or ROM, and the processor that actually uses the data or program may not necessarily be the one to write to it. Note that even in this initial operation, the master information may be left intact from the beginning by setting it.
[0068] Also, although not specifically mentioned in the above processing procedure, if a word whose status was "valid" is no longer in use, a procedure to change its status to "invalid" will be required at some point.
[0069] [Effect] As described above, in the embodiment of the present technology, in a memory 300 including a plurality of banks 310, pages 320 are moved between the banks 310 so that their uses match, taking into consideration the attributes of each bank 310. This makes it possible to reduce access contention in the banks 310 from a plurality of masters 100.
[0070] Specifically, we will explain this using an example of two masters, master A and master B. As in the past, assume that only one bank is in use and only 20% of the data is shared by masters A and B. Also, assume that 10% of the accesses from masters A and B result in access conflicts. In this case, if one of masters A and B makes 100 accesses per unit time, conflicts will occur 10 of these times.
[0071] On the other hand, in accordance with the embodiment of the present technology, two separate banks 310 are set as a bank dedicated to master A and a bank dedicated to master B, respectively, and 80% of the data in the initially shared memory 300 is moved to each bank 310. For simplicity's sake, it is assumed that masters A and B access data equally. The initially shared bank 310 is accessed 20 times per unit time, and access conflicts are also 10% of that, or two times. Assuming the above ideal and simple situation, the number of memory access conflicts that cause performance degradation is reduced to one-fifth.
[0072] The functions according to the above-described embodiments may be dynamically enabled or disabled depending on the needs of the system and the characteristics of the program. Specific banks or specific pages may also be set as non-targets for relocation. The above-described setting register 240 can be used to realize these settings.
[0073] Note that the above-described embodiment shows an example for realizing the present technology, and the matters in the embodiment and the matters specifying the invention in the claims correspond to each other. Similarly, the matters specifying the invention in the claims and the matters in the embodiment of the present technology having the same name correspond to each other. However, the present technology is not limited to the embodiment, and can be realized by applying various modifications to the embodiment within the scope of the gist thereof.
[0074] The processing procedures described in the above embodiments may be considered as a method having a series of these procedures, or as a program for causing a computer to execute the series of procedures, or as a recording medium for storing the program. Examples of such a recording medium include a CD (Compact Disc), an MD (MiniDisc), a DVD (Digital Versatile Disc), a memory card, and a Blu-ray (registered trademark) Disc.
[0075] The effects described in this specification are merely examples and are not limiting, and other effects may also be obtained.
[0076] The present technology may also be configured as follows: (1) A memory controller comprising: an attribute information management unit that manages attributes of a memory having multiple banks, each consisting of multiple pages, for each of the multiple pages and the multiple banks, the attributes being determined based on how the multiple pages and the multiple banks are accessed by multiple masters; and a control unit that moves any of the multiple pages between the multiple banks based on the attributes. (2) The memory controller described in (1), wherein the attributes include a use indicating whether each of the multiple pages and the multiple banks is shared and accessed by two or more of the multiple masters, or dedicated and accessed exclusively by one of the multiple masters, and the control unit moves any of the multiple pages between the multiple banks so that the use matches between each of the multiple pages and each of the multiple banks. (3) The memory controller described in (2), wherein the control unit moves the specific page to another bank whose use indicates shared use when the use of a specific page belonging to a specific bank among the multiple banks indicates shared use and the use of the specific bank does not indicate shared use. (4) The memory controller according to (2) or (3), wherein the attribute includes a master identifier of a specific master among the multiple masters that last accessed the page or bank when the use of each of the multiple pages and the multiple banks indicates the dedicated use, and the control unit, when the use of a specific page belonging to a specific bank among the multiple banks indicates the dedicated use and the use of the specific bank does not indicate the dedicated use, moves the specific page to another bank whose use indicates the dedicated use and whose master identifier matches that of the specific page.(5) The memory controller according to any one of (2) to (4), wherein each of the plurality of pages includes a plurality of words, and the attribute includes a state indicating whether valid word data is stored for each of the plurality of words, and a master identifier indicating a specific master among the plurality of masters that last accessed the word data if valid word data is stored, and the attribute information management unit updates the state and the master identifier of the specific word when a specific word among the plurality of words is accessed. (6) The memory controller according to (5), wherein the attribute information management unit updates the attribute of a specific page among the plurality of pages to which the specific word belongs when a specific word among the plurality of words is accessed. (7) The memory controller according to (6), wherein, when a specific word among the plurality of words is accessed, if the master identifiers of all words that store valid word data among words included in the specific page to which the specific word belongs indicate the same master, the attribute information management unit sets the use of the specific page to the dedicated use. (8) The memory controller according to any one of (2) to (7), wherein the initial value of the attribute of each of the plurality of pages and the plurality of banks is shared. (9) The memory controller according to any one of (2) to (8), further comprising a setting register for setting an upper limit for the number of banks whose usage indicates the shared use and the number of banks whose usage indicates the exclusive use among the plurality of banks. (10) The memory controller according to any one of (1) to (9), further comprising a page conversion table for managing destination page addresses of pages moved between the plurality of banks among the plurality of pages and for page address conversion. (11) The memory controller according to any one of (1) to (10), further comprising a status register that is an interface for observing and changing the attribute.(12) A storage device comprising: a memory having a plurality of banks, each consisting of a plurality of pages; an attribute information management unit that manages attributes determined for each of the plurality of pages and the plurality of banks based on the manner in which the plurality of pages and the plurality of banks are accessed by a plurality of masters; and a control unit that moves any of the plurality of pages between the plurality of banks based on the attribute. (13) A computer system comprising: a memory having a plurality of banks, each consisting of a plurality of pages; a plurality of masters that access the memory; an attribute information management unit that manages attributes determined for each of the plurality of pages and the plurality of banks based on the manner in which the plurality of masters access the memory; and a control unit that moves any of the plurality of pages between the plurality of banks based on the attribute.
[0077] 100 Master 199 Bus 200 Memory Controller 210 Attribute Management Table 220 Page Conversion Table 230 Status Register 240 Setting Register 290 Control Unit 300 Memory 310 Bank 320 Page 330 Word
Claims
1. A memory controller comprising: an attribute information management unit that manages attributes determined for each of a plurality of pages and each of the plurality of banks in a memory having a plurality of banks, each of the banks consisting of a plurality of pages, based on the manner in which the pages and each of the banks are accessed by a plurality of masters; and a control unit that moves any of the plurality of pages between the plurality of banks based on the attribute.
2. The memory controller of claim 1, wherein the attributes include a purpose indicating whether each of the multiple pages and the multiple banks is shared and accessed by two or more of the multiple masters, or dedicated and accessed exclusively by one of the multiple masters, and the control unit moves any of the multiple pages between the multiple banks so that the purpose matches between each of the multiple pages and each of the multiple banks.
3. The memory controller of claim 2, wherein, when the use of a particular page belonging to a particular bank among the plurality of banks indicates the shared use and the use of the particular bank does not indicate the shared use, the control unit moves the particular page to another bank whose use indicates the shared use.
4. The memory controller of claim 2, wherein the attribute includes a master identifier of a specific master among the multiple masters which last accessed the page or bank when the use of each of the multiple pages and the multiple banks indicates the dedicated use, and the control unit moves the specific page to another bank whose use indicates the dedicated use and whose master identifier matches that of the specific page when the use of a specific page belonging to a specific bank among the multiple banks indicates the dedicated use and the use of the specific bank does not indicate the dedicated use.
5. A memory controller as described in claim 2, wherein each of the plurality of pages respectively comprises a plurality of words, the attributes include a state indicating whether or not valid word data is stored for each of the plurality of words, and if valid word data is stored, a master identifier indicating a specific master among the plurality of masters which last accessed the word data, and the attribute information management unit updates the state and master identifier of the specific word when an access occurs to a specific word among the plurality of words.
6. The memory controller according to claim 5, wherein said attribute information management unit updates the attribute of a specific page among said plurality of pages to which said specific word belongs when an access occurs to a specific word among said plurality of words.
7. A memory controller as described in claim 6, wherein, when an access occurs to a specific word among the plurality of words, the attribute information management unit sets the use of the specific page to the dedicated use if the master identifiers of all words that store valid word data among the words included in the specific page to which the specific word belongs indicate the same master.
8. The memory controller according to claim 2, wherein an initial value of said attribute of each of said plurality of pages and said plurality of banks is said shared.
9. The memory controller according to claim 2, further comprising a setting register for setting an upper limit for the number of banks whose usage indicates the shared use and an upper limit for the number of banks whose usage indicates the exclusive use among said plurality of banks.
10. The memory controller according to claim 1, further comprising a page conversion table for managing destination page addresses of pages moved between said plurality of banks among said plurality of pages, and for performing page address conversion.
11. The memory controller of claim 1, further comprising a status register that is an interface for observing and modifying said attributes.
12. A storage device comprising: a memory having a plurality of banks, each consisting of a plurality of pages; an attribute information management unit that manages attributes determined for each of the plurality of pages and the plurality of banks based on the manner in which they are accessed by a plurality of masters; and a control unit that moves any of the plurality of pages between the plurality of banks based on the attribute.
13. A computer system comprising: a memory having a plurality of banks, each consisting of a plurality of pages; a plurality of masters accessing the memory; an attribute information management unit that manages attributes determined for each of the plurality of pages and the plurality of banks based on the manner in which they are accessed by the plurality of masters; and a control unit that moves any of the plurality of pages between the plurality of banks based on the attribute.
Citation Information
Patent Citations
Memory management table generation system
JP1994110774A
Data management method
JP1995200389A
Mechanism for reducing page migration overhead in a memory system - Patents.com
JP2020524339A
