A fine-grained memory allocation method

A memory allocation and fine-grained technology, which is applied in the fields of instruments, computing, and electrical digital data processing, etc., can solve the problems of not considering the difference of page access characteristics, increasing memory allocation overhead, memory expansion, etc.

Active Publication Date: 2021-07-06
UNIV OF SCI & TECH OF CHINA
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

During the running of the virtual machine, the memory management system does not consider the differences in page access characteristics, but uniformly allocates large pages to the virtual machine. Although this memory allocation mechanism brings performance advantages to the virtual machine, it also Problems such as memory expansion, increased memory allocation overhead, and reduced memory deduplication rate are introduced to the system

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A fine-grained memory allocation method
  • A fine-grained memory allocation method
  • A fine-grained memory allocation method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0022] figure 1 It is a schematic diagram of the implementation operation flow of the fine-grained memory allocation method based on the present invention, figure 2 It is a schematic diagram of the memory usage of the virtual machine under the default configuration of the system.

[0023] This embodiment is based on a fine-grained memory allocation method, which specifically includes the following steps:

[0024] The first step: detection of virtual machine type

[0025] For all running virtual machines, obtain the memory bandwidth of the virtual machine through the hardware performance counter (see attached figure 1 In the process operation box ①), by intercepting the access path of virtual machine input / output (I / O) (see figure 1 In the process operation box ②), obtain the I / O access frequency of the virtual machine; image 3 A schematic diagram of the I / O access path of the virtual machine is given: when the virtual machine initiates I / O requests, these I / O requests wi...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a fine-grained memory allocation method, which is characterized by adopting virtual machine type detection, virtual machine page type detection, fine-grained differentiated page allocation strategy and memory access-aware dynamic memory allocation strategy. Due to the distinction between the types of virtual machines, the pages used by I / O-intensive and computing-intensive virtual machines are all small pages. Compared with the system's default strategy of allocating large pages to virtual machines, memory expansion is alleviated. Reduces memory allocation overhead and improves memory deduplication rate; at the same time, for memory-intensive virtual machines, allocating their anonymous pages as large pages can maintain high memory access performance, while the page of memory-intensive virtual machines Cache pages and kernel pages are allocated as small pages. Compared with the system's default policy of allocating large pages, memory expansion is alleviated, memory allocation overhead is reduced, memory deduplication rate is improved, and system performance loss is minimized.

Description

technical field [0001] The invention belongs to the technical field of computer memory management, and specifically relates to a fine-grained implementation of a performance-efficient memory allocation method through a detection mechanism of a virtual machine type and a page type. Background technique [0002] Linux version 2.6.38 introduces the kernel feature of transparent huge pages (Transparent Hugepages), which achieves better performance by improving the efficiency of the processor's memory-mapped hardware. In the Linux memory management system, the size of ordinary pages is 4KB, and these pages are called small pages, while the size of transparent huge pages is 2MB, and these pages are called huge pages. Although large pages have higher memory access performance than small pages, they bring problems such as memory expansion, high allocation overhead, and low memory deduplication rate to the system. During the running of a virtual machine, different virtual machines h...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/455
CPCG06F9/45558G06F2009/45579G06F2009/45583
Inventor 许胤龙刘军明李永坤郭帆李诚吕敏陈吉强
Owner UNIV OF SCI & TECH OF CHINA
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products