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

A memory allocation method, device and system

A memory allocation and memory technology, applied in the computer field, can solve problems such as system performance degradation, achieve the effect of avoiding competition, improving system performance and data processing efficiency

Inactive Publication Date: 2015-09-30
HUAWEI TECH CO LTD +1
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In the process of data replacement, the inventor found that under limited resources, the operating system and application programs will inevitably compete for the cache, resulting in system performance degradation

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 memory allocation method, device and system
  • A memory allocation method, device and system
  • A memory allocation method, device and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0047] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0048] Such as figure 1 As shown, the embodiment of the present invention provides a memory allocation method, including:

[0049] S101. When a thread needs to allocate memory, identify the type of the thread.

[0050] Among them, the types of threads include: user-mode threads and kernel-mode threads; usually, user-mode threads are threads created when user applications provide services, and mainly run in user-mode space, while kernel-mode threads are thread...

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 method, device and system for memory allocation, which relates to the field of computers and is used to avoid competitions of operating systems and application programs for cache, thus improving system performances and data processing efficiency. The memory allocation method comprises the following steps: when a thread needs to allocate a memory, identifying the type of the thread, wherein the memory comprises a plurality of physical memory pages, the memory of the plurality of physical memory pages is divided into a user mode memory area and a kernel state memory area, physical memory pages in the user mode memory area are used for storing user mode data and instructions, and physical memory page in the kernel mode memory area are used for storing kernel mode data and instructions; if the thread is a user mode thread, allocating memory for the user mode thread from the user mode memory area; and if the thread is a kernel mode thread, allocating memory for the kernel mode thread from the kernel mode memory area.

Description

technical field [0001] The invention relates to the field of computers, in particular to a memory allocation method, device and system. Background technique [0002] In computer architecture, processor and memory are two core components. The processor is mainly used for computing, and the memory is mainly used for storing data. The hierarchical classification of memory is a pyramid structure organization. The top of the tower is a hardware cache memory with high cost, small capacity, but extremely fast access speed, and there is also memory with controllable cost and relatively fast memory access speed in the middle. The freehub is a low-cost, large-capacity, but slow-access hardware disk. [0003] At present, the computing speed of the computer CPU is much higher than the speed of accessing data from the memory, and the hardware cache memory is located between the CPU and the memory, and its memory access speed is between the two, such as the current mainstream server. T...

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): G06F12/08G06F9/50
Inventor 刘仪阳张知皦方帆陈渝崔岩
Owner HUAWEI TECH CO LTD
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