CN110134104A - Cpu load calculation method, cpu load computing system and the vehicle of VCU - Google Patents
Cpu load calculation method, cpu load computing system and the vehicle of VCU Download PDFInfo
- Publication number
- CN110134104A CN110134104A CN201910207411.0A CN201910207411A CN110134104A CN 110134104 A CN110134104 A CN 110134104A CN 201910207411 A CN201910207411 A CN 201910207411A CN 110134104 A CN110134104 A CN 110134104A
- Authority
- CN
- China
- Prior art keywords
- vcu
- cpu
- cpu load
- calculating
- calculating cycle
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B23/00—Testing or monitoring of control systems or parts thereof
- G05B23/02—Electric testing or monitoring
- G05B23/0205—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
- G05B23/0218—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterised by the fault detection method dealing with either existing or incipient faults
- G05B23/0221—Preprocessing measurements, e.g. data collection rate adjustment; Standardization of measurements; Time series or signal analysis, e.g. frequency analysis or wavelets; Trustworthiness of measurements; Indexes therefor; Measurements using easily measured parameters to estimate parameters difficult to measure; Virtual sensor creation; De-noising; Sensor fusion; Unconventional preprocessing inherently present in specific fault detection methods like PCA-based methods
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Debugging And Monitoring (AREA)
Abstract
The present invention provides the cpu load calculation method, cpu load computing system and vehicle of a kind of VCU, wherein method includes: to calculate separately the central processor CPU load of entire car controller VCU according to the N number of calculating cycle divided in advance;Wherein, the corresponding N number of cpu load calculated result of N number of calculating cycle is the integer greater than 1 for calculating separately N kind cpu performance parameter, the N.In the present invention, the VCU of vehicle can calculate separately the cpu load of VCU according to the multiple calculating cycles divided in advance.In the present invention, the calculating of cpu load is realized by multiple calculating cycles, so that the calculated result of cpu load is more nearly CPU actual load.To which the VCU of vehicle can calculate different cpu performance parameters according to the cpu load calculated result of different calculating cycles, keep calculated cpu performance parameter more reasonable, so as to optimize the runnability of VCU.
Description
Technical field
The present embodiments relate to entire car controller technical field more particularly to the cpu load calculation method of VCU a kind of,
Cpu load computing system and vehicle.
Background technique
New-energy automobile passes through VCU (Vehicle Control Unit, entire car controller) realization as electric car
Full-vehicle control decision.VCU judges the driving intention of driver by signals such as acquisition gas pedal, gear, brake pedals;It is logical
Monitoring vehicle-state (speed, temperature etc.) information is crossed, after VCU judgement processing, sends vehicle to dynamical system, electrokinetic cell system
Operating status control instruction, while controlling the operating mode of vehicle-mounted attachment electric power system;VCU also has Full Vehicle System failure
Diagnosis protection and store function;Etc..
Currently, being appointed when calculating CPU (Central Processing Unit, central processing unit) load of VCU with the free time
The runing time of business does not account for the complex situations in operational process, this calculates the cpu load of VCU as unique input
As a result there is biggish deviation, so that the evaluation of the cpu performance parameter of VCU is influenced, so that the runnability of VCU is by unfavorable shadow
It rings.
Summary of the invention
The embodiment of the present invention provides the cpu load calculation method, cpu load computing system and vehicle of a kind of VCU, to solve
The above problem.
In a first aspect, the embodiment of the present invention provides the cpu load calculation method of VCU a kind of, the cpu load applied to VCU
Computing system, which comprises
According to the N number of calculating cycle divided in advance, the central processor CPU load of entire car controller VCU is calculated separately;
Wherein, the corresponding N number of cpu load calculated result of N number of calculating cycle is for calculating separately N kind cpu performance ginseng
Number, the N are the integer greater than 1.
In some embodiments, it is described calculate VCU cpu load the step of before, the method also includes:
Obtain the task queue attribute of the VCU;
According to the task queue attribute of the VCU, the calculating cycle is divided.
In some embodiments, the task queue attribute according to the VCU, the step of dividing the calculating cycle,
Include:
According to the execution cycle parameter of the periodic task queue of the VCU, the calculating cycle is divided;
Alternatively,
According to the number of the execution cycle parameter and periodic task queue of the periodic task queue of the VCU, divide
The calculating cycle.
In some embodiments, the calculating cycle includes Millisecond calculation interval, ten Millisecond calculation intervals, hundred milliseconds
Grade calculation interval, thousand Millisecond calculation intervals, at least two in ten thousand Millisecond calculation intervals.
In some embodiments, the calculating cycle includes ten Millisecond calculation intervals, hundred Millisecond calculation intervals and ten thousand
Millisecond calculation interval.
In some embodiments, the step of cpu load for calculating the VCU, comprising:
In each calculating cycle of every kind of calculating cycle, the number of current scheduling queue is obtained;
Exponential smoothing filtering processing is carried out to the number of the current scheduling queue.
In some embodiments, the cpu performance parameter include Task Congestion extent index, CPU average load parameter,
At least two in CPU processing capacity parameter, system performance parameter.
Second aspect, the embodiment of the present invention provide the cpu load computing system of VCU a kind of, comprising:
Cpu load computing module, for calculating separately entire car controller VCU's according to the N number of calculating cycle divided in advance
Central processor CPU load;
Wherein, the corresponding N number of cpu load calculated result of N number of calculating cycle is for calculating separately N kind cpu performance ginseng
Number, the N are the integer greater than 1.
In some embodiments, the system also includes:
Task queue attribute obtains module, for obtaining the task queue attribute of the VCU;
Calculating cycle division module divides the calculating cycle for the task queue attribute according to the VCU.
In some embodiments, the calculating cycle division module is specifically used for:
According to the execution cycle parameter of the periodic task queue of the VCU, the calculating cycle is divided;
Alternatively,
According to the number of the execution cycle parameter and periodic task queue of the periodic task queue of the VCU, divide
The calculating cycle.
In some embodiments, the calculating cycle includes Millisecond calculation interval, ten Millisecond calculation intervals, hundred milliseconds
Grade calculation interval, thousand Millisecond calculation intervals, at least two in ten thousand Millisecond calculation intervals.
In some embodiments, the calculating cycle includes ten Millisecond calculation intervals, hundred Millisecond calculation intervals and ten thousand
Millisecond calculation interval.
In some embodiments, the cpu load computing module is specifically used for:
In each calculating cycle of every kind of calculating cycle, the number of current scheduling queue is obtained;
Exponential smoothing filtering processing is carried out to the number of the current scheduling queue.
In some embodiments, the cpu performance parameter include Task Congestion extent index, CPU average load parameter,
At least two in CPU processing capacity parameter, system performance parameter.
The third aspect, the embodiment of the present invention provide the cpu load computing system of VCU a kind of, comprising: memory, processor
And it is stored in the computer program that can be run on the memory and on the processor, the computer program is by the place
Manage the step in the cpu load calculation method for realizing VCU described in any one of first aspect of the embodiment of the present invention when device executes.
Fourth aspect, the embodiment of the present invention provide a kind of computer readable storage medium, the computer-readable storage medium
It is stored with computer program in matter, realizes in first aspect of the embodiment of the present invention and appoints when the computer program is executed by processor
The step of cpu load calculation method of VCU described in one.
5th aspect, the embodiment of the present invention provide a kind of vehicle, and the vehicle includes VCU, and the VCU is provided with the present invention
Cpu load computing system described in any one of embodiment second aspect;Alternatively, the VCU is provided with the embodiment of the present invention
Cpu load computing system described in three aspects.
In the embodiment of the present invention, the VCU of vehicle can calculate separately VCU's according to the multiple calculating cycles divided in advance
Cpu load.In the embodiment of the present invention, the calculating of cpu load is realized by multiple calculating cycles, so that the calculating knot of cpu load
Fruit is more nearly CPU actual load.To which the VCU of vehicle can be counted according to the cpu load calculated result of different calculating cycles
Different cpu performance parameters keeps calculated cpu performance parameter more reasonable, so as to optimize the runnability of VCU.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, needed in being described below to the embodiment of the present invention
Attached drawing to be used is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention,
For those of ordinary skill in the art, without any creative labor, it can also obtain according to these attached drawings
Take other attached drawings.
Fig. 1 is the flow diagram of the cpu load calculation method of VCU provided in an embodiment of the present invention;
Fig. 2 is the division schematic diagram of the task queue of VCU provided in an embodiment of the present invention;
Fig. 3 is the exemplary diagram of the operation timing of the task queue of VCU provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of cpu load computing system provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of another cpu load computing system provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram of another cpu load computing system provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Bright embodiment, those of ordinary skill in the art's acquired every other embodiment without creative efforts,
It shall fall within the protection scope of the present invention.
As shown in Figure 1, the embodiment of the present invention provides the cpu load calculation method of VCU a kind of, the cpu load applied to VCU
Computing system, described method includes following steps:
Step 101: according to the N number of calculating cycle divided in advance, calculating separately the cpu load of VCU.
Wherein, N number of cpu load calculated result can be calculated in above-mentioned N number of calculating cycle.Above-mentioned N number of calculating cycle is corresponding
N number of cpu load calculated result for calculating separately N kind cpu performance parameter.
Wherein, N is the integer greater than 1, i.e. N can be 2,3,4 ....
The value of above-mentioned N number of calculating cycle is different.
Wherein, cpu performance parameter may include Task Congestion extent index, CPU average load parameter, CPU processing capacity ginseng
At least two in number, system performance parameter.
By calculating cpu load, cpu performance parameter can be calculated according to calculated result, to know that VCU is operated
The runnability of system, and operating system is correspondingly optimized and revised as needed.Wherein, cpu performance parameter is carried out
Calculating can be regarded as that cpu performance parameter is estimated, assessed or evaluated.
The embodiment of the present invention is that can be applied to the debugging stage of VCU, can also be applied to the operation phase of VCU.It is completed in VCU
It can start to calculate cpu load after initialization, can stop calculating cpu load after electricity under VCU.
In the embodiment of the present invention, the VCU of vehicle can calculate separately VCU's according to the multiple calculating cycles divided in advance
Cpu load.In the embodiment of the present invention, the calculating of cpu load is realized by multiple calculating cycles, so that the calculating knot of cpu load
Fruit is more nearly CPU actual load.To which the VCU of vehicle can be counted according to the cpu load calculated result of different calculating cycles
Different cpu performance parameters keeps calculated cpu performance parameter more reasonable, so as to optimize the runnability of VCU.
In some embodiments, it is described calculate VCU cpu load the step of before, the method also includes:
Obtain the task queue attribute of the VCU;
According to the task queue attribute of the VCU, the calculating cycle is divided.
As shown in Fig. 2, the attribute of the task queue of VCU be generally divided into it is following several:
A: event task, such as the triggering of I O trigger, specific message, special event triggering;
B: periodic task queue, such as 1ms task queue, 5ms task queue, 10ms task queue, 100ms task team
Column;
C: the optimization queue of high load;
D: idle task.
Fig. 3 is the exemplary diagram of the operation timing of above-mentioned task queue.
In task queue for different attribute, the occupancy duration of cpu resource and the occupancy size of cpu resource not
Together, it is also different to will lead to influence of the task queue of different attribute to cpu load for this.Therefore, according to the task queue of VCU
Attribute realizes the division of calculating cycle, can effectively improve the reasonability of cpu load calculating.
In some embodiments, the task queue attribute according to the VCU, the step of dividing the calculating cycle,
Include:
According to the execution cycle parameter of the periodic task queue of the VCU, the calculating cycle is divided;
Alternatively,
According to the number of the execution cycle parameter and periodic task queue of the periodic task queue of the VCU, divide
The calculating cycle.
In view of periodic task queue needs to execute according to certain execution loop cycle, need periodically to occupy
Therefore cpu load can divide calculating cycle according to the execution cycle parameter of the periodic task queue of VCU.In addition, may be used also
To divide calculating cycle, knot according to the number of the execution cycle parameter and periodic task queue of the periodic task queue of VCU
The execution cycle parameter and number for closing periodic task queue, enable to the division of calculating cycle more reasonable, and it is negative to improve CPU
The computational efficiency of lotus saves cpu load and calculates cost.
In some embodiments, the calculating cycle includes Millisecond calculation interval, ten Millisecond calculation intervals, hundred milliseconds
Grade calculation interval, thousand Millisecond calculation intervals, at least two in ten thousand Millisecond calculation intervals.
In some embodiments, the calculating cycle includes ten Millisecond calculation intervals, hundred Millisecond calculation intervals and ten thousand
Millisecond calculation interval.
For example, the periodic task queue of VCU include 1ms task queue, 5ms task queue, 10ms task queue and
100ms task queue, then calculating cycle can be divided into 10ms, 200ms, one minute etc..
Wherein, when calculating cycle is 10ms, every 10ms calculates a cpu load, obtains the first calculated result, first meter
Calculating result can be used for calculating task Congestion Level SPCC parameter;When calculating cycle is 200ms, every 200ms calculates a cpu load, obtains
To the second calculated result, which can be used for calculating CPU average load parameter;When calculating cycle is one minute, often
The cpu load of calculating in one minute, obtains third calculated result, which can be used for calculating CPU processing capacity ginseng
Several and system shows parameter.
In some embodiments, the step of cpu load for calculating the VCU, comprising:
In each calculating cycle of every kind of calculating cycle, the number of current scheduling queue is obtained;
Exponential smoothing filtering processing is carried out to the number of the current scheduling queue.
The calculation of cpu load is specifically explained below:
Assuming that carving at the beginning, the number of current scheduling queue is n0, the corresponding cpu load calculated result of initial time is
s0;Assuming that the number of current scheduling queue is n in t momentt, the corresponding cpu load calculated result of t moment is st, t is greater than 0
At the time of.Then the calculation formula of cpu load is as follows:
s0=n0
st=ant+(1-a)st-1
Wherein, a is the exponential smoothing factor greater than 0 less than 1, a=e-1/x*T, T can be 10ms, the meter such as 200ms, 60000ms
It calculates the period, x is experience calibration value.Generally, the range of a is between 0.2 to 0.6.
It is varied widely in scheduling queue number, adverse effect is brought to cpu load calculated result, makes cpu load not
Really.In consideration of it, the number to current scheduling queue carries out exponential smoothing filtering processing, to prevent because scheduling queue number is unexpected
Change and cpu load is caused to calculate unreasonable problem.
Different cpu load calculated result, under normal circumstances, the first calculated result, the second calculated result, third calculate knot
Fruit is in 0.6 or so.
When the first calculated result is greater than 2, the second calculated result is less than 1, when third calculated result is less than 1, then cpu load pair
System operation does not influence, can appropriate adjustment design.
When the first calculated result be greater than 2, when the second calculated result is less than 2, do not run the optimization queue of high load.
In summary, in the embodiment of the present invention, by dividing calculating cycle in advance, in each calculating of every kind of calculating cycle
In period, the cpu load of VCU is calculated, in this way, can calculate according to the cpu load calculated result of different calculating cycles different
Cpu performance parameter keeps the calculating of cpu performance parameter more reasonable, so as to optimize the runnability of VCU.
As shown in figure 4, the embodiment of the present invention provides the cpu load computing system 300 of VCU a kind of, comprising:
Cpu load computing module 301, for calculating separately entire car controller according to the N number of calculating cycle divided in advance
The central processor CPU load of VCU;
Wherein, the corresponding N number of cpu load calculated result of N number of calculating cycle is for calculating separately N kind cpu performance ginseng
Number, the N are the integer greater than 1.
In some embodiments, as shown in figure 5, cpu load computing system 300 further include:
Task queue attribute obtains module 302, for obtaining the task queue attribute of the VCU;
Calculating cycle division module 303 divides the calculating cycle for the task queue attribute according to the VCU.
In some embodiments, calculating cycle division module 303 is specifically used for:
According to the execution cycle parameter of the periodic task queue of the VCU, the calculating cycle is divided;
Alternatively,
According to the number of the execution cycle parameter and periodic task queue of the periodic task queue of the VCU, divide
The calculating cycle.
In some embodiments, the calculating cycle includes Millisecond calculation interval, ten Millisecond calculation intervals, hundred milliseconds
Grade calculation interval, thousand Millisecond calculation intervals, at least two in ten thousand Millisecond calculation intervals.
In some embodiments, the calculating cycle includes ten Millisecond calculation intervals, hundred Millisecond calculation intervals and ten thousand
Millisecond calculation interval.
In some embodiments, cpu load computing module 301 is specifically used for:
In each calculating cycle of every kind of calculating cycle, the number of current scheduling queue is obtained;
Exponential smoothing filtering processing is carried out to the number of the current scheduling queue.
In some embodiments, the cpu performance parameter include Task Congestion extent index, CPU average load parameter,
At least two in CPU processing capacity parameter, system performance parameter.
It should be noted that above-mentioned display system 300 can be in embodiment of the method and arbitrarily implement in the embodiment of the present invention
The display system of mode, any embodiment of display system can be by above-mentioned in the embodiment of the present invention in embodiment of the method
Display system 300 is realized, and reaches identical beneficial effect, and to avoid repeating, details are not described herein again.
As shown in fig. 6, the cpu load computing system 400 for another VCU that the embodiment of the present invention also provides, the VCU's
Cpu load computing system 400 includes memory 401, processor 402 and is stored on memory 401 and can be on the processor 402
The computer program of operation;When processor 402 executes the computer program, following steps are realized:
According to the N number of calculating cycle divided in advance, the central processor CPU load of entire car controller VCU is calculated separately;
Wherein, the corresponding N number of cpu load calculated result of N number of calculating cycle is for calculating separately N kind cpu performance ginseng
Number, the N are the integer greater than 1.
In Fig. 6, bus architecture may include the bus and bridge of any number of interconnection, specifically be represented by processor 402
One or more processors and the various circuits of memory that represent of memory 401 link together.Bus architecture can be with
Various other circuits of such as peripheral equipment, voltage-stablizer and management circuit or the like are linked together, these are all these
Well known to field, therefore, it will not be further described herein.Bus interface provides interface.Processor 402 is responsible for pipe
Bus architecture and common processing are managed, memory 401 can store the used data when executing operation of processor 402.
Optionally, it when processor 402 executes the computer program, also realizes:
Obtain the task queue attribute of the VCU;
According to the task queue attribute of the VCU, the calculating cycle is divided.
Optionally, processor 402 executes the task queue attribute according to the VCU, divides the calculating cycle
When step, realize:
According to the execution cycle parameter of the periodic task queue of the VCU, the calculating cycle is divided;
Alternatively,
According to the number of the execution cycle parameter and periodic task queue of the periodic task queue of the VCU, divide
The calculating cycle.
Optionally, when the calculating cycle includes Millisecond calculation interval, ten Millisecond calculation intervals, the calculating of hundred Milliseconds
At least two in section, thousand Millisecond calculation intervals, ten thousand Millisecond calculation intervals.
Optionally, the calculating cycle includes ten Millisecond calculation intervals, hundred Millisecond calculation intervals and ten thousand Millisecond meters
Calculate the period.
Optionally, it when processor 402 executes the step of the cpu load for calculating the VCU, realizes:
In each calculating cycle of every kind of calculating cycle, the number of current scheduling queue is obtained;
Exponential smoothing filtering processing is carried out to the number of the current scheduling queue.
Optionally, the cpu performance parameter includes Task Congestion extent index, CPU average load parameter, CPU processing energy
At least two in force parameter, system performance parameter.
It should be noted that the cpu load computing system 400 of above-mentioned VCU can be method implementation in the embodiment of the present invention
The cpu load computing system of the VCU of any embodiment in example, any embodiment can be implemented by this in embodiment of the method
The cpu load computing system 400 of VCU in example is realized, and reaches identical beneficial effect, and details are not described herein again.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium
Calculation machine program, the computer program realize each mistake of the cpu load calculation method embodiment of above-mentioned VCU when being executed by processor
Journey, and identical technical effect can be reached, to avoid repeating, which is not described herein again.Wherein, the computer-readable storage medium
Matter, such as read-only memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access
Memory, abbreviation RAM), magnetic or disk etc..
In several embodiments provided herein, it should be understood that disclosed method and apparatus can pass through other
Mode realize.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only
For a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can combine
Or it is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed phase
Coupling, direct-coupling or communication connection between mutually can be through some interfaces, the INDIRECT COUPLING or communication of device or unit
Connection can be electrical property, mechanical or other forms.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that the independent physics of each unit includes, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can store and computer-readable deposit at one
In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer
Equipment (can be personal computer, server or the network equipment etc.) executes receiving/transmission method described in each embodiment of the present invention
Part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, abbreviation
ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic or disk etc. are various can store
The medium of program code.
The embodiment of the present invention also provides a kind of vehicle, and the vehicle includes VCU, and the VCU is provided with the embodiment of the present invention
Any one of described in cpu load computing system.
It should be noted that the VCU of above-mentioned vehicle is due to having used the CPU in the embodiment of the present invention in the embodiment of the present invention
Carry calculation system, any embodiment of cpu load computing system can be by the embodiment of the present invention in the embodiment of the present invention
In above-mentioned vehicle realized that and reach identical beneficial effect, to avoid repeating, details are not described herein again.
More than, the only specific embodiment of the embodiment of the present invention, but the protection scope of the embodiment of the present invention does not limit to
In this, anyone skilled in the art can readily occur in change in the technical scope that the embodiment of the present invention discloses
Change or replace, should all cover within the protection scope of the embodiment of the present invention.Therefore, the protection scope of the embodiment of the present invention should be with
Subject to scope of protection of the claims.
Claims (17)
1. the cpu load calculation method of VCU a kind of, which is characterized in that applied to the cpu load computing system of VCU, the method
Include:
According to the N number of calculating cycle divided in advance, the central processor CPU load of entire car controller VCU is calculated separately;
Wherein, the corresponding N number of cpu load calculated result of N number of calculating cycle is for calculating separately N kind cpu performance parameter, institute
Stating N is the integer greater than 1.
2. calculation method according to claim 1, which is characterized in that it is described calculate VCU cpu load the step of it
Before, the method also includes:
Obtain the task queue attribute of the VCU;
According to the task queue attribute of the VCU, the calculating cycle is divided.
3. calculation method according to claim 2, which is characterized in that the task queue attribute according to the VCU is drawn
The step of dividing the calculating cycle, comprising:
According to the execution cycle parameter of the periodic task queue of the VCU, the calculating cycle is divided;
Alternatively,
According to the number of the execution cycle parameter and periodic task queue of the periodic task queue of the VCU, described in division
Calculating cycle.
4. calculation method according to any one of claim 1 to 3, which is characterized in that the calculating cycle includes millisecond
When grade calculation interval, ten Millisecond calculation intervals, hundred Millisecond calculation intervals, thousand Millisecond calculation intervals, ten thousand Milliseconds calculate
At least two in section.
5. calculation method according to claim 4, which is characterized in that when the calculating cycle includes that ten Milliseconds calculate
Section, hundred Millisecond calculation intervals and ten thousand Millisecond calculation intervals.
6. calculation method according to any one of claim 1 to 3, which is characterized in that the CPU for calculating the VCU
The step of load, comprising:
In each calculating cycle of every kind of calculating cycle, the number of current scheduling queue is obtained;
Exponential smoothing filtering processing is carried out to the number of the current scheduling queue.
7. calculation method according to any one of claim 1 to 3, which is characterized in that the cpu performance parameter includes appointing
Congestion Level SPCC parameter, CPU average load parameter, CPU processing capacity parameter, the system of being engaged in show at least two in parameter.
8. the cpu load computing system of VCU a kind of characterized by comprising
Cpu load computing module, for calculating separately the center of entire car controller VCU according to the N number of calculating cycle divided in advance
Processor cpu load;
Wherein, the corresponding N number of cpu load calculated result of N number of calculating cycle is for calculating separately N kind cpu performance parameter, institute
Stating N is the integer greater than 1.
9. computing system according to claim 8, which is characterized in that the system also includes:
Task queue attribute obtains module, for obtaining the task queue attribute of the VCU;
Calculating cycle division module divides the calculating cycle for the task queue attribute according to the VCU.
10. computing system according to claim 9, which is characterized in that the calculating cycle division module is specifically used for:
According to the execution cycle parameter of the periodic task queue of the VCU, the calculating cycle is divided;
Alternatively,
According to the number of the execution cycle parameter and periodic task queue of the periodic task queue of the VCU, described in division
Calculating cycle.
11. the computing system according to any one of claim 8 to 10, which is characterized in that the calculating cycle includes milli
Second grade calculation interval, ten Millisecond calculation intervals, hundred Millisecond calculation intervals, thousand Millisecond calculation intervals, ten thousand Milliseconds calculate
At least two in period.
12. computing system according to claim 11, which is characterized in that when the calculating cycle includes that ten Milliseconds calculate
Section, hundred Millisecond calculation intervals and ten thousand Millisecond calculation intervals.
13. the computing system according to any one of claim 8 to 10, which is characterized in that the cpu load computing module
It is specifically used for:
In each calculating cycle of every kind of calculating cycle, the number of current scheduling queue is obtained;
Exponential smoothing filtering processing is carried out to the number of the current scheduling queue.
14. the computing system according to any one of claim 8 to 10, which is characterized in that the cpu performance parameter includes
Task Congestion extent index, CPU average load parameter, CPU processing capacity parameter, system show at least two in parameter.
15. the cpu load computing system of VCU a kind of characterized by comprising memory, processor and be stored in the storage
On device and the computer program that can run on the processor, realized such as when the computer program is executed by the processor
Step in the cpu load calculation method of VCU described in any one of claims 1 to 7.
16. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium
Program realizes the cpu load of the VCU as described in any one of claims 1 to 7 when the computer program is executed by processor
The step of calculation method.
17. a kind of vehicle, which is characterized in that the vehicle includes VCU, and the VCU setting is any just like in claim 8 to 14
Cpu load computing system described in;Alternatively, the VCU is provided with cpu load computing system as claimed in claim 15.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910207411.0A CN110134104A (en) | 2019-03-19 | 2019-03-19 | Cpu load calculation method, cpu load computing system and the vehicle of VCU |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910207411.0A CN110134104A (en) | 2019-03-19 | 2019-03-19 | Cpu load calculation method, cpu load computing system and the vehicle of VCU |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110134104A true CN110134104A (en) | 2019-08-16 |
Family
ID=67568551
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910207411.0A Pending CN110134104A (en) | 2019-03-19 | 2019-03-19 | Cpu load calculation method, cpu load computing system and the vehicle of VCU |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110134104A (en) |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5822463A (en) * | 1981-08-04 | 1983-02-09 | Mitsubishi Electric Corp | Computer load measuring instrument |
CN102026105A (en) * | 2009-09-11 | 2011-04-20 | 中国移动通信集团公司 | Method and device for determining central processing unit load |
CN104182278A (en) * | 2013-05-23 | 2014-12-03 | 华为技术有限公司 | Method and device for judging busy degree of computer hardware resource |
CN105335229A (en) * | 2014-07-25 | 2016-02-17 | 杭州华三通信技术有限公司 | Business resource scheduling method and apparatus |
CN106407012A (en) * | 2016-09-30 | 2017-02-15 | 青岛海信移动通信技术股份有限公司 | Sampling method and device for load of central processing unit |
CN106951362A (en) * | 2015-09-18 | 2017-07-14 | Fmr有限责任公司 | To the real-time monitoring of computer system processor and affairs performance during ongoing performance test |
CN107220166A (en) * | 2016-03-22 | 2017-09-29 | 大唐移动通信设备有限公司 | The statistical method and device of a kind of CPU usage |
CN107295090A (en) * | 2017-06-30 | 2017-10-24 | 北京奇艺世纪科技有限公司 | A kind of method and apparatus of scheduling of resource |
CN108664373A (en) * | 2018-05-14 | 2018-10-16 | 中国南方电网有限责任公司 | A kind of PMU devices operation troubles self-diagnosing method |
CN109086194A (en) * | 2018-06-11 | 2018-12-25 | 山东中创软件商用中间件股份有限公司 | A kind of thread pool capacity adjustment method, device, equipment and readable storage medium storing program for executing |
-
2019
- 2019-03-19 CN CN201910207411.0A patent/CN110134104A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5822463A (en) * | 1981-08-04 | 1983-02-09 | Mitsubishi Electric Corp | Computer load measuring instrument |
CN102026105A (en) * | 2009-09-11 | 2011-04-20 | 中国移动通信集团公司 | Method and device for determining central processing unit load |
CN104182278A (en) * | 2013-05-23 | 2014-12-03 | 华为技术有限公司 | Method and device for judging busy degree of computer hardware resource |
CN105335229A (en) * | 2014-07-25 | 2016-02-17 | 杭州华三通信技术有限公司 | Business resource scheduling method and apparatus |
CN106951362A (en) * | 2015-09-18 | 2017-07-14 | Fmr有限责任公司 | To the real-time monitoring of computer system processor and affairs performance during ongoing performance test |
CN107220166A (en) * | 2016-03-22 | 2017-09-29 | 大唐移动通信设备有限公司 | The statistical method and device of a kind of CPU usage |
CN106407012A (en) * | 2016-09-30 | 2017-02-15 | 青岛海信移动通信技术股份有限公司 | Sampling method and device for load of central processing unit |
CN107295090A (en) * | 2017-06-30 | 2017-10-24 | 北京奇艺世纪科技有限公司 | A kind of method and apparatus of scheduling of resource |
CN108664373A (en) * | 2018-05-14 | 2018-10-16 | 中国南方电网有限责任公司 | A kind of PMU devices operation troubles self-diagnosing method |
CN109086194A (en) * | 2018-06-11 | 2018-12-25 | 山东中创软件商用中间件股份有限公司 | A kind of thread pool capacity adjustment method, device, equipment and readable storage medium storing program for executing |
Non-Patent Citations (1)
Title |
---|
毛磊: "基于嵌入式实时操作系统的任务调度研究与应用", 《中国优秀硕士学位论文全文数据库信息科技辑》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102324743B (en) | Screening method for expected fault in online transient safety and stability assessment of power system | |
CN110126807A (en) | Method for controlling driving speed, vehicle speed control system and vehicle | |
CN103150215B (en) | Fine-grained cpu resource usage forecastings method under virtual environment | |
CN110990950B (en) | Multi-target train energy-saving optimization method based on hybrid operation mode | |
CN106933649A (en) | Virtual machine load predicting method and system based on rolling average and neutral net | |
CN111506430A (en) | Method and device for data processing under multitasking and electronic equipment | |
EP2768108A1 (en) | Mounted-type charging system | |
CN111664061B (en) | Fault diagnosis method and device for yaw system in wind generating set | |
CN110134104A (en) | Cpu load calculation method, cpu load computing system and the vehicle of VCU | |
CN105528250A (en) | Multi-core and multithreaded computer system certainty evaluation and control method | |
Senthilkumar et al. | Designing multicore ECU architecture in vehicle networks using AUTOSAR | |
CN103152757B (en) | A kind of instruction delivery method and equipment | |
CN109421678A (en) | Braking method, device, braking system and the storage medium of automobile | |
CN115619002A (en) | Flexible dynamic mixed key system scheduling method | |
CN115476837A (en) | Vehicle speed control method and system and vehicle | |
CN109471034A (en) | A kind of acquisition methods and device of electric automobile energy efficiency | |
CN104578048A (en) | Method for quickly evaluating transient security and stability of enumerated combined successive fault set on line | |
Gorelik et al. | Modeling and simulation of optimal and adaptive real-time energy management system for automated driving | |
CN104009940B (en) | Data dispatching method and device in controller LAN | |
CN109981392B (en) | Method and device for predicting flow speed, electronic equipment and storage medium | |
Martiny et al. | A Probabilistic Doxastic Temporal Logic for Reasoning about Beliefs in Multi-agent Systems. | |
CN113920717B (en) | Information processing method, device, electronic equipment and storage medium | |
CN104298564A (en) | Dynamic equilibrium heterogeneous system loading computing method | |
Ahn et al. | Development of a controller area network interface unit and its application to a fuel cell hybrid electric vehicle | |
Shan et al. | Development of Energy Management Software Module for Fuel Cell Vehicle Based on AUTOSAR Methodology |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190816 |
|
RJ01 | Rejection of invention patent application after publication |