CN104077266B - Many kernel operating system implementation methods and realize apparatus and system - Google Patents
Many kernel operating system implementation methods and realize apparatus and system Download PDFInfo
- Publication number
- CN104077266B CN104077266B CN201310101210.5A CN201310101210A CN104077266B CN 104077266 B CN104077266 B CN 104077266B CN 201310101210 A CN201310101210 A CN 201310101210A CN 104077266 B CN104077266 B CN 104077266B
- Authority
- CN
- China
- Prior art keywords
- kernel
- application program
- characteristic
- module
- characteristic functions
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5011—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
- G06F9/5016—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The embodiment of the present invention provides a kind of many kernel operating system implementation methods and realizes apparatus and system, wherein, the method includes:It is the fundamental functional modules storage allocation of each kernel of many kernel operating systems;It is the characteristic functions module assignment internal memory for supporting the first application program in the first kernel of selection from each kernel;The internal memory to support the characteristic functions module assignment of the first application program in first kernel is discharged.Many kernel operating system implementation methods provided in an embodiment of the present invention and realize apparatus and system, realize the characteristic based on application program, it is on demand the corresponding function storage allocation of kernel, so as to improve the system administration efficiency and resource utilization of many kernel operating systems.
Description
Technical field
Filled the present embodiments relate to computer technology, more particularly to a kind of many kernel operating system implementation methods and realization
Put and system.
Background technology
With developing rapidly for computer technology, such as multi-core processor computer system is occurred in that(Multi-core
processor computing system), heterogeneous computer system(Heterogeneous computing system)Deng
Include the multiprocessor computer system of multiple processors(Multi-processor Computing System), in order to have
This kind of system of effect ground management, the affluent resources for making full use of system to provide, while ensureing the service efficiency of system, it is proposed that a kind of
Operate in many kernel operating systems on multiprocessor computer system(Multi-Kernel Operating System)Set
Meter method.
Many kernel operating systems, refer to the core of each processor in multiprocessor computer system(Processor
core)One operating system nucleus of upper deployment, disposes the system service for providing external interface, such as on the basis of kernel:File
System, communication system, so as to form a complete operating system.
In the prior art, it is the relation of equity between the kernel of many kernel operating systems, the function of each kernel is identical,
When needing to carry out resource coordination, by the interaction mechanism of equity, through consultation protocol realization management function.
But, in many kernel operating systems of prior art, in some the function a very long time on some kernels
Do not use, but still need and take many internal memories, cause the waste of computer resource.
The content of the invention
The embodiment of the present invention provides a kind of many kernel operating system implementation methods and realizes apparatus and system, how interior to improve
The system administration efficiency and resource utilization of core operating system.
In a first aspect, the embodiment of the present invention provides a kind of many kernel operating system implementation methods, the method includes:
It is the fundamental functional modules storage allocation of each kernel of many kernel operating systems;
It is in the characteristic functions module assignment for supporting the first application program in the first kernel of selection from each kernel
Deposit;
The internal memory to support the characteristic functions module assignment of the first application program in first kernel is discharged.
In the first possible implementation of first aspect, described is the first kernel chosen from each kernel
The middle characteristic functions module assignment internal memory for supporting the first application program includes:
Receive the load request of first application program;
According to the application of each described kernel recorded in the characteristic and core functions registration table of first application program
Program load information, chooses first kernel of first application program to be loaded from each kernel;
To support the characteristic functions module assignment internal memory of the first application program in first kernel.
According to the first possible implementation of first aspect or first aspect, in second possible implementation
In, it is described be from each kernel choose the first kernel in support the first application program characteristic functions module assignment in
After depositing, and by it is described for first kernel in support that the internal memory of characteristic functions module assignment of the first application program is released
After putting, also include:
The application program that first kernel of first application program is updated in the core functions registration table is born
The Memory Allocation information of information carrying breath and its each characteristic functions module.
According to first aspect, first aspect the first to second possible implementation any one, the 3rd
Plant in possible implementation, the species of the characteristic functions module is at least two, according to the application program to described many
The demand characteristics of the system resource of kernel operating system is classified.
According to the third possible implementation of first aspect, in the 4th kind of possible implementation, the characteristic
Functional module at least includes input and output intensive nature functional module, thread intensive nature functional module and network-intensive characteristic work(
Can module.
Second aspect, the embodiment of the present invention provides a kind of many kernel operating systems and realizes device, and the device includes:
Basic memory allocating module, for the fundamental functional modules storage allocation of each kernel for many kernel operating systems;
Characteristic memory allocating module, for for from each kernel choose the first kernel in support the first application program
Characteristic functions module assignment internal memory;
Release module, for by the characteristic functions module assignment to support the first application program in first kernel
Internal memory release.
In the first possible implementation of second aspect, characteristic memory allocating module includes:
Receiving unit, the load request for receiving first application program;
Unit is chosen, it is each for what is recorded in the characteristic and core functions registration table according to first application program
The application program load information of the kernel, chooses described the first of first application program to be loaded from each kernel
Kernel;
Memory Allocation unit, for in the characteristic functions module assignment that the first application program is supported in first kernel
Deposit.
According to the first possible implementation of second aspect or second aspect, in second possible implementation
In, also include:
Update module, the characteristic for supporting the first application program in for the first kernel chosen from each kernel
After functional module storage allocation, and by it is described for first kernel in support the characteristic functions mould of the first application program
After the internal memory release of block distribution, first kernel of first application program is updated in the core functions registration table
Application program load information and its characteristic functions module Memory Allocation information.
According to second aspect, second aspect the first to second possible implementation any one, the 3rd
Plant in possible implementation, the species of the characteristic functions module is at least two, according to the application program to described many
The demand characteristics of the system resource of kernel operating system is classified.
According to the third possible implementation of second aspect, in the 4th kind of possible implementation, the characteristic
Functional module at least includes input and output intensive nature functional module, thread intensive nature functional module and network-intensive characteristic work(
Can module.
The third aspect, the embodiment of the present invention provides a kind of many kernel operating systems and realizes system, and the platform includes the present invention
Many kernel operating systems that any embodiment is provided realize device, also including at least two processors, each processor
The kernel of many kernel operating systems is all deployed with core.
Many kernel operating system implementation methods provided in an embodiment of the present invention and apparatus and system is realized, by by many kernels
The function of the kernel of operating system is divided into the fundamental functional modules for providing basic core functions and is applied for support
The characteristic functions module of program is the characteristic functions module assignment of kernel or is discharged for running the interior of corresponding application program
Deposit, so that kernel possesses the ability of the load or unload application program, realize the characteristic based on application program, be on demand kernel
Corresponding function distribute internal memory for running corresponding application program, so as to improve the system administration of many kernel operating systems
Efficiency and resource utilization.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are this hairs
Some bright embodiments, for those of ordinary skill in the art, without having to pay creative labor, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the flow chart of many kernel operating system implementation methods that the embodiment of the present invention one is provided;
Fig. 2 is the structural representation that many kernel operating systems that the embodiment of the present invention four is provided realize device;
Fig. 3 is the structural representation that many kernel operating systems that the embodiment of the present invention five is provided realize device;
Fig. 4 is the structural representation that many kernel operating systems that the embodiment of the present invention six is provided realize device;
Fig. 5 is the structural representation that many kernel operating systems that the embodiment of the present invention seven is provided realize system.
Specific embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
A part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art
The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
Embodiment one
Fig. 1 is the flow chart of many kernel operating system implementation methods that the embodiment of the present invention one is provided.The side of the present embodiment
Method is applied to the situation optimized to the system administration efficiency and resource utilization of many kernel operating systems, and the method is by more
Kernel operating system realizes that device is performed, and the device is realized generally in the way of hardware and/or software, is integrated in many kernel behaviour
In system being realized as system.As shown in figure 1, the method for the present embodiment includes:
101st, for many kernel operating systems each kernel fundamental functional modules storage allocation;
102nd, it is that the characteristic functions module for supporting the first application program in the first kernel of selection from each kernel is divided
With internal memory;
103rd, the internal memory to support the characteristic functions module assignment of the first application program in first kernel is released
Put.
Specifically, many kernel operating systems refer to dispose one on each processor core of multiprocessor computer system
Individual operating system nucleus, disposes the system service for providing external interface, such as on the basis of kernel:File system, communication system,
So as to form a complete operating system.
In embodiments of the present invention, the kernel of many kernel operating systems uses modularized design, according to function by kernel
Function is divided into fundamental functional modules and characteristic functions module, and each functional module can be made up of program or collection of programs.Its
In, fundamental functional modules provide all kernels and all must have basic function, such as memory source management, information communication mechanism
Deng;Characteristic functions module is constructed according to the characteristic of application program, for supporting application program, by being characteristic functions module
The internal memory for running corresponding application program is distributed or discharges, so that the kernel where it possesses load or unload and accordingly should
With the ability of program.Each kernel is responsible for process, internal memory, device driver, file and the network system of system, wherein,
Process includes operating system service processes and program process, and operating system service processes provide the system clothes of external interface
Business.
A special statistical fractals program can be run on many kernel operating systems of the embodiment of the present invention, by the system
Various applications, the ruuning situation of each kernel in monitoring system are responsible in meter service routine unification;Or, it is also possible to by each kernel each
The ruuning situation of itself is monitored, determines which which kernel runs and apply with negotiation mode.
When many kernel operating systems are initialized and are started, system is distributing itself generation for storing kernel for each kernel
It is the fundamental functional modules storage allocation of each kernel so that basic function mould after internal memory needed for code, data and initialization
Block can provide basic core functions, such as memory source management, information communication mechanism etc.;
When statistical fractals program is determined as characteristic functions module assignment internal memory, is chosen in each kernel meet first
It is required that the first kernel, then to support the characteristic functions module assignment of the first application program in each first kernel needed in
Deposit, so that the first kernel possesses the ability of the first application program of loading, then, statistical fractals program is loaded on the first kernel
First application program.
When statistical fractals program is determined as characteristic functions module releasing memory, searched in each kernel first
First kernel of the first application program is successfully loaded with, then unloading first is applied on first kernel for finding
Program, and the characteristic functions module assignment for being released in first kernel to support the first application program internal memory.
Many kernel operating system implementation methods provided in an embodiment of the present invention, by by the kernel of many kernel operating systems
Function is divided into the fundamental functional modules for providing basic core functions and the characteristic functions mould for supporting application program
Block is the characteristic functions module assignment of satisfactory kernel in each kernel or is discharged for running the interior of corresponding application program
Deposit, so that the kernel possesses the ability of the load or unload application program, realize the characteristic based on application program, on demand for interior
The corresponding function of core distributes the internal memory for running corresponding application program, so as to improve the system pipes of many kernel operating systems
Reason efficiency and resource utilization.
Embodiment two
Many kernel operating system implementation methods that the embodiment of the present invention two is provided, on the basis of above method embodiment,
Preferably:After for the fundamental functional modules storage allocation of each kernel of many kernel operating systems, kernel can access interior
Kernel function registration table simultaneously itself will be registered to core functions registration table.
Specifically, system can safeguard a core functions registration table being used in conjunction with by all kernels, the core functions
Registration table be used to record processor chips mark where the kernel identification of each kernel, kernel, the application program load information of kernel,
The Memory Allocation information and the other information of kernel of the characteristic functions module of kernel, and according to the monitoring number of statistical fractals program
According to the information for updating each kernel.
After for the fundamental functional modules storage allocation of each kernel, kernel can access core functions registration table,
If there is core functions registration table in system, the kernel itself will be registered to core functions registration table;If system
In do not set up core functions registration table also, then the kernel has the right to set up core functions registration table, then itself will be registered in
Kernel function registration table, and specify from as temporary control and education kernel, now, the application journey of the kernel recorded in core functions registration table
Sequence load information is sky;After system initialization and start completion, then by after the time interval for setting, temporary control and education kernel stops
Receive registration.
Many kernel operating system implementation methods provided in an embodiment of the present invention, by by the kernel of many kernel operating systems
Function is divided into for fundamental functional modules and characteristic functions module, and sets up core functions registration table, is being each kernel
After fundamental functional modules storage allocation, kernel can access core functions registration table and itself will be registered to core functions registration
Table;Application program load information and characteristic functions mould of the statistical fractals program according to each kernel recorded in core functions registration table
The Memory Allocation information of block selects satisfactory kernel in each kernel, and is the characteristic functions module of satisfactory kernel
The internal memory for running corresponding application program is distributed or discharges, so that the kernel possesses the energy of the load or unload application program
Power, realizes the characteristic based on application program, on demand for the corresponding function of kernel is distributed for running corresponding application program
Internal memory, so as to improve the system administration efficiency and resource utilization of many kernel operating systems.
On the basis of above method embodiment, trigger as the mode of characteristic functions module assignment or releasing memory has many
Kind, a kind of preferred mode is to ask to be trigger condition to receive the load or unload of application program.
Alternatively, described is to support the characteristic functions of the first application program in the first kernel chosen from each kernel
Module assignment internal memory includes:Receive the load request of first application program;Characteristic according to first application program, with
And the application program load information of each described kernel recorded in core functions registration table, choose to be loaded from each kernel
First kernel of first application program;To support the characteristic functions module of the first application program in first kernel
Storage allocation.
Specifically, when statistical fractals program receives the load request of the first application program, it is characteristic functions mould to trigger
The step of block storage allocation:First according to the characteristic of the first application program, it is determined to support the characteristic work(of the first application program
The species of energy module, then inquires about the application program load information and characteristic functions module of each kernel in core functions registration table
Memory Allocation information, selection is also the kernel of the species characteristic functions module assignment internal memory, and combines those kernels
Application program load information, comprehensive descision chooses the first kernel of the first application program to be loaded;To support in the first kernel
The characteristic functions module assignment internal memory of one application program.
Alternatively, the selection is not also the kernel of the species characteristic functions module assignment internal memory, is specifically as follows:
In core functions registration table, first look for not being the kernel of any kind of characteristic functions module assignment internal memory;Secondly search
Kernel without the characteristic functions module assignment internal memory for the species.
Many kernel operating system implementation methods provided in an embodiment of the present invention, by by the kernel of many kernel operating systems
Function is divided into fundamental functional modules and characteristic functions module, and sets up core functions registration table, when receiving application program
Load request when, characteristic according to application program and inquiry core functions registration table select to meet the requirements in each kernel
Kernel, and characteristic functions module assignment for satisfactory kernel or discharge for running in corresponding application program
Deposit, so that the kernel possesses the ability of the load or unload application program, realize the characteristic based on application program, on demand for interior
The corresponding function of core distributes the internal memory for running corresponding application program, so as to improve the system pipes of many kernel operating systems
Reason efficiency and resource utilization.
On the basis of above method embodiment, preferably:It is described be from each kernel choose first in
After supporting the characteristic functions module assignment internal memory of the first application program in core, and by it is above-mentioned for first kernel in prop up
After the internal memory release of the characteristic functions module assignment for holding the first application program, also include:In the core functions registration table
Update the application program load information of first kernel and its Memory Allocation information of each characteristic functions module.
Specifically, various applications, the ruuning situation of each kernel in statistical fractals Program Monitoring System, are being characteristic functions mould
Block distribute or releasing memory after, updated in core functions registration table first kernel application program load information and
The Memory Allocation information of its each characteristic functions module
Many kernel operating system implementation methods provided in an embodiment of the present invention, by by the kernel of many kernel operating systems
Function is divided into fundamental functional modules and characteristic functions module, and sets up core functions registration table, is being characteristic functions module
After distribution or releasing memory, core functions registration table is updated, so that the application journey of each kernel of core functions registration table record
The Memory Allocation information of sequence load information and its each characteristic functions module can reaction system resource exactly use feelings
Condition, so as to improve the system administration efficiency and resource utilization of many kernel operating systems.
On the basis of above method embodiment, preferred one kind realizes that situation is:The species of the characteristic functions module
It is at least two, the demand characteristics of the system resource of many kernel operating systems is classified according to application program.
Specifically, the application program refers to the demand characteristics of the system resource of many kernel operating systems, based on difference
The characteristics of application program of species is based on itself, for the characteristic that the demand of system resource has differences, for example, drawing for search
The service of holding up, its service front-end needs substantial amounts of concurrent thread, while thread can frequently be created, destroyed, and its serving backend is then
Need substantial amounts of disk read-write.The various application programs of demand characteristics according to to(for) system resource, by the characteristic functions mould of kernel
Block is at least divided into two classes.
Alternatively, the characteristic functions module at least includes input and output intensive nature functional module, thread intensive nature
Functional module and network-intensive characteristic functions module.
Specifically, the demand characteristics according to various application programs for system resource, the characteristic of application program is divided into defeated
Enter output-bound characteristic, thread intensive nature and network-intensive characteristic, further, characteristic functions module at least includes that input is defeated
Go out intensive nature functional module, thread intensive nature functional module and network-intensive characteristic functions module.Such as, draw for search
The service of holding up, its service front-end needs substantial amounts of concurrent thread, while thread can frequently be created, destroyed, it is that typical thread is close
Collection characteristic, kernel is distributed or releasing memory by for thread intensive nature functional module so that the kernel possesses load or unload
The ability of thread intensive nature application program, its serving backend is that typical input/output (I/O, Input/Output) is intensive
Characteristic is, it is necessary to substantial amounts of disk read-write, kernel is by being the distribution of input and output intensive nature functional module or releasing memory so that
The kernel possesses the ability of load or unload input and output intensive nature application program;And for Stream Media Application, before its service
End is typical thread intensive nature, and its serving backend then needs substantial amounts of network transmission, is a typical network-intensive, interior
Core is by being network-intensive characteristic functions module assignment or releasing memory so that it is special that the kernel possesses load or unload network-intensive
The ability of property application program.
Many kernel operating system implementation methods provided in an embodiment of the present invention, by by the kernel of many kernel operating systems
Function is divided into fundamental functional modules and characteristic functions module, and according to application program to the system resource of many kernel operating systems
Demand characteristics, by characteristic functions module be divided at least include input and output intensive nature functional module, thread intensive nature work(
Can module and network-intensive characteristic functions module;When the load request of application program is received, the characteristic based on application program,
For corresponding characteristic functions module assignment in kernel or internal memory for running corresponding application program is discharged, so that kernel possesses
The ability of the corresponding application program of load or unload, realizes the characteristic based on application program, is on demand the corresponding function of kernel
The internal memory for running corresponding application program is distributed, so as to improve the system administration efficiency and resource of many kernel operating systems
Service efficiency.
Embodiment three
Many kernel operating system implementation methods that the embodiment of the present invention three is provided, on the basis of above method embodiment,
Trigger as the mode of characteristic functions module assignment or releasing memory has various, preferred another way is to monitor kernel
Application program load reaches trigger gate and is limited to trigger condition.
Specifically, when the load of the kernel K1 where statistical fractals sequential monitoring to application program a is utilized more than processor
The threshold value T1 of rate, that is, the trigger gate for reaching overload is prescribed a time limit, and it is the operation of characteristic functions module assignment internal memory that will trigger.First,
Characteristic according to application program a is determined to the species of the characteristic functions module for supporting application program a, is then noted in core functions
In volume table, inquiry is also the kernel of the characteristic functions module assignment internal memory of the species, on this basis, chooses answering for kernel
With program load no more than processor utilization threshold value T2 kernel as application program a to be loaded kernel K2.Wherein, K1
Identify statistical fractals Programmable detection to kernel overload when, the set of the kernel where application program a, K2 identifies negative to realize
Carry balanced, and choose will loading application programs a kernel set;The threshold value T1 is, for example, that processor utilization is
90%, the threshold value T1 are, for example, that processor utilization is 10%, and T1, T2 can use system default value, or by user on demand
Set.
After the kernel K2 that statistical fractals program have chosen loading application programs a, to support to answer in those kernels of selection
With the characteristic functions module assignment internal memory of program a, so that those kernels possess the ability of loading application programs a;Statistical fractals
Program loading application programs a on kernel K2;Statistical fractals program is according to kernel load information and correlation properties functional module
The change conditions of Memory Allocation information, update core functions registration table.
Many kernel operating system implementation methods provided in an embodiment of the present invention, by when statistical fractals Programmable detection to certain
The trigger gate that the application program load of the kernel where application program reaches overload is prescribed a time limit, and is triggered as in characteristic functions module assignment
The operation deposited, the characteristic based on the application program chooses the kernel of light load, is corresponding characteristic functions mould in those kernels
Block distributes the internal memory for running the application program, so that those kernels possess the ability for loading the application program, realizes base
In the characteristic of application program, the loading condition of kernel, realizes load balancing in dynamic debugging system, so as to improve many kernel behaviour
Make the system administration efficiency and resource utilization of system.
On the basis of above method embodiment, preferred one kind realizes that situation is:When statistical fractals Programmable detection is in
The load of core K1 drops to below threshold value T3, that is, reach and return to the trigger gate of normal level and prescribe a time limit, and it is characteristic functions module to trigger
The operation of releasing memory.
Specifically, when the load of statistical fractals Programmable detection to kernel K1 drops to below threshold value T3, that is, reach and return to just
The flat trigger gate of ordinary water is prescribed a time limit:First, the characteristic according to application program a is determined to support the characteristic functions mould of application program a
The species of block, then in core functions registration table, is chosen at when kernel K1 overloads and is successfully loaded to realize load balancing
The kernel K2 of application program a;On kernel K2, application program a is unloaded, and application program a will be supported in the above-mentioned K2 for kernel
Characteristic functions module assignment internal memory release;Statistical fractals program is according to kernel load information and correlation properties functional module
Memory Allocation information change conditions, update core functions registration table.
Alternatively, it is described in core functions registration table, it is chosen at when kernel K1 overloads to realize that load balancing is formed
Work(is loaded with the kernel K2 of application program a, is specifically as follows:In core functions registration table, first look for not only being loaded with and answer
With the kernel of program a;Then look up the kernel for being only loaded with application program a.
Many kernel operating system implementation methods provided in an embodiment of the present invention, by when statistical fractals Programmable detection to certain
When the application program load restoration of the kernel where application program is to normal level, it is characteristic functions module releasing memory to trigger
Operation, will unload application program in its relevant kernel chosen, and discharge the characteristic that the application program is supported in its relevant kernel
The internal memory of functional module, realizes the characteristic based on application program, the loading condition of kernel in dynamic debugging system, realizes load
Equilibrium, so as to improve the system administration efficiency and resource utilization of many kernel operating systems.
Example IV
Fig. 2 is the structural representation that many kernel operating systems that the embodiment of the present invention four is provided realize device.Such as Fig. 2 institutes
Show, many kernel operating systems of the present embodiment realize that device 200 can include:Basic memory allocating module 201, characteristic internal memory point
With module 202 and release module 203, wherein:
Basic memory allocating module 201, in the fundamental functional modules distribution of each kernel for many kernel operating systems
Deposit;
Characteristic memory allocating module 202, for being the application of support first in the first kernel of selection from each kernel
The characteristic functions module assignment internal memory of program;
Release module 203, for by the characteristic functions module to support the first application program in first kernel
The internal memory release of distribution.
Many kernel operating systems provided in an embodiment of the present invention realize device, can be used for performing method shown in Fig. 1 and implement
The technical scheme of example, the detailed process for performing the method can be found in the associated description of embodiment of the method shown in Fig. 1, no longer go to live in the household of one's in-laws on getting married herein
State.
Many kernel operating systems provided in an embodiment of the present invention realize device, by by the kernel of many kernel operating systems
Function is divided into the fundamental functional modules for providing basic core functions and the characteristic functions mould for supporting application program
Block is the characteristic functions module assignment of satisfactory kernel in each kernel or is discharged for running the interior of corresponding application program
Deposit, so that the kernel possesses the ability of the load or unload application program, realize the characteristic based on application program, on demand for interior
The corresponding function of core distributes the internal memory for running corresponding application program, so as to improve the system pipes of many kernel operating systems
Reason efficiency and resource utilization.
Embodiment five
Fig. 3 is the structural representation that many kernel operating systems that the embodiment of the present invention five is provided realize device.Such as Fig. 3 institutes
Show, many kernel operating systems that the present embodiment is provided realize that device 300 is on the basis of Fig. 2 shown device structures, further
Ground, characteristic memory allocating module 202 can include:Receiving unit 301, selection unit 302 and Memory Allocation unit 303, wherein:
Receiving unit 301, the load request for receiving first application program;
Unit 302 is chosen, for what is recorded in the characteristic and core functions registration table according to first application program
The application program load information of each kernel, chooses described the of first application program to be loaded from each kernel
One kernel;
Memory Allocation unit 303, for dividing for the characteristic functions module that the first application program is supported in first kernel
With internal memory.
Many kernel operating systems provided in an embodiment of the present invention realize device, can be used for the execution embodiment of the present invention and are carried
The technical scheme of many kernel operating system implementation method embodiments for supplying, the detailed process for performing the method can be found in the present invention in fact
The associated description of the embodiment of the method that example is provided is applied, here is omitted.
Many kernel operating systems provided in an embodiment of the present invention realize device, by by the kernel of many kernel operating systems
Function is divided into the fundamental functional modules for providing basic core functions and the characteristic functions mould for supporting application program
Block, and set up core functions registration table, when the load request of application program is received, characteristic according to application program and
Inquiry core functions registration table, selects satisfactory kernel, and be the characteristic functions of satisfactory kernel in each kernel
Module assignment discharges internal memory for running corresponding application program, so that the kernel possesses the load or unload application program
Ability, realize the characteristic based on application program, apply journey accordingly for running for the corresponding function of kernel is distributed on demand
The internal memory of sequence, so as to improve the system administration efficiency and resource utilization of many kernel operating systems
Embodiment six
Fig. 4 is the structural representation that many kernel operating systems that the embodiment of the present invention six is provided realize device.Such as Fig. 4 institutes
Show, many kernel operating systems that the present embodiment is provided realize that device 400 is on the basis of Fig. 3 shown device structures, further
Ground, can also include:Update module 401, the update module 401 is used in for the first kernel chosen from each kernel
After supporting the characteristic functions module assignment internal memory of the first application program, and by it is described for first kernel in support
After the internal memory release of the characteristic functions module assignment of one application program, described first is updated in the core functions registration table
The application program load information of kernel and its Memory Allocation information of characteristic functions module
Many kernel operating systems provided in an embodiment of the present invention realize device, can be used for the execution embodiment of the present invention and are carried
The technical scheme of many kernel operating system implementation method embodiments for supplying, the detailed process for performing the method can be found in the present invention in fact
The associated description of the embodiment of the method that example is provided is applied, here is omitted.
Many kernel operating systems provided in an embodiment of the present invention realize device, by by the kernel of many kernel operating systems
Function is divided into the fundamental functional modules for providing basic core functions and the characteristic functions mould for supporting application program
Block, and core functions registration table is set up, after for characteristic functions module assignment or releasing memory, update core functions registration
Table, so that the application program load information and its each characteristic functions module of each kernel of core functions registration table record
Memory Allocation information can reaction system resource exactly service condition, so as to improve the system administration of many kernel operating systems
Efficiency and resource utilization.
Embodiment seven
Fig. 5 is the structural representation that many kernel operating systems that the embodiment of the present invention seven is provided realize system.Such as Fig. 5 institutes
Show, many kernel operating systems that the present embodiment is provided realize that system 500 includes, many kernel operating systems realize device 502, extremely
Few two processors 504, are deployed with the kernel 503 of many kernel operating systems in the core of each processor 504, wherein, treatment
Device 504 can be the processor of variety classes or identical type, and application program 501 can be that any of system treatment applies journey
Sequence;Many kernel operating systems realize that device 502 can use the structure of any shown device embodiment in Fig. 2 to Fig. 4 of the present invention,
It accordingly can perform the technical scheme of many kernel operating system implementation method embodiments that the embodiment of the present invention is provided,
Its principle is similar with technique effect, and here is omitted.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above-mentioned each method embodiment can lead to
The related hardware of programmed instruction is crossed to complete.Foregoing program can be stored in a computer read/write memory medium.The journey
Sequence upon execution, performs the step of including above-mentioned each method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or
Person's CD etc. is various can be with the medium of store program codes.
Finally it should be noted that:Various embodiments above is merely illustrative of the technical solution of the present invention, rather than its limitations;To the greatest extent
Pipe has been described in detail with reference to foregoing embodiments to the present invention, it will be understood by those within the art that:Its according to
The technical scheme described in foregoing embodiments can so be modified, or which part or all technical characteristic are entered
Row equivalent;And these modifications or replacement, the essence of appropriate technical solution is departed from various embodiments of the present invention technology
The scope of scheme.
Claims (11)
1. a kind of implementation method of many kernel operating systems, it is characterised in that including:
It is the fundamental functional modules storage allocation of each kernel of many kernel operating systems;
It is the characteristic functions module assignment internal memory for supporting the first application program in the first kernel of selection from each kernel;
The internal memory to support the characteristic functions module assignment of the first application program in first kernel is discharged.
2. method according to claim 1, it is characterised in that described to be the first kernel chosen from each kernel
Supporting the characteristic functions module assignment internal memory of the first application program includes:
Receive the load request of first application program;
According to the application program of each described kernel recorded in the characteristic and core functions registration table of first application program
Load information, chooses first kernel of first application program to be loaded from each kernel;
To support the characteristic functions module assignment internal memory of the first application program in first kernel.
3. method according to claim 2, it is characterised in that it is described be the first kernel for being chosen from each kernel
After the characteristic functions module assignment internal memory of the first application program of middle support, and supported in by described in for first kernel
After the internal memory release of the characteristic functions module assignment of the first application program, also include:
The application program load information and its each characteristic work(of first kernel are updated in the core functions registration table
The Memory Allocation information of energy module.
4. according to any described methods of claim 1-3, it is characterised in that the species of the characteristic functions module is at least two
It is individual, the demand characteristics of the system resource of many kernel operating systems is classified according to the application program.
5. method according to claim 4, it is characterised in that the characteristic functions module at least includes that input and output are intensive
Characteristic functions module, thread intensive nature functional module and network-intensive characteristic functions module.
6. a kind of many kernel operating systems realize device, it is characterised in that including:
Basic memory allocating module, for the fundamental functional modules storage allocation of each kernel for many kernel operating systems;
Characteristic memory allocating module, for support the spy of the first application program in the first kernel for being chosen from each kernel
Sexual function module assignment internal memory;
Release module, for by the characteristic functions module assignment to support the first application program in first kernel
Deposit release.
7. device according to claim 6, it is characterised in that characteristic memory allocating module includes:
Receiving unit, the load request for receiving first application program;
Choose unit, in the characteristic and core functions registration table according to first application program record it is each described in
The application program load information of kernel, chooses in described the first of first application program to be loaded from each kernel
Core;
Memory Allocation unit, for support the characteristic functions module assignment internal memory of the first application program in first kernel.
8. device according to claim 7, it is characterised in that also include:
Update module, the characteristic functions for supporting the first application program in for the first kernel chosen from each kernel
After module assignment internal memory, and by it is described for first kernel in support the characteristic functions module point of the first application program
Match somebody with somebody internal memory release after, updated in the core functions registration table first kernel application program load information and
The Memory Allocation information of its characteristic functions module.
9. according to any described devices of claim 6-8, it is characterised in that the species of the characteristic functions module is at least two
It is individual, the demand characteristics of the system resource of many kernel operating systems is classified according to the application program.
10. device according to claim 9, it is characterised in that the characteristic functions module at least includes that input and output are close
Collection characteristic functions module, thread intensive nature functional module and network-intensive characteristic functions module.
A kind of 11. many kernel operating systems realize system, it is characterised in that including any described many kernels of claim 6-10
Operating system realizes device, also including at least two processors, many kernels operation systems is deployed with the core of each processor
The kernel of system.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310101210.5A CN104077266B (en) | 2013-03-27 | 2013-03-27 | Many kernel operating system implementation methods and realize apparatus and system |
PCT/CN2014/070952 WO2014154045A1 (en) | 2013-03-27 | 2014-01-21 | Method, apparatus and system for implementing multicore operating system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310101210.5A CN104077266B (en) | 2013-03-27 | 2013-03-27 | Many kernel operating system implementation methods and realize apparatus and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104077266A CN104077266A (en) | 2014-10-01 |
CN104077266B true CN104077266B (en) | 2017-07-07 |
Family
ID=51598528
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310101210.5A Active CN104077266B (en) | 2013-03-27 | 2013-03-27 | Many kernel operating system implementation methods and realize apparatus and system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN104077266B (en) |
WO (1) | WO2014154045A1 (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104503831B (en) * | 2014-12-22 | 2017-10-13 | 北京奇虎科技有限公司 | Equipment optimization method and device |
CN105786612B (en) * | 2014-12-23 | 2019-05-24 | 杭州华为数字技术有限公司 | A kind of method for managing resource and device |
CN104795072A (en) * | 2015-03-25 | 2015-07-22 | 无锡天脉聚源传媒科技有限公司 | Method and device for coding audio data |
CN109426565B (en) * | 2017-09-05 | 2024-01-02 | 中兴通讯股份有限公司 | Memory allocation method, device and terminal |
CN114020291A (en) * | 2017-10-09 | 2022-02-08 | 华为技术有限公司 | Method for loading application and upgrading application and terminal equipment |
CN108132841A (en) * | 2017-12-11 | 2018-06-08 | 杭州迪普科技股份有限公司 | A kind of memory allocation method and device of the equipment based on linux system |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101276289A (en) * | 2008-05-09 | 2008-10-01 | 中兴通讯股份有限公司 | Method for user and multi-inner core to perform communication in Linux system |
CN101859279A (en) * | 2010-05-21 | 2010-10-13 | 北京星网锐捷网络技术有限公司 | Memory allocation and release method and device |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6742145B2 (en) * | 2001-03-01 | 2004-05-25 | International Business Machines Corporation | Method of de-allocating multiple processor cores for an L2 correctable error |
CN100508499C (en) * | 2006-11-02 | 2009-07-01 | 杭州华三通信技术有限公司 | Multi-core processor for realizing adaptive dispatching and multi-core processing method |
CN100487660C (en) * | 2007-05-28 | 2009-05-13 | 中兴通讯股份有限公司 | Multithreading processor dynamic EMS memory management system and method |
US8537832B2 (en) * | 2010-03-12 | 2013-09-17 | Lsi Corporation | Exception detection and thread rescheduling in a multi-core, multi-thread network processor |
US8463887B2 (en) * | 2009-12-23 | 2013-06-11 | Citrix Systems, Inc. | Systems and methods for server surge protection in a multi-core system |
CN101799772B (en) * | 2010-02-26 | 2014-06-11 | 上海华为技术有限公司 | Kernel dispatching method, kernel backup method and multi-core processor |
CN102508717B (en) * | 2011-11-17 | 2013-07-10 | 大唐移动通信设备有限公司 | Memory scheduling method and memory scheduling device for multi-core processor |
-
2013
- 2013-03-27 CN CN201310101210.5A patent/CN104077266B/en active Active
-
2014
- 2014-01-21 WO PCT/CN2014/070952 patent/WO2014154045A1/en active Application Filing
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101276289A (en) * | 2008-05-09 | 2008-10-01 | 中兴通讯股份有限公司 | Method for user and multi-inner core to perform communication in Linux system |
CN101859279A (en) * | 2010-05-21 | 2010-10-13 | 北京星网锐捷网络技术有限公司 | Memory allocation and release method and device |
Also Published As
Publication number | Publication date |
---|---|
WO2014154045A1 (en) | 2014-10-02 |
CN104077266A (en) | 2014-10-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104077266B (en) | Many kernel operating system implementation methods and realize apparatus and system | |
CN103430159B (en) | Dynamic memory management in virtualized computing environment | |
CN105049268B (en) | Distributed computing resource distribution system and task processing method | |
CN103970520B (en) | Method for managing resource, device and architecture system in MapReduce frameworks | |
US8726290B2 (en) | System and/or method for balancing allocation of data among reduce processes by reallocation | |
US7356655B2 (en) | Methods, systems, and media for managing dynamic storage | |
US9479575B2 (en) | Managing capacity on demand in a server cloud | |
US9081504B2 (en) | Write bandwidth management for flash devices | |
CN103744719B (en) | Lock management method and system, the collocation method and device of lock administration system | |
CN106547612A (en) | A kind of multi-task processing method and device | |
CN105988872A (en) | CPU (central processing unit) resource allocation method and device and electronic equipment | |
CN108900626B (en) | Data storage method, device and system in cloud environment | |
CN101968751A (en) | Sharing idled processor execution resources | |
CN102667714B (en) | Support the method and system that the function provided by the resource outside operating system environment is provided | |
CN108334396A (en) | The creation method and device of a kind of data processing method and device, resource group | |
CN102063338A (en) | Method and device for requesting exclusive resource | |
CN101405703B (en) | Creating references in a scoped memory system | |
CN109324890A (en) | Method for managing resource, device and computer readable storage medium | |
CN108241531A (en) | A kind of method and apparatus for distributing resource for virtual machine in the cluster | |
CN101344861A (en) | Smart card internal memory management method | |
US8458719B2 (en) | Storage management in a data processing system | |
CN104536773B (en) | Embedded software dynamic memory recovery method based on internal memory scanning | |
CN106484826A (en) | A kind of method and device of operating database | |
CN105677481B (en) | A kind of data processing method, system and electronic equipment | |
US8001341B2 (en) | Managing dynamically allocated memory in a computer system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |