Gpu shared virtual memory working set management
AssigneeApple Inc.
InventorDerek R. Kumar
Life of this patent
Estimating the term…
Abstract
A method and apparatus of a device that manages virtual memory for a graphics processing unit is described. In an exemplary embodiment, the device manages a graphics processing unit working set of pages. In this embodiment, the device determines the set of pages of the device to be analyzed, where the device includes a central processing unit and the graphics processing unit. The device additionally classifies the set of pages based on a graphics processing unit activity associated with the set of pages and evicts a page of the set of pages based on the classifying.
Claims20
A non-transitory machine-readable medium having executable instructions to cause one or more processing units to perform a method to track virtual memory access by a graphics processing unit of a device, the method comprising:
- detecting an access to a virtual memory address by a processing unit, wherein the device includes a central processing unit and the graphics processing unit that are each able to access the virtual memory address;
- determining if the processing unit is a graphic processing unit;
- and
- if the processing unit is the graphics processing unit,
- setting a graphics processing unit reference bit in a page table entry of a page table that corresponds to the virtual memory address, wherein the page table is shared between the central processing unit and the graphic processing unit.
A non-transitory machine-readable medium having executable instructions to cause one or more processing units to perform a method to manage a graphics processing unit working set of pages, the method comprising:
- determining the set of pages of a device to be analyzed, wherein the device includes a central processing unit and the graphics processing unit;
- classifying the set of pages based on a graphics processing unit activity associated with the set of pages;
- and
- evicting a page of the set of pages based on the classifying.
A method to track virtual memory access by a graphics processing unit of a device, the method comprising:
- detecting an access to a virtual memory address by a processing unit, wherein the device includes a central processing unit and the graphics processing unit that are each able to access the virtual memory address;
- determining if the processing unit is a graphic processing unit;
- and
- if the processing unit is the graphics processing unit,
- setting a graphics processing unit reference bit in a page table entry of a page table that corresponds to the virtual memory address, wherein the page table is shared between the central processing unit and the graphic processing unit.
The method of claim 18, further comprising:
- locating the page table entry.
A method to manage a graphics processing unit working set of pages, the method comprising:
- determining the set of pages of a device to be analyzed, wherein the device includes a central processing unit and the graphics processing unit;
- classifying the set of pages based on a graphics processing unit activity associated with the set of pages;
- and
- evicting a page of the set of pages based on the classifying.
Dependencies are inferred from the claim text.