CN106850749A - A kind of method and device, the electronic equipment of online updating kernel - Google Patents
A kind of method and device, the electronic equipment of online updating kernel Download PDFInfo
- Publication number
- CN106850749A CN106850749A CN201611216980.4A CN201611216980A CN106850749A CN 106850749 A CN106850749 A CN 106850749A CN 201611216980 A CN201611216980 A CN 201611216980A CN 106850749 A CN106850749 A CN 106850749A
- Authority
- CN
- China
- Prior art keywords
- processor cores
- processor
- kernel
- management program
- new system
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/34—Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
- G06F8/656—Updates while running
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/16—Threshold monitoring
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a kind of method and device, the electronic equipment of online updating kernel, wherein, methods described includes:Determine processor cores set, the processor cores set includes the processor cores scheduled in system supervisor to be updated on server;First processor kernel in the processor cores set is freed out from system supervisor to be updated;New system management program is operated on the first processor kernel of free time;The first service processor that will be currently running is operated in the new system management program.
Description
Technical field
The present invention relates to electronic technology, more particularly to a kind of method and device, the electronic equipment of online updating kernel.
Background technology
Server, also referred to as servomechanism, are to provide the equipment of the service of calculating.Because server needs to respond service request, and
Treatment service request is carried out, therefore in general server should possess the ability for undertaking and servicing and ensure service.Service at present
Symmetric multi-processors structure (SMP, Symmetric Multi-Processing) being used device, symmetric multi-processors structure refers to one more
One group of processor (multi -CPU), shared drive subsystem and bus structures between each CPU are summarized on individual computer.This
Under the support of technology, a server system can simultaneously run multiple processors, and shared drive and other host resources.
For SMP server, server is expected dynamically update kernel, it is to avoid to industry during operation business
Business is impacted.And can't realize that dynamic updates kernel in currently available technology, so as to avoid that business is impacted.
The content of the invention
In view of this, the embodiment of the present invention provides a kind of online updating kernel to solve problems of the prior art
Method and device, electronic equipment, can realize dynamic update kernel, so as to avoid that business is impacted.
What the technical scheme of the embodiment of the present invention was realized in:
In a first aspect, the embodiment of the present invention provides a kind of method of online updating kernel, methods described includes:
Determine processor cores set, the processor cores set is included on server by system administration journey to be updated
Processor cores scheduled in sequence;
First processor kernel in the processor cores set is freed out from system supervisor to be updated;
New system management program is operated on the first processor kernel of free time;
The first service processor that will be currently running is operated in the new system management program.
Second aspect, the embodiment of the present invention provides a kind of device of online updating kernel, and described device includes that first determines
Unit, first processing units, the first running unit and the second running unit, wherein:
First determining unit, for determining processor cores set, the processor cores set includes server
On processor cores scheduled in system supervisor to be updated;
The first processing units, for being to be updated by first processor kernel in the processor cores set
Freed out in system management program;
First running unit, the first processor kernel for new system management program to be operated in the free time;
Second running unit, the first service processor for that will be currently running operates in the new system management journey
In sequence.
The third aspect, the embodiment of the present invention provides a kind of electronic equipment, and the electronic equipment includes multiple processors and fortune
The scheduling system of virtual machine of the row on the multiple processor, wherein the scheduling system of the virtual machine is used for:
Determine processor cores set, the processor cores set is included on server by system administration journey to be updated
Processor cores scheduled in sequence;
First processor kernel in the processor cores set is freed out from system supervisor to be updated;
New system management program is operated on the first processor kernel of free time;
The first service processor that will be currently running is operated in the new system management program.
The embodiment of the present invention provides a kind of method and device, the electronic equipment of online updating kernel, wherein it is determined that processor
Kernel set, the processor cores set is included in the processor on server scheduled in system supervisor to be updated
Core;First processor kernel in the processor cores set is freed out from system supervisor to be updated;Will be new
System supervisor is operated on the first processor kernel of free time;The first service processor that will be currently running operates in described
In new system management program;So, it is possible to realize that dynamic updates kernel, so as to avoid impacting business.
Brief description of the drawings
Fig. 1 realizes schematic flow sheet for the method for embodiment of the present invention online updating kernel;
Fig. 2 realizes schematic flow sheet for the method for embodiment of the present invention online updating kernel;
Fig. 3 is the composition structural representation of the device of embodiment of the present invention online updating kernel;
Fig. 4 is the composition structural representation of the device of embodiment of the present invention online updating kernel.
Specific embodiment
The technical solution of the present invention is further elaborated with specific embodiment below in conjunction with the accompanying drawings.
In order to solve the technical problem in background technology, the embodiment of the present invention provides a kind of method of online updating kernel,
The method is applied to electronic equipment, and the function that the method is realized can be by the processor caller code in electronic equipment
To realize, certain program code can be stored in computer-readable storage medium, it is seen then that the electronic equipment at least include processor and
Storage medium.
Fig. 1 realizes schematic flow sheet for the method for embodiment of the present invention online updating kernel, as shown in figure 1, the method
Including:
Step S101, determines processor cores set, and the processor cores set is included on server by be updated
Processor cores scheduled in system supervisor;
Here, the electronic equipment can be various types of with information processing capability during specific embodiment
Server apparatus, particularly relate to SMP server etc..Symmetric multi-processors structure (SMP, Symmetric Multi-
Processing) be most common one kind in symmetric multiprocessor (CPU, Central Processing Unit) system, it
Do not have too many practical use among common business, domestic. applications, but made in specialty, such as three-dimensional, software application of drawing
In obtain very good performance, be the good partner for setting up cheap work station.With the raising of the users' level of application,
Only it has been difficult to meet the demand of practical application really using single processor, thus each manufacturer server is one after another by using
Symmetric multiprocessing system solves this contradiction.Commercially the processor of this kind of type is general based on 4 or 8, there is few
Number is 16 processors.But in general, the machine scalability of SMP structures is poor, it is difficult to accomplish more than 100 multiprocessings
Device, conventional is usually 8 to 16, but this is enough for most users.The benefit of this machine exists
Little in the difference of its occupation mode and microcomputer or work station, the change of programming is comparatively smaller, originally uses microcomputer work
If the program that work station is write will be transplanted on SMP machines used, it is also relatively easy to change.The type of SMP structures
Availability is poor, because 4 or 8 processors shared an operating system and a memories, once operating system occurs
Problem, just paralysis is fallen completely for whole machine.Most common symmetric multiprocessing system leads in personal computer (PC) server
Frequently with 2 tunnels, 4 tunnels, 6 tunnels or 8 path processors, the technology of most critical is how preferably to solve multiple processors in smp system
Mutual communication and coordination problem.
In general, the system supervisor on server can be to that should have a dispatch list (commonly referred to as kernel
Dispatch list), quantity, the scheduled treatment of the processor cores scheduled in the system supervisor are included in dispatch list
Mark (ID, Identity) of device kernel etc..
In general, the concept of CPU is successively from big to small node (Node), slot (Socket), physics kernel
(Core is also called core), logic processor (Logical Processor).With the development of multi-core technology, by multiple CPU
It is packaged together, this encapsulation is referred to as Socket.Each kernel is referred to as Core in Socket.In order to further lift CPU
Disposal ability, Intel introduces hyperthread (HT, Hiper-Threading) technology again, and a Core is opened after HT,
Operating system appears to be two cores, and certain this core is concept in logic, so also referred to as Logical processor.This
Processor cores in embodiment refer to physics kernel.
Step S102, by first processor kernel in the processor cores set from system supervisor to be updated
Free out;
Here, during realization, step S102 is included according to ACPI (ACPI, Advanced
Configuration and Power Interface) technology by first processor kernel in the processor cores set from
Freed out in system supervisor to be updated, wherein the first processor kernel can be by system pipes to be updated
Any processor kernel in reason program scheduler list.
According to ACPI (ACPI, Advanced Configuration and Power
Interface) logic processor free time (logical processor idle) technology of definition, can be by single processor
Core is removed from the dispatch list of current inner;Then a new kernel is run from the CPU core;By remaining all of CPU
Kernel and business are moved to new kernel up successively;Finally discharge old kernel.
Step S103, new system management program is operated on the first processor kernel of free time;
Here, the system supervisor before new system management program is used to update is (i.e. to be updated in step S101
System supervisor).
Step S104, the first service processor that will be currently running is operated in the new system management program.
Here, service processor refers to pending business, generally, system supervisor during realization
On can run some virtual machines, these virtual machines be used for processing server business, so, when new system management program set up
After on the idle processor cores, it is possible to which the operational processor on original old system supervisor is moved to new system pipe
Come in reason program.
Here, the first service processor can be any service processor on system supervisor to be updated.
In the embodiment of the present invention, processor cores set is determined, the processor cores set includes being treated on server
Processor cores scheduled in the system supervisor of renewal;By first processor kernel in the processor cores set from treating
Freed out in the system supervisor of renewal;New system management program is operated on the first processor kernel of free time;Will
The first service processor being currently running is operated in the new system management program;So, it is possible to realize that dynamic updates kernel,
So as to avoid that business is impacted.
Embodiment two
Based on foregoing embodiment, the embodiment of the present invention provides a kind of method of online updating kernel, and the method is applied to
Electronic equipment, the function that the method is realized can be realized by the processor caller code in electronic equipment, certainly
Program code can be stored in computer-readable storage medium, it is seen then that the electronic equipment at least includes processor and storage medium.Should
Method includes:
Step S201, determines processor cores set, and the processor cores set is included on server by be updated
Processor cores scheduled in system supervisor;
Step S202, by first processor kernel in the processor cores set from system supervisor to be updated
Free out;
Step S203, new system management program is operated on the first processor kernel of free time;
Step S204, the first service processor that will be currently running is operated in the new system management program.
Here, the step S101 that the step S201 in the present embodiment to step S204 is corresponded respectively in embodiment one is extremely walked
Rapid S104, therefore, those skilled in the art can understand above-mentioned step S201 to step S204 refering to embodiment one.
Step S205, determines second processing device kernel, the second processing device kernel from the processor cores set
It is different from the first processor kernel;
Step S206, the second processing device kernel is freed out from system supervisor to be updated;
Step S207, idle second processing device kernel is added in the dispatch list of the new system management program;
Step S208, the second service processor is operated in the new system management program, second Business Processing
Machine is different from first service processor.
In other embodiments of the invention, methods described also includes:
Whether step S209, judge the quantity of the processor cores removed in the processor cores set more than default
First threshold or the processor cores set in remaining processor cores whether be less than default Second Threshold, obtain
Judged result;
Step S210a, if the judged result shows the quantity of the processor cores for having removed more than default
First threshold or the remaining processor cores are less than default Second Threshold, by its in the processor cores set
He frees out processor cores from the system supervisor to be updated, and the processor cores addition that will be freed out
In the dispatch list of new system management program, until all processor cores in the processor cores set are all added
In the dispatch list of the new system management program;
Step SS211a, other all of service processors are operated in the management program of the new system.
Step S210b, if the judged result shows the quantity of the processor cores for having removed more than default
First threshold or the remaining processor cores are less than default Second Threshold, determine from the processor cores set
3rd processor cores, the 3rd processor cores are different from the first processor kernel and second processing device kernel;
Step S211b, the 3rd processor cores are freed out from system supervisor to be updated;And by sky
The 3rd not busy processor cores are added in the dispatch list of the new system management program.
In other embodiments of the invention, methods described also includes:
Step S212, treats that all processor cores in the processor cores set are all added in new system management
In the dispatch list of program, and after other all of service processors are operated in the management program of the new system, institute is discharged
State system supervisor to be updated.
Based on foregoing embodiment, the embodiment of the present invention provides a kind of method of online updating kernel, and the method is applied to
Electronic equipment, the function that the method is realized can be realized by the processor caller code in electronic equipment, certainly
Program code can be stored in computer-readable storage medium, it is seen then that the electronic equipment at least includes processor and storage medium.
In the present embodiment, it is assumed that server has four kernels, respectively processor cores 0 to 3 (CPU Core0 to 3),
System supervisor to be updated is Hypervisor A for A, and new system management program is Hypervisor B for B, to be updated
System supervisor on operation have 3 service processors, i.e. virtual machine 0 to 2 (VM 0 to 2).Fig. 2 exists for the embodiment of the present invention
The method that line updates kernel realizes schematic flow sheet, as shown in Fig. 2 the method includes:
First stage:All of virtual machine is all operated on system supervisor (Hypervisor) A;And all for the treatment of
Device core is all in the dispatch list of system supervisor A;
Second stage:The stage includes 3 steps, respectively:
Step S21, CPU core 3 carries out hot removal from system supervisor A;
Step S22, system supervisor B brings into operation on CPU core 3;
Step S23, on the dynamic migration of virtual machine 2 to system supervisor B.
Here, it is described heat remove be exactly server also during operation, if server is shut down, if removal
If, referred to as cold removal.
Phase III, the stage includes 5 steps, respectively:
Step S31, CPU core 2 carries out heat and removes on system supervisor B from system supervisor A;
Step S32, on the dynamic migration of virtual machine 1 to system supervisor B.
Step S33, CPU core 1 carries out heat and removes on system supervisor B from system supervisor A;
Step S34, on the dynamic migration of virtual machine 0 to system supervisor B.
Step S35, system supervisor A is discharged;
Step S36, CPU core 0 carries out heat and removes on system supervisor B from system supervisor A;
Fourth stage:All of virtual machine is all operated on system supervisor (Hypervisor) B;All of processor
Core is all in the dispatch list of system supervisor B.
Based on foregoing embodiment, the embodiment of the present invention provides a kind of device of online updating kernel, included by the device
Each unit, can be realized by the processor in electronic equipment, can also be realized by specific logic circuit certainly;
During specific embodiment, processor can be central processing unit (CPU), microprocessor (MPU), digital signal processor
Or field programmable gate array (FPGA) etc. (DSP).
Fig. 3 is the composition structural representation of the device of embodiment of the present invention online updating kernel, as shown in figure 3, the device
300 include the first determining unit 301, first processing units 302, the first running unit 303 and the second running unit 304, wherein:
First determining unit 301, for determining processor cores set, the processor cores set includes service
Processor cores on device scheduled in system supervisor to be updated;
The first processing units 302, for by first processor kernel in the processor cores set to be updated
System supervisor in free out;
First running unit 303, the first processor kernel for new system management program to be operated in the free time;
Second running unit 304, the first service processor for that will be currently running operates in the new system pipe
In reason program.
Based on foregoing embodiment, the embodiment of the present invention provides a kind of device of online updating kernel, included by the device
Each unit, can be realized by the processor in electronic equipment, can also be realized by specific logic circuit certainly;
During specific embodiment, processor can be central processing unit (CPU), microprocessor (MPU), digital signal processor
Or field programmable gate array (FPGA) etc. (DSP).
Fig. 4 is the composition structural representation of the device of embodiment of the present invention online updating kernel, as shown in figure 4, the device
300 include that the first determining unit 301, first processing units 302, the first running unit 303, the second running unit 304, second are true
Order unit 305, second processing unit 306, the first adding device 307 and the 3rd running unit 308, wherein:
First determining unit 301, for determining processor cores set, the processor cores set includes service
Processor cores on device scheduled in system supervisor to be updated;
The first processing units 302, for by first processor kernel in the processor cores set to be updated
System supervisor in free out;
First running unit 303, the first processor kernel for new system management program to be operated in the free time;
Second running unit 304, the first service processor for that will be currently running operates in the new system pipe
In reason program;
Second determining unit 305, it is described for determining second processing device kernel from the processor cores set
Second processing device kernel is different from the first processor kernel;
The second processing unit 306, for by the second processing device kernel from system supervisor to be updated
Free out;
First adding device 307, for idle second processing device kernel addition to be managed into journey in the new system
In the dispatch list of sequence;
3rd running unit 308, for the second service processor to be operated in into the new system management program, institute
State the second service processor different from first service processor.
In other embodiments of the invention, described device also includes that judging unit, the 3rd processing unit, the 4th operation are single
Unit, fourth processing unit, the 5th processing unit and the second adding device, wherein:
The judging unit, for the quantity of processor cores that judges to have been removed in the processor cores set whether
Whether default second is less than more than remaining processor cores in default first threshold or the processor cores set
Threshold value, obtains judged result;
3rd processing unit, if showing the quantity of the processor cores for having removed for the judged result
Default Second Threshold is less than more than default first threshold or the remaining processor cores, by the processor cores
Other processor cores in set are freed out from the system supervisor to be updated, and the treatment that will be freed out
Device kernel is added in the dispatch list of new system management program, until in all processors in the processor cores set
Core is all added in the dispatch list of the new system management program;
4th running unit, the management program for other all of service processors to be operated in the new system
On;
The fourth processing unit, if showing the quantity of the processor cores for having removed for the judged result
Default Second Threshold is less than more than default first threshold or the remaining processor cores, from the processor cores
Determine in the 3rd processor cores, the 3rd processor cores and the first processor kernel and second processing device in set
Core is different;
5th processing unit, for the 3rd processor cores are idle from system supervisor to be updated
Out;
Second adding device, for the 3rd idle processor cores to be added in the new system management program
In dispatch list.
In other embodiments of the invention, described device also includes releasing unit, for treating the processor cores collection
All processor cores in conjunction are all added in the dispatch list of the new system management program, and at other all of business
After reason machine is operated in the management program of the new system, the system supervisor to be updated is discharged.
In the embodiment of the present invention, if the method that above-mentioned online updating kernel is realized in the form of software function module,
And as independent production marketing or when using, it is also possible to storage is in a computer read/write memory medium.Based on so
Understanding, the part that the technical scheme of the embodiment of the present invention substantially contributes to prior art in other words can be produced with software
The form of product is embodied, and the computer software product is stored in a storage medium, including some instructions are used to so that one
Platform computer equipment (can be personal computer, server or network equipment etc.) is performed described in each embodiment of the invention
The all or part of method.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read Only
Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.So, the embodiment of the present invention is not restricted to appoint
What specific hardware and software is combined.
Correspondingly, the embodiment of the present invention provides a kind of computer-readable storage medium again, is stored in the computer-readable storage medium
There are computer executable instructions, the computer executable instructions are used to perform the side of online updating kernel in the embodiment of the present invention
Method.
Correspondingly, the embodiment of the present invention provides a kind of electronic equipment again, and the electronic equipment includes multiple processors and fortune
The scheduling system of virtual machine of the row on the multiple processor, wherein the scheduling system of the virtual machine is used for:
Determine processor cores set, the processor cores set is included on server by system administration journey to be updated
Processor cores scheduled in sequence;
First processor kernel in the processor cores set is freed out from system supervisor to be updated;
New system management program is operated on the first processor kernel of free time;
The first service processor that will be currently running is operated in the new system management program.
In other embodiments of the invention, the scheduling system of the virtual machine is additionally operable to:
Second processing device kernel, the second processing device kernel and described first are determined from the processor cores set
Processor cores are different;
The second processing device kernel is freed out from system supervisor to be updated;
Idle second processing device kernel is added in the dispatch list of the new system management program;
Second service processor is operated in the new system management program, second service processor and described
One service processor is different.
In other embodiments of the invention, the scheduling system of the virtual machine is additionally operable to:
Judge the quantity of the processor cores removed in the processor cores set whether more than default first threshold
Whether remaining processor cores are less than default Second Threshold in value or the processor cores set, obtain judging knot
Really;
If the judged result show the quantity of the processor cores for having removed more than default first threshold or
Remaining processor cores described in person are less than default Second Threshold, by other processors in the processor cores set
Core is freed out from the system supervisor to be updated, and the processor cores that will be freed out are added in new system pipe
In the dispatch list of reason program, until all processor cores in the processor cores set are all added in the new system
In the dispatch list of management program;
Other all of service processors are operated in the management program of the new system.
In other embodiments of the invention, the scheduling system of the virtual machine is additionally operable to:
If the judged result show the quantity of the processor cores for having removed more than default first threshold or
Remaining processor cores described in person are less than default Second Threshold, and the 3rd processor is determined from the processor cores set
Kernel, the 3rd processor cores are different from the first processor kernel and second processing device kernel;
3rd processor cores are freed out from system supervisor to be updated;
The 3rd idle processor cores are added in the dispatch list of the new system management program.
In other embodiments of the invention, the scheduling system of the virtual machine is additionally operable to:
Treat that all processor cores in the processor cores set all add the tune in the new system management program
In degree list, and after other all of service processors are operated in the management program of the new system, discharge described to be updated
System supervisor.
It need to be noted that be:Above electronic equipment implements the description of item, is similar, tool with above method description
There is same embodiment of the method identical beneficial effect, therefore do not repeat.For what is do not disclosed in electronic equipment embodiment of the present invention
Ins and outs, those skilled in the art refer to the description of the inventive method embodiment and understand, to save length, here not
Repeat again.
It should be understood that " one embodiment " or " embodiment " that specification is mentioned in the whole text means relevant with embodiment
Special characteristic, structure or characteristic are included at least one embodiment of the present invention.Therefore, occur everywhere in entire disclosure
" in one embodiment " or " in one embodiment " not necessarily refers to identical embodiment.Additionally, these specific feature, knots
Structure or characteristic can be combined in one or more embodiments in any suitable manner.It should be understood that in various implementations of the invention
In example, the size of the sequence number of above-mentioned each process is not meant to the priority of execution sequence, and the execution sequence of each process should be with its work(
Can determine with internal logic, the implementation process without tackling the embodiment of the present invention constitutes any restriction.The embodiments of the present invention
Sequence number is for illustration only, and the quality of embodiment is not represented.
It should be noted that herein, term " including ", "comprising" or its any other variant be intended to non-row
His property is included, so that process, method, article or device including a series of key elements not only include those key elements, and
And also include other key elements being not expressly set out, or also include for this process, method, article or device institute are intrinsic
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Also there is other identical element in the process of key element, method, article or device.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, can be by it
Its mode is realized.Apparatus embodiments described above are only schematical, for example, the division of the unit, is only
A kind of division of logic function, can have other dividing mode, such as when actually realizing:Multiple units or component can be combined, or
Another system is desirably integrated into, or some features can be ignored, or do not perform.In addition, shown or discussed each composition portion
Coupling point each other or direct-coupling or communication connection can be the INDIRECT COUPLINGs of equipment or unit by some interfaces
Or communication connection, can be electrical, machinery or other forms.
The above-mentioned unit that is illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit
The part for showing can be or may not be physical location;Both a place had been may be located at, it is also possible to be distributed to multiple network lists
In unit;Part or all of unit therein can be according to the actual needs selected to realize the purpose of this embodiment scheme.
In addition, each functional unit in various embodiments of the present invention can be fully integrated into a processing unit, also may be used
Being each unit individually as a unit, it is also possible to which two or more units are integrated in a unit;It is above-mentioned
Integrated unit can both be realized in the form of hardware, it would however also be possible to employ hardware adds the form of SFU software functional unit to realize.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can pass through
Programmed instruction related hardware is completed, and foregoing program can be stored in computer read/write memory medium, and the program exists
During execution, the step of including above method embodiment is performed;And foregoing storage medium includes:Movable storage device, read-only deposit
Reservoir (Read Only Memory, ROM), magnetic disc or CD etc. are various can be with the medium of store program codes.
Or, if the above-mentioned integrated unit of the present invention is to realize in the form of software function module and as independent product
When selling or using, it is also possible to which storage is in a computer read/write memory medium.Based on such understanding, the present invention is implemented
The part that the technical scheme of example substantially contributes to prior art in other words can be embodied in the form of software product,
The computer software product is stored in a storage medium, including some instructions are used to so that computer equipment (can be with
It is personal computer, server or network equipment etc.) perform all or part of each embodiment methods described of the invention.
And foregoing storage medium includes:Movable storage device, ROM, magnetic disc or CD etc. are various can be with Jie of store program codes
Matter.
The above, specific embodiment only of the invention, but protection scope of the present invention is not limited thereto, and it is any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all contain
Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.
Claims (10)
1. a kind of method of online updating kernel, it is characterised in that methods described includes:
Determine processor cores set, the processor cores set is included on server by system supervisor institute to be updated
The processor cores of scheduling;
First processor kernel in the processor cores set is freed out from system supervisor to be updated;
New system management program is operated on the first processor kernel of free time;
The first service processor that will be currently running is operated in the new system management program.
2. method according to claim 1, it is characterised in that methods described also includes:
Second processing device kernel, the second processing device kernel and the described first treatment are determined from the processor cores set
Device kernel is different;
The second processing device kernel is freed out from system supervisor to be updated;
Idle second processing device kernel is added in the dispatch list of the new system management program;
Second service processor is operated in the new system management program, second service processor and first industry
Business processor is different.
3. method according to claim 2, it is characterised in that methods described also includes:
Judge the quantity of processor cores that has been removed in the processor cores set whether more than default first threshold or
Whether remaining processor cores are less than default Second Threshold in processor cores set described in person, obtain judged result;
If the judged result shows that the quantity of the processor cores for having removed is more than default first threshold or institute
Remaining processor cores are stated less than default Second Threshold, by other processor cores in the processor cores set from
Freed out in the system supervisor to be updated, and the processor cores addition that will be freed out manages journey in new system
In the dispatch list of sequence, until all processor cores in the processor cores set are all added in new system management
In the dispatch list of program;
Other all of service processors are operated in the management program of the new system.
4. method according to claim 3, it is characterised in that methods described also includes:
If the judged result shows that the quantity of the processor cores for having removed is more than default first threshold or institute
Remaining processor cores are stated less than default Second Threshold, is determined in the 3rd processor from the processor cores set
Core, the 3rd processor cores are different from the first processor kernel and second processing device kernel;
3rd processor cores are freed out from system supervisor to be updated;
The 3rd idle processor cores are added in the dispatch list of the new system management program.
5. method according to claim 3, it is characterised in that methods described also includes:
Treat that all processor cores in the processor cores set all add the dispatch queue in the new system management program
In table, and after other all of service processors are operated in the management program of the new system, discharge and described to be updated be
System management program.
6. a kind of device of online updating kernel, it is characterised in that described device includes that the first determining unit, the first treatment are single
Unit, the first running unit and the second running unit, wherein:
First determining unit, for determining processor cores set, the processor cores set includes quilt on server
Processor cores scheduled in system supervisor to be updated;
The first processing units, for by first processor kernel in the processor cores set from system pipes to be updated
Freed out in reason program;
First running unit, the first processor kernel for new system management program to be operated in the free time;
Second running unit, the first service processor for that will be currently running operates in the new system management program
On.
7. device according to claim 6, it is characterised in that described device also includes the second determining unit, second processing
Unit, the first adding device and the 3rd running unit, wherein:
Second determining unit, for determining second processing device kernel from the processor cores set, at described second
Reason device kernel is different from the first processor kernel;
The second processing unit, for the free time to go out from system supervisor to be updated by the second processing device kernel
Come;
First adding device, for idle second processing device kernel to be added the scheduling in the new system management program
In list;
3rd running unit, for the second service processor to be operated in into the new system management program, described second
Service processor is different from first service processor.
8. device according to claim 7, it is characterised in that described device also include judging unit, the 3rd processing unit,
4th running unit, fourth processing unit, the 5th processing unit and the second adding device, wherein:
Whether the judging unit, the quantity of the processor cores for judging to have been removed in the processor cores set is more than
Whether remaining processor cores are less than default Second Threshold in default first threshold or the processor cores set,
Obtain judged result;
3rd processing unit, if the quantity for showing the processor cores for having removed for the judged result is more than
Default first threshold or the remaining processor cores are less than default Second Threshold, by the processor cores set
In other processor cores freed out from the system supervisor to be updated, and in the processor that will be freed out
Core add in the dispatch list of new system management program, until all processor cores in the processor cores set all
Addition is in the dispatch list of the new system management program;
4th running unit, the management program for other all of service processors to be operated in the new system;
The fourth processing unit, if the quantity for showing the processor cores for having removed for the judged result is more than
Default first threshold or the remaining processor cores are less than default Second Threshold, from the processor cores set
The 3rd processor cores of middle determination, the 3rd processor cores are equal with the first processor kernel and second processing device kernel
It is different;
5th processing unit, for the 3rd processor cores free time from system supervisor to be updated to be gone out
Come;
Second adding device, for the 3rd idle processor cores to be added the scheduling in the new system management program
In list.
9. device according to claim 8, it is characterised in that described device also includes releasing unit, for treating the place
All processor cores in reason device kernel set are all added in the dispatch list of the new system management program, and other institutes
After some service processors are operated in the management program of the new system, the system supervisor to be updated is discharged.
10. a kind of electronic equipment, it is characterised in that the electronic equipment includes multiple processors and operates in the multiple treatment
The scheduling system of the virtual machine on device, wherein the scheduling system of the virtual machine is used for:
Determine processor cores set, the processor cores set is included on server by system supervisor institute to be updated
The processor cores of scheduling;
First processor kernel in the processor cores set is freed out from system supervisor to be updated;
New system management program is operated on the first processor kernel of free time;
The first service processor that will be currently running is operated in the new system management program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611216980.4A CN106850749A (en) | 2016-12-26 | 2016-12-26 | A kind of method and device, the electronic equipment of online updating kernel |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611216980.4A CN106850749A (en) | 2016-12-26 | 2016-12-26 | A kind of method and device, the electronic equipment of online updating kernel |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106850749A true CN106850749A (en) | 2017-06-13 |
Family
ID=59136303
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611216980.4A Pending CN106850749A (en) | 2016-12-26 | 2016-12-26 | A kind of method and device, the electronic equipment of online updating kernel |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106850749A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107526617A (en) * | 2017-09-04 | 2017-12-29 | 井冈山电器有限公司 | A kind of CPU update methods and system |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1767502A (en) * | 2004-09-29 | 2006-05-03 | 英特尔公司 | Updating instructions executed by a multi-core processor |
CN101504618A (en) * | 2009-02-26 | 2009-08-12 | 浙江大学 | Multi-core processor oriented real-time thread migration method |
CN101697128A (en) * | 2009-10-10 | 2010-04-21 | 中兴通讯股份有限公司 | Version upgrading method and device |
US20110271270A1 (en) * | 2010-04-28 | 2011-11-03 | Novell, Inc. | System and method for upgrading kernels in cloud computing environments |
CN103946800A (en) * | 2012-10-12 | 2014-07-23 | 华为技术有限公司 | Methods for zero loss and nonstop packet processing during system software upgrades |
CN106201564A (en) * | 2015-05-07 | 2016-12-07 | 阿里巴巴集团控股有限公司 | Online upgrading equipment based on kernel virtual machine module and method |
-
2016
- 2016-12-26 CN CN201611216980.4A patent/CN106850749A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1767502A (en) * | 2004-09-29 | 2006-05-03 | 英特尔公司 | Updating instructions executed by a multi-core processor |
CN101504618A (en) * | 2009-02-26 | 2009-08-12 | 浙江大学 | Multi-core processor oriented real-time thread migration method |
CN101697128A (en) * | 2009-10-10 | 2010-04-21 | 中兴通讯股份有限公司 | Version upgrading method and device |
US20110271270A1 (en) * | 2010-04-28 | 2011-11-03 | Novell, Inc. | System and method for upgrading kernels in cloud computing environments |
CN103946800A (en) * | 2012-10-12 | 2014-07-23 | 华为技术有限公司 | Methods for zero loss and nonstop packet processing during system software upgrades |
CN106201564A (en) * | 2015-05-07 | 2016-12-07 | 阿里巴巴集团控股有限公司 | Online upgrading equipment based on kernel virtual machine module and method |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107526617A (en) * | 2017-09-04 | 2017-12-29 | 井冈山电器有限公司 | A kind of CPU update methods and system |
CN107526617B (en) * | 2017-09-04 | 2020-12-29 | 井冈山电器有限公司 | CPU updating method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9047196B2 (en) | Usage aware NUMA process scheduling | |
CN103677654B (en) | The method and electronic equipment of a kind of data storage | |
US9459850B2 (en) | Adaptive cloud aware just-in-time (JIT) compilation | |
US9424086B2 (en) | Support of non-trivial scheduling policies along with topological properties | |
CN100570563C (en) | Managing computer memory in having the computing environment of Dynamic LPAR | |
US8700838B2 (en) | Allocating heaps in NUMA systems | |
CN103646006B (en) | The dispatching method of a kind of processor, device and system | |
US9229878B2 (en) | Memory page offloading in multi-node computer systems | |
US8578381B2 (en) | Apparatus, system and method for rapid resource scheduling in a compute farm | |
CN104111897A (en) | Data processing method, data processing device and computer system | |
CN101211289A (en) | Recovery action management system and method | |
JP2005235019A5 (en) | ||
US7389506B1 (en) | Selecting processor configuration based on thread usage in a multiprocessor system | |
US9916215B2 (en) | System and method for selectively utilizing memory available in a redundant host in a cluster for virtual machines | |
CN101221514A (en) | Method and apparatus for selecting the architecture level to which a processor appears to conform | |
CN103699437A (en) | Resource scheduling method and device | |
CN101403966B (en) | Method for implementing portable software | |
US9304946B2 (en) | Hardware-base accelerator for managing copy-on-write of multi-level caches utilizing block copy-on-write differential update table | |
CN104516929A (en) | Method and device for file system | |
CN111177984B (en) | Resource utilization of heterogeneous computing units in electronic design automation | |
US11954419B2 (en) | Dynamic allocation of computing resources for electronic design automation operations | |
CN101290592B (en) | Realization method for multiple program sharing SPM on MPSOC | |
CN101373444A (en) | Exposing system topology to the execution environment | |
CN108459906A (en) | A kind of dispatching method and device of VCPU threads | |
CN106850749A (en) | A kind of method and device, the electronic equipment of online updating kernel |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170613 |
|
RJ01 | Rejection of invention patent application after publication |