CN104714924B - A kind of resource control method and device - Google Patents

A kind of resource control method and device Download PDF

Info

Publication number
CN104714924B
CN104714924B CN201310680785.7A CN201310680785A CN104714924B CN 104714924 B CN104714924 B CN 104714924B CN 201310680785 A CN201310680785 A CN 201310680785A CN 104714924 B CN104714924 B CN 104714924B
Authority
CN
China
Prior art keywords
operating system
target
resource
master
processor
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
Application number
CN201310680785.7A
Other languages
Chinese (zh)
Other versions
CN104714924A (en
Inventor
解壁伟
薛栋梁
高云伟
詹剑锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Institute of Computing Technology of CAS
Original Assignee
Huawei Technologies Co Ltd
Institute of Computing Technology of CAS
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd, Institute of Computing Technology of CAS filed Critical Huawei Technologies Co Ltd
Priority to CN201310680785.7A priority Critical patent/CN104714924B/en
Publication of CN104714924A publication Critical patent/CN104714924A/en
Application granted granted Critical
Publication of CN104714924B publication Critical patent/CN104714924B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Hardware Redundancy (AREA)

Abstract

The invention discloses a kind of resource control method and devices, this method is applied in the computer with multi-core processor, the computer can run at least one operating system, and the operating system includes master operating system and multiple from operating system, and this method includes:Master operating system determines the target of pending resource release from operating system, and the target is to complete the slave operating system of task execution, or there are the slave operating systems of task execution exception from operating system;Physical resource of the target from operating system is distributed in master operating system determination;The physical resource is determined as idling-resource by the master operating system.Master operating system may be implemented by this method and device and be recovered as the physical resource distributed from operating system.

Description

A kind of resource control method and device
Technical field
The present invention relates to field of computer technology more particularly to a kind of resource control methods and device.
Background technology
In the physical platform based on multi-core processor, for the ease of the management to multiple processor cores, and reduces and open Pin, there has been proposed multiple operating system frameworks, i.e., run multiple operating systems on a physical platform.
Currently, generally running multiple operating systems on a physical platform by virtual machine technique to realize.However by It needs to carry out mapping of the virtual resource to physical resource in virtual machine technique, the business processing speed of operating system will necessarily be influenced Degree.
In order to realize that operating system directly manages physical resource, with the development of computer technology, in the future in a physics It can be one operation being made of multiple operating systems of operation on a physical platform that multiple operating systems are run on platform System set, this multiple operating system are externally mapped as an operating system.Include main operation in the operating system set System and multiple from operating system, the master operating system be responsible for needing it is to be started or in running from operating system point With physical resource.However be how to carry out resource reclaim after operating system is assigned with physical resource in master operating system, with It can be that other distribute resource from operating system to ensure the master operating system subsequently, at present still without solution.
Invention content
In view of this, a kind of resource control method of present invention offer and device, to realize that master operating system can be recovered as The physical resource distributed from operating system.
In order to achieve the above object, a kind of resource control method that the first aspect of the present invention provides, is applied to have more The computer of core processor, the computer can run at least one operating system, and the operating system includes main operation system System and multiple from operating system, the method includes:
Master operating system determines the target of pending resource release from operating system, and the target is to complete from operating system The slave operating system of task execution, or there are the slave operating systems of task execution exception;
Physical resource of the target from operating system is distributed in the master operating system determination;
The physical resource is determined as idling-resource by the master operating system.
With reference to first aspect, in the first possible implementation, the master operating system determines that pending resource is released The target put from operating system, including:
The master operating system receives the first message sent from operating system, by send the first message from operation System is determined as the target from operating system, wherein the first message is that the target is taken office from operating system in detection The message that business is sent after being finished.
With reference to first aspect, in second of possible realization method, the master operating system determines that pending resource is released The target put from operating system, including:
The master operating system is monitored in operating status from operating system, will detect the presence of task execution Abnormal slave operating system is determined as the target from operating system.
With reference to first aspect, second of the possible realization method of the first of first aspect and first aspect it is possible Realization method, in the third possible realization method, the physical resource includes at least:
The master operating system distribute to the target from operating system be used for execute the task the main core of processor and Processor is from core, and executes the occupied memory headroom of task.
The third possible realization method with reference to first aspect, in the 4th kind of possible realization method, when the mesh Mark from operating system be there are when the slave operating system of task execution exception, it is in the master operating system that the physical resource is true It is set to before the idling-resource that can be assigned, further includes:
The master operating system terminates the operation of the main core of the processor and processor from core.
The 4th kind of possible realization method with reference to first aspect, in the 5th kind of possible realization method, in the master Operating system terminates the main core of the processor and processor before the operation of core, further includes:
The master operating system sends second message to non-targeted from operating system, so as to the target from operating system Non-targeted there are data interaction reads out required data from operating system from the memory headroom, wherein the non-mesh Mark is except the destination OS from operating system, and in operating status from operating system.
The second aspect of the present invention additionally provides a kind of resource control, using with multi-core processor in calculating Machine, the computer can run at least one operating system, and the operating system includes master operating system and multiple from operation System, described device include:
Target determination unit, for determining the target of pending resource release from operating system, the target is from operation System is to complete the slave operating system of task execution, or there are the slave operating systems of task execution exception;
Resource determination unit distributes to the target that the target determination unit is determined from operating system for determining Physical resource;
Resource control unit, the physical resource for determining the resource determination unit are determined as idle money Source.
In conjunction with second aspect, in the first possible implementation, the target determination unit, including:
First object determination unit will send the first message for receiving the first message sent from operating system Slave operating system be determined as the target from operating system, wherein the first message be the target exist from operating system The message sent after detecting task execution.
In conjunction with second aspect, in second of possible realization method, the target determination unit, including:
Second target determination unit will be detected the presence of for being monitored from operating system in operating status The slave operating system of task execution exception is determined as target from operating system.
It is possible in conjunction with the first possible realization method of second aspect, second aspect and second of second aspect Realization method, in the third possible realization method, the physical resource that the resource determination unit is determined includes at least:Institute State master operating system distribute to the target from operating system be used to execute the task the main core of processor and processor from core, And execute the occupied memory headroom of task.
In conjunction with the third possible realization method of second aspect, in the 4th kind of possible realization method, when the mesh Mark is there are when the slave operating system of task execution exception from operating system, and described device further includes:Unit is terminated, for terminating The main core of processor and processor that the resource determination unit is determined trigger the resource control unit from the operation of core Operation.
In conjunction with the 4th kind of possible realization method of second aspect, in the 5th kind of possible realization method, described device Further include:
Message informing unit, for determining the target after operating system in the target determination unit, to non-mesh Mark sends second message from operating system, so that from operating system, there are the described non-targeted from behaviour of data interaction with the target Make system and read out required data from distributing to the target from the memory headroom of operating system, wherein is described non- Target is except the destination OS from operating system, and in operating status from operating system.
It can be seen from the above technical scheme that master operating system determines that task execution finishes or there are task executions Abnormal target is determined as the information for the physical resource that the target is distributed from operating system, which is provided after operating system Source is determined as the idling-resource that can be assigned, since the idling-resource is the resource that can be assigned, in this way, realizing will divide The physical resource allotted is recycled, to be subsequently reassigned to other from operating system.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention without having to pay creative labor, may be used also for those of ordinary skill in the art With obtain other attached drawings according to these attached drawings.
Fig. 1 is a kind of flow diagram of resource control method one embodiment of the present invention;
Fig. 2 is a kind of flow diagram of another embodiment of resource control method of the present invention;
Fig. 3 is a kind of flow diagram of another embodiment of resource control method of the present invention;
Fig. 4 is a kind of flow diagram of another embodiment of resource control method of the present invention;
Fig. 5 is a kind of structural schematic diagram of resource control one embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram of another embodiment of resource control of the present invention;
Fig. 7 is a kind of structural schematic diagram of one embodiment of computer of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiment is only a part of the embodiment of the present invention, instead of all the embodiments.Based on this Embodiment in invention, every other reality obtained by those of ordinary skill in the art without making creative efforts Example is applied, shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a kind of resource control methods, include main behaviour in the operating system of computer object operation Make system and multiple in the case of operating system, realizes that master operating system can be to distributing to the physical resource from operating system Recycling, to ensure redistributing for subsequent physical resource, and then ensure each normal operation from operating system.
Referring to Fig. 1, a kind of flow diagram of resource control method one embodiment of the present invention is shown, the present embodiment Method is applied in the computer with multi-core processor, and the operating system run in the computer includes master operating system With from operating system, the method includes:
S101, master operating system determine the target of pending resource release from operating system.
In the present embodiment, the operating system that operates in the computer based on multi-core processor include master operating system and It is multiple from operating system.
After computer starting, which is activated first, is from operation after master operating system startup System is activated as needed.Wherein, which manages global resource, is responsible for this and is ready to carry out task from operating system Required resource, and to carry out resource allocation, each resource adjustment between operating system of control from operating system.Meanwhile it should Master operating system can record the distribution condition of resource, and if which which resource allocation given from operating system, which resource is not yet It is assigned still in idle state etc..And the task performed by the operating system and appointing performed by existing monokaryon operating system It is engaged in identical, such as executing for task can be process scheduling.
In embodiments of the present invention, which can be the slave operating system for completing task execution from operating system, also may be used To be that there are the slave operating systems of task execution exception.
It is finished when from the current task execution of operating system, either invaded from operating system or operation troubles occur etc. Reason causes this to occur in the case of executing exception from the currently performed task of operating system, should be not necessarily to again from operating system The resource for executing the required by task is occupied, therefore distributes to the resource needs for being used to execute the task from operating system It is released, and is recycled by master operating system.
Physical resource of the target from operating system is distributed in S102, master operating system determination.
The physical resource is determined as idling-resource by S103, master operating system.
Master operating system is according to the resource allocation conditions of record, it may be determined that goes out to distribute to tool of the target from operating system Which physical resource body physical resource is.
Wherein, master operating system has recorded the use state of resource, will distribute to the target and is provided from the physics of operating system After source is determined as idling-resource, then the master operating system still subsequently is able to the physical source distributing to other from operating system.
Optionally, which can be placed in physical resource in free list, in order to determine the physical resource For assignable idling-resource.
In embodiment, master operating system determines that task execution finishes or there are the slave operating systems of task execution exception It is target from operating system, and is retrieved as the information for the physical resource that the target is distributed from operating system, the physical resource is true It is set to the idling-resource that can be assigned, since the idling-resource is the resource that can be assigned, in this way, can realize to this The recycling of physical resource ensure that each from behaviour so that the physical resource to be subsequently reassigned to the slave operating system of needs Make the normal operation of system.
Wherein, in the embodiment of the present application, which distributes to the physical resource from operating system and at least wraps Include the master operating system distribute to target from operating system be used to execute the task the main core of processor and processor from core, with And execute the occupied memory headroom of the task.Wherein, task is executed from operating system to need to occupy multiple processor cores, because This, master operating system is distributed to from the multiple processor cores of operating system, and it is the main core of processor to specify one of processor core, Remaining is processor from core.Wherein, the main core of the processor is responsible for carrying out initializing resource, and opens other processors from core, And processor executes the code for completing the task from core.
Wherein, target is divided into two different from operating system from operating system, distinguishes needle with reference to specific embodiment The process recycled from the resource of operating system to two distinct types of target to master operating system is introduced.
The case where normally completing the slave operating system of task execution is introduced first, may refer to Fig. 2, it illustrates the present invention A kind of flow diagram of another embodiment of resource control method, the method for the present embodiment can be applied equally to multinuclear In the computer of processor, the operating system that is run in the computer includes there are one master operating system and multiple is from operation System, the method for the present embodiment may include:
S201, master operating system receive the first message that is sent from operating system, by send the first message from operation System is determined as target from operating system.
Wherein, which is the message that target is sent from operating system after detecting task execution.
From operating system when detecting that task execution finishes, it can control the main core of the processor from operating system and terminate distribution To the processor from operating system from the operation of core, and first is sent to the master operating system by the main core of the processor and disappeared Breath, to notify the master operating system that should complete task execution from operating system.It is sent from operating system to the master operating system After the first message, the operation of the main core of the processor should can be terminated from operating system, that is, closed the main core of the processor.
Since target has completed task execution from operating system, without occupying the main core of the processor, processor from core And the physical resources such as memory headroom, therefore, after which receives the first message, just determine distribute to target from The physical resource of operating system is physical resource to be recycled.
Physical resource of the target from operating system is distributed in S202, master operating system determination.
The physical resource is determined as idling-resource by S203, master operating system.
Wherein, the operation of the step 202 and step 203 is referred to the related introduction of preceding embodiment.
It is understood that if target from operating system complete terminate the main core of the processor operation before, the master The main core of the processor is just determined as idling-resource by operating system, it is likely that can will be still in the processor master of operating status Core distributes to some from operating system, to influence this from the normal task execution of operating system.Such as, the main core of the processor is still It is in operating status, then it is possible to still have part with the target from operating system related data etc. in the main core of the processor, If other occupy the main core of the processor from operating system executes task in the case of this kind, this is may result in from operating system There is the problems such as task execution mistake.
In order to enable the master operating system will distribute the target from the physical resource of operating system as when idling-resource, it should Target has terminated the operation of the main core of the processor from operating system, then the master operating system can connect in current time distance When reaching preset duration at the time of receiving the first message, then the target will be distributed to and determined from the physical resource of operating system The idling-resource that can be assigned.
Wherein, preset duration is that the operation of the main core of the processor is terminated to ensure the target from operating system, therefore, The preset duration is typically no less than this and terminates minimum duration needed for the operation of the main core of the processor from operating system.
In order to make it easy to understand, referring to Fig. 3, show that a kind of flow of another embodiment of resource control method of the present invention is shown It is intended to, the method for the present embodiment can be applied to have in the computer of multi-core processor, can be run at least in the computer One operating system, the operating system include there are one master operating system and multiple from operating system, the present embodiment be target from Operating system is a kind of preferred embodiment in the case of the slave operating system that finishes of task execution, and the method for the present embodiment can be with Including:
S301 when detecting that task execution finishes from operating system, terminates the operation for executing the processor of the task from core.
Operation of the processor from core is terminated by the main core of processor from operating system.
S302 should send first message from operating system by the main core of processor to master operating system.
S303:This terminates the operation of the main core of the processor from operating system.
For example, halt instructions should can be sent to the master operating system from operating system, the main core of the processor executes should Related data is written to out of service after disk by halt orders.
S304, after master operating system receives the first message, the physical resource from operating system is distributed in determination.
S305 will when master operating system reaches preset duration at the time of current time distance receives the first message The physical resource is determined as idling-resource.
From operating system it is to be introduced the case where there is the slave operating system of task execution exception below for target, ginseng See Fig. 4, shows that a kind of flow diagram of another embodiment of resource control method of the present invention, the method for the present embodiment are same It can be applied to have in the computer of multi-core processor, at least one operating system can be run in the computer, the operation System includes that there are one master operating systems and multiple from operating system, and the method for the present embodiment may include:
S401, master operating system are monitored from operating system in operating status, the task of detecting the presence of are held The abnormal slave operating system of row is determined as target from operating system.
Wherein, which detects in operating status occur the mode of task execution exception from operating system Can be:Query messages periodically are sent to from operating system, if should not occur task execution exception from operating system, The master operating system should can be given to return to a response message from operating system.If the master operating system does not receive this for a long time The response message returned from operating system, the master operating system can determine that this task execution exception occurs from operating system.
Wherein, it can be due to breaking down or being entered from operating system that task execution should occur extremely from operating system It invades, and causes task that can not execute.
S402:Physical resource of the target from operating system is distributed in master operating system determination.
Wherein, which includes at least the main core of processor for distributing to the target from operating system, processor from core And memory headroom.
S403:This is distributed to target and is determined as idling-resource from the physical resource of operating system by master operating system.
Optionally, it will distribute to what target was determined as capable of being assigned from the physical resource of operating system in master operating system Before idling-resource, further include:The master operating system terminates the main core of processor for distributing to the target from operating system and processing Operation of the device from core.When master operating system determines the target for task execution exception occur from operating system, the mesh is distributed to Mark is possible to from core still in operating status from the main core of processor and processor of operating system, if by the processing of operating status The main core of device and processor, directly as idling-resource, and distribute to other from operating system from core, then be likely to result in other from Operating system is unstable.Therefore, it determines to distribute to physical resource of the target from operating system in master operating system Later, the main core of processor and processor which can distribute to the target from operating system with forced termination are from core Operation.
Due to from may have data communication between operating system, when other are from operation from operating system and the target There are when data interaction between system, other are likely to require from the master operating system from operating system and distribute to the target from operation Called data in the memory headroom of system.
In order to avoid influencing other task executions from operating system, the target is distributed in master operating system termination From the main core of processor and processor of operating system before the operation of core, which can also be non-targeted from behaviour to this Make system and send second message, so that this is non-targeted from operating system from distributing to the target from the memory headroom of operating system Read out required data.Wherein, this it is non-targeted from operating system be the target except operating system, and it is in operating status From operating system.
The master operating system to target except operating system this is non-targeted after operating system sends the second message, It is detected from operating system if this is non-targeted and distributes to the target to be stored with this from the memory headroom of operating system non-targeted From the data needed for operating system, then this non-targeted can read out required data from operating system and store to designated disk; Determine this to distribute to target from the memory headroom of operating system that there is no this is non-targeted from operating system if this is non-targeted From the data needed for operating system, then it can ignore the second message.
The method of the corresponding present invention, the present invention also provides a kind of resource controls to show the present invention referring to Fig. 5 The device of a kind of structural schematic diagram of resource control one embodiment, the present embodiment is applied to operating system, the operation System includes master operating system and multiple from operating system, which includes:Target determination unit 501, resource determination unit 502 and resource control unit 503.
Wherein, target determination unit 501, for determining the target of pending resource release from operating system, the target It is to complete the slave operating system of task execution, or there are the slave operating systems of task execution exception from operating system.
Resource determination unit 502 distributes to the target that the target determination unit is determined from operation for determining The physical resource of system.
Resource control unit 503, the physical resource for determining the resource determination unit is determined as can Assigned idling-resource.
In the present embodiment, which can determine the target of pending resource release from operating system, And target of having distributed to that resource determination unit is determined is set from the physical resource of operating system by the resource control unit It is set to the idling-resource that can be assigned, so as to recycle the occupied physics of slave operating system for needing to carry out resource release Resource, and then may be implemented physical resource redistributes utilization, so as to meet it is each from operating system normally to physics The demand of resource.
Optionally, in any one embodiment of the invention, the physical resource which determines at least wraps It includes:The master operating system distribute to the target from operating system be used to execute task the main core of processor and processor from core, with And execute the occupied memory headroom of the task.
On the one hand, optionally, in order to determine that slave operating system that task execution finishes, the target determination unit can wrap It includes:
First object determination unit will send the first message for receiving the first message sent from operating system Slave operating system be determined as the target from operating system, wherein the first message be the target exist from operating system The message sent after detecting task execution.
On the other hand, referring to Fig. 6, a kind of structural representation of another embodiment of resource control of the present invention is shown Figure, the device of the present embodiment are applied to operating system, which includes master operating system and multiple from operating system, should Device is suitable for the target of task execution exception from operating system, the device of the present embodiment it is different from embodiment illustrated in fig. 5 it Be in:
The target determination unit 501 may include in the present embodiment:
Second target determination unit 5011 will be detected for being monitored from operating system in operating status There are the slave operating systems of task execution exception to be determined as target from operating system.
Optionally, the device of the present embodiment further includes:Unit 504 is terminated, is determined for terminating the resource determination unit The main core of processor and processor gone out triggers the operation of the resource control unit from the operation of core.
Optionally, the device of the present embodiment can also include:
Message informing unit 505, for determining the target after operating system in the target determination unit, Xiang Fei Target sends second message from operating system, so that from operating system, there are the non-targeted from operation of data interaction with the target System reads out required data from distributing to the target from the memory headroom of operating system, wherein the non-mesh Mark is except the destination OS from operating system, and in operating status from operating system.
In addition, the present invention also provides a kind of computer, referring to Fig. 7, show that a kind of structure of computer of the present invention is shown It is intended to, the computer of the present embodiment includes at least processor 701, memory 702, communication interface 603 and communication bus 704.Its In, the processor 701 includes multiple kernels 7011.
Wherein, the processor 701, memory 702 and communication interface 703 are completed each other by the communication bus 701 Communication.
The communication interface 704, for being communicated with other network elements or external equipment, such as in shared memory systems Node, other network terminals etc..
Wherein, the software section stored in the memory includes at least an operating system, and the operating system is by one Master operating system and it is multiple from operating system form.The memory may include high-speed RAM memory, it is also possible to further include non-easy The property lost memory.
At least one kernel 7011 runs the master operating system in multiple kernels of the processor, runs the main operation The kernel of system, for determining the target of pending resource release from operating system, wherein target is to complete to appoint from operating system The slave operating system that business executes, or there are the slave operating systems of task execution exception;Determination distributes to the target from operation The physical resource of system;The idling-resource that the physical resource is determined as to be assigned.
Each embodiment is described by the way of progressive in this specification, the highlights of each of the examples are with other The difference of embodiment, just to refer each other for identical similar portion between each embodiment.For device disclosed in embodiment For, since it is corresponded to the methods disclosed in the examples, so description is fairly simple, related place is said referring to method part It is bright.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These Function is implemented in hardware or software actually, depends on the specific application and design constraint of technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered Think beyond the scope of this invention.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor The combination of capable software module or the two is implemented.Software module can be placed in random access memory(RAM), memory, read-only deposit Reservoir(ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest range caused.

Claims (10)

1. a kind of resource control method, which is characterized in that be applied to the computer with multi-core processor, the computer can Run an operating system set, the operating system set includes master operating system and multiple from operating system, and the behaviour It is mapped as an operating system as system set, wherein the master operating system is responsible for needing to be started or is in operation In described distributed from operating system execute required by task physical resource, and control the multiple resource between operating system Adjustment, wherein the physical resource includes at least:The master operating system is used to execute task described in distributing to from operating system Multiple processor cores, and execute the occupied memory headroom of task, wherein the multiple processor core includes processor master Core and processor from core, the method includes:
Master operating system determines the target of pending resource release from operating system, and the target is to complete task from operating system The slave operating system executed, or there are the slave operating systems of task execution exception;
Physical resource of the target from operating system is distributed in the master operating system determination;
The target is determined as idling-resource by the master operating system from the physical resource of operating system.
2. according to the method described in claim 1, it is characterized in that, the master operating system determines the mesh of pending resource release It marks from operating system, including:
The master operating system receives the first message sent from operating system, will send the slave operating system of the first message It is determined as the target from operating system, wherein the first message is that the target is held from operating system in the task of detecting The message sent after row.
3. according to the method described in claim 1, it is characterized in that, the master operating system determines the mesh of pending resource release It marks from operating system, including:
The master operating system is monitored in operating status from operating system, will detect the presence of task execution exception Slave operating system be determined as the target from operating system.
4. according to the method described in claim 1, it is characterized in that, when the target is different for there are task executions from operating system When normal slave operating system, the master operating system by the physical resource be determined as the idling-resource that can be assigned it Before, further include:
The master operating system terminates the operation of the main core of the processor and processor from core.
5. according to the method described in claim 4, it is characterized in that, the master operating system terminate the main core of processor and Processor further includes before the operation of core:
The master operating system sends second message to non-targeted from operating system, to exist from operating system with the target The described of data interaction non-targeted reads out required data from operating system from the memory headroom, wherein the non-mesh Mark is except the destination OS from operating system, and in operating status from operating system.
6. a kind of resource control, which is characterized in that using with multi-core processor, in computer, the computer can Run an operating system set, the operating system set includes master operating system and multiple from operating system, and the behaviour It is mapped as an operating system as system set, wherein the master operating system is responsible for needing to be started or is in operation In it is described the physical resource for executing required by task is distributed from operating system, and control the multiple money between operating system Source adjusts, wherein the physical resource includes at least:The master operating system is appointed described in distributing to from operating system for executing Multiple processor cores of business, and execute the occupied memory headroom of task, wherein the multiple processor core includes processor From core, described device includes for main core and processor:
Target determination unit, for determining the target of pending resource release from operating system, the target is from operating system The slave operating system of task execution is completed, or there are the slave operating systems of task execution exception;
Resource determination unit distributes to the object of the target that the target determination unit is determined from operating system for determining Manage resource;
Resource control unit, the physical resource for determining the resource determination unit are determined as idling-resource.
7. device according to claim 6, which is characterized in that the target determination unit, including:
First object determination unit, for receiving the first message sent from operating system, by send the first message from Operating system is determined as the target from operating system, wherein the first message is that the target is being detected from operating system The message sent after being finished to task.
8. device according to claim 6, which is characterized in that the target determination unit, including:
Second target determination unit will detect the presence of task for being monitored from operating system in operating status It executes abnormal slave operating system and is determined as the target from operating system.
9. device according to claim 6, which is characterized in that when the target is different for there are task executions from operating system When normal slave operating system, described device further includes:Terminate unit, the processing determined for terminating the resource determination unit The main core of device and processor trigger the operation of the resource control unit from the operation of core.
10. device according to claim 9, which is characterized in that described device further includes:
Message informing unit, for determining the target after operating system in the target determination unit, to it is non-targeted from Operating system sends second message, so that from operating system, there are the described non-targeted from operation system of data interaction with the target System reads out required data from distributing to the target from the memory headroom of operating system, wherein described non-targeted It is except the destination OS from operating system, and it is in operating status from operating system.
CN201310680785.7A 2013-12-12 2013-12-12 A kind of resource control method and device Active CN104714924B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310680785.7A CN104714924B (en) 2013-12-12 2013-12-12 A kind of resource control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310680785.7A CN104714924B (en) 2013-12-12 2013-12-12 A kind of resource control method and device

Publications (2)

Publication Number Publication Date
CN104714924A CN104714924A (en) 2015-06-17
CN104714924B true CN104714924B (en) 2018-07-13

Family

ID=53414271

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310680785.7A Active CN104714924B (en) 2013-12-12 2013-12-12 A kind of resource control method and device

Country Status (1)

Country Link
CN (1) CN104714924B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110069287B (en) * 2018-01-24 2022-04-15 合肥杰发科技有限公司 Multi-system coexistence method and device and storage equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101149728A (en) * 2007-10-29 2008-03-26 中国科学院计算技术研究所 Multiple core processing system and its management method
CN101178666A (en) * 2007-12-13 2008-05-14 中兴通讯股份有限公司 Coordinating and scheduling method between heterogeneous multi-core
CN101419561A (en) * 2007-10-26 2009-04-29 中兴通讯股份有限公司 Resource management method and system in isomerization multicore system
CN102929719A (en) * 2012-09-18 2013-02-13 中标软件有限公司 Control method for multiple operating systems of multi-core computer and multi-core computer

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6647508B2 (en) * 1997-11-04 2003-11-11 Hewlett-Packard Development Company, L.P. Multiprocessor computer architecture with multiple operating system instances and software controlled resource allocation

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101419561A (en) * 2007-10-26 2009-04-29 中兴通讯股份有限公司 Resource management method and system in isomerization multicore system
CN101149728A (en) * 2007-10-29 2008-03-26 中国科学院计算技术研究所 Multiple core processing system and its management method
CN101178666A (en) * 2007-12-13 2008-05-14 中兴通讯股份有限公司 Coordinating and scheduling method between heterogeneous multi-core
CN102929719A (en) * 2012-09-18 2013-02-13 中标软件有限公司 Control method for multiple operating systems of multi-core computer and multi-core computer

Also Published As

Publication number Publication date
CN104714924A (en) 2015-06-17

Similar Documents

Publication Publication Date Title
JP5815512B2 (en) Resource management method, computer system, and program
CN108881495B (en) Resource allocation method, device, computer equipment and storage medium
JP5510556B2 (en) Method and system for managing virtual machine storage space and physical hosts
US9935865B2 (en) System and method for detecting and preventing service level agreement violation in a virtualized environment
CN100568182C (en) The method and system of distribution work in the data handling system of subregion logically
CN103645957B (en) A kind of resources of virtual machine management-control method and device
JP2013506179A (en) Execution management system combining instruction threads and management method
US20170017511A1 (en) Method for memory management in virtual machines, and corresponding system and computer program product
CN108064377B (en) Management method and device for multi-system shared memory
US9792142B2 (en) Information processing device and resource allocation method
CN113204428B (en) Resource scheduling method, device, electronic equipment and computer readable storage medium
CN103699334A (en) Method and system for managing virtual machine disk
CN106663051A (en) Memory management in virtualized computing
CN107168777B (en) Method and device for scheduling resources in distributed system
CN111722928A (en) Resource scheduling method and device, electronic equipment and storage medium
CN109582459A (en) The method and device that the trustship process of application is migrated
CN110018883A (en) A kind of virtual machine delet method, device, equipment and storage medium
CN105975327A (en) Method for reducing virtual machine pre-emption in virtualized environment and computer system
CN105357042A (en) High-availability cluster system, master node and slave node
CN106502797A (en) A kind of group system and the dispositions method of group system
CN110399217A (en) A kind of memory source distribution method, device and equipment
CN111464331B (en) Control method and system for thread creation and terminal equipment
CN104364759A (en) Method, system and an executable piece of code for controlling the use of hardware resources of a computer system
CN104657216B (en) The resource allocation methods and device of a kind of resource pool
CN115480931A (en) Inter-core communication processing method and device and 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