CPU power consumption test method and CPU power consumption test system

A technology of power consumption testing and operating system, which is applied in the directions of measuring devices, transportation and packaging, and measuring electric power, etc. It can solve problems such as memory occupation, complex operating system, and influence of test results, so as to directly optimize power consumption and reduce adverse effects , the effect supported by accurate data

Active Publication Date: 2015-04-08
THUNDERSOFT
View PDF6 Cites 15 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In the above test methods, the CPU power consumption test is carried out after the operating system is fully started. However, the operating system itself is very complex and will perform many system service operations from time to time, and the system itself will affect the test results; while monitoring the test application It will take up memory and CPU resources, and will also affect the accuracy of test results
[0004] To sum up, the reference value of the test data obtained by the above method is low, and it can only qualitatively indicate the power consumption of the device, and cannot be directly applied to the power consumption optimization of the system.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • CPU power consumption test method and CPU power consumption test system
  • CPU power consumption test method and CPU power consumption test system
  • CPU power consumption test method and CPU power consumption test system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0058] This embodiment one discloses a CPU power consumption test method, refer to figure 1 , the method may include the following steps:

[0059] S101: Receive a test request from a tester, the test request is a request triggered by the tester on the target device after the streamlined operating system of the target device is started, and the streamlined operating system is configured to start the operating system based on the test requirements in advance The system obtained after filtering each service program configured in the file.

[0060] This embodiment specifically takes the Android system as an example to describe the present invention in detail.

[0061] Before carrying out CPU power consumption test according to each step processing logic of the present invention, need at first carry out following pretreatment process:

[0062] Prepare the source code of the Android system; modify the startup configuration file init.xxx.rc of the Android system, filter the service...

Embodiment 2

[0075] In the second embodiment, refer to figure 2 , the method may also include the following steps:

[0076] S105: According to the pre-configured test plan, judge whether all the test procedures have been completed, the test plan includes N sets of values ​​for each environmental parameter, and the N is a natural number not less than 1;

[0077] S106: If the judgment result is no, according to the pre-configured test plan, obtain the next set of values ​​of each environmental parameter of the target device, and use the next set of values ​​as the new target value of each environmental parameter; and trigger the following steps : Control the value of each environmental parameter of the target device to the corresponding target value;

[0078] S107: If the judgment result is yes, end.

[0079] The purpose of the present invention is to use the test data of CPU power consumption, so that Android system developers can perform more accurate power consumption optimization on t...

Embodiment 3

[0082] In the third embodiment, refer to image 3 , the method may also include the following steps:

[0083] S108: According to the test results, formulate a mapping relationship table between the battery output current and various environmental parameters, and draw a function curve between the output current and the environmental parameters.

[0084] Based on the test data, this embodiment sorts out the relationship between battery power, CPU usage rate, CPU frequency, the number of cores enabled by the CPU, and the battery output current, generates a mapping relationship table between the battery current and various environmental parameters, and draws the output current and A graph of the function between environmental parameters. The tabular format of the generated test result mapping table can refer to FIG. 4( a ) and FIG. 4( b ), and the drawn curve can refer to FIG. 4( c ).

[0085] On this basis, according to the test results, it can be deduced that when the system i...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a CPU power consumption test method and a CPU power consumption test system. According to the CPU power consumption test method and the CPU power consumption test system, service programs configured in an operating system booting configuration file are screened in advance according to test requirements, unnecessary service programs for a test process are eliminated, and an operating system is simplified; when a CPU (central processing unit) power consumption test for a target device is performed on the basis of the simplified operating system, environmental parameters of the target device are controlled according to preset corresponding target numerical values, CPU load is generated through simulation, operation pressure is applied to a CPU of the target device, output current of a battery of the target device is acquired on that basis, and CPU power consumption measurement of the target device is realized; therefore, the CPU load is generated through simplification of the operating system and simulation, negative influences of the system and application programs on test results are reduced, and accurate data support is provided for system power consumption optimization.

Description

technical field [0001] The invention belongs to the field of CPU (Central Processing Unit, central processing unit) power consumption test based on Android system, and in particular relates to a CPU power consumption test method and system. Background technique [0002] At present, when testing the CPU power consumption of a device based on the Android system, the operating system on the device under test is usually first fully started (that is, all service programs configured in the operating system startup configuration file) are started, and on this basis, the test. [0003] For example, some application programs for power consumption monitoring and testing are specifically installed in the system, and each application program is run to test various functions of the system, so as to obtain corresponding power consumption data of the system. In the above test methods, the CPU power consumption test is carried out after the operating system is fully started. However, the o...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G01R21/00
Inventor 李文栋赵政耀
Owner THUNDERSOFT
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products