hottub.patents
US 12,265,474 B2#3578397 Most CitedActiveUnited States (USPTO)Utility

On-demand memory allocation

0Forward Citations (#3578397 Global)
0.0/yrCitation Velocity (#3578397 Global)
0.00Citation PageRank (#3578397 Global)
14Prior Art Cited
20Claims (3 Indep. · 17 Dep.)
8Drawings / Sheets

Abstract

Techniques are disclosed relating to dynamically allocating and mapping private memory for requesting circuitry. Disclosed circuitry may receive a private address and translate the private address to a virtual address (which an MMU may then translate to physical address to actually access a storage element). In some embodiments, private memory allocation circuitry is configured to generate page table information and map private memory pages for requests if the page table information is not already setup. In various embodiments, this may advantageously allow dynamic private memory allocation, e.g., to efficiently allocate memory for graphics shaders with different types of workloads. Disclosed caching techniques for page table information may improve performance relative to traditional techniques. Further, disclosed embodiments may facilitate memory consolidation across a device such as a graphics processor.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 14 · Forward citations: 0.

Claims (20 — 3 Independent, 17 Dependent)

  1. Claim 1Independent Claim

    An apparatus, comprising: first and second client circuits configured to request to access a private memory space; memory allocation circuitry configured to map private memory pages in the private memory space to a virtual address space; cache circuitry configured to cache page table information corresponding to the mapped private memory pages, wherein the cached page table information is accessible to both the first and second client circuits; and memory management circuitry configured to translate addresses in the virtual address space to addresses in a physical memory space.

  2. Claim 2Depends on #1

    The apparatus of claim 1, wherein the cache circuitry is dedicated to caching page table information and is independent from a data cache included in the apparatus.

  3. Claim 3Depends on #1

    The apparatus of claim 1, wherein the cache circuitry includes a page directory cache and a page catalog cache.

  4. Claim 4Depends on #1

    The apparatus of claim 1, further comprising second cache circuitry at a lower level than the cache circuitry, wherein the second cache circuitry is configured to cache page table information for a single client circuit.

  5. Claim 5Depends on #1

    The apparatus of claim 1, further comprising: page management circuitry configured to: maintain a count of available pages in the virtual address space; and in response to a page reserve request when sufficient pages are available to grant the request, adjust the count and provide a page grant response.

  6. Claim 6Depends on #1

    The apparatus of claim 1, wherein the memory allocation circuitry includes multiple distributed units that are each dedicated to a set of shader processors and a global unit configured to communicate with the distributed units to manage page requests.

  7. Claim 7Depends on #1

    The apparatus of claim 1, wherein the memory allocation circuitry is further configured to: process a translate-no-map request that specifies to translate a private address to a virtual address if a corresponding private memory page is mapped to a virtual address for the private address, but not to map a private virtual page for the address otherwise.

  8. Claim 8Independent Claim

    A method, comprising: requesting, by a computing device, to access a private memory space using a first address; in response to determining that a page is not mapped for the first address, the computing device generating page table information for the private memory space and mapping a private memory page for the first address to a virtual address space; generating, by the computing device, a virtual address for the request based on the mapped private memory page; maintaining, by the computing device, a count of available pages in the virtual address space; in response to a page reserve request when sufficient pages are available to grant the request, the computing device adjusting the count and provide a page grant response; and translating, by the computing device, the virtual address to a physical address.

  9. Claim 9Depends on #8

    The method of claim 8, further comprising: freeing, by the computing device, a page in response to one or more unmap requests.

  10. Claim 10Depends on #9

    The method of claim 9, further comprising: maintaining, by the computing device, validity information corresponding to entries in page table pages; and wherein the freeing is performed in response to the one or more unmap request causing the page to have no valid page table entries.

  11. Claim 11Depends on #10

    The method of claim 10, wherein the validity information is encoded using at least one of the following types of encodings: bit mask that indicates validity of entries; and counter information that indicates a number of valid entries.

  12. Claim 12Independent Claim

    An apparatus, comprising: client circuitry configured to request to access a private memory space using a first address; memory allocation circuitry configured to: in response to determining that a page is not mapped for the first address, generate page table information for the private memory space and map a private memory page for the first address to a virtual address space; and generate a virtual address for the request based on the mapped private memory page; page management circuitry configured to: maintain a count of available pages in the virtual address space; and in response to a page reserve request when sufficient pages are available to grant the request, adjust the count and provide a page grant response; and memory management circuitry configured to translate the virtual address to a physical address.

  13. Claim 13Depends on #12

    The apparatus of claim 12, wherein the page management circuitry is configured to free a page and adjust the count in response to one or more unmap requests.

  14. Claim 14Depends on #13

    The apparatus of claim 13, wherein the page management circuitry is configured to maintain validity information corresponding to entries in page table pages and free the page in response to the one or more unmap request causing the page to have no valid page table entries.

  15. Claim 15Depends on #14

    The apparatus of claim 14, wherein the validity information is encoded using at least one of the following types of encodings: bit mask that indicates validity of entries; and counter information that indicates a number of valid entries.

  16. Claim 16Depends on #12

    The apparatus of claim 12, wherein the memory allocation circuitry includes multiple distributed units that are each dedicated to a set of shader processors and a global unit configured to communicate with the distributed units to manage page requests.

  17. Claim 17Depends on #12

    The apparatus of claim 12, wherein the memory allocation circuitry is further configured to: process a translate-no-map request that specifies to translate a private address to a virtual address if a corresponding private memory page is mapped to a virtual address for the private address, but not to map a private virtual page for the address otherwise.

  18. Claim 18Depends on #12

    The apparatus of claim 12, wherein the memory allocation circuitry is further configured to: unmap a virtual page from a private memory page in response to an unmap request.

  19. Claim 19Depends on #12

    The apparatus of claim 12, wherein, to generate a virtual address for the request based on the mapped private memory page, the memory allocation circuitry is configured to access multiple levels of a page table hierarchy based on portions of the first address.

  20. Claim 20Depends on #12

    The apparatus of claim 12, wherein the memory allocation circuitry is configured to access a first page table hierarchy to translate the first address to the virtual address and the memory management circuitry is configured to access a second page table hierarchy to translate the virtual address to the physical address.

Technical Overview & Description

The present application is a continuation of U.S. application Ser. No. 16/804,128, entitled “ On-demand Memory Allocation, ” filed Feb. 28, 2020, the disclosure of which is incorporated by reference herein in its entirety. BACKGROUND Technical Field This disclosure relates generally to computer memory management and more particularly to techniques for on-demand allocation of private memory. Description of the Related Art Processors such as graphics processing units (GPUs) may use various types of memory spaces. For example, shared memory spaces may be used to share data processed by multiple processor blocks while other blocks such as shader processors may also use private memory space(s) during operation. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 A is a diagram illustrating an overview of example graphics processing operations, according to some embodiments. FIG. 1 B is a block diagram illustrating an example graphics unit, according to some embodiments. FIG. 2 is a block diagram illustrating an example device with private memory allocator circuitry, according to some embodiments. FIG. 3 is block diagram illustrating a more detailed system with memory allocator circuitry and caches for page table information, according to some embodiments. FIG. 4 is a diagram illustrating an example page table hierarchy, according to some embodiments. FIG. 5 is a flow diagram illustrating an example method for creating page table entries and mapping a page and in response to a request, according to some embodiments. FIG. 6 is a flow diagram illustrating a more general method for handling an access requests that includes an address in a private memory space, according to some embodiments. FIG. 7 is a block diagram illustrating an example computing device, according to some embodiments. FIG. 8 is a block diagram illustrating an example computer-readable medium that stores circuit design information, according to some embodiments.

Cited By — Indexed Forward Citations (0 of 0 total)

No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.

References Cited — Backward Prior Art (14)

PatentTitleYearCitations

Non-Patent Literature (10)

  • Nathan Brookwood,
  • “
  • NVIDIA Solves the GPU Computing Puzzle,
  • ”
  • an Insight 64 White Paper; Sponsored by NVIDIA; Sep. 2009, 9 pages.
  • International Search Report and Written Opinion in PCT Appl. No. PCT/US2021/019353 mailed Jun. 17, 2021, 12 pages.
  • Appendix A
  • “
  • Hardware Description Languages
  • ”