MEMORY ALLOCATION METHOD AND APPARATUS
A memory allocation method and a device are provided, where the method is applied to a computer system including a processor and a memory. The memory includes at least two rank groups, each rank group includes at least two ranks, first portions of address information in addresses of ranks in one ran...
Gespeichert in:
Hauptverfasser: | , , , |
---|---|
Format: | Patent |
Sprache: | eng ; fre ; ger |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | A memory allocation method and a device are provided, where the method is applied to a computer system including a processor and a memory. The memory includes at least two rank groups, each rank group includes at least two ranks, first portions of address information in addresses of ranks in one rank group are the same, there is a mapping relationship between the first portion of address information and information about a first preset location in a physical address of a memory page, and the first preset location is a portion of page number information in the physical address. The method includes: receiving, by the processor, a memory access request carrying a to-be-accessed virtual address; when determining that no memory page has been allocated to the virtual address, selecting a target rank group from the at least two rank groups based on access traffic of the rank groups; and selecting, from idle memory pages, a to-be-allocated memory page for the memory access request, where information about a first preset location in a physical address of the to-be-allocated memory page is the same as first portions of address information in addresses of ranks in the target rank group. |
---|