Method of allocating physical memory in specified address range under linux system platform

a technology of linux system platform and address range, applied in the direction of memory adressing/allocation/relocation, instruments, computing, etc., can solve the problems of wasting resources, low efficiency, and relatively complicated memory allocation, and achieve the effects of improving overall allocation flow, enhancing search speed, and improving search mod

Active Publication Date: 2009-10-01
INVENTEC CORP
View PDF10 Cites 22 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Benefits of technology

[0009]In order to solve the problems and eliminate the defects in the conventional art, the present invention is directed to a method of allocating a physical memory in a specified address range under a Linux system platform, which is applied in a test process of a physical memory in a Linux operating system. According to a specified address range and a size of the memory to be allocated, the method is used to allocate a large amount of physical memories in the system in a specified address range, thereby providing efficient support for the test of the physical memory in a Linux operating system.
[0012]In view of the above, the present invention has the following advantages.
[0013]The method of allocating a physical memory in a specified address range under a Linux system platform provided by the present invention can be used for allocating a large amount of physical memories in a specified address range, which provides a functional interface for allocating a plurality of pages / blocks at one time through improving the overall allocation flow, and improves searching mode and enhances searching speed through using the data structure in the kernel. Meanwhile, through splitting memories, the method of the present invention avoids occupying redundant memories. Therefore, the method of the present invention not only combines the advantages of the above two methods of allocating a physical memory in the conventional art, but also overcomes the defects of such conventional methods, thereby providing efficient support for the test of physical memories in a Linux operating system. The main advantages thereof lie in that, these are the physical memories that are allocated; the allocation is performed in the specified address range; a large amount of memories can be allocated at one time; and no other adjacent memory pages are occupied, thereby avoiding the problem of wasting resources in the conventional art; and it is capable of testing specific memory units or memories in a specified slot.

Problems solved by technology

However, different operating systems manage physical memories in different manners, without uniform rules.
Therefore, the memory allocation is relatively complicated, and should be performed in consideration of different operating systems.
However, this method can only allocate one memory page each time, has low efficiency, and may possibly occupy other adjacent memory pages, thereby resulting in wasting of resources.
Therefore, this method has a great limitation and is not suitable for testing a large amount of physical memories.
However, the main disadvantage of this method lies in that, it cannot allocate the physical memories in a specified address range (due to being restricted by a data structure for organizing the physical memories in the Linux system kernel).
Therefore, this method cannot be used to test specific memory units or memories in specified slots.

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
  • Method of allocating physical memory in specified address range under linux system platform
  • Method of allocating physical memory in specified address range under linux system platform
  • Method of allocating physical memory in specified address range under linux system platform

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020]The preferred embodiments of the present invention will be described below in detail with reference to the drawings.

[0021]In a Linux system, a kernel includes a memory management mechanism. A memory exists in a system in a form of pages, in which each page represents a unique physical memory. The system describes the information about such a page through one data structure, and stores the pages together in a form of an array according to the positions of the pages in the physical memory, and uses a global pointer of the page structure to point to a first address of the array. Therefore, once the first address of the array is obtained, any page structure in the memory can be obtained. Of course, each page in the memory cannot be operated at will. The Linux system has its own memory management mechanism, and thus, the object of the present invention should be achieved without violating the system rules. The process of achieving the present invention is described as follows.

[0022...

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

A method of allocating a physical memory in a specified address range under a Linux system platform is applied in a testing process of a physical memory under a Linux operating system. In this method, according to a specified address range and a size of a memory to be allocated, a large amount of physical memories in the system are allocated in a specified address range, and then the information about the allocated memories is transmitted, so as to map, inspect, and release the memories, thereby effectively supporting the test for physical memories under the Linux operating system.

Description

BACKGROUND OF THE INVENTION[0001]1. Field of Invention[0002]The present invention relates to a method of allocating a memory, and more particularly to a method of allocating a physical memory in a specified address range under a Linux system platform.[0003]2. Related Art[0004]Currently, a memory test plays a very important role in a hardware diagnosis solution, which mainly includes two parts: memory allocation and test algorithm. The test algorithm specifies the rules for reading and writing memories, and different test algorithms are directed to inspecting different types of memory errors. Relevant information about conventional test algorithms has been specially introduced in documents about memory test algorithms, which will not be repeated herein. The memory allocation is an important precondition for a memory read / write test, which directly influences whether the test effect may be achieved or not, for example, whether the true physical memory can be tested or whether the same...

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 Applications(United States)
IPC IPC(8): G06F12/02
CPCG06F12/023G06F12/0223
Inventor WU, BOCHEN, TOMLIU, WIN-HARN
Owner INVENTEC CORP
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