Resource processing method and device for a multi-core operating system

US10180843B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-10180843-B2
Application numberUS-201615175742-A
CountryUS
Kind codeB2
Filing dateJun 7, 2016
Priority dateDec 17, 2013
Publication dateJan 15, 2019
Grant dateJan 15, 2019

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

A resource processing method, an operating system, and a device are provided. The method is applied to a multi-core operating system, where the multi-core operating system includes a management operating system and multiple load operating systems that run on a host machine and includes a physical resource pool. According to the method, after selecting, in processor cores allocated to a first load operating system, a startup processor core that starts up the first load operating system, the management operating system instructs the startup processor core to read a mapping relationship that is from a virtual memory address to a physical memory address and that is required for executing a startup mirror of the first load operating system. Then, the management operating system instructs the startup processor core to execute the startup mirror pre-constructed for the first load operating system to start up the first load operating system.

First claim

Opening claim text (preview).

What is claimed is: 1. A resource processing method for a multi-core operating system running on a host machine having processor cores, the method comprising: selecting, by a management operating system, a startup processor core to start up a first load operating system, wherein the multi-core operating system includes the management operation system and multiple load operating systems, the multiple load operating systems including the first operating system, wherein the management operating system pre-allocates, to the first load operating system, a physical resource set exclusively used by the first load operating system, the physical resource set comprising the startup processor core of the processor cores; sending, by the management operating system, an inter-core interrupt message to the startup processor core, wherein the inter-core interrupt message instructs the startup processor core to execute an initialization program, the initialization program configured to initialize the startup processor core, wherein the initialization program is executed to read a mapping relationship, from a virtual memory address to a physical memory address, for executing a startup mirror of the first load operating system, wherein the mapping relationship is pre-constructed by the management operating system, the physical memory address indicating a location of the startup mirror; and instructing, by the management operating system, the startup processor core to execute the startup mirror of the first load operating system, wherein the startup mirror comprises a startup parameter of the first load operating system, the startup parameter identifying the processor core and the physical memory address pre-allocated to the first load operating system. 2. The method according to claim 1 , wherein the method further comprises: constructing, by the management operating system, the startup mirror for the first load operating system; and setting, by the management operating system for the first load operating system, the mapping relationship for executing the startup mirror. 3. The method according to claim 1 , the method further comprising: acquiring, by the management operating system, available processor cores from the processor cores for a second load operating system of the multiple load operating systems, the second load operating system separate from the first load operating system, wherein the second load operating system comprises a logged-out load operating system, the available processor cores comprising a processor core that has been started up, and wherein the selecting the startup processor core comprises: selecting, by the management operating system, the startup processor core from the available processor cores when the physical resource set of the first load operating system comprises the available processor cores. 4. The method according to claim 1 , wherein the method further comprises: monitoring, by the management operating system, the first load operating system; determining, by the management operating system, a type identifier of a physical resource that needs to be reduced for the first load operating system when utilization of a physical resource pre-allocated to the first load operating system is less than a first preset threshold, wherein the type identifier indicates whether the physical resource that needs to be reduced is a processor core resource or a physical memory resource; and reducing the physical resource that needs to be reduced for the first load operating system according to the type identifier. 5. The method according to claim 4 , wherein the physical resource that needs to be reduced comprises a processor core or a physical memory resource, and wherein the reducing comprises: sending, by the management operating system, a resource reducing message to the first load operating system to release the physical resource, wherein the resource reducing message comprises an identifier of the physical resource to be released; acquiring, by the management operating system, the identifier of the physical resource released by the first load operating system; and adding, by the management operating system, the identifier of the released physical resource to a list of available physical resources in the resource pool. 6. The method according to claim 1 , wherein the method further comprises: monitoring, by the management operating system, the first load operating system; determining, by the management operating system, a type identifier of a physical resource that needs to be added for the first load operating system when utilization of a physical resource pre-allocated to the first load operating system is greater than a second preset threshold; and adding the physical resource that needs to be added for the first load operating system according to the type identifier, wherein the type identifier of the physical resource indicates whether the physical resource that needs to be added is a processor core resource or a physical memory resource. 7. The method according to claim 6 , wherein the physical resource that needs to be added corresponds to one of the processor cores, the adding comprises: marking, by the management operating system, the one processor core as belonging to the first load operating system; sending, by the management operating system, a resource adding message to the first load operating system, wherein the resource adding message comprises an identifier of the one processor core that needs to be added; and sending, by the management operating system, a jump instruction to the one processor core, the jump instruction to instruct the one processor core to execute a kernel program of the first load operating system, the kernel program comprising mapping relationships from virtual memory addresses to physical memory addresses required for executing the first load operating system. 8. The method according to claim 6 , wherein the physical resource that needs to be added corresponds to a physical memory resource, and wherein the adding comprises: marking, by the management operating system, a physical memory address as a physical resource that belongs to the first load operating system; and sending, by the management operating system, a resource adding message to the first load operating system to add the physical memory address, wherein the resource adding message comprises an identifier of the physical memory address to be added. 9. The method according to claim 1 , wherein the physical resource set further comprises one or more external devices of the host machine, wherein the startup parameter further comprises an identifier of an external device allocated to the first load operating system and a device description information table corresponding to the external device, the method further comprising: receiving, by the management operating system, a resource reducing request message from the first load operating system, wherein the resource reducing request message comprises a type identifier of a physical resource that needs to be reduced, the type identifier indicating whether the physical resource is a processor core resource, a physical memory resource, or an external device resource; and reducing, by the management operating system, the physical resource for the first load operating system according to the type identifier. 10. The method according to claim 1 , wherein the physical resource set further comprises one or more external devices of the host machine, wherein the startup parameter further comprises an identifier of an external device allocated to the first load operating system and a device description information table corresponding to the external devic

Assignees

Inventors

Classifications

  • G06F9/4408Primary

    Boot device selection · CPC title

  • G06F9/4406Primary

    Loading of operating system · CPC title

  • Initialisation of multiprocessor systems · CPC title

  • Processor initialisation · CPC title

  • Techniques for rebalancing the load in a distributed system · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US10180843B2 cover?
A resource processing method, an operating system, and a device are provided. The method is applied to a multi-core operating system, where the multi-core operating system includes a management operating system and multiple load operating systems that run on a host machine and includes a physical resource pool. According to the method, after selecting, in processor cores allocated to a first lo…
Who is the assignee on this patent?
Huawei Tech Co Ltd, Huawei Tech Co Ltd
What technology area does this patent fall under?
Primary CPC classification G06F9/4408. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Jan 15 2019 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 8 related publications on this page (citations in our corpus or others sharing the same primary CPC).