CN102023898A - Method and device for realizing hot plug of central processing unit (CPU) - Google Patents
Method and device for realizing hot plug of central processing unit (CPU) Download PDFInfo
- Publication number
- CN102023898A CN102023898A CN2010105984795A CN201010598479A CN102023898A CN 102023898 A CN102023898 A CN 102023898A CN 2010105984795 A CN2010105984795 A CN 2010105984795A CN 201010598479 A CN201010598479 A CN 201010598479A CN 102023898 A CN102023898 A CN 102023898A
- Authority
- CN
- China
- Prior art keywords
- cpu
- described cpu
- interruption
- indicate
- instruction
- 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
- 238000000034 method Methods 0.000 title claims abstract description 56
- 238000012545 processing Methods 0.000 title claims abstract description 24
- 230000008569 process Effects 0.000 claims abstract description 33
- GOLXNESZZPUPJE-UHFFFAOYSA-N spiromesifen Chemical compound CC1=CC(C)=CC(C)=C1C(C(O1)=O)=C(OC(=O)CC(C)(C)C)C11CCCC1 GOLXNESZZPUPJE-UHFFFAOYSA-N 0.000 claims description 19
- 230000004913 activation Effects 0.000 claims description 16
- 230000005540 biological transmission Effects 0.000 claims description 3
- 230000003213 activating effect Effects 0.000 abstract description 6
- 230000000694 effects Effects 0.000 abstract description 3
- 230000000415 inactivating effect Effects 0.000 abstract 2
- 230000000763 evoking effect Effects 0.000 abstract 1
- 230000002779 inactivation Effects 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 10
- 230000006870 function Effects 0.000 description 7
- 230000005012 migration Effects 0.000 description 4
- 238000013508 migration Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 238000013461 design Methods 0.000 description 2
- 230000003044 adaptive effect Effects 0.000 description 1
- 230000002411 adverse Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 239000012141 concentrate Substances 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000009472 formulation Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 238000012797 qualification Methods 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 230000008521 reorganization Effects 0.000 description 1
- 230000002618 waking effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/3287—Power saving characterised by the action undertaken by switching off individual functional units in the computer system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
- G06F9/485—Task life-cycle, e.g. stopping, restarting, resuming execution
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- Power Sources (AREA)
Abstract
The invention discloses a method and device for realizing hot plug of a central processing unit. The method comprises: an instruction used for indicating inactivating or activating a central processing unit (CPU) is received; and an inactivating operation or activating operation corresponding to the instruction is carried out, wherein the inactivation operation comprises the following steps: the CPU is disenabled; information used for indicating the CPU to be suspended is received; and the CPU sets a sleep environment and enters into a sleep state; and the activating operation comprises the following steps: information used for indicating the CPU to be evoked is received; the CPU sets a guide context, and the inner core is guided to execute the guide process of the CPU. By adopting the invention, the effect of reducing power consumption is achieved.
Description
Technical field
The present invention relates to the communications field, in particular to a kind of implementation method and device of central processing unit hot plug.
Background technology
Along with the continuous growth of demand, processor from strength to strength is applied to built-in field, yet, at multinuclear central processing unit (Central Processing Unit, abbreviate CPU as) when bringing powerful processing power, also there are unavoidable problem, i.e. a power problems.Some multinuclear MIPS processors in the market, power consumption is not low, some 8 nuclears and even 16 nuclear CPU, maximum power dissipation (that is, operate at full capacity state) between 40-50W.If adopt a plurality of multi-core CPUs in order to obtain higher processing power in equipment, then power consumption will become equipment one big problem.In order to address this problem, can adopt the method for CPU hot plug, the CPU hot plug not exclusively refers to the physics hot plug, also be included in the hot plug of system software level, comprise as forbidding, enable some or several physics cores dynamically, use core to reach, reduce the effect of power consumption according to business reorganization CPU.
In the prior art, though the mode of using CPU heat to intercut has been proposed,, the specific implementation method of CPU hot plug, the processing mode that especially not have proposition to intercut for the CPU heat of MIPS processor are not proposed.
Summary of the invention
Fundamental purpose of the present invention is to provide a kind of implementation method and device of central processing unit hot plug, to address the above problem at least.
According to an aspect of the present invention, provide a kind of implementation method of central processing unit hot plug, having comprised: received and be used to indicate the instruction of killing or activate central processor CPU; Carry out corresponding with described instruction operation or the activation manipulation of killing, wherein, described kill to operate comprise the steps: to forbid described CPU; Receive the information that is used to indicate described CPU hang-up; Described CPU is provided with sleep environment, enters sleep state; Described activation manipulation comprises the steps: to receive and is used to the information of indicating described CPU to arouse, and described CPU sets the guiding context, and the guiding kernel is carried out the boot flow of described CPU.
Preferably, in described information and the described information that is used to indicate described CPU to arouse that is used to indicate described CPU to hang up that receives is under the situation of internuclear interruption, described CPU is provided with sleep environment, enters before the sleep state, also comprises: described CPU withdraws from the interruption context; Described guiding kernel is carried out before the boot flow of described CPU, also comprises: described CPU withdraws from the interruption context.
Preferably, forbidding described CPU comprises: the interruption that sends to described CPU is moved; Forbid sending interruption to described CPU.
Preferably, the interruption that sends to described CPU moved comprise: check whether described CPU is handled predetermined interrupt by custom-made, if then give tacit consent to the described predetermined interrupt of reorientation to host CPU.
Preferably, in described information and the described information that is used to indicate described CPU to arouse that is used to indicate described CPU to hang up that receives is under the situation of internuclear interruption, forbids that sending interruption to described CPU comprises: forbid to described CPU transmission all interruptions except that described internuclear interruption.
Preferably, reception is described is used to indicate the instruction of killing or activate central processor CPU to comprise: receive the described instruction of killing or activate central processor CPU that is used to indicate by the kernel worker thread that is pre-created.
Preferably, reception is described is used to indicate the instruction of killing or activate central processor CPU to comprise: receive the described instruction of killing or activate central processor CPU that is used to indicate by the sysfs file system interface.
According to another aspect of the present invention, also provide a kind of implement device of central processing unit hot plug, having comprised: receiver module is used to receive and is used to indicate the instruction of killing or activate central processor CPU; Execution module is used to carry out corresponding with described instruction operation or the activation manipulation of killing, wherein, described kill to operate comprise the steps: to forbid described CPU; Receive the information that is used to indicate described CPU hang-up; Described CPU is provided with sleep environment, enters sleep state; Described activation manipulation comprises the steps: to receive and is used to the information of indicating described CPU to arouse, and described CPU sets the guiding context, and the guiding kernel is carried out the boot flow of described CPU.
Preferably, described information and the described information that is used to indicate described CPU to arouse that is used to indicate described CPU to hang up that receives at execution module is under the situation of internuclear interruption, described CPU is provided with sleep environment, enters before the sleep state, and described CPU withdraws from the interruption context; Described guiding kernel is carried out before the boot flow of described CPU, and described CPU withdraws from the interruption context.
Preferably, described execution module also is used in the process of the described CPU of forbidding, and the interruption that sends to described CPU is moved; Forbid sending interruption to described CPU.
By the present invention, adopt one or more core in the dynamic prohibiting/enabling polycaryon processor, solved and do not proposed the problem of the specific implementation method of CPU hot plug in the prior art, and then reached the effect that reduces power consumption.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 is the process flow diagram according to the implementation method of the central processing unit hot plug of the embodiment of the invention;
Fig. 2 is the structured flowchart according to the implement device of the central processing unit hot plug of the embodiment of the invention;
Fig. 3 be according to the preferred embodiment of the invention under the (SuSE) Linux OS MIPS architectural framework CPU hot plug kill CPU process flow diagram (MIPS architectural framework treatment scheme);
Fig. 4 be according to the preferred embodiment of the invention under the (SuSE) Linux OS MIPS architectural framework CPU hot plug kill CPU process flow diagram (target CPU treatment scheme);
Fig. 5 be according to the preferred embodiment of the invention under the (SuSE) Linux OS MIPS architectural framework CPU hot plug activate CPU process flow diagram (MIPS architectural framework treatment scheme);
Fig. 6 be according to the preferred embodiment of the invention under the (SuSE) Linux OS MIPS architectural framework CPU hot plug activate CPU process flow diagram (target CPU treatment scheme).
Embodiment
Hereinafter will describe the present invention with reference to the accompanying drawings and in conjunction with the embodiments in detail.Need to prove that under the situation of not conflicting, embodiment and the feature among the embodiment among the application can make up mutually.
Following examples realize based on Linux, Linux is as a support symmetry multiprocessing (Symmetrical Multi-Processing who is widely used at present, abbreviate SMP as) operating system, it supports the hot plug of CPU on the system software level, this is to be called the prerequisite that certain system realizes hot plug.For different processor architectural frameworks, realize also inequality, for example, even a few frameworks such as X86, POWERPC, ARM have been supported the CPU hot plug, CPU for the MIPS framework supports that not necessarily present still more standard Linux kernel is not supported the CPU hot plug of MIPS processor architectural framework.Following examples are particularly useful for the hot plug of the CPU of MIPS processor architectural framework, but also can be applied to the hot plug of other frameworks.
Need to prove that Linux realizes though following embodiment is based on,, as long as it supports the CPU hot plug on the system software level, so Yi Xia embodiment all can be suitable for for other system.
Proposed a kind of implementation method of central processing unit hot plug in the present embodiment, Fig. 1 is the process flow diagram according to the implementation method of the central processing unit hot plug of the embodiment of the invention, and as shown in Figure 1, this flow process comprises the steps:
Step S102 receives and is used to indicate the instruction of killing or activate central processor CPU;
Step S104 carries out killing of and instruction correspondence and operates or activation manipulation, wherein, kills operation and comprises the steps: to forbid CPU; Receive the information that is used to indicate the CPU hang-up; This CPU is provided with sleep environment, enters sleep state; Activation manipulation comprises the steps: to receive and is used to the information of indicating CPU to arouse, and this CPU sets the guiding context, and the guiding kernel is carried out the boot flow of this CPU.What preferably, the mini system that can enter CPU carried out the and instruction correspondence kills operation or activation manipulation.
By the above-mentioned steps of the embodiment of the invention, realized supporting the problem of CPU hot plug, can reduce power consumption.
Be used to indicate CPU information of hanging up and the information that is used to indicate CPU to arouse to adopt multiple mode, preferably, can adopt the mode of internuclear terminal to realize, for convenience, in the following description internuclear terminal also can be called the internuclear terminal of SHIPI.Indicating information that CPU hangs up and the information that is used to indicate CPU to arouse in being used to of receiving is under the situation of internuclear interruption, for killing the CPU operation, this CPU withdraw from interrupt context after, CPU is provided with sleep environment again, enters sleep state; For activating the CPU operation, after this CPU withdrawed from the interruption context, the guiding kernel was carried out the boot flow of this CPU again.
Preferably, when forbidding CPU, can adopt and earlier the interruption that sends to CPU be moved, forbid that again sending the step of interrupting to CPU carries out.For example, in migration, can check whether CPU is handled predetermined interrupt by custom-made, if then give tacit consent to the reorientation predetermined interrupt to host CPU.
Certainly, indicating information that CPU hangs up and the information that is used to indicate CPU to arouse in being used to of receiving is under the situation of internuclear interruption, so just need forbid to CPU transmission all interruptions except that internuclear interruption.
Preferably, can be used to indicate the instruction of killing or activate central processor CPU by the kernel worker thread reception that is pre-created.Certainly, for linux system, can be used to indicate the instruction of killing or activate central processor CPU by the reception of sysfs file system interface.
Also proposed a kind of implement device of central processing unit hot plug in the present embodiment, this device is used to realize the foregoing description and preferred implementation thereof, has carried out explanation, repeats no more, and below the module that relates in this device is described.Fig. 2 is according to the structured flowchart of the implement device of the central processing unit hot plug of the embodiment of the invention, as shown in Figure 2, comprising: receiver module 22, execution module 24 describe this structure below.
Receiver module 22 is used to receive and is used to indicate the instruction of killing or activate central processor CPU; Execution module 24 is connected to receiver module 22, is used to carry out killing of and instruction correspondence and operates or activation manipulation, wherein, kills operation and comprises the steps: to forbid CPU; Receive the information that is used to indicate the CPU hang-up; CPU is provided with sleep environment, enters sleep state; Activation manipulation comprises the steps: to receive and is used to the information of indicating CPU to arouse, and CPU sets the guiding context, and the guiding kernel is carried out the boot flow of CPU.What preferably, the mini system that can enter CPU carried out the and instruction correspondence kills operation or activation manipulation.
Preferably, indicating information that CPU hangs up and the information that is used to indicate CPU to arouse in execution module 24 being used to of receiving is that CPU is provided with sleep environment under the situation of internuclear interruption, enters before the sleep state, and CPU withdraws from the interruption context; The guiding kernel is carried out before the boot flow of CPU, and CPU withdraws from the interruption context.
Preferably, execution module 24 also is used in the process of forbidding CPU, and the interruption that sends to CPU is moved; Forbid sending interruption to CPU.
Be that example describes with the CPU hot plug support that realizes 2.6 times MIPS architectural frameworks of linux kernel version below.
In the present embodiment, realize that the CPU hot plug support of 2.6 times MIPS architectural frameworks of linux kernel version comprises two parts: the one, MIPS architectural framework hot plug treatment scheme under the Linux, this requirements of process and kernel hot plug function are closely agreed with; The 2nd, hot plug on the target CPU is handled, and comprises that it forbids, enables two kinds of processing under the situation.Kill CPU and activate two positive adverse current journeys of CPU what present embodiment provided below, and above-mentioned two kinds of flow processs are respectively at the realization on MIPS architectural framework and the target CPU.This method comprises following processing:
(1) is that the hot plug function creates a kernel worker thread (cpu_hotplug_helper), is used to accept initiate the hot plug flow process from the killing of user, activation instruction;
(2) for killing the CPU flow process, enter MIPS mini system treatment scheme: the notice kernel stops kernel daemon thread etc.
(A) create kernel and stop thread, be specifically designed to and handle CPU DOWN things.
(B) forbidding CPU;
(a) forbidding CPU;
(i) migration is interrupted;
Check whether each interruption in the PIC interruptable controller needs to send to current C PU; If can send to current C PU, then check when pronucleus whether handled this interruption by special the formulation, this interrupts host CPU (0 nuclear) if then give tacit consent to reorientation;
(ii) disable interrupts
Forbid that PIC sends interruption (keeping SHIPI interrupts) to current C PU; Forbid interrupt mask register in the current C PU coprocessor 0 (keeping SHIPI interrupts).
(b) kill CPU
(i) kill CPU
Send the internuclear interruption of SHIPI_DOWN to target CPU, announcement current C PU should hang up;
Target CPU receives after the internuclear interruption of SHIPI_DOWN, and sleep environment is set; So that CPU is after withdrawing from Interrupt Process, sleep immediately;
Target CPU withdraws from after the interruption, jumps to the sleep function, enters sleep state.
(3) for activating the CPU flow process, enter MIPS mini system treatment scheme.
(A) the MIPS mini system wakes CPU up
(i) send the internuclear interruption of SHIPI_UP to target CPU, notice UP message
(ii) in the SHIPI_UP Interrupt Process of target CPU, set the guiding context, make current C PU after withdrawing from the SHIPI_UP interruption, directly enter the secondary boot flow process.
(iii) withdraw from after the interruption, carry out the multinuclear boot flow, the beginning secondary boot from nuclear; It is online to register current C PU after finishing.
In summary, present embodiment comprise following components: (1) uses the hot plug worker thread to start the CPU hot plug operations; (2) provide a perfect MIPS architectural framework CPU hot plug treatment scheme; (3) design a mode of killing, activate CPU by internuclear interruption for dedicated cpu; (4) and under the situation based on (3), design CPU Interrupt Process scheme when making the CPU sleep, must withdraw from the interruption context; During activation, the guiding kernel equally also must withdraw from the interruption context.
Can be by the foregoing description so that linux kernel is realized the CPU hot plug function support to MIPS processor architectural framework, can play a role in Linux application (server product, PC, built-in field),, reduction power consumption adaptive for service dynamic has good economic worth.
Be that example illustrates the implementation procedure at a MIPS64 polycaryon processor with a NETLOGIC/RMI XLR732CPU below.Be explained below.
At first start a kernel hot plug worker thread and be used as kernel daemon thread (cpu_hotplug_helper), handle hot plug operations.In the hot plug worker thread, need guard the imperative structures body of an overall situation, to wait for message from the user.In this data structure, for each CPU has defined a cmd coomand mode word, this coomand mode word recording user is to CPU hot plug instruction, and it has three states: NON E/TAKE_DOWN/WAKE_UP, the interface that provides by the sysfs file system changes.Need to prove that under general situation, the hot plug worker thread is all slept, have only after the instruction of CPU is killed, activated in user's input, just wake this worker thread up.
Hot plug can be divided into two treatment schemees: kill CPU, activate CPU, the former can describe with Fig. 3, Fig. 4, and the latter can describe with Fig. 5, Fig. 6.
Fig. 3 be according to the preferred embodiment of the invention under the (SuSE) Linux OS MIPS architectural framework CPU hot plug kill CPU process flow diagram (MIPS architectural framework treatment scheme), Fig. 4 be according to the preferred embodiment of the invention under the (SuSE) Linux OS MIPS architectural framework CPU hot plug kill CPU process flow diagram (target CPU treatment scheme), describe killing the CPU flow process below in conjunction with Fig. 3 and Fig. 4.
When kernel receives when requiring certain CPU DOWN instruction by the sysfs file system interface, the cmd state of noting target CPU is TAKE_DOWN, wakes the cpu_hotplug_helper worker thread then up and initiates hot plug action: cpu_down ().In this kernel is realized, also to notify scheduler to stop kernel daemon thread that is tied to each CPU etc. simultaneously, and then call _ cpu_down, the cpu down that enters the MIPS subsystem handles: forbidding CPU (_ cpu_disable) with really kill CPU (_ cpu_die).In the action of forbidding CPU, target CPU need be gone up all movable parts forbiddings; Situation is the most intuitively, needs migration to interrupt, forbid local the interruption.The MIPS architectural framework has been realized the common process interface of two relevant MIPS frameworks: the interface that plat_smp_migrate_interrupts and plat_smp_disable_interrupts require as its common process flow process; Need to prove that all other CPU realize the hot plug function if desired, must realize these two interfaces.In the present embodiment, the migration interruption can check that all will send to the interruption of this CPU; Iff only sending to current C PU, can not lose interruption in order to guarantee so, it must be redirected to other mobile C PU; In the present embodiment, acquiescence is moved to No. 0 CPU (limit simultaneously, No. 0 CPU does not allow to be killed yet); Forbid all interruptions then to target CPU.Here, because kept the mode of killing, wake up CPU by internuclear interruption, therefore when disable interrupts, need to keep SHIPI and interrupt.Timely subsequently flow process of really killing CPU: _ cpu_die.In the middle of this flow process realizes, need send the internuclear interruption of a SHIPI_DOWN from the source to target CPU, target CPU prepares a sleep context, to allow CPU be absorbed in sleep immediately after withdrawing from Interrupt Process after receiving internuclear interruption.
Activating (waking up) CPU is the anti-process of killing the CPU flow process, but more simpler comparatively speaking.Fig. 5 be according to the preferred embodiment of the invention under the (SuSE) Linux OS MIPS architectural framework CPU hot plug activate CPU process flow diagram (MIPS architectural framework treatment scheme), Fig. 6 be according to the preferred embodiment of the invention under the (SuSE) Linux OS MIPS architectural framework CPU hot plug activate CPU process flow diagram (target CPU treatment scheme), describe below in conjunction with Fig. 5 and Fig. 6.
When kernel receives when requiring certain CPU UP instruction by the sysfs file system interface, the cmd state of noting target CPU is WAKE_UP, wakes the cpu_hotplug_helper worker thread then up and initiates hot plug action: cpu_up ().In this kernel is realized, also to notify the operation of scheduler simultaneously, and then call _ cpu_up with preparation CPU UP, the cpu up that enters the MIPS subsystem handles; Here enter from the guiding prom_boot_secondary of nuclear.Each CPU must realize the plat_smp_wakeup_cpu function, with real wake up target CPU; In the present embodiment, the source sends the internuclear interruption of SHIPI_UP to target CPU, waits for that afterwards target CPU initiatively registers online information; Target CPU is waken up after receiving the internuclear interruption of SHIPI_UP, in Interrupt Process, prepare the reboot environment, need be ready to: global pointer (GP), storehouse (SP), the function that need carry out when returning, after withdrawing from interruption, the beginning standard from the CPU boot flow.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with the general calculation device, they can concentrate on the single calculation element, perhaps be distributed on the network that a plurality of calculation element forms, alternatively, they can be realized with the executable program code of calculation element, carry out by calculation element thereby they can be stored in the memory storage, perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (10)
1. the implementation method of a central processing unit hot plug is characterized in that, comprising:
Receive and be used to indicate the instruction of killing or activate central processor CPU;
Carry out operating or activation manipulation with corresponding the killing of described instruction, wherein,
Described kill the operation comprise the steps:
Forbid described CPU; Receive the information that is used to indicate described CPU hang-up; Described CPU is provided with sleep environment, enters sleep state;
Described activation manipulation comprises the steps:
Receive and be used to the information of indicating described CPU to arouse, described CPU sets the guiding context, and the guiding kernel is carried out the boot flow of described CPU.
2. method according to claim 1 is characterized in that, is under the situation of internuclear interruption in described information and the described information that is used to indicate described CPU to arouse that is used to indicate described CPU to hang up that receives,
Described CPU is provided with sleep environment, enters before the sleep state, also comprises: described CPU withdraws from the interruption context;
Described guiding kernel is carried out before the boot flow of described CPU, also comprises: described CPU withdraws from the interruption context.
3. method according to claim 1 and 2 is characterized in that, forbids described CPU and comprises:
The interruption that sends to described CPU is moved;
Forbid sending interruption to described CPU.
4. method according to claim 3 is characterized in that, the interruption that sends to described CPU is moved comprise:
Check whether described CPU is handled predetermined interrupt by custom-made, if then give tacit consent to the described predetermined interrupt of reorientation to host CPU.
5. method according to claim 3 is characterized in that, is under the situation of internuclear interruption in described information and the described information that is used to indicate described CPU to arouse that is used to indicate described CPU to hang up that receives, and forbids that sending interruption to described CPU comprises:
Forbid to described CPU transmission all interruptions except that described internuclear interruption.
6. method according to claim 1 is characterized in that, receives describedly to be used to indicate the instruction of killing or activate central processor CPU to comprise:
Receive the described instruction of killing or activate central processor CPU that is used to indicate by the kernel worker thread that is pre-created.
7. according to claim 1 or 6 described methods, it is characterized in that, receive and describedly be used to indicate the instruction of killing or activate central processor CPU to comprise:
Receive the described instruction of killing or activate central processor CPU that is used to indicate by the sysfs file system interface.
8. the implement device of a central processing unit hot plug is characterized in that, comprising:
Receiver module is used to receive and is used to indicate the instruction of killing or activate central processor CPU;
Execution module is used to carry out operate or activation manipulation with corresponding the killing of described instruction, wherein,
Described kill the operation comprise the steps:
Forbid described CPU; Receive the information that is used to indicate described CPU hang-up; Described CPU is provided with sleep environment, enters sleep state;
Described activation manipulation comprises the steps:
Receive and be used to the information of indicating described CPU to arouse, described CPU sets the guiding context, and the guiding kernel is carried out the boot flow of described CPU.
9. device according to claim 8 is characterized in that, described information and the described information that is used to indicate described CPU to arouse that is used to indicate described CPU to hang up that receives at execution module is under the situation of internuclear interruption,
Described CPU is provided with sleep environment, enters before the sleep state, and described CPU withdraws from the interruption context;
Described guiding kernel is carried out before the boot flow of described CPU, and described CPU withdraws from the interruption context.
10. device according to claim 8 is characterized in that, described execution module also is used in the process of the described CPU of forbidding, and the interruption that sends to described CPU is moved; Forbid sending interruption to described CPU.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010105984795A CN102023898A (en) | 2010-12-21 | 2010-12-21 | Method and device for realizing hot plug of central processing unit (CPU) |
PCT/CN2011/080156 WO2012083742A1 (en) | 2010-12-21 | 2011-09-26 | Method and device for achieving hot plug of central processing unit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010105984795A CN102023898A (en) | 2010-12-21 | 2010-12-21 | Method and device for realizing hot plug of central processing unit (CPU) |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102023898A true CN102023898A (en) | 2011-04-20 |
Family
ID=43865220
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2010105984795A Pending CN102023898A (en) | 2010-12-21 | 2010-12-21 | Method and device for realizing hot plug of central processing unit (CPU) |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN102023898A (en) |
WO (1) | WO2012083742A1 (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2012083742A1 (en) * | 2010-12-21 | 2012-06-28 | 中兴通讯股份有限公司 | Method and device for achieving hot plug of central processing unit |
CN103488606A (en) * | 2013-09-10 | 2014-01-01 | 华为技术有限公司 | Node controller based request response method and device |
CN105009086A (en) * | 2014-03-10 | 2015-10-28 | 华为技术有限公司 | Method for switching processors, computer, and switching apparatus |
CN105302277A (en) * | 2015-10-19 | 2016-02-03 | 浪潮(北京)电子信息产业有限公司 | Server physical configuration updating method and system |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1504859A (en) * | 2002-12-03 | 2004-06-16 | 宏�股份有限公司 | Handheld device with sleep function and operation method thereof |
US20060036878A1 (en) * | 2004-08-11 | 2006-02-16 | Rothman Michael A | System and method to enable processor management policy in a multi-processor environment |
US20060095624A1 (en) * | 2004-11-03 | 2006-05-04 | Ashok Raj | Retargeting device interrupt destinations |
CN101256512A (en) * | 2008-03-20 | 2008-09-03 | 中兴通讯股份有限公司 | Method for automatically electing main guiding nucleus in isomerization multi-nucleus architecture |
CN101561764A (en) * | 2009-05-18 | 2009-10-21 | 华为技术有限公司 | Patching method and patching device under multi-core environment |
CN101710253A (en) * | 2009-11-25 | 2010-05-19 | 安凯(广州)微电子技术有限公司 | Deep-sleep method of embedded system |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101414268A (en) * | 2007-10-15 | 2009-04-22 | 南京大学 | Method for managing processor hot plug on ARM MPCore processor |
CN101403982B (en) * | 2008-11-03 | 2011-07-20 | 华为技术有限公司 | Task distribution method, system for multi-core processor |
CN101770401B (en) * | 2008-12-30 | 2013-09-18 | 北京天融信网络安全技术有限公司 | Method for building multi-core operating environment |
CN102023898A (en) * | 2010-12-21 | 2011-04-20 | 中兴通讯股份有限公司 | Method and device for realizing hot plug of central processing unit (CPU) |
-
2010
- 2010-12-21 CN CN2010105984795A patent/CN102023898A/en active Pending
-
2011
- 2011-09-26 WO PCT/CN2011/080156 patent/WO2012083742A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1504859A (en) * | 2002-12-03 | 2004-06-16 | 宏�股份有限公司 | Handheld device with sleep function and operation method thereof |
US20060036878A1 (en) * | 2004-08-11 | 2006-02-16 | Rothman Michael A | System and method to enable processor management policy in a multi-processor environment |
US20060095624A1 (en) * | 2004-11-03 | 2006-05-04 | Ashok Raj | Retargeting device interrupt destinations |
CN101256512A (en) * | 2008-03-20 | 2008-09-03 | 中兴通讯股份有限公司 | Method for automatically electing main guiding nucleus in isomerization multi-nucleus architecture |
CN101561764A (en) * | 2009-05-18 | 2009-10-21 | 华为技术有限公司 | Patching method and patching device under multi-core environment |
CN101710253A (en) * | 2009-11-25 | 2010-05-19 | 安凯(广州)微电子技术有限公司 | Deep-sleep method of embedded system |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2012083742A1 (en) * | 2010-12-21 | 2012-06-28 | 中兴通讯股份有限公司 | Method and device for achieving hot plug of central processing unit |
CN103488606A (en) * | 2013-09-10 | 2014-01-01 | 华为技术有限公司 | Node controller based request response method and device |
CN103488606B (en) * | 2013-09-10 | 2016-08-17 | 华为技术有限公司 | Request responding method based on Node Controller and device |
US10324646B2 (en) | 2013-09-10 | 2019-06-18 | Huawei Technologies Co., Ltd. | Node controller and method for responding to request based on node controller |
CN105009086A (en) * | 2014-03-10 | 2015-10-28 | 华为技术有限公司 | Method for switching processors, computer, and switching apparatus |
CN105009086B (en) * | 2014-03-10 | 2019-01-18 | 华为技术有限公司 | A kind of method, computer and switching device for realizing processor switching |
CN105302277A (en) * | 2015-10-19 | 2016-02-03 | 浪潮(北京)电子信息产业有限公司 | Server physical configuration updating method and system |
Also Published As
Publication number | Publication date |
---|---|
WO2012083742A1 (en) | 2012-06-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104583900B (en) | Switching at runtime service load between the processor's heterogeneous cores | |
US8433833B2 (en) | Dynamic reassignment for I/O transfers using a completion queue | |
US8195968B2 (en) | System and method for power reduction by sequestering at least one device or partition in a platform from operating system access | |
CN104252389B (en) | application program operation method, system | |
US7797563B1 (en) | System and method for conserving power | |
US8209559B2 (en) | Low power polling techniques | |
KR102763870B1 (en) | Power button override for persistent memory enabled platforms | |
JP6181844B2 (en) | Dual Host Embedded Shared Device Controller | |
US9697029B2 (en) | Guest idle based VM request completion processing | |
CN101546277B (en) | Multiple core processor platform and multiple core processor synchronization method | |
EP4336359A1 (en) | Method for processing page faults and corresponding apparatus | |
US8892819B2 (en) | Multi-core system and external input/output bus control method | |
TW200525365A (en) | Optimization of SMI handling and initialization | |
CN103842933A (en) | Constrained boot techniques in multi-core platforms | |
CN102023898A (en) | Method and device for realizing hot plug of central processing unit (CPU) | |
US9600314B2 (en) | Scheduler limited virtual device polling | |
US10142832B2 (en) | Information sending and processing method and apparatus | |
CN103502906B (en) | The dynamic assignment of the processor core of operation system | |
CN111913669B (en) | SSD power-down speed improving method and device, computer equipment and storage medium | |
CN110858164B (en) | Inter-process communication method, device and computer readable medium | |
US20170160778A1 (en) | Method and device for monitoring power-consuming applications, user terminal, computer program and storage medium | |
CN106708619A (en) | Resource management method and apparatus | |
KR102619117B1 (en) | Electronic device and method for operating electronic device | |
US20140068354A1 (en) | Apparatus and method for determining a state of a mobile terminal | |
KR102551076B1 (en) | multimodal interface |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20110420 |