CN106168911A - A kind of information processing method and equipment - Google Patents

A kind of information processing method and equipment Download PDF

Info

Publication number
CN106168911A
CN106168911A CN201610514034.1A CN201610514034A CN106168911A CN 106168911 A CN106168911 A CN 106168911A CN 201610514034 A CN201610514034 A CN 201610514034A CN 106168911 A CN106168911 A CN 106168911A
Authority
CN
China
Prior art keywords
parameter
load factor
migrated
cpu
value
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
Application number
CN201610514034.1A
Other languages
Chinese (zh)
Inventor
李树金
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201610514034.1A priority Critical patent/CN106168911A/en
Publication of CN106168911A publication Critical patent/CN106168911A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/061Improving I/O performance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention discloses a kind of information processing method, described method includes: monitor the process in described electronic equipment, obtains the first parameter of each described process;Wherein, described first parameter can characterize the ruuning situation of I/O device corresponding to described each process;According to described first parameter of each described process, it is analyzed obtaining process to be migrated to each described process.The embodiment of the present invention also discloses a kind of messaging device simultaneously.

Description

A kind of information processing method and equipment
Technical field
The present invention relates to the information processing technology in the communications field, particularly relate to a kind of information processing method and equipment.
Background technology
Redhat7.0 adds nonuniform memory access framework balance (numa balancing) function, dynamically ensure that Internal memory used by process and the localization of place central processing unit (Central Processing Unit, CPU).Along with hard disk band Wide increase, following IO disk has bandwidth rapid increase and postpones the trend of rapid decrease.But do not consider at present to visit Asking that distal end I O device takies and access the distal end I O device problem on the impact of I/O latency to CPU bandwidth, the two problem is all Systematic function can be affected.In order to ensure systematic function, numa balancing just needs when migrating some IO type process The localization of IO to be considered.
For solving this problem, prior art exists following technical scheme: a kind of scheme is the IO in storage aspect Load balancing, by small computer system interface (Small Computer System Interface, SCSI) order with after End storage interacts, by the mutual quality confirming to connect the path of storage, and then the different IO of path allocation being different Amount, ensures the optimum of performance to a certain extent.Another kind of scheme is the service condition utilizing IO tuning tool monitors I/O device, Carry out IO tuning.But existing both solutions still can not solve the consuming of the CPU bandwidth that remote access is brought The problem that can increase I/O latency;In addition, it is desirable to manual operation, easy and numa balancing process migration causes and jolts now As, systematic function can be affected.
Summary of the invention
For solving above-mentioned technical problem, embodiment of the present invention expectation provides a kind of information processing method and equipment, solves IO of the prior art can not take into account the factor of remote access problem in migrating, it is achieved IO can consider far-end when migrating simultaneously Access the consuming of produced bandwidth, it is to avoid with the process migration of numa balancing, phenomenon of jolting occurs;Without the need for User's manual operation, greatly improves the experience effect of user.
The technical scheme is that and be achieved in that:
A kind of information processing method, described method includes:
Monitor the process in described electronic equipment, obtain the first parameter of each described process;Wherein, described first parameter The ruuning situation of I/O device corresponding to described each process can be characterized;
According to described first parameter of each described process, it is analyzed obtaining process to be migrated to each described process.
Optionally, described described first parameter according to each described process, it is analyzed obtaining to each described process Target process to be migrated, including:
Obtain load factor and/or the abnormal rate of internal memory of the CPU of each described process, and according to the institute of each described process State the load factor that the first parameter obtains the I/O device of each described process;
The load factor of the load factor of CPU based on each described process, the abnormal rate of internal memory and I/O device is to each described Process is analyzed processing, and obtains described process to be migrated.
Optionally, described described first parameter according to each described process, it is analyzed obtaining to each described process Target process to be migrated, including:
Obtain load factor and the abnormal rate of internal memory of the CPU of each described process, and based on CPU corresponding in described process Load factor and the abnormal rate of internal memory obtain the first process;
Described first parameter according to each described first process obtains the load of the I/O device of each described first process Rate;
The load factor of the load factor of CPU, the abnormal rate of internal memory and I/O device according to each described first process is to each Described first process is analyzed processing, and obtains described process to be migrated.
Optionally, described first parameter includes at least one of following parameter: the request that process sends accesses correspondence The average length of the request queue of I/O device, process wait that the corresponding average time of I/O device, process access corresponding I/O device The average time asked accesses the ratio of the CPU that corresponding I/O device consumes with process.
Optionally, described method also includes:
The threshold value of the first parameter of the first I/O device is set;Wherein, described first I/O device is described process to be migrated Need the distal end I O device moved into;
Compare the value of the first parameter of described first I/O device and the threshold value of described first parameter;
Comparative result between value and the threshold value of described first parameter of the first parameter according to described first I/O device, Determine whether to stop the migration operation of described process to be migrated.
Optionally, described method also includes:
The maximum threshold of the average transmission data volume of the second I/O device is set;Wherein, described second I/O device is described Process correspondence this locality to be migrated I/O device;
Obtain the value of the average transmission data volume of described second I/O device;
Judge the value of average transmission data volume of described second I/O device whether more than described average transmission data volume Big threshold value;
If the value of the average transmission data volume of described second I/O device is more than the max threshold of described average transmission data volume Value, then stop the migration operation of described process to be migrated.
A kind of messaging device, described equipment includes: the first acquiring unit and the first processing unit, wherein:
Described first acquiring unit, for monitoring the process in described electronic equipment, obtains the first of each described process Parameter;Wherein, described first parameter can characterize the ruuning situation of I/O device corresponding to described each process;
Described first processing unit, for described first parameter according to each described process, enters each described process Row analysis obtains process to be migrated.
Optionally, described first processing unit includes: the first acquisition module and the first processing module, wherein:
Described first acquisition module, for obtaining load factor and/or the abnormal rate of internal memory of the CPU of each described process, And the load factor of the I/O device of each described process is obtained according to described first parameter of each described process;
Described second processing module, sets for the load factor of CPU based on each described process, the abnormal rate of internal memory and IO Each described process is analyzed processing by standby load factor, obtains described process to be migrated.
Optionally, described first processing unit also includes: the second acquisition module and the second processing module, wherein:
Described second acquisition module, for obtaining load factor and the abnormal rate of internal memory of the CPU of each described process, and base The load factor of CPU corresponding in described process and the abnormal rate of internal memory obtain the first process;
Described second acquisition module, is additionally operable to described first parameter according to each described first process and obtains each described The load factor of the I/O device of the first process;
Described second processing module, for according to the load factor of CPU of each described first process, the abnormal rate of internal memory and Each described first process is analyzed processing by the load factor of I/O device, obtains described process to be migrated.
Optionally, described first data include at least one of following parameter: the request that process sends accesses correspondence The average length of the request queue of I/O device, process wait that the corresponding average time of I/O device, process access corresponding I/O device The average time asked accesses the ratio of the CPU that corresponding I/O device consumes with process.
Optionally, described equipment also includes: first arranges unit, the first comparing unit and the second processing unit, wherein:
Described first arranges unit, for arranging the threshold value of the first parameter of the first I/O device;Wherein, a described IO Equipment is the distal end I O device that described process to be migrated needs to move into;
Described first comparing unit, for value and described first parameter of relatively the first parameter of described first I/O device Threshold value;
Described second processing unit, for value and described first parameter of the first parameter according to described first I/O device Comparative result between threshold value, it is determined whether stop the migration operation of described process to be migrated.
Optionally, described equipment also includes: second is arranged at unit, second acquisition unit, the second judging unit and the 3rd Reason unit, wherein:
Described second arranges unit, for arranging the maximum threshold of the average transmission data volume of the second I/O device;Wherein, Described second I/O device is described process correspondence this locality to be migrated I/O device;
Described second acquisition unit, for obtaining the value of the average transmission data volume of described second I/O device;
Described second judging unit, for judging that whether the value of the average transmission data volume of described second I/O device is more than institute State the maximum threshold of average transmission data volume;
Described 3rd processing unit, if for described second I/O device average transmission data volume value more than described averagely The maximum threshold of transmitted data amount, then stop the migration operation of described process to be migrated.
Information processing method that embodiments of the invention are provided and equipment, can monitor the process in electronic equipment, obtain Take the first parameter of each process, and according to described first parameter of each process, be analyzed each process obtaining waiting to move Shift-in journey;As such, it is possible to the first parameter comprehensively analyzing the process in electronic equipment obtains needing in the process of electronic equipment Process to be migrated, the problem solving during IO of the prior art migrates the factor that can not take into account remote access, it is achieved IO moves The consuming of bandwidth produced by remote access can be considered, it is to avoid occur with the process migration of numa balancing during shifting simultaneously Jolt phenomenon;Without the need for user's manual operation, greatly improve the experience effect of user.
Accompanying drawing explanation
The schematic flow sheet of a kind of information processing method that Fig. 1 provides for embodiments of the invention;
The schematic flow sheet of the another kind of information processing method that Fig. 2 provides for embodiments of the invention;
The schematic flow sheet of another information processing method that Fig. 3 provides for embodiments of the invention;
The schematic flow sheet of a kind of information processing method that Fig. 4 provides for another embodiment of the present invention;
The schematic flow sheet of the another kind of information processing method that Fig. 5 provides for another embodiment of the present invention;
The schematic flow sheet of another information processing method that Fig. 6 provides for another embodiment of the present invention;
The schematic flow sheet of a kind of information processing method that Fig. 7 provides for another embodiment of the present invention;
The structural representation of a kind of messaging device that Fig. 8 provides for embodiments of the invention;
The structural representation of the another kind of messaging device that Fig. 9 provides for embodiments of the invention;
The structural representation of another messaging device that Figure 10 provides for embodiments of the invention;
The structural representation of a kind of messaging device that Figure 11 provides for another embodiment of the present invention;
The structural representation of the another kind of messaging device that Figure 12 provides for another embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Describe wholely.
Embodiments of the invention provide a kind of information processing method, and with reference to shown in Fig. 1, the method comprises the following steps:
Process in step 101, monitoring electronic equipment, obtains the first parameter of each process.
Wherein, the first parameter can characterize the ruuning situation of I/O device corresponding to each process.
Concrete, step 101 monitors the process in electronic equipment, and the first parameter obtaining each process can be by information Processing equipment realizes, and this messaging device can be a kind of server;Process in electronic equipment can be that electronics sets All processes of running status it are currently in Bei.
Step 102, the first parameter according to each process, be analyzed obtaining process to be migrated to each process.
Concrete, each process, according to the first parameter of each process, is analyzed obtaining process to be migrated by step 102 Can be realized by messaging device;Can be based on the process being currently running in the electronic equipment obtained The load factor of CPU, the abnormal rate of internal memory and the load factor of I/O device of each process being currently running of one parameter acquiring, and based on Each is transported by the load factor of the load factor of CPU of each process being currently running, the abnormal rate of internal memory and I/O device The process of row is comprehensively analyzed, and obtains the process needing to migrate.
The information processing method that embodiments of the invention are provided, can monitor the process in electronic equipment, obtains each First parameter of process, and according to the first parameter of each process, be analyzed obtaining process to be migrated to each process;This Sample, the first parameter that can comprehensively analyze the process in electronic equipment needs migrate to enter in the process obtain electronic equipment Journey, the problem solving during IO of the prior art migrates the factor that can not take into account remote access, it is achieved can be same when IO migrates Time consider the consuming of bandwidth produced by remote access, it is to avoid with the process migration of numa balancing, phenomenon of jolting occurs; Without the need for user's manual operation, greatly improve the experience effect of user.
Embodiments of the invention provide a kind of information processing method, and with reference to shown in Fig. 2, the method comprises the following steps:
Process in step 201, messaging device monitoring electronic equipment, obtains the first parameter of each process.
Wherein, the first parameter can characterize the ruuning situation of I/O device corresponding to each process.
Concrete, the first parameter can include at least one of following parameter: the request that process sends accesses correspondence The average length of the request queue of I/O device, process wait that the corresponding average time of I/O device, process access corresponding I/O device The average time asked accesses the parameters such as the ratio of the CPU that corresponding I/O device consumes with process;Electronic equipment is transported First parameter of the process of row can be to use the block device of kernel maintenance to add up to obtain.
The load factor of the CPU of step 202, the messaging device each process of acquisition and/or the abnormal rate of internal memory, and according to First parameter of each process obtains the load factor of the I/O device of each process.
Concrete, the load factor of CPU of each process in electronic equipment, the abnormal rate of internal memory can be to use existing skill Implementation in art obtains, and the load factor of CPU also refers to the service condition of CPU, and the abnormal rate of internal memory can be Use and periodically carry out proceeding internal memory scanning, process internal memory in numa and skip leaf mistake, and add up the local abnormal, remote of internal memory in numa Hold the related datas such as abnormal, privately owned abnormal and shared exception, the related data of the internal memory of each process that statistics obtains is carried out Analyze the abnormal rate obtaining internal memory.Meanwhile, the request that can send each process obtained accesses the request of corresponding I/O device It is flat that the average length of queue, process wait that the corresponding average time of I/O device, the request of the corresponding I/O device of process access complete All parameters such as ratio of the CPU that the time accesses corresponding I/O device consumption with process are comprehensively analyzed and are obtained the IO of each process and set Standby load factor.For example, it may be obtain the scoring of the CPU of correspondence according to the load factor of the CPU obtaining each process, according to often The abnormal rate of the internal memory of one process obtains the scoring of the internal memory of correspondence, obtains correspondence according to the load factor of the I/O device of each process The scoring of I/O device.
Load factor, the abnormal rate of internal memory and the I/O device of step 203, messaging device CPU based on each process Each process is analyzed processing by load factor, obtains process to be migrated.
Concrete, the CPU weight coefficient of each process, internal memory weight coefficient and the I/O device weight in electronic equipment is set Coefficient, and according to CPU weight coefficient, internal memory weight coefficient and the I/O device weight coefficient CPU to each process of each process The scoring of scoring, the scoring of internal memory and I/O device be weighted, obtain the comprehensive grading of each process, obtain afterwards into The process that in the comprehensive grading of journey, comprehensive grading is the highest, and it is set to process to be migrated;Wherein, the CPU weight system of each process Number, internal memory weight coefficient and I/O device weight coefficient can be that user pre-sets according to actual demand, such as, use householder Want the angle from I/O device process is analyzed, now can arrange I/O device weight coefficient more than CPU weight coefficient and Internal memory weight coefficient.
The information processing method that embodiments of the invention are provided, can monitor the process in electronic equipment, obtains each First parameter of process, and according to the first parameter of each process, be analyzed obtaining process to be migrated to each process;This Sample, the first parameter that can comprehensively analyze the process in electronic equipment needs migrate to enter in the process obtain electronic equipment Journey, the problem solving during IO of the prior art migrates the factor that can not take into account remote access, it is achieved can be same when IO migrates Time consider the consuming of bandwidth produced by remote access, it is to avoid with the process migration of numa balancing, phenomenon of jolting occurs; Without the need for user's manual operation, greatly improve the experience effect of user.
Embodiments of the invention provide a kind of information processing method, and with reference to shown in Fig. 3, the method comprises the following steps:
Process in step 301, messaging device monitoring electronic equipment, obtains the first parameter of each process.
Wherein, the first parameter can characterize the ruuning situation of I/O device corresponding to each process.
Concrete, the first parameter can include at least one of following parameter: the request that process sends accesses correspondence The average length of the request queue of I/O device, process wait that the corresponding average time of I/O device, process access corresponding I/O device The average time asked accesses the parameters such as the ratio of the CPU that corresponding I/O device consumes with process.
Step 302, messaging device obtain load factor and the abnormal rate of internal memory of the CPU of each process, and based on entering The load factor of CPU corresponding in journey and the abnormal rate of internal memory obtain the first process.
Concrete, can be according to the abnormal rate of the load factor of CPU corresponding to process and internal memory in the process of electronic equipment Before obtaining the overall ranking of CPU and internal memory, the process of N obtains the first process;Wherein, N is positive integer;Preferably, can the row of acquisition The process of name front ten is as the first process.
The IO that step 303, messaging device obtain each first process according to the first parameter of each first process sets Standby load factor.
Concrete, the first process can be obtained according to the load factor of CPU of each process obtained and the abnormal rate of internal memory The load factor of CPU and the abnormal rate of internal memory;Wherein, each first process is obtained according to the first parameter of each first process The load factor of I/O device can obtain the I/O device of each process in above-described embodiment according to the first parameter of each process The implementation of load factor is identical, and concrete implementation process is referred to the description in above-described embodiment, and here is omitted.
Step 304, messaging device set according to the load factor of CPU, the abnormal rate of internal memory and the IO of each first process Each first process is analyzed processing by standby load factor, obtains process to be migrated.
Concrete, according to the load factor of the load factor of CPU, the abnormal rate of internal memory and the I/O device of each first process to often One first process is analyzed processing, and obtain process to be migrated realizes process, is referred in above-described embodiment based on each Each process is analyzed processing by the load factor of the load factor of the CPU of process, the abnormal rate of internal memory and I/O device, obtains waiting to move Be moved into journey realizes process.
It should be noted that the explanation with same steps in other embodiments or concept is referred to other in the present embodiment Description in embodiment, here is omitted.
The information processing method that embodiments of the invention are provided, can monitor the process in electronic equipment, obtains each First parameter of process, and according to the first parameter of each process, be analyzed obtaining process to be migrated to each process;This Sample, the first parameter that can comprehensively analyze the process in electronic equipment needs migrate to enter in the process obtain electronic equipment Journey, the problem solving during IO of the prior art migrates the factor that can not take into account remote access, it is achieved can be same when IO migrates Time consider the consuming of bandwidth produced by remote access, it is to avoid with the process migration of numa balancing, phenomenon of jolting occurs; Without the need for user's manual operation, greatly improve the experience effect of user.
Embodiments of the invention provide a kind of information processing method, and with reference to shown in Fig. 4, the method comprises the following steps:
Process in step 401, messaging device monitoring electronic equipment, obtains the first parameter of each process.
Wherein, the first parameter can characterize the ruuning situation of I/O device corresponding to each process.
Concrete, the first parameter can include at least one of following parameter: the request that process sends accesses correspondence The average length of the request queue of I/O device, process wait that the corresponding average time of I/O device, process access corresponding I/O device The average time asked accesses the parameters such as the ratio of the CPU that corresponding I/O device consumes with process.
The load factor of the CPU of step 402, the messaging device each process of acquisition and/or the abnormal rate of internal memory, and according to First parameter of each process obtains the load factor of the I/O device of each process.
Load factor, the abnormal rate of internal memory and the I/O device of step 403, messaging device CPU based on each process Each process is analyzed processing by load factor, obtains process to be migrated.
Step 404, messaging device arrange the threshold value of the first parameter of the first I/O device.
Wherein, the first I/O device is the distal end I O device that process to be migrated needs to move into.
Concrete, the request of the process transmission that can arrange distal end I O device accesses the flat of the request queue of corresponding I/O device All threshold values of length, process waits the threshold value of the average time of corresponding I/O device, and process accesses the request of corresponding I/O device The threshold value of the average time completed accesses the threshold value of the ratio of the CPU that corresponding I/O device consumes with process.
Step 405, messaging device compare the value of the first parameter of the first I/O device and the threshold value of the first parameter.
Concrete, can respectively the request that process corresponding for distal end I O device sends be accessed the request team of corresponding I/O device The request that the value of the average length of row sends with the process of distal end I O device accesses the average long of the request queue of corresponding I/O device The threshold value of degree compares, and process corresponding for distal end I O device waits average time and the distal end I O device of corresponding I/O device Process wait that the threshold value of average time of corresponding I/O device compares, process corresponding for distal end I O device is accessed correspondence The average time that the request of I/O device completes accesses, with the process of distal end I O device, the mean time that the request of corresponding I/O device completes Between threshold value compare, corresponding for distal end I O device process is accessed the CPU that corresponding I/O device consumes ratio value with The threshold value of the ratio that the process of distal end I O device accesses the CPU of corresponding I/O device consumption compares.
Step 406, messaging device according to the threshold value of the value of the first parameter of the first I/O device and the first parameter it Between comparative result, it is determined whether stop the migration operation of process to be migrated.
It is concrete, if the value of at least one parameter is more than corresponding in the parameter that includes of the first parameter of distal end I O device The threshold value of distal end I O device, then can stop the migration operation of process to be migrated;Such as, if corresponding the entering of distal end I O device Journey accesses the value of the ratio of the CPU that corresponding I/O device consumes and accesses what corresponding I/O device consumed more than the process of distal end I O device The threshold value of the ratio of CPU, then it is believed that distal end I O device is in busy state, stop the migration operation of process to be migrated; Or, if the request that process corresponding to distal end I O device sends accesses the value of the average length of the request queue of corresponding I/O device The request sent more than the process of distal end I O device accesses the corresponding threshold value of average length of request queue of I/O device, far-end The average time of the corresponding I/O device of process wait that I/O device is corresponding waits corresponding I/O device more than the process of distal end I O device The average time that the request of the corresponding I/O device of process access that the threshold value of average time, distal end I O device are corresponding completes is more than remote The threshold value of the average time that the request of the corresponding I/O device of process access of end I/O device completes, and, distal end I O device is corresponding The value of the process ratio that accesses the CPU that corresponding I/O device consumes access corresponding I/O device consumption more than the process of distal end I O device The threshold value of ratio of CPU, now it is believed that need the distal end I O device moved into be in busy state and can stop waiting to move The migration operation of shift-in journey.
Optionally, with reference to shown in Fig. 5, after step 403, can select to perform following steps:
Step 407, messaging device arrange the maximum threshold of the average transmission data volume of the second I/O device.
Wherein, the second I/O device is the local I/O device that process to be migrated is corresponding.
Concrete, the gate of the average transmission data volume in default historical time section of local I/O device can be set Limit value, it is possible to the maximum value existed.
Step 408, messaging device obtain the value of the average transmission data volume of the second I/O device.
Concrete, the value of the average transmission data volume in default historical time section of local I/O device can be obtained.
Step 409, messaging device judge whether the value of the average transmission data volume of the second I/O device passes more than average The maximum threshold of transmission of data amount.
If the value of the average transmission data volume of step 410 second I/O device is more than the max threshold of average transmission data volume Value, then messaging device stops the migration operation of process to be migrated.
Concrete, if the value of the average transmission data volume of local I/O device is more than the average transmission data of local I/O device The maximum threshold of amount, illustrates that process migration can cause bigger bandwidth occupancy, add the delay of I/O device, it is therefore desirable to stop The only migration operation of process to be migrated.
Further, in the present invention can also actively from the load balance of I/O device consider to judge whether actively to initiate into Journey migrates: when process is more than the gate of distal end I O device average transmission data volume to the average transmission data volume of distal end I O device Limit value, then it is assumed that this process is IO type process, and process migration is bigger on the impact of bandwidth at present, add prolonging of Io equipment Late, so this process of initial setting is process to be migrated.Then, according to the load of distal end I O device, the remote of load minimum is chosen The targeted I/O device that end I/O device is moved into as needs;If determining whether that this process migrates to targeted I/O device, bring Whether numa unbalance amount is less than acceptable numa unbalance coefficient threshold value, and whether the load imbalance amount of the CPU of correspondence is less than Coefficient threshold value that acceptable cpu load is unbalance;If numa unbalance amount is less than acceptable numa unbalance coefficient threshold value, And the load imbalance amount of CPU is less than acceptable cpu load unbalance coefficient threshold value, then can set this process and treat as final Migrating processes;Otherwise, this process is not migrated.
It should be noted that the explanation with same steps in other embodiments or concept is referred to other in the present embodiment Description in embodiment, here is omitted.
The information processing method that embodiments of the invention are provided, can monitor the process in electronic equipment, obtains each First parameter of process, and according to the first parameter of each process, be analyzed obtaining process to be migrated to each process;This Sample, the first parameter that can comprehensively analyze the process in electronic equipment needs migrate to enter in the process obtain electronic equipment Journey, the problem solving during IO of the prior art migrates the factor that can not take into account remote access, it is achieved can be same when IO migrates Time consider the consuming of bandwidth produced by remote access, it is to avoid with the process migration of numa balancing, phenomenon of jolting occurs; Without the need for user's manual operation, greatly improve the experience effect of user.
Embodiments of the invention provide a kind of information processing method, and with reference to shown in Fig. 6, the method comprises the following steps:
Process in step 501, messaging device monitoring electronic equipment, obtains the first parameter of each process.
Wherein, the first parameter can characterize the ruuning situation of I/O device corresponding to each process.
Step 502, obtain the load factor of the CPU of each process and the abnormal rate of internal memory, and based on CPU corresponding in process Load factor and the abnormal rate of internal memory obtain the first process.
Step 503, the first parameter according to each first process obtain the load factor of the I/O device of each first process.
Step 504, the load factor of CPU, the abnormal rate of internal memory and the load factor pair of I/O device according to each first process Each first process is analyzed processing, and obtains process to be migrated.
Wherein, the first parameter includes at least one of following parameter: the request that process sends accesses corresponding I/O device The average length of request queue, process wait that the request accessing the corresponding average time of I/O device, process corresponding I/O device is complete The average time become accesses the ratio of the CPU that corresponding I/O device consumes with process.
Step 505, messaging device arrange the threshold value of the first parameter of the first I/O device.
Wherein, the first I/O device is the distal end I O device that process to be migrated needs to move into.
Step 506, messaging device compare the value of the first parameter of the first I/O device and the threshold value of the first parameter.
Step 507, messaging device according to the threshold value of the value of the first parameter of the first I/O device and the first parameter it Between comparative result, it is determined whether stop the migration operation of process to be migrated.
Optionally, with reference to shown in Fig. 7, after step 504, can select to perform following steps:
Step 508, messaging device arrange the maximum threshold of the average transmission data volume of the second I/O device.
Wherein, the second I/O device is process correspondence this locality to be migrated I/O device.
Step 509, messaging device obtain the value of the average transmission data volume of the second I/O device.
Step 510, messaging device judge whether the value of the average transmission data volume of the second I/O device passes more than average The maximum threshold of transmission of data amount.
If the value of the average transmission data volume of step 511 second I/O device is more than the max threshold of average transmission data volume Value, then messaging device stops the migration operation of process to be migrated.
It should be noted that the explanation with same steps in other embodiments or concept is referred to other in the present embodiment Description in embodiment, here is omitted.
The information processing method that embodiments of the invention are provided, can monitor the process in electronic equipment, obtains each First parameter of process, and according to the first parameter of each process, be analyzed obtaining process to be migrated to each process;This Sample, the first parameter that can comprehensively analyze the process in electronic equipment needs migrate to enter in the process obtain electronic equipment Journey, the problem solving during IO of the prior art migrates the factor that can not take into account remote access, it is achieved can be same when IO migrates Time consider the consuming of bandwidth produced by remote access, it is to avoid with the process migration of numa balancing, phenomenon of jolting occurs; Without the need for user's manual operation, greatly improve the experience effect of user.
Embodiments of the invention provide a kind of messaging device 6, and the embodiment that can apply to Fig. 1~7 correspondences provides A kind of information processing method in, with reference to shown in Fig. 8, this equipment may include that the first acquiring unit 61 and the first processing unit 62, wherein:
First acquiring unit 61, for monitoring the process in electronic equipment, obtains the first parameter of each process.
Wherein, the first parameter can characterize the ruuning situation of I/O device corresponding to each process.
First processing unit 62, for the first parameter according to each process, is analyzed each process obtaining waiting to move Shift-in journey.
The messaging device that embodiments of the invention are provided, can monitor the process in electronic equipment, obtains each First parameter of process, and according to the first parameter of each process, be analyzed obtaining process to be migrated to each process;This Sample, the first parameter that can comprehensively analyze the process in electronic equipment needs migrate to enter in the process obtain electronic equipment Journey, the problem solving during IO of the prior art migrates the factor that can not take into account remote access, it is achieved can be same when IO migrates Time consider the consuming of bandwidth produced by remote access, it is to avoid with the process migration of numa balancing, phenomenon of jolting occurs; Without the need for user's manual operation, greatly improve the experience effect of user.
Concrete, with reference to shown in Fig. 9, the first processing unit 62 includes: the first acquisition module 621 and the first processing module 622, wherein:
First acquisition module 621, for obtaining load factor and/or the abnormal rate of internal memory of the CPU of each process, and according to First parameter of each process obtains the load factor of the I/O device of each process.
First processing module 622, for the load factor of CPU based on each process, the abnormal rate of internal memory and I/O device Each process is analyzed processing by load factor, obtains process to be migrated.
Concrete optional, with reference to shown in Figure 10, the first processing unit 62 also includes: at the second acquisition module 623 and second Reason module 624, wherein:
Second acquisition module 623, for obtaining load factor and the abnormal rate of internal memory of the CPU of each process, and based on entering The load factor of CPU corresponding in journey and the abnormal rate of internal memory obtain the first process.
Second acquisition module 623, is additionally operable to the first parameter according to each first process and obtains the IO of each first process The load factor of equipment.
Second processing module 624, for setting according to the load factor of CPU, the abnormal rate of internal memory and the IO of each first process Each first process is analyzed processing by standby load factor, obtains process to be migrated.
Wherein, the first data include at least one of following parameter: the request that process sends accesses corresponding I/O device The average length of request queue, process wait that the request accessing the corresponding average time of I/O device, process corresponding I/O device is complete The average time become accesses the ratio of the CPU that corresponding I/O device consumes with process.
Further, with reference to shown in Figure 11, this equipment also includes: first arranges unit the 63, first comparing unit 64 and second Processing unit 65, wherein:
First arranges unit 63, for arranging the threshold value of the first parameter of the first I/O device.
Wherein, the first I/O device is the distal end I O device that process to be migrated needs to move into.
First comparing unit 64, the threshold value of value with the first parameter for comparing the first parameter of the first I/O device.
Second processing unit 65, for according between value and the threshold value of the first parameter of the first parameter of the first I/O device Comparative result, it is determined whether stop the migration operation of process to be migrated.
Further alternative, with reference to shown in Figure 12, this equipment also includes: second arrange unit 66, second acquisition unit 67, Second judging unit 68 and the 3rd processing unit 69, wherein:
Second arranges unit 66, for arranging the maximum threshold of the average transmission data volume of the second I/O device.
Wherein, the second I/O device is process correspondence this locality to be migrated I/O device.
Second acquisition unit 67, for obtaining the value of the average transmission data volume of the second I/O device.
Second judging unit 68, for judging that whether the value of the average transmission data volume of the second I/O device is more than average transmission The maximum threshold of data volume.
3rd processing unit 69, if the value for the average transmission data volume of the second I/O device is more than average transmission data volume Maximum threshold, then stop the migration operation of process to be migrated.
It should be noted that the interaction between unit and module is referred in other embodiments in this enforcement Description, here is omitted.
The messaging device that embodiments of the invention are provided, can monitor the process in electronic equipment, obtains each First parameter of process, and according to the first parameter of each process, be analyzed obtaining process to be migrated to each process;This Sample, the first parameter that can comprehensively analyze the process in electronic equipment needs migrate to enter in the process obtain electronic equipment Journey, the problem solving during IO of the prior art migrates the factor that can not take into account remote access, it is achieved can be same when IO migrates Time consider the consuming of bandwidth produced by remote access, it is to avoid with the process migration of numa balancing, phenomenon of jolting occurs; Without the need for user's manual operation, greatly improve the experience effect of user.
In actual applications, at described first acquiring unit the 61, first processing unit the 62, first acquisition module 621, first Reason module the 622, second acquisition module the 623, second processing module 624, first unit the 63, first comparing unit 64, second is set Processing unit 65, second unit 66, second acquisition unit the 67, second judging unit 68 and the 3rd processing unit 69 are set all can be by The central processing unit (Central Processing Unit, CPU) that is positioned in wireless data transmission equipment, microprocessor (Micro Processor Unit, MPU), digital signal processor (Digital Signal Processor, DSP) or scene Programmable gate arrays (Field Programmable Gate Array, FPGA) etc. realize.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or computer program Product.Therefore, the shape of the embodiment in terms of the present invention can use hardware embodiment, software implementation or combine software and hardware Formula.And, the present invention can use can be with storage at one or more computers wherein including computer usable program code The form of the upper computer program implemented of medium (including but not limited to disk memory and optical memory etc.).
The present invention is with reference to method, equipment (system) and the flow process of computer program according to embodiments of the present invention Figure and/or block diagram describe.It should be understood that can the most first-class by computer program instructions flowchart and/or block diagram Flow process in journey and/or square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided Instruction arrives the processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce A raw machine so that the instruction performed by the processor of computer or other programmable data processing device is produced for real The device of the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame now.
These computer program instructions may be alternatively stored in and computer or other programmable data processing device can be guided with spy Determine in the computer-readable memory that mode works so that the instruction being stored in this computer-readable memory produces and includes referring to Make the manufacture of device, this command device realize at one flow process of flow chart or multiple flow process and/or one square frame of block diagram or The function specified in multiple square frames.
These computer program instructions also can be loaded in computer or other programmable data processing device so that at meter Perform sequence of operations step on calculation machine or other programmable devices to produce computer implemented process, thus at computer or The instruction performed on other programmable devices provides for realizing at one flow process of flow chart or multiple flow process and/or block diagram one The step of the function specified in individual square frame or multiple square frame.
The above, only presently preferred embodiments of the present invention, it is not intended to limit protection scope of the present invention.

Claims (12)

1. an information processing method, described method includes:
Monitor the process in described electronic equipment, obtain the first parameter of each described process;Wherein, described first parameter can Characterize the ruuning situation of I/O device corresponding to described each process;
According to described first parameter of each described process, it is analyzed obtaining process to be migrated to each described process.
Method the most according to claim 1, it is characterised in that described described first parameter according to each described process, It is analyzed obtaining target process to be migrated to each described process, including:
Obtain load factor and/or the abnormal rate of internal memory of the CPU of each described process, and according to described the of each described process One parameter obtains the load factor of the I/O device of each described process;
The load factor of the load factor of CPU based on each described process, the abnormal rate of internal memory and I/O device is to each described process It is analyzed processing, obtains described process to be migrated.
Method the most according to claim 1, it is characterised in that described described first parameter according to each described process, It is analyzed obtaining target process to be migrated to each described process, including:
Obtain load factor and the abnormal rate of internal memory of the CPU of each described process, and based on CPU corresponding in described process negative The abnormal rate of load rate and internal memory obtains the first process;
Described first parameter according to each described first process obtains the load factor of the I/O device of each described first process;
The load factor of the load factor of CPU, the abnormal rate of internal memory and I/O device according to each described first process is to each described First process is analyzed processing, and obtains described process to be migrated.
Method the most according to claim 1, it is characterised in that
Described first parameter includes at least one of following parameter: the request that process sends accesses the request of corresponding I/O device It is flat that the average length of queue, process wait that the corresponding average time of I/O device, the request of the corresponding I/O device of process access complete All time accesses the ratio of the CPU that corresponding I/O device consumes with process.
5. according to the arbitrary described method of claims 1 to 3, it is characterised in that described method also includes:
The threshold value of the first parameter of the first I/O device is set;Wherein, described first I/O device is described process needs to be migrated The distal end I O device moved into;
Compare the value of the first parameter of described first I/O device and the threshold value of described first parameter;
Comparative result between value and the threshold value of described first parameter of the first parameter according to described first I/O device, determines Whether stop the migration operation of described process to be migrated.
6. according to the arbitrary described method of claims 1 to 3, it is characterised in that described method also includes:
The maximum threshold of the average transmission data volume of the second I/O device is set;Wherein, described second I/O device be described in wait to move Shift-in journey correspondence this locality I/O device;
Obtain the value of the average transmission data volume of described second I/O device;
Judge whether the value of the average transmission data volume of described second I/O device is more than the gate of described average transmission data volume Limit value;
If the value of the average transmission data volume of described second I/O device is more than the maximum threshold of described average transmission data volume, then Stop the migration operation of described process to be migrated.
7. a messaging device, it is characterised in that described equipment includes: the first acquiring unit and the first processing unit, its In:
Described first acquiring unit, for monitoring the process in described electronic equipment, obtains the first parameter of each described process; Wherein, described first parameter can characterize the ruuning situation of I/O device corresponding to described each process;
Described first processing unit, for according to described first parameter of each described process, is carried out each described process point Analysis obtains process to be migrated.
Electronic equipment the most according to claim 7, it is characterised in that described first processing unit includes: first obtains mould Block and the first processing module, wherein:
Described first acquisition module, for obtaining load factor and/or the abnormal rate of internal memory of the CPU of each described process, and root The load factor of the I/O device of each described process is obtained according to described first parameter of each described process;
Described second processing module, for the load factor of CPU based on each described process, the abnormal rate of internal memory and I/O device Each described process is analyzed processing by load factor, obtains described process to be migrated.
Electronic equipment the most according to claim 7, it is characterised in that described first processing unit also includes: second obtains Module and the second processing module, wherein:
Described second acquisition module, for obtaining load factor and the abnormal rate of internal memory of the CPU of each described process, and based on institute State the load factor of CPU corresponding in process and the abnormal rate of internal memory obtains the first process;
Described second acquisition module, is additionally operable to described first parameter according to each described first process and obtains each described first The load factor of the I/O device of process;
Described second processing module, for setting according to the load factor of CPU, the abnormal rate of internal memory and the IO of each described first process Each described first process is analyzed processing by standby load factor, obtains described process to be migrated.
Equipment the most according to claim 7, it is characterised in that
Described first data include at least one of following parameter: the request that process sends accesses the request of corresponding I/O device It is flat that the average length of queue, process wait that the corresponding average time of I/O device, the request of the corresponding I/O device of process access complete All time accesses the ratio of the CPU that corresponding I/O device consumes with process.
11. according to the arbitrary described equipment of claim 7~10, it is characterised in that described equipment also includes: first arranges list Unit, the first comparing unit and the second processing unit, wherein:
Described first arranges unit, for arranging the threshold value of the first parameter of the first I/O device;Wherein, described first I/O device The distal end I O device moved into is needed for described process to be migrated;
Described first comparing unit, for value and the thresholding of described first parameter of relatively the first parameter of described first I/O device Value;
Described second processing unit, for value and the thresholding of described first parameter of the first parameter according to described first I/O device Comparative result between value, it is determined whether stop the migration operation of described process to be migrated.
12. according to the arbitrary described equipment of claim 7~10, it is characterised in that described equipment also includes: second arranges list Unit, second acquisition unit, the second judging unit and the 3rd processing unit, wherein:
Described second arranges unit, for arranging the maximum threshold of the average transmission data volume of the second I/O device;Wherein, described Second I/O device is described process correspondence this locality to be migrated I/O device;
Described second acquisition unit, for obtaining the value of the average transmission data volume of described second I/O device;
Described second judging unit is the most flat more than described for judging the value of the average transmission data volume of described second I/O device All maximum thresholds of transmitted data amount;
Described 3rd processing unit, if the value for the average transmission data volume of described second I/O device is more than described average transmission The maximum threshold of data volume, then stop the migration operation of described process to be migrated.
CN201610514034.1A 2016-06-30 2016-06-30 A kind of information processing method and equipment Pending CN106168911A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610514034.1A CN106168911A (en) 2016-06-30 2016-06-30 A kind of information processing method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610514034.1A CN106168911A (en) 2016-06-30 2016-06-30 A kind of information processing method and equipment

Publications (1)

Publication Number Publication Date
CN106168911A true CN106168911A (en) 2016-11-30

Family

ID=58066187

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610514034.1A Pending CN106168911A (en) 2016-06-30 2016-06-30 A kind of information processing method and equipment

Country Status (1)

Country Link
CN (1) CN106168911A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008293290A (en) * 2007-05-24 2008-12-04 Ricoh Co Ltd Data processing system, method, and program, and recording medium for recording data processing program
CN101452406A (en) * 2008-12-23 2009-06-10 北京航空航天大学 Cluster load balance method transparent for operating system
CN102096461A (en) * 2011-01-13 2011-06-15 浙江大学 Energy-saving method of cloud data center based on virtual machine migration and load perception integration
US20130007757A1 (en) * 2011-06-29 2013-01-03 International Business Machines Corporation Methods, computer systems, and physical computer storage media for managing resources of a storage server
CN103473037A (en) * 2012-06-06 2013-12-25 索尼公司 Information processing apparatus, information processing method, and program
CN104102535A (en) * 2013-04-01 2014-10-15 华为技术有限公司 Process migration method and migratable operating system
CN104461714A (en) * 2014-12-24 2015-03-25 北京奇虎科技有限公司 Method and device for processing progresses of server

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008293290A (en) * 2007-05-24 2008-12-04 Ricoh Co Ltd Data processing system, method, and program, and recording medium for recording data processing program
CN101452406A (en) * 2008-12-23 2009-06-10 北京航空航天大学 Cluster load balance method transparent for operating system
CN102096461A (en) * 2011-01-13 2011-06-15 浙江大学 Energy-saving method of cloud data center based on virtual machine migration and load perception integration
US20130007757A1 (en) * 2011-06-29 2013-01-03 International Business Machines Corporation Methods, computer systems, and physical computer storage media for managing resources of a storage server
CN103473037A (en) * 2012-06-06 2013-12-25 索尼公司 Information processing apparatus, information processing method, and program
CN104102535A (en) * 2013-04-01 2014-10-15 华为技术有限公司 Process migration method and migratable operating system
CN104461714A (en) * 2014-12-24 2015-03-25 北京奇虎科技有限公司 Method and device for processing progresses of server

Similar Documents

Publication Publication Date Title
CN109672627A (en) Method for processing business, platform, equipment and storage medium based on cluster server
CN105281981B (en) The data traffic monitoring method and device of network service
US10120820B2 (en) Direct memory access transmission control method and apparatus
US20050154576A1 (en) Policy simulator for analyzing autonomic system management policy of a computer system
US8910128B2 (en) Methods and apparatus for application performance and capacity analysis
JP2006338543A (en) Monitoring system and monitoring method
CN109981702B (en) File storage method and system
CN107070709B (en) NFV (network function virtualization) implementation method based on bottom NUMA (non uniform memory Access) perception
US20220075665A1 (en) Scheduling method for selecting optimal cluster within cluster of distributed collaboration type
CN107395521B (en) Big data information processing method and system based on Internet of things
CN110401697A (en) A kind of method, system and the equipment of concurrent processing HTTP request
CN104699584A (en) PCIE non-transparent bridge performance testing method
US20150212973A1 (en) Integrated utility based data processing methods
US9740404B2 (en) Control apparatus and control method
KR20150007698A (en) Load distribution system for virtual desktop service
JP2015011365A (en) Provisioning apparatus, system, provisioning method, and provisioning program
US20150026347A1 (en) Method and apparatus for allocating stream processing unit
CN109347982A (en) A kind of dispatching method and device of data center
US20140032642A1 (en) Controlling server response based on client performance
DE112021004473T5 (en) STORAGE-LEVEL LOAD BALANCING
WO2021169287A1 (en) Master-slave architecture configuration method, appartus and device, and computer-readable storage medium
CN106168911A (en) A kind of information processing method and equipment
CN116450290A (en) Computer resource management method and device, cloud server and storage medium
CN109308243B (en) Data processing method, data processing device, computer equipment and medium
CN105917694B (en) Service in telecommunication network provides and activation

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20161130