Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Segment-page combined memory management method

A technology of memory management and physical memory, applied in the direction of electrical digital data processing, multi-program device, program control design, etc., to achieve the effect of providing usability

Active Publication Date: 2021-02-23
JIANGNAN INST OF COMPUTING TECH
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The object of the present invention is to provide a memory management method combining segments and pages. The memory management method combining segments and pages solves the needs of special computing components for large continuous physical memory through flexible memory management strategies, and at the same time takes into account common user programs. Memory usage requirements, flexibly adapt to different memory demand scenarios

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
  • Segment-page combined memory management method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0016] Embodiment: a memory management method combining segment pages, comprising the following steps:

[0017] S1. The operating system kernel is started, and the physical memory available on the entire server is obtained;

[0018] S2, operating system initialization, the operating system kernel reserves one or more segments of continuous physical memory from the available physical memory according to the reserved continuous physical memory capacity parameter in the kernel boot parameter configuration, and adds the reserved continuous physical memory to The segmented physical memory resource pool is managed by a segmented memory management algorithm, and the segmented physical memory resource pool can support the use of the segmented memory application interface to apply for continuous segmented physical memory space from the segmented physical memory resource pool, and Support the corresponding release interface;

[0019] S3. Add the remaining physical memory in the availab...

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 segment and page combined memory management method. The method comprises the following steps of S1, obtaining available physical memory on a whole server; s2, reserving one or more sections of continuous physical memories from available physical memories, and adding the reserved continuous physical memories into a section type physical memory resource pool; s3, adding theremaining physical memories, which are not added into the segment type physical memory resource pool, in available physical memories into the page type physical memory resource pool; s4, when the computing component needs the physical memory, applying for the physical memory from the segment type physical memory resource pool through the segment type memory application interface; and S5, when thecommon user program needs the physical memory, the operating system kernel compares the size of the applied physical memory space with the size of the large page supported by the processor. Accordingto the method, through a flexible memory management strategy, the requirement of a special computing component for a large continuous physical memory is met, meanwhile, the memory use requirement ofa common user program is considered, and different memory requirement scenes are flexibly adapted.

Description

technical field [0001] The invention relates to a memory management method for combination of segments and pages, which belongs to the technical field of computers. Background technique [0002] Special accelerated computing components have clear requirements for the use of large blocks of continuous physical memory. First, the required capacity is large, often several GB. Second, high availability. Failure to apply means that computing tasks cannot be deployed, and this situation needs to be avoided as much as possible. In order to meet the above requirements, a large block of memory is usually reserved as dedicated memory for special acceleration components for special management. For example, the current paging memory management of the Linux system can easily lead to fragmentation of memory usage. Even after sorting, it cannot guarantee the successful application of large continuous physical memory. Therefore, in order to meet the application of special acceleration compo...

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
IPC IPC(8): G06F9/50
CPCG06F9/5016Y02D10/00
Inventor 郑岩王星焱黄高阳林海南刘松邹通
Owner JIANGNAN INST OF COMPUTING TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products