Memory access monitoring method and device
AssigneeHuawei Technologies Co., Ltd.
InventorsXiaofeng Zhang, Fan Fang
Life of this patent
Estimating the term…
Abstract
A memory access monitoring method and a memory access monitoring method device are disclosed, The method comprises: performing coarse grain monitoring on local memory pages, if a hot page with coarse grain monitoring exists in the local memory pages, requesting an operating system to perform an optimized migration for the content of the hot page, and if a half hot page with coarse grain monitoring exists in the local memory pages, initiating fine grain monitoring to the half hot page; and performing fine grain monitoring on the half hot page, if a hot area with fine grain monitoring exists in the half hot page, requesting the operating system to perform an optimized migration for the content of the hot area.
Claims17
A memory access monitoring method, comprising:
- performing coarse grain monitoring on access circumstances of nodes for local memory pages, wherein the coarse grain monitoring further comprises if a first remote access rate exceeds a first predetermined threshold value then determining that a coarse grain page obtained by coarse grain dividing the local memory pages is a hot page, wherein the coarse grain page which is under the coarse grain monitoring is accessed by a first remote node by the first remote access rate;
- migrating content of the hot page to a first remote memory corresponding to the first remote node;
- if the first remote access rate by which the coarse grain page is accessed by the first remote node does not exceed the first redetermined threshold value, then determining whether a total remote access rate exceeds a second predetermined threshold value, wherein the coarse grain page is accessed by all remote nodes by the total remote access rate;
- if the total remote access rate exceeds the second predetermined threshold value, then the coarse grain page is a half hot page;
- and
- performing fine grain monitoring on the half hot page, wherein the fine grain monitoring comprises monitoring a fine grain area of the half hot page and the coarse grain page is larger than a memory space occupied by the fine grain area.
A memory access monitoring device, comprising:
- a coarse grain monitoring module, configured to perform coarse grain monitoring on access circumstances of nodes for local memory pages, wherein the coarse grain monitoring module comprises:
- a hot page determining unit, configured to determine, if a first remote access rate exceeds a first predetermined threshold value, that a coarse grain page obtained by coarse grain dividing the local memory pages to be a hot page, wherein the coarse grain page which is under the coarse grain monitoring is accessed by a first remote node by the first remote access rate;
- and
- a half hot page determining unit, configured to determine, if the first remote access rate by which the coarse am sage is accessed by the first remote node does not exceed the first predetermined threshold value, whether a total remote access rate exceeds a second predetermined threshold value, wherein the coarse grain page is accessed by all remote nodes by the total remote access rate;
- if the total remote access rate exceeds the second predetermined threshold value, then the coarse grain page is a half hot page;
- a fine grain monitoring module, configured to perform fine grain monitoring on the half hot page, wherein the fine grain monitoring comprises monitoring a fine grain area of the half hot page and the coarse grain page is larger than a memory space occupied by the fine grain area;
- and
- the monitor controlling module, configured to instruct the coarse grain monitoring module to initiate coarse grain monitoring to local memory pages, and request an operating system to migrate content of the hot page monitored by the coarse grain monitoring module to a first remote memory corresponding to the first remote node, and if the coarse grain monitoring module monitors that the half hot page exists in the local memory pages, instruct the fine grain monitoring module to initiate the fine grain monitoring to the half hot page.
A memory access monitoring method, comprising:
- determining that a coarse grain page obtained by coarse grain dividing local memory pages is a hot page when a first remote access rate exceeds a first predetermined threshold value, wherein the coarse grain page is accessed by a first remote node at the first remote access rate;
- migrating content of the hot page to a first remote memory corresponding to the first remote node;
- determining the coarse grain page is a half hot page when a total remote access rate exceeds a second predetermined threshold value when first remote access rate does not exceed the first predetermined threshold value, wherein the coarse grain page is accessed by all remote nodes at the total remote access rate;
- and
- performing fine grain monitoring on the half hot page, wherein the fine grain monitoring comprises monitoring a fine grain area of the half hot page, and the coarse grain page is larger than a memory space occupied by the fine grain area.
Dependencies are inferred from the claim text.