CN104503831B - Equipment optimization method and device - Google Patents
Equipment optimization method and device Download PDFInfo
- Publication number
- CN104503831B CN104503831B CN201410806641.6A CN201410806641A CN104503831B CN 104503831 B CN104503831 B CN 104503831B CN 201410806641 A CN201410806641 A CN 201410806641A CN 104503831 B CN104503831 B CN 104503831B
- Authority
- CN
- China
- Prior art keywords
- kernel
- equations
- mark
- status information
- kind process
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 316
- 238000005457 optimization Methods 0.000 title claims abstract description 36
- 230000008569 process Effects 0.000 claims abstract description 281
- 238000005192 partition Methods 0.000 claims description 29
- 238000004140 cleaning Methods 0.000 abstract description 10
- 238000012545 processing Methods 0.000 description 10
- 238000010295 mobile communication Methods 0.000 description 4
- 230000009977 dual effect Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000004590 computer program Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000009826 distribution Methods 0.000 description 2
- 210000004556 brain Anatomy 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000013480 data collection Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000001035 drying Methods 0.000 description 1
- 238000005538 encapsulation Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 238000011112 process operation Methods 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Abstract
The invention discloses a kind of equipment optimization method and device, more than two processor cores are integrated with the processor of the equipment, methods described includes:More than two processor cores are integrated with the processor of equipment, it is characterised in that including:The mark and status information of the first kind process run in current device and Equations of The Second Kind process are obtained, any state of a process information includes the processor utilization rate of the process;More than two processor cores are divided into by first kind kernel and Equations of The Second Kind kernel according to the mark and status information of first kind process and Equations of The Second Kind process;Specify first kind process to operate in first kind kernel, specify Equations of The Second Kind process to operate in Equations of The Second Kind kernel;Wherein, the priority of first kind process is higher than the priority of Equations of The Second Kind process.The present invention can solve the cleaning of CPU full loads or optimization program the problem of can not quickly run.
Description
Technical field
The present invention relates to Internet technology, and in particular to a kind of equipment optimization method and device.
Background technology
Currently, the application program of magnanimity brings more selections to user, and user typically can be selected in mobile communication
Multiple application programs are installed, to meet oneself demand in different aspect, such as webpage is clear in equipment/PC device
Look at, Voice & Video broadcasting, reading, the networking telephone, navigator fix, game etc..
At present, the operating system of most of electronic equipments belongs to multi-core operation system, for example, four core mobile phones, eight nuclear power brains
There is more application program Deng, user starting up in mobile communication equipment/PC device, and moved back in user's selection
Go out after certain applications program, the application program can't be completely closed, but continued to run with the backstage of operating system, Huo Zhe
System start be or be other in the case of automatic start and in running background, can when running the application program so as to user's selection
Quickly open it, or continue in running background network data, real-time reception Email, news, Weather information,
The content such as social software and chat software message.
Thus, when CPU (Central Processing Unit, central processing unit) full load, all programs in equipment
The speed of service can all be affected, it could even be possible to entering mobile communication equipment/PC device that user uses
Stuck state.Now, if user will start with system resource optimization or the program cleared up to recover equipment, due to distribution
Less than enough CPU usages, these programs be able to can not also start in long-time, cause user to wait or force to terminate
Some programs can just make equipment recover the state normally run.
The content of the invention
For defect of the prior art, the invention provides a kind of equipment optimization method and device, can solve CPU expires
The problem of cleaning or optimization program can not quickly be run during load.
In a first aspect, the present invention, which is provided in a kind of equipment optimization device, the processor of the equipment, is integrated with two or more
Processor cores, the equipment optimization device includes:
Mark and the state letter of acquiring unit, the first kind process run for obtaining in current device and Equations of The Second Kind process
Breath, the status information of any process includes the processor utilization rate of the process;
Division unit, for the first kind process and the mark and state of Equations of The Second Kind process obtained according to the acquiring unit
Described two processor cores above are divided into first kind kernel and Equations of The Second Kind kernel by information;
Designating unit, for the division result according to the division unit, specifies the first kind process to operate in described
In first kind kernel, the Equations of The Second Kind process is specified to operate in the Equations of The Second Kind kernel;
Wherein, the first kind process includes the process for being used to clear up current device or optimize.
Alternatively, the first kind process include that user selects for the process being cleared up equipment or optimized;
And/or,
The first kind process include determining from server for the process being cleared up equipment or optimized;
And/or,
The first kind process includes process corresponding with any program of user's selection;
And/or,
The first kind process includes the critical processes of the operating system of current device;
And/or,
The first kind process includes the process corresponding with large software determined from server.
Alternatively, the division unit includes:
Determining module, described in the mark of first kind process and status information for being obtained according to the acquiring unit are determined
The target kernel quantity of first kind kernel;
Division module, for the mark of Equations of The Second Kind process and status information that are obtained according to the acquiring unit by one or
Multiple processor cores are divided to the Equations of The Second Kind kernel;
Choosing module, for picking out one from the processor cores divided without the division module according to preset rules
Individual processor cores;
The division module is additionally operable to the processor cores that the Choosing module is picked out being divided in the first kind
Core, until the number of cores in the first kind kernel reaches the target kernel of first kind kernel determined by the determining unit
Quantity.
Alternatively, the division unit includes:
Acquisition module, for the mark of first kind process and status information that are obtained according to the acquiring unit in server
It is middle to obtain corresponding kernel partition strategy;
Adjusting module, for described in the mark of Equations of The Second Kind process and the status information adjustment that are obtained according to the acquiring unit
The kernel partition strategy that acquisition module is obtained;
Division module, for according to the adjusting module adjust after kernel partition strategy will it is described two more than processing
Device kernel is divided into first kind kernel and Equations of The Second Kind kernel.
Alternatively, the division unit also includes:
Judge module, for before the adjusting module adjusts the kernel partition strategy, judging that the Equations of The Second Kind enters
Whether the system resource total amount shared by journey meets preparatory condition;
Optimization module, for judging that the system resource total amount shared by the Equations of The Second Kind process is met in the judge module
During preparatory condition, the system resource shared by the Equations of The Second Kind process is optimized.
Second aspect, the present invention provides in a kind of equipment optimization method, the processor of the equipment and is integrated with two or more
Processor cores, the equipment optimization method includes:
The mark and status information of the first kind process run in current device and Equations of The Second Kind process are obtained, any process
The status information includes the processor utilization rate of the process;
Will described two processors above according to the mark and status information of the first kind process and Equations of The Second Kind process
Kernel is divided into first kind kernel and Equations of The Second Kind kernel;
Specify the first kind process to operate in the first kind kernel, specify the Equations of The Second Kind process to operate in described
In Equations of The Second Kind kernel;
Wherein, the first kind process includes the process for being used to clear up current device or optimize.
Alternatively, the first kind process include that user selects for the process being cleared up equipment or optimized;
And/or,
The first kind process include determining from server for the process being cleared up equipment or optimized;
And/or,
The first kind process includes process corresponding with any program of user's selection;
And/or,
The first kind process includes the critical processes of the operating system of current device;
And/or,
The first kind process includes the process corresponding with large software determined from server.
Alternatively, the mark and status information according to the first kind process and Equations of The Second Kind process by it is described two with
On processor cores be divided into first kind kernel and Equations of The Second Kind kernel, including:
The target kernel quantity of the first kind kernel is determined according to the mark and status information of the first kind process;
One or more processors kernel is divided to described according to the mark and status information of the Equations of The Second Kind process
Two class kernels;
According to preset rules picked out from remaining unallocated processor cores a processor cores be divided to it is described
First kind kernel, until the number of cores in the first kind kernel reaches the target kernel quantity of the first kind kernel.
Alternatively, the mark and status information according to the first kind process and Equations of The Second Kind process by it is described two with
On processor cores be divided into first kind kernel and Equations of The Second Kind kernel, including:
Corresponding kernel partition strategy is obtained according to the mark and status information of the first kind process in the server;
The kernel partition strategy is adjusted according to the mark of the Equations of The Second Kind process and status information;
Described two processor cores above are divided into the first kind according to the kernel partition strategy after adjustment
Core and Equations of The Second Kind kernel.
Alternatively, the mark according to the Equations of The Second Kind process and status information adjust the kernel partition strategy it
Before, in addition to:
Judge whether the system resource total amount shared by the Equations of The Second Kind process meets preparatory condition;
If the system resource total amount shared by the Equations of The Second Kind process meets preparatory condition, to the Equations of The Second Kind process institute
The system resource of occupancy is optimized.
As shown from the above technical solution, the equipment optimization method and device that the present invention is provided, can be by specifying process to transport
Row is in ready-portioned first kind kernel or Equations of The Second Kind kernel so that in the case that Equations of The Second Kind kernel is all fully loaded, the
One class kernel still can handle corresponding first kind process, thus can ensure the CPU that can the be taken moneys of first kind process
Source is not influenceed by other processes.So as to which the present invention can be such that the program of above-mentioned cleaning or optimization operates in the above-mentioned first kind
In core, these programs are all fully loaded with even if Equations of The Second Kind kernel will not also be limited by cpu resource and be run slow.It can be seen that, this hair
The bright cleaning of CPU full loads or the optimization program of can solving is the problem of can not quickly run.
Further, the present invention is also provided to user's one kind by the division of process and processor cores and ensures specific process
The cpu resource that can be taken means.Such as, the process related to large software can be specified and operates in first kind kernel
In, it is protected its cpu resource taken.Moreover, the mode voluntarily specified manually relative to user, the present invention can be with
The dividing condition of first kind kernel and Equations of The Second Kind kernel is adjusted according to the mark of process and status information in real time, user is not required to
Just to change a specified relationship between process and kernel after a while, more preferably Consumer's Experience can be obtained.
Certainly, any product or method for implementing the present invention it is not absolutely required to while reaching all the above excellent
Point.
Brief description of the drawings
Fig. 1 uses for current total CPU shown by Windows task managers in the equipment with dual core processor
Rate and the respective CPU usage records curve synoptic diagram of two processor cores;
The schematic flow sheet for the equipment optimization method that Fig. 2 provides for one embodiment of the invention;
Fig. 3 is the step schematic flow sheet of division first kind kernel and Equations of The Second Kind kernel in one embodiment of the invention;
Fig. 4 is the step schematic flow sheet of division first kind kernel and Equations of The Second Kind kernel in another embodiment of the present invention;
The structural representation for the equipment optimization device that Fig. 5 provides for one embodiment of the invention.
Embodiment
Below in conjunction with the accompanying drawings, the embodiment to invention is further described.Following examples are only used for more clear
Illustrate to Chu technical scheme, and can not be limited the scope of the invention with this.
Equipment mentioned herein can be desktop computer in personal computer, notebook computer, tablet personal computer or
Smart mobile phone, personal digital assistant, music player devices, game station based on any operating system etc..
Processor mentioned herein is CPU (Central Processing Unit, central processing unit), and it is computer
One of capital equipment, mainly data in interpretive machine instruction and processing computer software.Further, this paper institutes
The processor being related to is mainly the central processing unit of multi-core (two or more), and multi-core central processing unit is in central processing unit
Multiple processor cores are included in chip or encapsulation, it is relatively conventional by core number of even number, typically share L2 cache.Now
Personal computer using double-core and four core above processors is fairly common.Separately also there are a small number of three cores, six cores, eight
Core, ten core processors etc..
Multi-core processor can improve the process performance of computer.Principle is substantially that an integrated circuit inserts two
Respective processors above (are referred to as core) in meaning.In ideal conditions, dual core processors performance will be Hong Neihechu
Manage device twice.However, in reality, because of incomplete software algorithm, multi-core processor performance gain well below theory,
General performance gain only has 50% or so.But increase the processor of core amounts, can still increase a computer can locate
The workload of reason.This means the processor can handle substantial amounts of nonsynchronous instruction and event, the first core can be shared not
Bear the work of heavy burden.Sometimes, the second core will handle identical task simultaneously with adjacent core, to prevent collapse.
The process referred in the present embodiment can be the program with certain standalone feature on one on some data acquisition system
Secondary operation activity, is the individual that system carries out Resource Distribution and Schedule.User is assigned after the order of operation program, just
Process can be produced.Same program can produce multiple processes, to allow to have multidigit user to run same program simultaneously, without mutually rushing
It is prominent.Process needs some resources to complete work, such as CPU use times, memory, file and I/O equipment, and for sequentially
Carry out one by one, that is, each core cpu is only capable of running a process in any time.
It is used as index of the free system resources for evaluating operating system, CPU usage main representative process occupancy
The degree of cpu resource.In the case where current time-interval control uses CPU time-slottings scene:Such as process A takes
10ms, then process B take 30ms, then free time 60ms;Following process A holds over 10ms, and process B is held over
30ms, then free time 60ms.If this circulates in continuous repetition within a period of time, then process A CPU in this period
Utilization rate is that 10%, process B CPU usage is that the total CPU usage of 30%, system is 40%.Handled with multi-core
In the operating system of device, the CPU usage of each processor cores can be calculated respectively in the manner described above, and system is total
CPU usage be equal to the CPU usage of all processor cores average value (without specified otherwise, hereinafter " CPU makes
With rate " refer to " the total CPU usage of system ").For example in the equipment illustrated in fig. 1 with dual core processor
The respective CPU usage records of current total CPU usage and two processor cores shown by Windows task managers are bent
Line schematic diagram.
Thus, when the CPU in equipment is fully loaded with (total CPU usage reaches 100%), the speed of service of all programs is all
It can be affected, it could even be possible to the mobile communication equipment/PC device for using user enters stuck state.This
When, if user will start with system resource optimization or the program cleared up to recover equipment, due to distributing less than enough
Cpu resource can be used, these programs be able to can not also start in long-time, cause user to wait or force to terminate some programs
Equipment can be just set to recover the state normally run.
For this problem, the embodiments of the invention provide a kind of equipment optimization method.Fig. 1 shows an implementation of the invention
The schematic flow sheet for the equipment optimization method that example is provided, as shown in figure 1, the equipment optimization method of the present embodiment includes following step
Suddenly:
Step 101:The mark and status information of the first kind process run in current device and Equations of The Second Kind process are obtained, is appointed
The status information of one process includes the processor utilization rate (i.e. above-mentioned CPU usage) of the process.
Wherein, the first kind process includes the process for being used to clear up current device or optimize.Accordingly, it is above-mentioned
Equations of The Second Kind process can be all processes in addition to the first kind process or predetermined be possible to influence
The set of the process of one class process operation, the present invention is not limited this.
The object of above-mentioned optimization or cleaning is the operating system of current device, and target can include following one or many
:Computer is reduced as far as possible and performs few process, mode of operation is changed, and is deleted unnecessary interruption and is allowed machine operation more to have
Effect, optimization document location makes reading and writing data faster, vacates more system resources and is dominated for user, and reduction is unnecessary is
System add-in and self-starting.Above-mentioned optimization or the specific involved operation of cleaning can close stop responder, remove
The data that are not used in internal memory, delete temporary file for taking less than etc.;The mark of above-mentioned process can be process title or
Person's Process identifier PID (Process Identification);Above-mentioned state of a process information can include occupancy system money
Source status information (including CPU usage), running state information etc.;It is it is well-known to those skilled in the art, herein
Repeat no more.
Step 102:According to the mark and status information of the first kind process and Equations of The Second Kind process will be described two more than
Processor cores be divided into first kind kernel and Equations of The Second Kind kernel.
Step 103:Specify the first kind process to operate in the first kind kernel, specify the Equations of The Second Kind process fortune
Row is in the Equations of The Second Kind kernel.
It can be seen that, after step process, the first kind process run in current device is designated to operate in the first kind
In core, Equations of The Second Kind process is specified in Equations of The Second Kind kernel.
Wherein, dividing involved main object includes quantity, the first kind kernel of first kind kernel and Equations of The Second Kind kernel
Sequence number of the processor cores included respectively with Equations of The Second Kind kernel etc..Certainly, need to use the operation of current device when dividing
Some information of system, such as processor cores quantity and use state etc., these information both can be directly by inquiring about system
System state is obtained, and can also be deduced by state of a process information.
It can be seen that, the above method can be operated in ready-portioned first kind kernel or Equations of The Second Kind kernel by specified process,
So that in the case that Equations of The Second Kind kernel is all fully loaded, first kind kernel still can handle corresponding first kind process,
Thus it can ensure that the cpu resource that can be taken of first kind process is not influenceed by other processes.So as to which, the above method can be with
The program of above-mentioned cleaning or optimization is operated in above-mentioned first kind kernel, these programs are all fully loaded with even if Equations of The Second Kind kernel
It will not be limited and be run slow by cpu resource.So, the above method can solve CPU full loads cleaning or optimization program without
The problem of method is quickly run.
Further, the above method by the division of process and processor cores be also provided to user one kind ensure it is specific enter
The means of the cpu resource that can be taken of journey.Such as, the process related to large software can be specified and operated in the first kind
In core, it is protected its cpu resource taken.Moreover, the mode voluntarily specified manually relative to user, the above method
The dividing condition of first kind kernel and Equations of The Second Kind kernel can be adjusted according to the mark of process and status information in real time, makes user
A specified relationship between process and kernel need not just be changed after a while, more preferably Consumer's Experience can be obtained.
On the other hand, above-mentioned first kind process can specifically include following classes or multiclass process:The use of user's selection
In the process cleared up equipment or optimized;Determined from server for the process being cleared up equipment or optimized;
Process corresponding with any program that user selects;The critical processes of the operating system of current device;Determined from server
Process corresponding with large software.It can be seen that, above-mentioned process for being used to clear up equipment or optimize etc. needs protection to take
The process of cpu resource can voluntarily be determined by user, (example can also be automatically determined according to the information being collected into by Cloud Server
Some processes corresponding with large software are such as determined according to the average value of CPU usage, or maintain operating system normally to run
Some critical processes), naturally in conjunction with both --- the process or program listing for providing a user Cloud Server recommendation allow use
Family is screened, and can reach preferably Consumer's Experience.
It should be noted that the execution sequence of above-mentioned steps 101 and step 102 can in no particular order, but step 103 needs
It is performed both by just performing after finishing in step 101 and step 102.
More specifically, in one embodiment of the invention, above-mentioned steps 102:According to the first kind process and
Described two processor cores above are divided into first kind kernel and Equations of The Second Kind by the mark and status information of two class processes
Core can specifically include step as shown in Figure 3:
Step 301:Determined according to the mark and status information of the first kind process in the target of the first kind kernel
Nuclear volume;
Step 302:One or more processors kernel is divided according to the mark and status information of the Equations of The Second Kind process
To the Equations of The Second Kind kernel;
Step 303:A processor cores are picked out according to preset rules from remaining unallocated processor cores to draw
Divide to the first kind kernel, until the number of cores in the first kind kernel reaches the target kernel of the first kind kernel
Quantity.
In above-mentioned steps 301, required for all first kind processes of target kernel quantity Main Basiss of first kind kernel
Cpu resource total amount can be used.Specifically, if in the equipment of four core processors, the first kind process being currently running includes process
A, process B and process C, its CPU usage are respectively 11%, 20% and 5%, it is assumed that each kernel can be carried in four core processors
Supply maximum CPU usage be a quarter (25%) so that due to process A, process B, process C CPU usage sum
For 36%, more than 25%, thus determine that the target kernel quantity of current first kind kernel is " 2 ", so that first kind kernel
It is enough to ensure the speed of service of first kind process, excessive available cpu resource will not be taken again.Certainly, if there are special circumstances,
For example know process B to enter final state process according to process B mark and status information, then it is determined that the first kind
It can not just consider process B CPU usage during the target kernel quantity of kernel, and make the target kernel quantity in example be
" 1 " is (because process A and process C CPU usage sum is 16%, less than 25%).Certainly, in order that Equations of The Second Kind process also may be used
Normally to run, target kernel quantity should be less than the kernel sum of processor cores.
In above-mentioned steps 302, processor cores are divided to Equations of The Second Kind kernel essentially according to sequence number, this processing it is main
Purpose is in order to avoid excessive process changes with interior internuclear specified relationship.Such as, in the equipment of four core processors, according to
The mark and status information of two class processes learn that Equations of The Second Kind process takes CPU serial numbers CPU-0, CPU-1, CPU-2, CPU- respectively
0%, 4%, 12% and the 85% of the CPU usage of 3 four kernels, then can will just take single cpu utilization rate and exceed
75% CPU-3 is divided in Equations of The Second Kind kernel so that even if specifying all Equations of The Second Kind processes all to run in subsequent step
When in CPU serial numbers CPU-3 kernel, the Equations of The Second Kind process just run originally in CPU serial numbers CPU-3 kernel is not yet
It can be affected.In addition, if when a certain process that there is a situation where in Equations of The Second Kind process is had to operate in a particular core,
Then it is also required to this particular core being divided in Equations of The Second Kind kernel.Certainly, if a certain process in first kind process and the
When a certain process in two class processes is all had to operate in same kernel, then adjustment process attaching relation is needed so that two
Process is not belonging respectively to one in first kind process and Equations of The Second Kind process.In addition, being divided to Equations of The Second Kind kernel in step 302
Number need the difference of the total target kernel quantity with above-mentioned first kind kernel of the kernel less than processor cores.
, can be according to preset rules from remaining unallocated processor on the basis of above-mentioned steps 301 and step 302
A processor cores are picked out in kernel and are divided to the first kind kernel, until the number of cores in the first kind kernel
The target kernel quantity of the first kind kernel is reached, partition process is just completed.Such as, due to the sequence for general device
Number most forward kernel is disposal ability most strong kernel, so above-mentioned preset rules can include:If sequence number is most forward
Kernel is not divided to Equations of The Second Kind kernel, then the kernel is divided into the first kind kernel at first.Similar to such place
Reason mode, you can kernel is seriatim divided to first kind kernel until the number of cores in first kind kernel reaches above-mentioned target
Number of cores.
It can be seen that, in the embodiment of the present invention, the idiographic flows of above-mentioned steps 102 can by the processing of equipment itself reality
It is existing, wherein the presupposed information of involved such as preset rules is technical scheme of the those skilled in the art according to the present embodiment
It is readily obtained, will not be described in detail herein.
On the other hand in another embodiment of the invention, above-mentioned steps 102:According to the first kind process and Equations of The Second Kind
The mark and status information of process will it is described two more than processor cores be divided into first kind kernel and Equations of The Second Kind kernel can
To specifically include step as shown in Figure 4:
Step 401:Corresponding kernel is obtained in the server according to the mark and status information of the first kind process to draw
Divide strategy;
Step 402:The kernel partition strategy is adjusted according to the mark of the Equations of The Second Kind process and status information;
Step 403:Described two processor cores above are divided into according to the kernel partition strategy after adjustment
First kind kernel and Equations of The Second Kind kernel.
It can be seen that, different from the mode that equipment itself in upper example is handled, the embodiment of the present invention mainly by obtaining in the server
The kernel partition strategy that takes completes the division of first kind kernel and Equations of The Second Kind kernel.Specifically, the main root of above-mentioned steps 401
Make server according to the mark and status information (relevant information of process running environment can certainly be included) of first kind process
Match suitable kernel partition strategy.Wherein, server can be that the kernel for collecting a large number of users divides state and user feedback
The Cloud Server (screening washer being trained by mass data, so as to match suitable kernel partition strategy) of information or has
The cloud computing server of powerful calculating ability (carries out the calculating of kernel division instead of user, obtains suitable kernel and divide plan
Slightly).
After kernel partition strategy is obtained, above-mentioned steps 402 can be according to the mark and status information of Equations of The Second Kind process
Kernel partition strategy is adjusted, its particular content is similar to step 302 and step 303 in upper example, will not be repeated here.
Finally, according to the kernel partition strategy after adjustment, it is possible to directly carry out the division of above-mentioned first kind kernel and Equations of The Second Kind kernel
.
As can be seen that the embodiment of the present invention can greatly mitigate the burden of equipment compared to upper example, while based on server
Powerful data collection ability and computing capability can reach more preferably effect, but the embodiment of the present invention must be based on server
With the basic network architectures of terminal.But in practical operation, the specific implementation of above-mentioned steps 102 can be of the invention real
Apply the mutual switching of example and upper example or be combined with each other, it does not obviously depart from the spirit and scope of technical solution of the present invention.
Based on same inventive concept, the equipment optimization of the said equipment optimization method can be realized the invention provides a kind of
Device, referring to the structural representation of Fig. 5 equipment optimization devices provided for shown one embodiment of the invention, in the equipment
It is integrated with processor on the basis of more than two processor cores, the optimization device includes:
Acquiring unit 51, the first kind process and the mark and state of Equations of The Second Kind process run for obtaining in current device
Information, the status information of any process includes the processor utilization rate of the process;
Division unit 52, for the first kind process and the mark of Equations of The Second Kind process that are obtained according to the acquiring unit 51 and
Described two processor cores above are divided into first kind kernel and Equations of The Second Kind kernel by status information;
Designating unit 53, for the division result according to the division unit 52, specifies the first kind process to operate in
In the first kind kernel, the Equations of The Second Kind process is specified to operate in the Equations of The Second Kind kernel;
Wherein, the first kind process includes the process for being used to clear up current device or optimize.
The equipment optimization device of the present embodiment can perform the flow in the embodiment of the method shown in foregoing Fig. 2, this implementation
Example is not described in detail herein.
On the basis of above-mentioned technical proposal:
The first kind process can also include that user selects for the process being cleared up equipment or optimized;
And/or,
The first kind process can also be including determining for entering for being cleared up equipment or optimized from server
Journey;
And/or,
The first kind process can also include process corresponding with any program that user selects;
And/or,
The first kind process can also include the critical processes of the operating system of current device;
And/or,
The first kind process can also include the process corresponding with large software determined from server.
It can be seen that, above-mentioned process for being used to clear up equipment or optimize etc. needs to protect entering for the cpu resource that can be taken
Journey can voluntarily be determined by user, can also be automatically determined and (for example be used according to CPU according to the information being collected into by Cloud Server
The average value of rate determines that some processes corresponding with large software, or some keys for maintaining operating system normally to run are entered
Journey), naturally in conjunction with both --- the process or program listing for providing a user Cloud Server recommendation allow user to be screened, can
To reach preferably Consumer's Experience.
Further, in one embodiment of the invention, division unit 52 can include following knots not shown in Fig. 5
Structure:
Determining module 52a, the mark of first kind process and status information for being obtained according to the acquiring unit 51 is true
The target kernel quantity of the fixed first kind kernel;
Division module 52b, the mark of Equations of The Second Kind process and status information for being obtained according to the acquiring unit 51 will
One or more processors kernel is divided to the Equations of The Second Kind kernel;
Choosing module 52c, for being chosen according to preset rules from the processor cores divided without the division module 52b
Select a processor cores;
The division module 52b is additionally operable to the processor cores that the Choosing module 52c is picked out being divided to described
One class kernel, until the number of cores in the first kind kernel reaches the mesh of first kind kernel determined by the determining unit
Mark number of cores.
The equipment optimization device of the present embodiment can perform the flow in the embodiment of the method shown in foregoing Fig. 3, this implementation
Example is not described in detail herein.
On the other hand, in another embodiment of the invention, division unit 52 can include following knots not shown in Fig. 5
Structure:
Acquisition module 521, the mark of first kind process and status information for being obtained according to the acquiring unit 51 exist
Corresponding kernel partition strategy is obtained in server;
Adjusting module 522, the mark of Equations of The Second Kind process and status information for being obtained according to the acquiring unit 51 are adjusted
The kernel partition strategy that the whole acquisition module 521 is obtained;
Division module 523, more than will be described two according to the kernel partition strategy after the adjusting module 522 adjustment
Processor cores be divided into first kind kernel and Equations of The Second Kind kernel.
Alternatively, the division unit 52 also includes:
Judge module 524, for before the adjusting module 522 adjusts the kernel partition strategy, judging described
Whether the system resource total amount shared by two class processes meets preparatory condition;
Optimization module 525, for judging that the system resource shared by the Equations of The Second Kind process is total in the judge module 524
When amount meets preparatory condition, the system resource shared by the Equations of The Second Kind process is optimized.
The equipment optimization device of the present embodiment can perform the flow in the embodiment of the method shown in foregoing Fig. 4, this implementation
Example is not described in detail herein.
It can be seen that, said apparatus can be operated in ready-portioned first kind kernel or Equations of The Second Kind kernel by specified process,
So that in the case that Equations of The Second Kind kernel is all fully loaded, first kind kernel still can handle corresponding first kind process,
Thus it can ensure that the cpu resource that can be taken of first kind process is not influenceed by other processes.So as to which, said apparatus can be with
The program of above-mentioned cleaning or optimization is operated in above-mentioned first kind kernel, these programs are all fully loaded with even if Equations of The Second Kind kernel
It will not be limited and be run slow by cpu resource.So, said apparatus can solve CPU full loads cleaning or optimization program without
The problem of method is quickly run.
Further, said apparatus by the division of process and processor cores be also provided to user one kind ensure it is specific enter
The means of the cpu resource that can be taken of journey.Such as, the process related to large software can be specified and operated in the first kind
In core, it is protected its cpu resource taken.Moreover, the mode voluntarily specified manually relative to user, said apparatus
The dividing condition of first kind kernel and Equations of The Second Kind kernel can be adjusted according to the mark of process and status information in real time, makes user
A specified relationship between process and kernel need not just be changed after a while, more preferably Consumer's Experience can be obtained.
In the specification of the present invention, numerous specific details are set forth.It is to be appreciated, however, that embodiments of the invention can be with
Put into practice in the case of these no details.In some instances, known method, structure and skill is not been shown in detail
Art, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that disclose to simplify the present invention and help to understand one or many in each inventive aspect
It is individual, above in the description of the exemplary embodiment of the present invention, each feature of the invention is grouped together into single sometimes
In embodiment, figure or descriptions thereof.It is intended to however, should not explain the method for the disclosure in reflection is following:Want
Seek the application claims features more more than the feature being expressly recited in each claim of protection.More precisely, such as
As following claims reflect, inventive aspect is all features less than single embodiment disclosed above.
Therefore, it then follows thus claims of embodiment are expressly incorporated in the embodiment, wherein each right will
Ask itself all as separate embodiments of the invention.
It will be understood by those skilled in the art that can adaptively be changed to the module in the equipment in embodiment
And they are provided in the different one or more equipment of the embodiment.Can the module or unit in embodiment or
Component is combined into a module or unit or component, and can be divided into multiple submodule or subelement or subgroup in addition
Part.Except at least some in such feature and/or process or unit are mutually exclusive parts, any combinations can be used
To all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and such disclosed any side
All processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint right will
Ask, make a summary and accompanying drawing) disclosed in each feature can be by offer is identical, equivalent or the alternative features of similar purpose are replaced.
Although in addition, it will be appreciated by those of skill in the art that some embodiments described herein include other embodiments
In included some features rather than further feature, but the combination of the feature of be the same as Example does not mean in of the invention
Within the scope of and form different embodiments.For example, in the following claims, times of embodiment claimed
One of meaning mode can be used in any combination.
The present invention all parts embodiment can be realized with hardware, or with one or more processor run
Software module realize, or realized with combinations thereof.It will be understood by those of skill in the art that can use in practice
In the equipment of microprocessor or digital signal processor (DSP) to realize a kind of browser terminal according to embodiments of the present invention
Some or all parts some or all functions.The present invention is also implemented as being used to perform side as described herein
The some or all equipment or program of device (for example, computer program and computer program product) of method.It is such
Realizing the program of the present invention can store on a computer-readable medium, or can have the shape of one or more signal
Formula.Such signal can be downloaded from internet website and obtained, and either be provided or with any other shape on carrier signal
Formula is provided.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability
Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference symbol between bracket should not be configured to limitations on claims.Word "comprising" is not excluded the presence of not
Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such
Element.The present invention can be by means of including the hardware of some different elements and coming real by means of properly programmed computer
It is existing.In if the unit claim of equipment for drying is listed, several in these devices can be by same hardware branch
To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame
Claim.
Finally it should be noted that:Various embodiments above is merely illustrative of the technical solution of the present invention, rather than its limitations;To the greatest extent
The present invention is described in detail with reference to foregoing embodiments for pipe, it will be understood by those within the art that:Its according to
The technical scheme described in foregoing embodiments can so be modified, or which part or all technical characteristic are entered
Row equivalent substitution;And these modifications or replacement, the essence of appropriate technical solution is departed from various embodiments of the present invention technology
The scope of scheme, it all should cover among the claim of the present invention and the scope of specification.
Claims (10)
1. a kind of equipment optimization device, it is characterised in that be integrated with the processor of the equipment in more than two processors
Core, the equipment optimization device includes:
Acquiring unit, the first kind process and the mark and status information of Equations of The Second Kind process run for obtaining in current device,
The status information of any process includes the processor utilization rate of the process;
Division unit, for the first kind process and the mark and status information of Equations of The Second Kind process obtained according to the acquiring unit
Processor cores more than will be described two are divided into first kind kernel and Equations of The Second Kind kernel;According to the first kind process and institute
The mark and status information of Equations of The Second Kind process are stated, first kind number of cores needed for the first kind process and correspondingly is determined respectively
Processor cores sequence number and the Equations of The Second Kind process needed for Equations of The Second Kind number of cores and corresponding processor cores sequence number;
Designating unit, for the division result according to the division unit, specifies the first kind process to operate in described first
In class kernel, the Equations of The Second Kind process is specified to operate in the Equations of The Second Kind kernel;
Wherein, the first kind process includes the process for being used to clear up current device or optimize.
2. device according to claim 1, it is characterised in that what the first kind process included that user selects, which be used for, pair sets
The standby process cleared up or optimized;
And/or,
The first kind process include determining from server for the process being cleared up equipment or optimized;
And/or,
The first kind process includes process corresponding with any program of user's selection;
And/or,
The first kind process includes the critical processes of the operating system of current device;
And/or,
The first kind process includes the process corresponding with large software determined from server.
3. device according to claim 1 or 2, it is characterised in that the division unit includes:
Determining module, the mark of first kind process and status information for being obtained according to the acquiring unit determine described first
The target kernel quantity of class kernel;
Division module, the mark of Equations of The Second Kind process and status information for being obtained according to the acquiring unit will be one or more
Processor cores are divided to the Equations of The Second Kind kernel;
Choosing module, for being picked out according to preset rules from the processor cores divided without the division module at one
Manage device kernel;
The division module is additionally operable to the processor cores that the Choosing module is picked out being divided to the first kind kernel, directly
Number of cores into the first kind kernel reaches the target kernel quantity of first kind kernel determined by the determining module.
4. device according to claim 1 or 2, it is characterised in that the division unit includes:
Acquisition module, the mark of first kind process and status information for being obtained according to the acquiring unit are obtained in the server
Take corresponding kernel partition strategy;
Adjusting module, the mark of Equations of The Second Kind process and status information adjustment for being obtained according to the acquiring unit is described to be obtained
The kernel partition strategy that module is obtained;
Division module, for according to the adjusting module adjust after kernel partition strategy will it is described two more than processor in
Core is divided into first kind kernel and Equations of The Second Kind kernel.
5. device according to claim 4, it is characterised in that the division unit also includes:
Judge module, for before the adjusting module adjusts the kernel partition strategy, judging the Equations of The Second Kind process institute
Whether the system resource total amount of occupancy meets preparatory condition;
Optimization module, for judging that the system resource total amount shared by the Equations of The Second Kind process meets default in the judge module
During condition, the system resource shared by the Equations of The Second Kind process is optimized.
6. being integrated with more than two processor cores in a kind of equipment optimization method, the processor of the equipment, its feature exists
In, including:
Obtain the mark and status information of the first kind process run and Equations of The Second Kind process in current device, any process it is described
Status information includes the processor utilization rate of the process;
Will described two processor cores above according to the mark and status information of the first kind process and Equations of The Second Kind process
It is divided into first kind kernel and Equations of The Second Kind kernel;Believed according to the mark and state of the first kind process and the Equations of The Second Kind process
Breath, determines the first kind number of cores needed for the first kind process and corresponding processor cores sequence number and described second respectively
Equations of The Second Kind number of cores and corresponding processor cores sequence number needed for class process;
Specify the first kind process to operate in the first kind kernel, specify the Equations of The Second Kind process to operate in described second
In class kernel;
Wherein, the first kind process includes the process for being used to clear up current device or optimize.
7. method according to claim 6, it is characterised in that what the first kind process included that user selects, which be used for, pair sets
The standby process cleared up or optimized;
And/or,
The first kind process include determining from server for the process being cleared up equipment or optimized;
And/or,
The first kind process includes process corresponding with any program of user's selection;
And/or,
The first kind process includes the critical processes of the operating system of current device;
And/or,
The first kind process includes the process corresponding with large software determined from server.
8. the method according to claim 6 or 7, it is characterised in that described to be entered according to the first kind process and Equations of The Second Kind
Described two processor cores above are divided into first kind kernel and Equations of The Second Kind kernel by the mark and status information of journey, are wrapped
Include:
The target kernel quantity of the first kind kernel is determined according to the mark and status information of the first kind process;
One or more processors kernel is divided to by the Equations of The Second Kind according to the mark and status information of the Equations of The Second Kind process
Kernel;
A processor cores are picked out from remaining unallocated processor cores be divided to described first according to preset rules
Class kernel, until the number of cores in the first kind kernel reaches the target kernel quantity of the first kind kernel.
9. the method according to claim 6 or 7, it is characterised in that described to be entered according to the first kind process and Equations of The Second Kind
Described two processor cores above are divided into first kind kernel and Equations of The Second Kind kernel by the mark and status information of journey, are wrapped
Include:
Corresponding kernel partition strategy is obtained according to the mark and status information of the first kind process in the server;
The kernel partition strategy is adjusted according to the mark of the Equations of The Second Kind process and status information;
According to the kernel partition strategy after adjustment will it is described two more than processor cores be divided into first kind kernel with
Equations of The Second Kind kernel.
10. method according to claim 9, it is characterised in that in the mark and shape according to the Equations of The Second Kind process
State information is adjusted before the kernel partition strategy, in addition to:
Judge whether the system resource total amount shared by the Equations of The Second Kind process meets preparatory condition;
If the system resource total amount shared by the Equations of The Second Kind process meets preparatory condition, to shared by the Equations of The Second Kind process
System resource optimize.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410806641.6A CN104503831B (en) | 2014-12-22 | 2014-12-22 | Equipment optimization method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410806641.6A CN104503831B (en) | 2014-12-22 | 2014-12-22 | Equipment optimization method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104503831A CN104503831A (en) | 2015-04-08 |
CN104503831B true CN104503831B (en) | 2017-10-13 |
Family
ID=52945231
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410806641.6A Active CN104503831B (en) | 2014-12-22 | 2014-12-22 | Equipment optimization method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104503831B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105960003A (en) * | 2016-06-30 | 2016-09-21 | 努比亚技术有限公司 | Control method and terminal |
CN107391241A (en) * | 2017-06-22 | 2017-11-24 | 努比亚技术有限公司 | Using quick start method, terminal and computer-readable recording medium |
CN107491372A (en) * | 2017-08-03 | 2017-12-19 | 郑州云海信息技术有限公司 | A kind of method and system for linux system RPM bags statistics CPU usage |
CN109254849B (en) * | 2018-08-31 | 2021-03-30 | 北京小米移动软件有限公司 | Application program running method and device |
CN110750346B (en) * | 2019-10-17 | 2022-11-15 | Oppo(重庆)智能科技有限公司 | Task operation optimization method, device, terminal and storage medium |
CN110825528B (en) * | 2019-11-11 | 2022-02-01 | 聚好看科技股份有限公司 | Resource management method, device and equipment |
CN111143035B (en) * | 2019-12-26 | 2024-02-27 | 网易(杭州)网络有限公司 | CPU resource allocation method, device, equipment and computer readable storage medium |
CN112394803B (en) * | 2020-11-25 | 2023-01-24 | 超越科技股份有限公司 | Domestic server power consumption real-time dynamic adjusting method |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102110017A (en) * | 2009-12-24 | 2011-06-29 | 杨槐 | Processor multi-process technology |
CN102841815A (en) * | 2012-07-12 | 2012-12-26 | 北京航空航天大学 | Adaptive progress classification binding method for non uniform memory access (NUMA) system architecture |
CN103024538A (en) * | 2012-11-12 | 2013-04-03 | 北京奇虎科技有限公司 | Memory management method and system |
CN103164268A (en) * | 2013-04-02 | 2013-06-19 | 北京奇虎科技有限公司 | System optimization method and system optimization device |
CN103646006A (en) * | 2013-11-26 | 2014-03-19 | 乐视致新电子科技(天津)有限公司 | Scheduling method, device and system for processor |
CN103645954A (en) * | 2013-11-21 | 2014-03-19 | 华为技术有限公司 | CPU scheduling method, device and system based on heterogeneous multi-core system |
CN104077266A (en) * | 2013-03-27 | 2014-10-01 | 华为技术有限公司 | Multi-core operating system realization method, realization device and realization system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8614223B2 (en) * | 2010-11-16 | 2013-12-24 | Acetylon Pharmaceuticals, Inc. | Pyrimidine hydroxy amide compounds as protein deacetylase inhibitors and methods of use thereof |
-
2014
- 2014-12-22 CN CN201410806641.6A patent/CN104503831B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102110017A (en) * | 2009-12-24 | 2011-06-29 | 杨槐 | Processor multi-process technology |
CN102841815A (en) * | 2012-07-12 | 2012-12-26 | 北京航空航天大学 | Adaptive progress classification binding method for non uniform memory access (NUMA) system architecture |
CN103024538A (en) * | 2012-11-12 | 2013-04-03 | 北京奇虎科技有限公司 | Memory management method and system |
CN104077266A (en) * | 2013-03-27 | 2014-10-01 | 华为技术有限公司 | Multi-core operating system realization method, realization device and realization system |
CN103164268A (en) * | 2013-04-02 | 2013-06-19 | 北京奇虎科技有限公司 | System optimization method and system optimization device |
CN103645954A (en) * | 2013-11-21 | 2014-03-19 | 华为技术有限公司 | CPU scheduling method, device and system based on heterogeneous multi-core system |
CN103646006A (en) * | 2013-11-26 | 2014-03-19 | 乐视致新电子科技(天津)有限公司 | Scheduling method, device and system for processor |
Also Published As
Publication number | Publication date |
---|---|
CN104503831A (en) | 2015-04-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104503831B (en) | Equipment optimization method and device | |
CN105103506B (en) | For the method and system for the non-homogeneous bandwidth request allocation bandwidth in system for cloud computing | |
CN108090208A (en) | Fused data processing method and processing device | |
CN111190718A (en) | Method, device and system for realizing task scheduling | |
CN107332902A (en) | User's request distribution method, device and the computing device of online customer service system | |
CN106529682A (en) | Method and apparatus for processing deep learning task in big-data cluster | |
CN107944000A (en) | Flight freight rate update method, device, electronic equipment, storage medium | |
CN105283845A (en) | Display object pre-generation | |
CN106294743A (en) | The recommendation method and device of application function | |
CN108288179A (en) | A kind of user preference source of houses computational methods and system | |
JP2013545189A (en) | Determining category information using multistage | |
CN109582452A (en) | A kind of container dispatching method, dispatching device and electronic equipment | |
CN106372977B (en) | A kind of processing method and equipment of virtual account | |
CN106534302A (en) | Multi-task demand service combination method and system | |
CN106934027A (en) | Distributed reptile realization method and system | |
CN102147660B (en) | A kind of method and apparatus of the input based on multiple user collaborative editor | |
CN107229660A (en) | A kind of method and apparatus of data deduplication | |
GB2526924A (en) | Intelligent tool to support manual scheduling of ads | |
CN106294188A (en) | Memory space processing method and processing device | |
CN105721392B (en) | A kind of method, apparatus and system for recommending application | |
CN109658187A (en) | Recommend method, apparatus, storage medium and the electronic equipment of cloud service provider | |
CN105610698B (en) | The treating method and apparatus of event result | |
CN114443943A (en) | Information scheduling method, device and equipment and computer readable storage medium | |
CN106776015B (en) | Parallel program task processing method and device | |
CN103067450B (en) | Application control method and system for cloud environment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220715 Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015 Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park) Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Patentee before: Qizhi software (Beijing) Co.,Ltd. |
|
TR01 | Transfer of patent right |