WO2021133675A1 - Staging buffer arbitration - Google Patents
Staging buffer arbitration Download PDFInfo
- Publication number
- WO2021133675A1 WO2021133675A1 PCT/US2020/066029 US2020066029W WO2021133675A1 WO 2021133675 A1 WO2021133675 A1 WO 2021133675A1 US 2020066029 W US2020066029 W US 2020066029W WO 2021133675 A1 WO2021133675 A1 WO 2021133675A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- memory access
- access request
- selecting
- memory
- page
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/14—Handling requests for interconnection or transfer
- G06F13/16—Handling requests for interconnection or transfer for access to memory bus
- G06F13/1605—Handling requests for interconnection or transfer for access to memory bus based on arbitration
- G06F13/161—Handling requests for interconnection or transfer for access to memory bus based on arbitration with latency improvement
- G06F13/1621—Handling requests for interconnection or transfer for access to memory bus based on arbitration with latency improvement by maintaining request order
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/08—Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
- G06F12/0802—Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
- G06F12/0877—Cache access modes
- G06F12/0879—Burst mode
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/08—Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
- G06F12/0802—Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
- G06F12/0877—Cache access modes
- G06F12/0882—Page mode
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/14—Handling requests for interconnection or transfer
- G06F13/16—Handling requests for interconnection or transfer for access to memory bus
- G06F13/1605—Handling requests for interconnection or transfer for access to memory bus based on arbitration
- G06F13/161—Handling requests for interconnection or transfer for access to memory bus based on arbitration with latency improvement
- G06F13/1626—Handling requests for interconnection or transfer for access to memory bus based on arbitration with latency improvement by reordering requests
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/14—Handling requests for interconnection or transfer
- G06F13/16—Handling requests for interconnection or transfer for access to memory bus
- G06F13/1605—Handling requests for interconnection or transfer for access to memory bus based on arbitration
- G06F13/1642—Handling requests for interconnection or transfer for access to memory bus based on arbitration with request queuing
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/14—Handling requests for interconnection or transfer
- G06F13/16—Handling requests for interconnection or transfer for access to memory bus
- G06F13/1668—Details of memory controller
- G06F13/1673—Details of memory controller using buffers
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/544—Buffers; Shared memory; Pipes
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2212/00—Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
- G06F2212/10—Providing a specific technical effect
- G06F2212/1016—Performance improvement
- G06F2212/1021—Hit rate improvement
Definitions
- Command queues store memory access requests prior to execution. Increased arbitration and storage pressure on the command queue results in a performance decrease.
- Figure 1 is a block diagram of an example processor for staging memory access requests according to some embodiments.
- Figure 2 is a flowchart of an example method for staging memory access requests according to some embodiments.
- Figure 3 is a flowchart of an example method for staging memory access requests according to some embodiments.
- Figure 4 is a flowchart of an example method for staging memory access requests according to some embodiments.
- Figure 5 is a flowchart of an example method for staging memory access requests according to some embodiments.
- Figure 6 is a flowchart of an example method for staging buffer arbitration according to some embodiments.
- Figure 7 is a flowchart of an example method for staging buffer arbitration according to some embodiments.
- Figure 8 is a flowchart of an example method for staging buffer arbitration according to some embodiments.
- Figure 9 is a flowchart of an example method for staging buffer arbitration according to some embodiments.
- Figure 10 is a flowchart of an example method for staging buffer arbitration according to some embodiments.
- Figure 11 is a flowchart of an example method for staging buffer arbitration according to some embodiments.
- Figure 12 is a flowchart of an example method for staging buffer arbitration according to some embodiments.
- Figure 13 is a flowchart of an example method for staging buffer arbitration according to some embodiments.
- a method of staging buffer arbitration includes storing a plurality of memory access requests in a staging buffer; selecting a memory access request of the plurality of memory access requests from the staging buffer based on one or more arbitration rules; and moving the memory access request from the staging buffer to a command queue.
- selecting the memory access request includes selecting a memory access request burst of a same request type, wherein the memory access request burst includes the memory access request. In some embodiments, selecting the memory access request includes selecting the memory access request based on one or more of: a bank targeted by another memory access request, a rank targeted by another memory access request, or a memory subchannel targeted by another memory access request. In some embodiments, selecting the memory access request includes selecting the memory access request based on a Dynamic Random Access Memory page targeted by another memory access request. In some embodiments, selecting the memory access request includes selecting the memory access request based on a priority value.
- selecting the memory access request includes: identifying, in the staging buffer, another memory access request associated with a first page miss; identifying, in the command queue, a queued memory access request associated with a second page miss different from the first page miss; and selecting the memory access request in response to identifying the other memory access request and the queued memory access request.
- selecting the memory access request includes identifying, in the staging buffer, another memory access request associated with a first page conflict; identifying, in the command queue, a queued memory access request associated with a second page conflict different from the first page conflict; and selecting the memory access request in response to identifying the other memory access request and the queued memory access request.
- selecting the memory access request includes: identifying, in the command queue, a page hit request; and selecting the memory access request based on the memory access being another page hit request.
- a memory management unit for staging buffer arbitration performs steps including: storing a plurality of memory access requests in a staging buffer; selecting a memory access request of the plurality of memory access requests from the staging buffer based on one or more arbitration rules; and moving the memory access request from the staging buffer to a command queue.
- selecting the memory access request includes selecting a memory access request burst of a same request type, wherein the memory access request burst includes the memory access request.
- selecting the memory access request includes selecting the memory access request based on one or more of: a bank targeted by another memory access request, a rank targeted by another memory access request, or a memory subchannel targeted by another memory access request.
- selecting the memory access request includes selecting the memory access request based on a Dynamic Random Access Memory page targeted by another memory access request. In some embodiments, selecting the memory access request includes selecting the memory access request based on a priority value. In some embodiments, selecting the memory access request includes: identifying, in the staging buffer, another memory access request associated with a first page miss; identifying, in the command queue, a queued memory access request associated with a second page miss different from the first page miss; and selecting the memory access request in response to identifying the other memory access request and the queued memory access request.
- selecting the memory access request includes identifying, in the staging buffer, another memory access request associated with a first page conflict; identifying, in the command queue, a queued memory access request associated with a second page conflict different from the first page conflict; and selecting the memory access request in response to identifying the other memory access request and the queued memory access request.
- selecting the memory access request includes: identifying, in the command queue, a page hit request; and selecting the memory access request based on the memory access being another page hit request.
- an apparatus for staging buffer arbitration includes a processor, the processor including a memory management unit to perform steps including: storing a plurality of memory access requests in a staging buffer; selecting a memory access request of the plurality of memory access requests from the staging buffer based on one or more arbitration rules; and moving the memory access request from the staging buffer to a command queue.
- selecting the memory access request includes selecting a memory access request burst of a same request type, wherein the memory access request burst includes the memory access request. In some embodiments, selecting the memory access request includes selecting the memory access request based on one or more of: a bank targeted by another memory access request, a rank targeted by another memory access request, or a memory subchannel targeted by another memory access request. In some embodiments, selecting the memory access request includes selecting the memory access request based on a Dynamic Random Access Memory page targeted by another memory access request. In some embodiments, selecting the memory access request includes selecting the memory access request based on a priority value.
- selecting the memory access request includes: identifying, in the staging buffer, another memory access request associated with a first page miss; identifying, in the command queue, a queued memory access request associated with a second page miss different from the first page miss; and selecting the memory access request in response to identifying the other memory access request and the queued memory access request.
- selecting the memory access request includes identifying, in the staging buffer, another memory access request associated with a first page conflict; identifying, in the command queue, a queued memory access request associated with a second page conflict different from the first page conflict; and selecting the memory access request in response to identifying the other memory access request and the queued memory access request.
- selecting the memory access request includes: identifying, in the command queue, a page hit request; and selecting the memory access request based on the memory access being another page hit request.
- FIG. 1 is a block diagram of a non-limiting example processor 100 according to some embodiments.
- the example processor 100 can be implemented in a variety of computing devices, including mobile devices, personal computers, peripheral hardware components, gaming devices, set-top boxes, and the like.
- the processor 100 includes a memory management unit 102.
- the memory management unit 102 receives memory access requests (e.g., requests to read and/or write data to a particular region of memory.
- the memory management unit 102 also performs the translation of virtual memory addresses in the memory access requests to physical memory addresses in order to perform the memory access request.
- the memory management unit 102 includes a command queue 104.
- the command queue 104 stores memory access requests as they are received (e.g., from a central processing unit or other component of the processor 100) prior to execution to access Dynamic Random Access Memory 106.
- the Dynamic Random Access Memory 106 is shown as being separate from the processor 100, it is understood that the Dynamic Random Access Memory 106 may include on-chip Dynamic Random Access Memory 106 (e.g., as a component of the processor 100). Where the Dynamic Random Access Memory 106 includes multiple banks, the memory management unit 102 may include multiple command queues 104 each corresponding to a respective bank.
- the memory management unit 102 selects memory access requests for execution from the command queue 104 using one or more schemes, such as first-come-first-served (FCFS), first-ready, first-come-first-served (FR-FCFS), first-in-first-out (FIFO), etc.
- the memory management unit 102 includes a command queue arbiter 108 that selects memory access requests from the command queue 104 for execution using one or more rules.
- the one or more rules are based on timing or clock information (e.g., an age of a memory access request).
- the one or more rules are based on a page table 110.
- memory access requests that will result in a page table 110 hit are preferentially selected from the command queue 104 for execution.
- memory access requests received by a memory management unit 102 are placed directly in a command queue 104 for subsequent execution.
- the memory management unit 102 includes a staging buffer 112. Memory access requests received by the memory management unit 102 are placed in the staging buffer 112.
- a staging buffer arbiter 114 selects, based on one or more arbitration rules, memory access requests from the staging buffer 112 for movement to the command queue 104.
- the arbitration rules are based on a Dynamic Random Access Memory 106 page targeted by a memory access request. For example, a memory access request targeting a Dynamic Random Access Memory 106 page that is open is preferentially selected for movement to the command queue 104 as overhead required in closing and opening pages is reduced. As another example, a memory access request targeting a Dynamic Random Access Memory 106 page that is also targeted by another memory access request in the command queue 104, and therefore will be open when the selected memory access request is executed, is preferentially selected.
- the arbitration rules are based on a bank group rotation or rank rotation. For example, where the Dynamic Random Access Memory 106 includes multiple banks, memory access requests are selected from the staging buffer 112 for addition to the command queue 104 such that consecutively added requests do not target a same bank. As an example, a memory access request targeting a first bank is moved to the command queue 104, then a memory access request targeting a second bank is moved to the command queue 104. Another memory access request targeting the first bank is then be added to the command queue 104, etc. In some embodiments, memory access requests are selected to target different ranks within the same or different banks or to alteratively target different subchannels of Dynamic Random Access Memory 106 (e.g., sub-channel balancing).
- sub-channel balancing e.g., sub-channel balancing
- the arbitration rules are based on a request type for the memory access requests (e.g., read or write).
- a request type for the memory access requests e.g., read or write.
- read requests and/or write requests are grouped together as part of a “burst” of requests for movement to the command queue 104.
- a group of read requests and/or a group of write requests may be executed consecutively.
- the memory management unit 102 determines that the staging buffer 112 is full. Accordingly, the memory management unit 102 stores a received memory access request directly in the command queue 104 without storing the received memory access request in the staging buffer 112.
- Figure 2 sets forth a flow chart illustrating an exemplary method for staging memory access requests according to embodiments of the present disclosure that includes receiving 202 (e.g., by a memory management unit 102 of a processor 100) a memory access request 204 directed to Dynamic Random Access Memory 106.
- the memory access request 204 includes a request to read or write data to or from Dynamic Random Access Memory 106.
- the memory access request 204 is received via a data fabric or other interconnect coupling the memory management unit 102 to a central processing unit or other component.
- the method of Figure 2 also includes storing 206 (e.g., by the memory management unit 102) the memory access request 204 in a staging buffer 112.
- the method of Figure 2 also includes moving 208 the memory access request 204 from the staging buffer 112 to a command queue 104.
- Moving 208 the memory access request 204 includes removing the memory access request 204 from the staging buffer 112 and storing the memory access request 204 in the command queue 104.
- the memory access request 204 is moved in response to a number of memory access requests 204 in the staging buffer 112 meeting a threshold.
- the memory access request 204 is moved in response to a number of memory access requests 204 in the command queue 104 felling below a threshold.
- the memory access request 204 is moved in response to an age of the memory access request 204 (e.g., a time at which the memory access request 204 was received) meeting a threshold. In some embodiments the memory access request 204 is moved in response to one or more arbitration rules being satisfied.
- Figure 3 sets forth a flow chart illustrating an exemplary method for staging memory access requests according to embodiments of the present disclosure that includes receiving 202 (e.g., by a memory management unit 102 of a processor 100) a memory access request 204 directed to Dynamic Random Access Memory 106; storing 206 the memory access request 204 in a staging buffer 112; and moving 208 the memory access request 204 from the staging buffer 112 to a command queue 104.
- the method of Figure 3 differs from Figure 2 in that the method of Figure 3 also includes selecting 302 (e.g., by the memory management unit 102 of the processor 100) the memory access request 204 from the command queue 104.
- the memory access request 204 is selected from the command queue 104 using one or more schemes, such as first-come-first- served (FCFS), first-ready, first-come-first-served (FR-FCFS), first-in-first-out (FIFO), etc.
- FCFS first-come-first- served
- FR-FCFS first-ready, first-come-first-served
- FIFO first-in-first-out
- the memory management unit 102 includes a command queue arbiter 108 that selects memory access requests from the command queue 104 for execution using one or more rules.
- the one or more rules are based on timing or clock information (e.g., an age of a memory access request).
- the one or more rules are based on a page table 110.
- memory access requests that will result in a page table 110 hit are preferentially selected from the command queue 104 for execution.
- the method of Figure 3 differs from Figure 2 in that the method of Figure 3 also includes executing 304 (e.g., by the memory management unit 102), the memory access request 204. Executing 304 the memory access request 204 includes reading data from a Dynamic Random Access Memory 106 address specified in the memory access request 204 and/or writing data to a Dynamic Random Access Memory 106 address specified in the memory access request 204.
- Figure 4 sets forth a flow chart illustrating an exemplary method for staging memory access requests according to embodiments of the present disclosure that includes receiving 202 (e.g., by a memory management unit 102 of a processor 100) a memory access request 204 directed to Dynamic Random Access Memory 106; storing 206 the memory access request 204 in a staging buffer 112; and moving 208 the memory access request 204 from the staging buffer 112 to a command queue 104.
- the method of Figure 4 differs from Figure 2 in that the method of Figure 4 also includes receiving 402 another memory access request 404.
- the method of Figure 4 further differs from Figure 2 in that the method of Figure 4 also includes determining 406 that the staging buffer 112 is full.
- the staging buffer 112 includes a predefined amount of memory for storing a predefined maximum number of memory access requests. Accordingly, determining 406 that the staging buffer 112 is full includes determining that the staging buffer 112 is storing the predefined maximum number of memory access requests.
- the method of Figure 4 further differs from Figure 2 in that the method of Figure 4 also includes storing 408 the other memory access request 404 in the command queue 104 without storing the other memory access request 404 in the staging buffer 112. Thus, the staging buffer 112 is bypassed when full.
- Figure 5 sets forth a flow chart illustrating an exemplary method for staging memory access requests according to embodiments of the present disclosure that includes receiving 202 (e.g., by a memory management unit 102 of a processor 100) a memory access request 204 directed to Dynamic Random Access Memory 106; storing 206 the memory access request 204 in a staging buffer 112; and moving 208 the memory access request 204 from the staging buffer 112 to a command queue 104.
- the method of Figure 5 differs from Figure 2 in that the method of Figure 5 also includes selecting 502 (e.g., by the memory management unit 102, by a staging buffer arbiter 114 of the memory management unit 102), based on one or more arbitration rules, the memory access request 204 from a plurality of memory access requests in the staging buffer 112 for moving to the command queue 104.
- selecting 502 e.g., by the memory management unit 102, by a staging buffer arbiter 114 of the memory management unit 102
- the memory access request 204 from a plurality of memory access requests in the staging buffer 112 for moving to the command queue 104.
- the arbitration rules are based on a Dynamic Random Access Memory 106 page targeted by a memory access request. For example, a memory access request targeting a Dynamic Random Access Memory 106 page that is open is preferentially selected for movement to the command queue 104 as overhead required in closing and opening pages is reduced. As another example, a memory access request targeting a Dynamic Random Access Memory 106 page that is also targeted by another memory access request in the command queue 104, and therefore will be open when the selected memory access request is executed, is preferentially selected.
- the arbitration rules are based on a bank group rotation or rank rotation.
- memory access requests are selected from the staging buffer 112 for addition to the command queue 104 such that consecutively added requests do not target a same bank.
- a memory access request targeting a first bank is moved to the command queue 104
- a memory access request targeting a second bank is moved to the command queue 104.
- Another memory access request targeting the first bank is then added to the command queue 104, etc.
- memory access requests are selected to target different ranks within the same or different banks.
- Memory access requests are also selected to alteratively target different subchannels of Dynamic Random Access Memory 106 (e.g., sub-channel balancing).
- the arbitration mles are based on a request type for the memory access requests (e.g., read or write).
- a request type for the memory access requests e.g., read or write.
- read requests and/or write requests are grouped together as part of a “burst” of requests for movement to the command queue 104.
- a group of read requests and/or a group of write requests are executed consecutively.
- Figure 6 sets forth a flow chart illustrating an exemplary method for staging buffer arbitration according to embodiments of the present disclosure that includes storing 602 (e.g., by a memory management unit 102 of a processor 100) a plurality of memory access requests in a staging buffer 112.
- the memory access requests include a request to read or write data to or from Dynamic Random Access Memory 106.
- the memory access requests are via a data fabric or other interconnect coupling the memory management unit 102 to a central processing unit or other component.
- the method of Figure 6 also includes selecting 606, based on one or more arbitration rules, a memory access request 608 of the plurality of memory access requests from the staging buffer 112.
- a staging buffer arbiter 114 selects the memory access request 608 based on the one or more arbitration rules.
- the arbitration rules are applied to various attributes of the memory access requests stored in the staging buffer 112, memory access requests stored in a command queue 104, a page table 110, and/or other attributes.
- the arbitration rules are based on request type of memory access requests in the staging buffer 112 and/or command queue 104, a currently open Dynamic Random Access Memory 106 page, bank groups targeted by the memory access requests in the staging buffer 112 and/or command queue 104, refresh state of a bank or page targeted by memory access requests in the staging buffer 112 and/or command queue 104, and/or sub-channels targeted by memory access requests in the staging buffer 112 and/or command queue 104.
- the method of Figure 6 also includes moving 610 the memory access request 608 from the staging buffer 112 to a command queue 104.
- Moving 610 the memory access request 608 includes deleting the memory access request 608 from the staging buffer 112 and/or freeing a portion of the staging buffer 112 storing the memory access request 608 for subsequent overwriting.
- Moving 610 the memory access request 608 also includes adding the memory access request 608 to the command queue 104.
- the memory access request 608 is later executed from the command queue 104 by the memory management unit 102.
- Figure 7 sets forth a flow chart illustrating an exemplary method for staging buffer arbitration according to embodiments of the present disclosure that includes storing 602 (e.g., by a memory management unit 102 of a processor 100) a plurality of memory access requests in a staging buffer 112; selecting 606, based on one or more arbitration rules, a memory access request 608 of the plurality of memory access requests from the staging buffer 112; and moving 610 the memory access request 608 from the staging buffer 112 to a command queue 104.
- a memory management unit 102 of a processor 100 storing 602 (e.g., by a memory management unit 102 of a processor 100) a plurality of memory access requests in a staging buffer 112; selecting 606, based on one or more arbitration rules, a memory access request 608 of the plurality of memory access requests from the staging buffer 112; and moving 610 the memory access request 608 from the staging buffer 112 to a command queue 104.
- a memory access request 608 of the plurality of memory access requests from the staging buffer 112 includes selecting 702 a memory access request burst of a same request type, wherein the memory access request burst includes the memory access request 608.
- a memory access request burst includes a plurality of memory access requests of the same type (e.g., read or write). The memory access requests in the memory access request burst are selected for movement to the command queue 104 consecutively and/or at least partially simultaneously such that the memory access requests in the memory access request burst are later executed consecutively and/or at least partially simultaneously.
- a burst of read requests are executed without executing an intervening write request.
- a burst of write requests are executed without executing an intervening read request.
- this computational overhead is avoided by executing multiple memory access requests of a same request type. Accordingly, the memory access request 608 is selected based on other memory access requests of the same request type having been added to the command queue 104 and or based on other memory access requests of the same request type being stored in the staging buffer 112 that are subsequently added to the command queue 104 as part of the memory access request burst.
- Figure 8 sets forth a flow chart illustrating an exemplary method for staging buffer arbitration according to embodiments of the present disclosure that includes storing 602 (e.g., by a memory management unit 102 of a processor 100) a plurality of memory access requests in a staging buffer 112; selecting 606, based on one or more arbitration rules, a memory access request 608 of the plurality of memory access requests from the staging buffer 112; and moving 610 the memory access request 608 from the staging buffer 112 to a command queue 104.
- a memory management unit 102 of a processor 100 select 606, based on one or more arbitration rules, a memory access request 608 of the plurality of memory access requests from the staging buffer 112; and moving 610 the memory access request 608 from the staging buffer 112 to a command queue 104.
- a memory access request 608 of the plurality of memory access requests from the staging buffer 112 includes selecting 802 the memory access request 608 based on one or more of: a bank targeted by another memory access request, a rank targeted by a memory access request, or a memory subchannel targeted by another memory access request.
- memory access requests are added to the command queue 104 such that executed memory access requests altematingly target different Dynamic Random Access Memory 106 ranks or banks (e.g., rank balancing, bank balancing).
- memory access requests are added to the command queue 104 such that the executed memory access requests target Dynamic Random Access Memory 106 subchannels in a balanced approach.
- the memory access request 608 is selected based on a rank, bank, or subchannel targeted by a memory access request already added to the command queue 104 (e.g., a queued memory access command targeting a different rank, bank, or subchannel).
- the memory access request 608 is also selected based on a rank, bank, or subchannel targeted by a memory access request in the staging buffer 112 that is later added to the command queue 104 (e.g., a staged memory access command targeting a different rank, bank, or subchannel).
- Figure 9 sets forth a flow chart illustrating an exemplary method for staging buffer arbitration according to embodiments of the present disclosure that includes storing 602 (e.g., by a memory management unit 102 of a processor 100) a plurality of memory access requests in a staging buffer 112; selecting 606, based on one or more arbitration rules, a memory access request 608 of the plurality of memory access requests from the staging buffer 112; and moving 610 the memory access request 608 from the staging buffer 112 to a command queue 104.
- a memory management unit 102 of a processor 100 storing 602 (e.g., by a memory management unit 102 of a processor 100) a plurality of memory access requests in a staging buffer 112; selecting 606, based on one or more arbitration rules, a memory access request 608 of the plurality of memory access requests from the staging buffer 112; and moving 610 the memory access request 608 from the staging buffer 112 to a command queue 104.
- a memory access request 608 of the plurality of memory access requests from the staging buffer 112 includes selecting 902 the memory access request 608 based on a Dynamic Random Access Memory 106 page targeted by another memory access request. If an executed memory access request targets a page that is not currently open, overhead occurs in closing the currently open page and opening the targeted page. Executing memory access requests targeting a same (e.g. open) page reduces this overhead.
- the memory access request 608 is selected based on a page targeted by an already executed memory access request (e.g., an already open page).
- the memory access request 608 is selected based on a page targeted by a memory access request stored in the command queue 104 to be executed prior to the selected memory access request 308 such that the targeted page will be open when the selected memory access request 608 is executed.
- the memory access request 608 is selected based on a page targeted by another memory access request stored in the staging buffer 112 that will be subsequently selected for movement to the command queue 104 such that the targeted page is open when the other memory access request is executed.
- Figure 10 sets forth a flow chart illustrating an exemplary method for staging buffer arbitration according to embodiments of the present disclosure that includes storing 602 (e.g., by a memory management unit 102 of a processor 100) a plurality of memory access requests in a staging buffer 112; selecting 606, based on one or more arbitration rules, a memory access request 608 of the plurality of memory access requests from the staging buffer 112; and moving 610 the memory access request 608 from the staging buffer 112 to a command queue 104.
- a memory management unit 102 of a processor 100 storing 602 (e.g., by a memory management unit 102 of a processor 100) a plurality of memory access requests in a staging buffer 112; selecting 606, based on one or more arbitration rules, a memory access request 608 of the plurality of memory access requests from the staging buffer 112; and moving 610 the memory access request 608 from the staging buffer 112 to a command queue 104.
- a memory access request 608 of the plurality of memory access requests from the staging buffer 112 includes selecting 1002 the memory access request 1002 based on a priority value.
- the priority value is an explicit priority value assigned to memory access requests 608 (e.g., a priority tier).
- the priority value is calculated based on an attribute of memory access requests, such as an age of the memory access requests (e.g., a time at which a given memory access request was generated or received by the memory management unit 102).
- Figure 11 sets forth a flow chart illustrating an exemplary method for staging buffer arbitration according to embodiments of the present disclosure that includes storing 602 (e.g., by a memory management unit 102 of a processor 100) a plurality of memory access requests in a staging buffer 112; selecting 606, based on one or more arbitration rules, a memory access request 608 of the plurality of memory access requests from the staging buffer 112; and moving 610 the memory access request 608 from the staging buffer 112 to a command queue 104.
- a memory management unit 102 of a processor 100 storing 602 (e.g., by a memory management unit 102 of a processor 100) a plurality of memory access requests in a staging buffer 112; selecting 606, based on one or more arbitration rules, a memory access request 608 of the plurality of memory access requests from the staging buffer 112; and moving 610 the memory access request 608 from the staging buffer 112 to a command queue 104.
- a memory access request 608 of the plurality of memory access requests from the staging buffer 112 includes identifying 1102, in the staging buffer 112, another memory access request associated with a first page miss.
- identifying 1102 in the staging buffer 112
- another memory access request associated with a first page miss execution of the other memory access request will result in a page miss and corresponding computational overhead.
- the page table 110 is accessed to determine that execution of the other memory access request will result in a page miss.
- a memory access request 608 of the plurality of memory access requests from the staging buffer 112 also includes identifying 1104, in the command queue 104, a queued memory access request associated with a second page miss different from the first page miss.
- the queued memory access request is identified as having a same request type and targeting a same Dynamic Random Access Memory bank as the other memory access request in the staging buffer, but will result in a different row page miss.
- a memory access request 608 of the plurality of memory access requests from the staging buffer 112 also includes selecting 1106, in response to identifying the other memory access request and the queued memory access request, the memory access request 608.
- the memory access request 608 is preferentially selected over the other memory access request in the staging buffer 112 associated with the first page miss.
- Figure 12 sets forth a flow chart illustrating an exemplary method for staging buffer arbitration according to embodiments of the present disclosure that includes storing 602 (e.g., by a memory management unit 102 of a processor 100) a plurality of memory access requests in a staging buffer 112; selecting 606, based on one or more arbitration rules, a memory access request 608 of the plurality of memory access requests from the staging buffer 112; and moving 610 the memory access request 608 from the staging buffer 112 to a command queue 104.
- a memory management unit 102 of a processor 100 storing 602 (e.g., by a memory management unit 102 of a processor 100) a plurality of memory access requests in a staging buffer 112; selecting 606, based on one or more arbitration rules, a memory access request 608 of the plurality of memory access requests from the staging buffer 112; and moving 610 the memory access request 608 from the staging buffer 112 to a command queue 104.
- a memory access request 608 of the plurality of memory access requests from the staging buffer 112 includes identifying 1202, in the staging buffer 112, another memory access request associated with a first page conflict.
- execution of the other memory access request will result in a page conflict and corresponding computational overhead.
- the page table 110 is accessed to determine that execution of the other memory access request will result in a page conflict.
- a memory access request 608 of the plurality of memory access requests from the staging buffer 112 also includes identifying 1204, in the command queue 104, a queued memory access request associated with a second page conflict different from the first page conflict.
- the queued memory access request is identified as having a same request type and targeting a same Dynamic Random Access Memory bank as the other memory access request in the staging buffer 112, but will result in a different row page conflict.
- the method of Figure 12 further differs from Figure 6 in that selecting 606, based on one or more arbitration rules, a memory access request 608 of the plurality of memory access requests from the staging buffer 112 also includes selecting 1206, in response to identifying the other memory access request and the queued memory access request, the memory access request 608.
- the memory access request 608 is preferentially selected over the other memory access request in the staging buffer 112 associated with the first page conflict.
- Figure 13 sets forth a flow chart illustrating an exemplary method for staging memory access requests according to embodiments of the present disclosure that includes storing 602 (e.g., by a memory management unit 102 of a processor 100) a plurality of memory access requests in a staging buffer 112; selecting 606, based on one or more arbitration rules, a memory access request 608 of the plurality of memory access requests from the staging buffer 112; and moving 610 the memory access request 608 from the staging buffer 112 to a command queue 104.
- a memory management unit 102 of a processor 100 storing 602 (e.g., by a memory management unit 102 of a processor 100) a plurality of memory access requests in a staging buffer 112; selecting 606, based on one or more arbitration rules, a memory access request 608 of the plurality of memory access requests from the staging buffer 112; and moving 610 the memory access request 608 from the staging buffer 112 to a command queue 104.
- the method of Figure 13 differs from Figure 6 in that selecting 606, based on one or more arbitration rules, a memory access request 608 of the plurality of memory access requests from the staging buffer 112 includes identifying 1302, in the command queue 104, a page hit request.
- a page hit request includes a memory access request targeting a currently open page of dynamic random access memory 106.
- the method of Figure 13 further differs from Figure 6 in that selecting 606, based on one or more arbitration rules, a memory access request 608 of the plurality of memory access requests from the staging buffer 112 includes selecting 1304, based on the memory access request 608 being another page hit request, the memory access request 608.
- the memory access request 608 is preferentially selected for movement to the command queue 104 over other memory access requests that would result in a page miss.
- the staging buffer 112 will hold page conflict requests.
- the memory access request 608 is selected for movement to the command queue 104 such that the command queue 104 preferentially holds no more than one memory access request for each bank.
- staging buffer arbitration includes: • Improved performance of a computing system by relieving command queue pressure through the use of an additional staging buffer.
- Exemplary embodiments of the present disclosure are described largely in the context of a fully functional computer system for staging buffer arbitration. Readers of skill in the art will recognize, however, that the present disclosure also can be embodied in a computer program product disposed upon computer readable storage media for use with any suitable data processing system .
- Such computer readable storage media can be any storage medium for machine-readable information, including magnetic media, optical media, or other suitable media. Examples of such media include magnetic disks in hard drives or diskettes, compact disks for optical drives, magnetic tape, and others as will occur to those of skill in the art.
- Persons skilled in the art will immediately recognize that any computer system having suitable programming means will be capable of executing the steps of the method of the disclosure as embodied in a computer program product. Persons skilled in the art will recognize also that, although some of the exemplary embodiments described in this specification are oriented to software installed and executing on computer hardware, nevertheless, alternative embodiments implemented as firmware or as hardware are well within the scope of the present disclosure.
- the present disclosure can be a system, a method, and/or a computer program product.
- the computer program product can include a computer readable storage medium (or media) having computer readable program instructions thereon for causing a processor to carry out aspects of the present disclosure.
- the computer readable storage medium can be a tangible device that can retain and store instructions for use by an instruction execution device.
- the computer readable storage medium can be, for example, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing.
- a non-exhaustive list of more specific examples of the computer readable storage medium includes the following: a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD- ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanically encoded device such as punch-cards or raised structures in a groove having instructions recorded thereon, and any suitable combination of the foregoing.
- RAM random access memory
- ROM read-only memory
- EPROM or Flash memory erasable programmable read-only memory
- SRAM static random access memory
- CD- ROM compact disc read-only memory
- DVD digital versatile disk
- memory stick a floppy disk
- a mechanically encoded device such as punch-cards or raised structures in a groove having instructions recorded thereon
- a computer readable storage medium is not to be construed as being transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission media (e.g., light pulses passing through a fiberoptic cable), or electrical signals transmitted through a wire.
- Computer readable program instructions described herein can be downloaded to respective computing/processing devices from a computer readable storage medium or to an external computer or external storage device via a network, for example, the Interet, a local area network, a wide area network and/or a wireless network.
- the network can include copper transmission cables, optical transmission fibers, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers.
- a network adapter card or network interface in each computing/processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium within the respective computing/processing device.
- Computer readable program instructions for carrying out operations of the present disclosure can be assembler instructions, instruction-set-architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state-setting data, or either source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C++ or the like, and conventional procedural programming languages, such as the "C" programming language or similar programming languages.
- the computer readable program instructions can execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server.
- the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection can be made to an external computer (for example, through the Internet using an Interet Service Provider).
- electronic circuitry including, for example, programmable logic circuitry, field-programmable gate arrays (FPGA), or programmable logic arrays (PLA) can execute the computer readable program instructions by utilizing state information of the computer readable program instructions to personalize the electronic circuitry, in order to perform aspects of the present disclosure.
- These computer readable program instructions can be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the fimctions/acts specified in the flowchart and/or block diagram block or blocks.
- These computer readable program instructions can also be stored in a computer readable storage medium that can direct a computer, a programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable storage medium having instructions stored therein includes an article of manufacture including instructions which implement aspects of the function/act specified in the flowchart and/or block diagram block or blocks.
- the computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process, such that the instructions which execute on the computer, other programmable apparatus, or other device implement the fimctions/acts specified in the flowchart and/or block diagram block or blocks.
- each block in the flowchart or block diagrams can represent a module, segment, or portion of instructions, which includes one or more executable instructions for implementing the specified logical fimction(s).
- the functions noted in the block can occur out of the order noted in the figures.
- two blocks shown in succession can, in fact, be executed substantially concurrently, or the blocks can sometimes be executed in the reverse order, depending upon the functionality involved.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Memory System (AREA)
Priority Applications (4)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| KR1020227022686A KR20220113735A (ko) | 2019-12-27 | 2020-12-18 | 스테이징 버퍼 중재 |
| EP20842489.5A EP4081906A1 (en) | 2019-12-27 | 2020-12-18 | Staging buffer arbitration |
| CN202080090465.4A CN114868116A (zh) | 2019-12-27 | 2020-12-18 | 暂存缓冲区仲裁 |
| JP2022539320A JP2023508458A (ja) | 2019-12-27 | 2020-12-18 | ステージングバッファのアービトレーション |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US16/728,152 | 2019-12-27 | ||
| US16/728,152 US20210200694A1 (en) | 2019-12-27 | 2019-12-27 | Staging buffer arbitration |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2021133675A1 true WO2021133675A1 (en) | 2021-07-01 |
Family
ID=74186949
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/US2020/066029 Ceased WO2021133675A1 (en) | 2019-12-27 | 2020-12-18 | Staging buffer arbitration |
Country Status (6)
| Country | Link |
|---|---|
| US (1) | US20210200694A1 (https=) |
| EP (1) | EP4081906A1 (https=) |
| JP (1) | JP2023508458A (https=) |
| KR (1) | KR20220113735A (https=) |
| CN (1) | CN114868116A (https=) |
| WO (1) | WO2021133675A1 (https=) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US12541325B2 (en) * | 2022-07-14 | 2026-02-03 | Xilinx, Inc. | Memory controller with a preprocessor |
| CN115185866B (zh) * | 2022-07-25 | 2026-02-24 | Oppo广东移动通信有限公司 | 一种内存控制器、访问内存的控制方法及存储设备 |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20110179240A1 (en) * | 2010-01-18 | 2011-07-21 | Xelerated Ab | Access scheduler |
| US8271746B1 (en) * | 2006-11-03 | 2012-09-18 | Nvidia Corporation | Tiering of linear clients |
| US20180018105A1 (en) * | 2016-07-15 | 2018-01-18 | Advanced Micro Devices, Inc. | Memory controller with virtual controller mode |
| US20180173649A1 (en) * | 2016-12-20 | 2018-06-21 | Advanced Micro Devices, Inc. | Efficient arbitration for memory accesses |
Family Cites Families (15)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6523098B1 (en) * | 1999-12-22 | 2003-02-18 | Intel Corporation | Mechanism for efficient low priority write draining |
| US7149857B2 (en) * | 2002-05-14 | 2006-12-12 | Micron Technology, Inc. | Out of order DRAM sequencer |
| US8001338B2 (en) * | 2007-08-21 | 2011-08-16 | Microsoft Corporation | Multi-level DRAM controller to manage access to DRAM |
| US8180975B2 (en) * | 2008-02-26 | 2012-05-15 | Microsoft Corporation | Controlling interference in shared memory systems using parallelism-aware batch scheduling |
| US8266389B2 (en) * | 2009-04-29 | 2012-09-11 | Advanced Micro Devices, Inc. | Hierarchical memory arbitration technique for disparate sources |
| US8539129B2 (en) * | 2010-04-14 | 2013-09-17 | Qualcomm Incorporated | Bus arbitration techniques to reduce access latency |
| GB2533808B (en) * | 2014-12-31 | 2021-08-11 | Advanced Risc Mach Ltd | An apparatus and method for issuing access requests to a memory controller |
| US9830086B2 (en) * | 2016-03-03 | 2017-11-28 | Samsung Electronics Co., Ltd. | Hybrid memory controller for arbitrating access to volatile and non-volatile memories in a hybrid memory group |
| US10852956B1 (en) * | 2016-06-30 | 2020-12-01 | Cadence Design Systems, Inc. | Structure of a high-bandwidth-memory command queue of a memory controller with external per-bank refresh and burst reordering |
| US10402120B2 (en) * | 2016-07-15 | 2019-09-03 | Advanced Micro Devices, Inc. | Memory controller arbiter with streak and read/write transaction management |
| US10466904B2 (en) * | 2017-03-24 | 2019-11-05 | Western Digital Technologies, Inc. | System and method for processing and arbitrating submission and completion queues |
| US10198369B2 (en) * | 2017-03-24 | 2019-02-05 | Advanced Micro Devices, Inc. | Dynamic memory remapping to reduce row-buffer conflicts |
| US11422707B2 (en) * | 2017-12-21 | 2022-08-23 | Advanced Micro Devices, Inc. | Scheduling memory requests for a ganged memory device |
| US10534565B1 (en) * | 2018-04-11 | 2020-01-14 | Cadence Design Systems, Inc. | Programmable, area-optimized bank group rotation system for memory devices |
| US12253961B2 (en) * | 2019-12-27 | 2025-03-18 | Advanced Micro Devices, Inc. | Staging memory access requests |
-
2019
- 2019-12-27 US US16/728,152 patent/US20210200694A1/en not_active Abandoned
-
2020
- 2020-12-18 EP EP20842489.5A patent/EP4081906A1/en not_active Withdrawn
- 2020-12-18 JP JP2022539320A patent/JP2023508458A/ja active Pending
- 2020-12-18 WO PCT/US2020/066029 patent/WO2021133675A1/en not_active Ceased
- 2020-12-18 CN CN202080090465.4A patent/CN114868116A/zh active Pending
- 2020-12-18 KR KR1020227022686A patent/KR20220113735A/ko not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8271746B1 (en) * | 2006-11-03 | 2012-09-18 | Nvidia Corporation | Tiering of linear clients |
| US20110179240A1 (en) * | 2010-01-18 | 2011-07-21 | Xelerated Ab | Access scheduler |
| US20180018105A1 (en) * | 2016-07-15 | 2018-01-18 | Advanced Micro Devices, Inc. | Memory controller with virtual controller mode |
| US20180173649A1 (en) * | 2016-12-20 | 2018-06-21 | Advanced Micro Devices, Inc. | Efficient arbitration for memory accesses |
Also Published As
| Publication number | Publication date |
|---|---|
| US20210200694A1 (en) | 2021-07-01 |
| JP2023508458A (ja) | 2023-03-02 |
| KR20220113735A (ko) | 2022-08-16 |
| CN114868116A (zh) | 2022-08-05 |
| EP4081906A1 (en) | 2022-11-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP4081905B1 (en) | Staging memory access requests | |
| US11209982B2 (en) | Controlling operation of a data storage system | |
| US10067883B2 (en) | Using an access increment number to control a duration during which tracks remain in cache | |
| KR100824487B1 (ko) | 버퍼된 기록들 및 메모리 페이지 제어 | |
| US20190056870A1 (en) | Reducing solid state Storage device read tail latency | |
| US10956042B2 (en) | Tiering data compression within a storage system | |
| US20210149801A1 (en) | Storage drive dependent track removal in a cache for storage | |
| WO2021133675A1 (en) | Staging buffer arbitration | |
| US11281502B2 (en) | Dispatching tasks on processors based on memory access efficiency | |
| JP7801243B2 (ja) | 複合メモリコマンドを使用するメモリ動作 | |
| KR20220139420A (ko) | 완전한 스트라이드 디스테이지를 위한 선제적 스테이징 | |
| US9244693B2 (en) | System and method for booting multiple servers from snapshots of an operating system installation image while reducing access to unmodified portions of the installation image and reducing latencies between server ports | |
| US11016692B2 (en) | Dynamically switching between memory copy and memory mapping to optimize I/O performance | |
| US8667188B2 (en) | Communication between a computer and a data storage device | |
| US20210073136A1 (en) | Dynamically adjusting a number of memory copy and memory mapping windows to optimize i/o performance | |
| US20210406175A1 (en) | Shared memory workloads using existing network fabrics | |
| KR20240088614A (ko) | 스토리지 아비터 장치 및 그 동작 방법 | |
| US20190121565A1 (en) | Memory request scheduling to improve bank group utilization |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20842489 Country of ref document: EP Kind code of ref document: A1 |
|
| ENP | Entry into the national phase |
Ref document number: 2022539320 Country of ref document: JP Kind code of ref document: A |
|
| ENP | Entry into the national phase |
Ref document number: 20227022686 Country of ref document: KR Kind code of ref document: A |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| ENP | Entry into the national phase |
Ref document number: 2020842489 Country of ref document: EP Effective date: 20220727 |
|
| WWW | Wipo information: withdrawn in national office |
Ref document number: 2020842489 Country of ref document: EP |