IP Library Granted Patent US 9,588,903
Granted Patent B2
US 9,588,903 · App. 14/011,655 · Granted Mar 7, 2017

Microcontroller for memory management unit

Inventors: Cameron Buschardt (Round Rock, TX); Jerome F. Duluk, Jr. (Palo Alto, CA); John Mashey (Portola Valley, CA); Mark Hairgrove (San Jose, CA); James Leroy Deming (Madison, AL); Brian Fahs (Los Angeles, CA)
Assignee: NVIDIA Corporation
G06F12/1009G06F2212/301
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 9,588,903
App. No.
14/011,655
Granted
Mar 7, 2017
Kind
B2
Abstract

One embodiment of the present invention includes a microcontroller coupled to a memory management unit (MMU). The MMU is coupled to a page table included in a physical memory, and the microcontroller is configured to perform one or more virtual memory operations associated with the physical memory and the page table. In operation, the microcontroller receives a page fault generated by the MMU in response to an invalid memory access via a virtual memory address. To remedy such a page fault, the microcontroller performs actions to map the virtual memory address to an appropriate location in the physical memory. By contrast, in prior-art systems, a fault handler would typically remedy the page fault. Advantageously, because the microcontroller executes these tasks locally with respect to the MMU and the physical memory, latency associated with remedying page faults may be decreased. Consequently, overall system performance may be increased.

Claims (45)

1. A system configured to perform one or more preparatory operations for a memory access operation, the system comprising:

a first memory that includes a first page table;

a memory management unit coupled to the first memory and included within a parallel processing unit, the memory management unit configured to:

process requests for translating virtual memory addresses to physical memory addresses, and

manage the first page table; and

a microcontroller coupled to the memory management unit and included within the parallel processing unit, the microcontroller configured to:

identify a potential memory operation, and

perform the one or more preparatory operations for the potential memory operation, wherein the one or more preparatory operations comprise updating an opportunistic migration indicator included in a first entry in the first page table to identify a first memory page as a candidate for possible migration to a different physical memory at a later time.

2. The system of claim 1 , wherein the potential memory operation comprises an opportunistic memory migration operation associated with a first virtual memory address.

3. The system of claim 2 , wherein the one or more preparatory operations further comprise:

determining that the first memory page is included in a second memory based on the first virtual memory address, wherein the second memory is associated with a second processing unit;

allocating a storage space in the first memory based on the size of the first memory page; and

writing to a command queue one or more migration commands that are associated with migrating the first memory page from the second memory to the first memory.

4. The system of claim 3 , wherein the system further comprises a copy engine coupled to the first memory and configured to execute memory copy commands included in the command queue.

5. The system of claim 4 , wherein the one or more migration commands include commands that, when executed by the copy engine, cause the copy engine to copy the first memory page from the second memory to the first memory.

6. The system of claim 5 , wherein the one or more migration commands further include commands that, when executed by the parallel processing unit, cause the parallel processing unit to update the first page table to map the first virtual memory address to the first memory.

7. The system of claim 6 , wherein the one or more migration commands further include commands that, when executed by the parallel processing unit, cause the parallel processing unit to update a second page table associated with the second memory to remove any mappings corresponding to the first virtual memory address.

8. The system of claim 1 , wherein identifying the potential memory operation comprises scanning entries included in a page state directory to identify a first entry that is associated with a first virtual memory address and reflects an opportunistic memory migration status.

9. The system of claim 8 , wherein the first entry reflects an opportunistic migration status.

10. The system of claim 9 , wherein the first entry indicates that the first page table maps the first virtual memory address to a memory page included in the second memory.

11. The system of claim 1 , wherein the potential memory operation comprises a zero-fill-on-demand memory operation, and the one or more preparatory operations further comprise allocating a second memory page included in the first memory and setting every entry included in the second memory page to a binary value of zero.

12. The system of claim 1 , wherein the potential memory operation comprises a copy-on-write memory operation, and the one or more preparatory operations further comprise allocating a second memory page included in the first memory and copying a copy-on-write memory page to the second memory page.

13. A computing device, comprising:

a first memory that includes a first page table;

a memory management unit included within a parallel processing unit, the memory management unit configured to:

process requests for translating virtual memory addresses to physical memory addresses, and

manage the first page table; and

a microcontroller included within the parallel processing unit, the microcontroller configured to:

identify a potential memory operation, and

perform one or more preparatory operations for the potential memory operation, wherein the one or more preparatory operations comprise updating an opportunistic migration indicator included in a first entry in the first page table to identify a first memory page as a candidate for possible migration to a different physical memory at a later time.

14. The computing device of claim 13 , wherein the potential memory operation comprises an opportunistic memory operation associated with a first virtual memory address, and the one or more preparatory operations further comprise:

determining that the first memory page is included in a second memory based on the first virtual memory address, wherein the second memory is associated with a second processing unit;

allocating a storage space in the first memory based on the size of the first memory page; and

writing to a command queue one or more migration commands that are associated with migrating the first memory page from the second memory to the first memory.

15. The computing device of claim 13 , wherein the potential memory operation comprises a zero-fill-on-demand memory operation, and the one or more preparatory operations further comprise allocating a second memory page included in the first memory and setting every entry included in the second memory page to a binary value of zero.

16. The computing device of claim 13 , wherein the potential memory operation comprises a copy-on-write memory operation, and the one or more preparatory operations further comprise allocating a second memory page included in the first memory and copying a copy-on-write memory page to the second memory page.

17. A computer-implemented method for performing one or more preparatory operations for a memory access operation, the method comprising:

identifying a potential memory operation; and

performing the one or more preparatory operations for the potential memory operation, wherein the one or more preparatory operations comprise updating an opportunistic migration indicator included in a first entry in the first page table to identify a first memory page as a candidate for possible migration to a different physical memory at a later time.

18. The method of claim 17 , wherein the potential memory operation comprises an opportunistic memory migration operation associated with a first virtual memory address, and the one or more preparatory operations further comprise:

determining that the first memory page is included in a second memory based on the first virtual memory address, wherein the first memory is associated with a first processing unit;

allocating a storage space in a second memory based on the size of the first memory page, wherein the second memory is associated with a second processing unit; and

writing to a command queue one or more migration commands that are associated with migrating the first memory page from the first memory to the second memory.

19. The method of claim 17 , wherein the potential memory operation comprises a zero-fill-on-demand memory operation, and the one or more preparatory operations further comprise allocating a second memory page and setting every entry included in the second memory page to a binary value of zero.

20. The method of claim 17 , wherein the potential memory operation comprises a copy-on-write memory operation, and the one or more preparatory operations further comprise allocating a second memory page and copying a copy-on-write memory page to the second memory page.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 9, 2015
From: BUSCHARDT, CAMERON; DULUK, JEROME F., JR.; MASHEY, JOHN; HAIRGROVE, MARK; DEMING, JAMES LEROY; FAHS, BRIAN
To: NVIDIA CORPORATION
Reel/Frame 035120/0614 →
Continuity (2)
Provisional Application 61800038 · Mar 15, 2013
Related Publication 20140281356A1 · Sep 18, 2014