CN112925474A - Terminal device control method, storage medium and terminal device - Google Patents

Terminal device control method, storage medium and terminal device Download PDF

Info

Publication number
CN112925474A
CN112925474A CN201911243826.XA CN201911243826A CN112925474A CN 112925474 A CN112925474 A CN 112925474A CN 201911243826 A CN201911243826 A CN 201911243826A CN 112925474 A CN112925474 A CN 112925474A
Authority
CN
China
Prior art keywords
application program
processed
life
service life
terminal device
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.)
Granted
Application number
CN201911243826.XA
Other languages
Chinese (zh)
Other versions
CN112925474B (en
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.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology Co 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 Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN201911243826.XA priority Critical patent/CN112925474B/en
Publication of CN112925474A publication Critical patent/CN112925474A/en
Application granted granted Critical
Publication of CN112925474B publication Critical patent/CN112925474B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/0614Improving the reliability of storage systems
    • G06F3/0616Improving the reliability of storage systems in relation to life time, e.g. increasing Mean Time Between Failures [MTBF]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • 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/0638Organizing or formatting or addressing of data
    • G06F3/064Management of blocks
    • 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/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
    • G06F3/0652Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Quality & Reliability (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The invention discloses a control method of terminal equipment, a storage medium and the terminal equipment, wherein the method monitors write-in data information of all application programs in preset time, determines the service life loss of the storage equipment by all the application programs in the preset time according to write-in data signals, then estimates whether the service life of the storage equipment can reach the set service life or not according to the service life loss, selects the application program with large service life loss of the storage equipment when the set service life cannot be reached, processes the application program, avoids the application program from continuously losing the service life of the storage equipment, prolongs the service life of the storage equipment and improves the product quality of the terminal equipment.

Description

Terminal device control method, storage medium and terminal device
Technical Field
The invention relates to the technical field of intelligent terminals, in particular to a control method of a terminal device, a storage medium and the terminal device.
Background
Storage devices are important components of electronic devices (e.g., televisions, mobile phones, etc.), and are used to store resources such as system programs and data. Each storage device is configured with an erasing period, and after the erasing period of the storage device reaches a preset number of times, the reliability of the data stored by the storage device is deteriorated, so that the data is easy to be bad. However, with the situation that the operating system of the electronic product is more and more complex and the number of application programs is large, the number of times of writing operations performed on the storage device by the electronic device in the using process is increasing, and even some applications may write a large amount of data into the storage device in order to realize functions (for example, using the storage device space as a cache, etc.), which causes the erasing and writing cycle of the storage device to reach the preset number of times in a short time, causes damage to the storage device, shortens the service life of the storage device, and affects the quality of the electronic device.
Thus, the prior art has yet to be improved and enhanced.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a control method of a terminal device, a storage medium and a terminal device, so as to solve the problem that the service life of the terminal device is affected by too many application program writing operations of the existing terminal device.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows:
a method of controlling a terminal device, comprising:
acquiring written data information of each application program in a target application program set within a preset time length;
determining the service life loss of each application program to the storage equipment configured by the terminal equipment according to the obtained written data information;
determining the estimated service life of the storage equipment according to the determined service life loss;
and when the estimated service life is less than the set service life corresponding to the storage device, processing the application program to be processed until the estimated service life is greater than or equal to the set service life, wherein the application program to be processed is the application program of which the service life loss corresponding to the target application program set meets the preset condition.
The control method of the terminal device, wherein the determining, according to the obtained written data information, the life loss of the storage device configured by each application program for the terminal device specifically includes:
acquiring a service life parameter of a storage device configured by the terminal device;
and aiming at each application program, determining the life loss of the application program to the storage device according to the write data information corresponding to the application program and the life parameter.
The control method of the terminal device, wherein the obtaining of the life parameter of the storage device configured by the terminal device specifically includes:
acquiring equipment information of a storage device configured by the terminal equipment;
and searching a life parameter corresponding to the equipment information in a preset life parameter database according to the equipment information, wherein the life parameter corresponding to the equipment information is stored in the life parameter database.
The control method of the terminal device, wherein the determining the estimated service life of the storage device according to the determined life losses specifically includes:
calculating the total life loss of all the application programs to the storage equipment according to the determined life losses;
and determining the estimated service life of the storage equipment according to the total service life loss.
The control method of the terminal device comprises the step of setting the service life loss of the application program to be processed to be greater than or equal to a first preset service life loss threshold value according to the preset condition.
The control method of the terminal device, wherein the first preset life loss threshold is life loss corresponding to an application program with the largest concentrated life loss of the target application program; the processing of the application program to be processed specifically includes:
removing the application programs to be processed in the target application program set so as to update the target application program set;
continuing to execute the operation of obtaining the written data information of each application program in the target application program set within the preset time length, or executing the operation of updating the estimated service time length according to the service life loss of each application program in the target application program;
and when the estimated use duration after updating is less than the set use duration corresponding to the storage device, continuously executing the step of removing the application program to be processed in the target application program set.
The control method of the terminal device, wherein the processing the application program to be processed specifically includes:
comparing the life loss corresponding to the application program to be processed with a second preset life loss threshold value;
when the life loss corresponding to the application program to be processed is greater than or equal to the second preset life loss threshold value, stopping the application program to be processed, and prompting that the application program to be processed is stopped;
and when the life loss corresponding to the application program to be processed is smaller than the second preset life loss threshold value, keeping the application program to be processed running, and generating prompt information for prompting the application program to be processed.
The control method of the terminal device, wherein the processing the application program to be processed specifically includes:
and stopping the application program to be processed and prompting that the application program to be processed is stopped.
A computer readable storage medium storing one or more programs, which are executable by one or more processors to implement the steps in the control method of a terminal device as described in any one of the above.
A terminal device, comprising: a processor, a memory, and a communication bus; the memory has stored thereon a computer readable program executable by the processor;
the communication bus realizes connection communication between the processor and the memory;
the processor, when executing the computer readable program, implements the steps in the control method of the terminal device as described in any one of the above.
Has the advantages that: compared with the prior art, the method comprises the steps of monitoring write-in data information of all application programs in preset time, determining the service life loss of the storage equipment by all the application programs in the preset time according to write-in data signals, estimating whether the service life of the storage equipment can reach the set service life or not according to the service life loss, selecting the application programs to be processed meeting preset conditions from the application programs in which data is written in the preset time when the set service life cannot be reached, processing the searched application programs to be processed, avoiding the application programs from continuing to prolong the service life of the storage equipment, and further improving the product quality of the terminal equipment.
Drawings
Fig. 1 is a flowchart of a control method of a terminal device provided in the present invention.
Fig. 2 is a flowchart of a control method of a terminal device according to the present invention.
Fig. 3 is a schematic diagram of a process of determining written data information in the control method of the terminal device provided by the present invention.
Fig. 4 is a flowchart of a total life loss calculation process in the control method of the terminal device provided in the present invention.
Fig. 5 is a flowchart of a model parameter obtaining process in the control method of the terminal device provided by the present invention.
Fig. 6 is a flowchart of an abnormal application occurrence processing procedure in the control method of the terminal device provided by the present invention.
Fig. 7 is a flowchart of a prompt process after processing an abnormal application in the control method of the terminal device provided by the present invention.
Fig. 8 is a schematic structural diagram of a terminal device provided in the present invention.
Detailed Description
The present invention provides a control method for a terminal device, a storage medium and a terminal device, and in order to make the objects, technical solutions and effects of the present invention clearer and clearer, the present invention will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
The inventor researches and discovers that each storage device is configured with an erasing period, and after the erasing period of the storage device reaches a preset number of times, the reliability of the data stored in the storage device is deteriorated, so that the data is easy to be damaged. However, the number of times of writing operations performed on the storage device by the electronic device in the using process is increasing, and frequent writing operations may cause the erasing and writing period of the storage device to reach a preset number of times in a short time, which may cause damage to the storage device, shorten the service life of the storage device, and affect the quality of the electronic device.
In order to solve the above problems, in the embodiment of the present invention, the written data information of all the application programs within the preset time is monitored, the life loss of all the application programs to the storage device within the preset time is determined according to the written data signal, then, whether the service life of the storage device can reach the set service life is estimated according to the life loss, and when the set service life cannot be reached, the application program to be processed meeting the preset conditions is searched in the application programs written with data within the preset time, and the searched application program to be processed is processed, so that the application program is prevented from continuing to have the life loss of the storage device, and thus, the service life of the storage device is prolonged, and the product quality of the terminal device is improved.
For example, the embodiment of the present invention may be applied to a terminal device. In an application scene applied to a terminal device, firstly, the terminal device can acquire written data information of each application program in a target application program set within a preset time length; determining the service life loss of each application program to the storage equipment configured by the terminal equipment according to the obtained written data information; determining the estimated service life of the storage equipment according to the determined service life loss; and when the estimated service life is less than the set service life corresponding to the storage device, determining the application programs to be processed according to the service life loss corresponding to each application program, and processing the application programs to be processed.
It will be appreciated that, in the application scenarios described above, while the actions of the embodiments of the invention have been described as being performed entirely by the terminal device, however, these actions may be completely executed by the server, or partially executed by the terminal device, and partially executed by the server (for example, the terminal device obtains write data information of each application program in a target application program set within a preset time duration, and uploads the obtained write data information to the server, the server determines life losses of the storage devices configured for the terminal device by each application program according to the write data information uploaded by the terminal device, determines an estimated usage time of the storage device according to the determined life losses, and sends the estimated usage time to the terminal device, and the terminal device processes the application program to be processed when the estimated usage time is less than the set usage time corresponding to the storage device). The invention is not limited in its implementation to the details of execution, provided that the acts disclosed in the embodiments of the invention are performed.
The invention will be further explained by the description of the embodiments with reference to the drawings.
The present embodiment provides a control method of a terminal device, as shown in fig. 1 and 2, the method includes:
s10, obtaining written data information of each application program in the target application program set within a preset time length, wherein each application program in the target application program set executes writing operation.
Specifically, the written data information refers to data information written into the memory when the application program performs a write operation. When the application program executes a write operation, the write operation is performed on the storage device to write data into the storage device, and the data written into the storage device needs to be cleared in an erasing manner, so that the write operation of the application program can increase the erasing times of the storage device, the storage device of the terminal device is configured with an erasing times threshold when leaving a factory, and when the erasing times of the storage device of the terminal device reaches the erasing times threshold, the reliability of the storage device can be reduced, so that the data stored in the storage device can be easily damaged. Therefore, when the application program performs the writing operation, the service life of the storage device is lost, and the service life loss of the storage device configured by the application program to the terminal device can be determined by acquiring the written data information of each application program.
Further, the data information may include a write data time, an application name performing a write operation, and a data block size. In addition, the data information may also include data content, data format, and the like. The obtaining of the write data information of each application program in the target application program set within the preset time length refers to obtaining each application program executing the write operation within the preset time length and write data corresponding to each write operation executed by each application program, forming a target application program set according to all the obtained application programs, and associating each obtained write data with the application program executing the write operation. For example, the application a performs a write operation within a preset time duration, the write data corresponding to the write operation is 123456, then the application a belongs to the target application set, and the application corresponding to the write data 123456 is application a. The preset time period is preset, for example, 200 hours and the like.
Further, in an implementation manner of this embodiment, as shown in fig. 2 and 3, the obtaining write data information of each application program in a target application program set within a preset duration may be implemented by a data write monitoring module, where the data write monitoring module may be a functional module created in advance and configured in a terminal device, for example, the data write monitoring module is a functional module implanted in a system kernel (kernel) storage device, and when an upper layer application executes a write operation, the data write monitoring module monitors the write operation, obtains a write data time, an application name, and a data block size corresponding to the write operation, and stores the obtained write data time, the obtained application name, and the obtained data block size in a data report form. The data report can be preset and stored in a memory of the terminal device, and when the data writing monitoring module obtains the data writing time, the application name and the data block size, the data writing time, the application name and the data block size are output to the data report stored in the memory terminal, so that the data writing time, the application name and the data block size are stored in the data report through the data report.
And S20, determining the service life loss of the storage device configured by each application program for the terminal device according to the acquired write data information.
Specifically, the life loss refers to the loss of the service life of the storage device caused by the application program within a preset time length. The service life loss corresponding to each application program is calculated according to all written data information corresponding to the application program in a preset time length. In addition, when calculating the life loss of the storage device configured by each application program for the terminal device, it is necessary to obtain the model parameters of the storage device stored in advance, so as to determine the life loss corresponding to each application program according to the model parameters and the write data information corresponding to each application program. In addition, in a possible implementation manner of this embodiment, the model parameter includes at least one data group, each data group may include a data block size, a total number of times of writing, and a total amount of writing, and the data block sizes in the data groups are different from each other. The data block size indicates a data amount of write data by one write operation, the total number of writes indicates a maximum number of write operations that can be received in the case of writing only the data block size, and the total number of writes indicates a maximum data amount of write data that can be received in the case of writing only the data block size.
Correspondingly, in an implementation of this embodiment, the determining, according to the obtained written data information, a lifetime loss of the storage device configured by each application program for the terminal device specifically includes:
s21, acquiring the life parameters of the storage device configured by the terminal device;
and S22, determining the life loss of each application program to the storage device according to the write data information corresponding to the application program and the life parameter.
Specifically, the written data information corresponding to the application program may be one piece of written data information, or may be multiple pieces of written data information, and when the written data information is one piece of written data information, the size of a first data block in the written data information is read, the size of the first data block is determined, a first data group corresponding to the size of the first data block is searched for in a lifetime parameter, and the lifetime loss of the application program to the storage device is calculated according to the size of the first data block and a total amount written in the first data group, where the lifetime loss is the size of the first data block/the total amount written.
In addition, when the written data information is multiple pieces, as shown in fig. 4, for each piece of written data information, the application name and the second data block size corresponding to the written data are read, and the second data block size is compared with the data block size in each data group in the lifetime parameter to determine the data block size corresponding to the second data block size, and the second data block size is accumulated to the write amount corresponding to the data block size of the application program, and the number of writes corresponding to the data block size of the application program is increased by one. Therefore, after all the written data information is completely executed, the number of times of executing the writing of each data block size by each application program and the writing amount corresponding to each data block size can be determined, and the service life loss corresponding to each application program can be calculated according to the number of times of executing the writing and the writing amount. In one possible implementation manner of this embodiment, the formula for calculating the life loss corresponding to the application program may be:
Figure BDA0002306972820000091
wherein QP represents the life loss of the application, PiIndicating a data block size QiA corresponding write amount; miData block size Q in the life parameteriThe corresponding total write amount, i is a positive integer, i is 1.
For example, the following steps are carried out: it is assumed that the lifetime parameters of the storage device are shown in table 1, the write information of the application P1 is shown in table 2, the write information of the application P2 is shown in table 3, and the write information of the application P3 is shown in table 4.
TABLE 1 storage device lifetime parameters
Data block size Write busVolume (GByte) Total number of writes
Q1 40 N1
Q2 80 N2
Q3 131 N3
Q4 230 N4
Q5 318 N5
Q6 520 N6
Q7 735 N7
Q8 864 N8
Table 2 write information of application 1
Data write accumulation Total write (GByte)
APP1-P1 0.102
APP1-P2 0.209
APP1-P3 0.13
APP1-P4 0.309
APP1-P5 0.8
APP1-P6 0.205
APP1-P7 0.5
APP1-P8 0.4
Table 3 write information of application 2
Data writingIn accumulation Total write (GByte)
APP2-P1 1.809
APP2-P2 0.21
APP2-P3 0.11
APP2-P4 0.3
APP2-P5 0.801
APP2-P6 0.2
APP2-P7 0.15
APP2-P8 0.14
Table 4 write information of application 3
Data write accumulation Total write (GByte)
APP3-P1 0.02
APP3-P2 0.02
APP3-P3 0.03
APP3-P4 0.3
APP3-P5 0.7
APP3-P6 0.269
APP3-P7 0.509
APP3-P8 0.4
Then, the life loss QP of the application P1 can be obtained according to the formula for calculating the life loss corresponding to the application1Comprises the following steps:
QP1=0.102/40+0.209/80+0.13/131+0.309/230+0.8/318+0.205/520+0.5/735+0.4/864=0.011551534。
the life loss QP of the application P2 can be calculated2To 0.053263644, the life loss QP of application P33Is 0.006157401.
Further, in an implementation manner of this embodiment, the life loss corresponding to each application may be calculated by a data analysis module, and the data analysis module may be pre-stored in the terminal device, and is responsible for performing summary analysis on the write data information of the application provided by the write monitoring module, and calculating, by combining with the model data, whether the data write amount of the current entire system and the write amount of a single application are normal. Of course, it should be noted that the processing of the data analysis module is the same as the life loss process of each application program, and is not described herein again.
In addition, for different storage devices, the service life loss of the written data information to the storage device is different, so that when the service life loss of the storage device configured by each application program to the terminal device is calculated, the storage device information configured by the terminal device can be obtained first, and the service life parameter corresponding to the storage device is determined according to the device information. Correspondingly, in an implementation manner of this embodiment, the obtaining of the lifetime parameter of the storage device configured by the terminal device specifically includes:
acquiring equipment information of a storage device configured by the terminal equipment;
and searching a life parameter corresponding to the equipment information in a preset life parameter database according to the equipment information, wherein the life parameter corresponding to the equipment information is stored in the life parameter database.
Specifically, the device information refers to a device model of the storage device, for example, the device information is TSB 8G or the like. The service life parameter database is preset and is used for storing service life parameters corresponding to storage equipment of each equipment type. The service life parameter database comprises a plurality of data strips, and each data strip comprises an equipment model, an equipment manufacturer and model data. For example, the lifetime parameter database is a data list as shown in table 5, and each row in the data list is a data bar.
TABLE 5 Life parameter database
Manufacturer of the products Model number Model data
Toshiba TSB 8G… 46,80,131,230,318,520,735,864
Toshiba TSB 16G… 123,246,436,701,1035,1510,2130,2450
Three stars SUM 8G…
Three stars SUM 16G…
The model data in each data strip in the lifetime parameter database includes data of which the data block size can be written into the storage device data under the device signal, for example, 46,80,131,230,318,520,735,864 represents the storage device of TSB 8G of toshiba, and when a write operation is performed on the storage device, the data size that can be written into the storage device by each write operation may be one of 46,80,131,230,318,520,735, 864. In addition, each data block size in the model data corresponding to each piece of device information corresponds to one data group, the data block size is a data group identifier of the corresponding data group, the data group corresponding to the data group identifier includes the data block size, the total number of writes, and the data groups corresponding to all the data block sizes in the model data corresponding to the piece of device information constitute the lifetime parameter corresponding to the piece of device information.
Further, in an implementation manner of this embodiment, the model data may be generated by a lifetime model module, where the lifetime model module is used to determine a lifetime model of the storage device, the lifetime model refers to a curve model of lifetime loss of the storage devices with different capacities when writing data of different data block sizes, and the model data is generated by a lifetime model establishing process. The life model stores model information of a plurality of signal storage devices, and after the device information of the storage device of the terminal device is transmitted to the life model module, model data of the storage device can be extracted. The model data stored in the life model may be obtained by using a plurality of platform samples for automated testing, as shown in fig. 5, the automated testing may be performed by: the program repeatedly writes data with the data block size of Q1 and Q2 … Qn, obtains the number of times of writing, simultaneously obtains the service life change condition of the storage device, changes the size of the written data block when the data writing reaches the preset value of the service life change, then enters the writing operation until the size of all the data blocks is tested, and outputs a test report. The preset life change value is preset, for example, the preset life change value is 10%, so that the test time of the life parameter of the storage device can be shortened.
And S30, determining the estimated service life of the storage device according to the determined service life losses.
Specifically, the estimated usage time is a time that the storage device can be used when each application program in the target application program set is continuously executed. The estimated service life is determined according to the service life loss corresponding to each application program and the preset time for acquiring the written data information, because the total service life loss in the preset time can be calculated after the service life loss of each application is acquired, and the estimated service life can be calculated according to the total service life loss and the preset time. Correspondingly, in an implementation manner of this embodiment, the determining the estimated usage time of the storage device according to the determined life losses specifically includes:
s31, calculating the total life loss of all the application programs to the storage device according to the determined life losses;
and S32, determining the estimated service life of the storage device according to the total service life loss.
Specifically, the total lifetime loss represents the sum of the lifetime losses of all the applications in the target application set to the storage device within a preset time period, for example, the lifetime loss of a single application is QP, then the total lifetime loss is:
Figure BDA0002306972820000131
wherein j is the jth application in the target application set, m represents the total number of all applications in the target application set, and QPjThe corresponding life loss of the jth application in the target application set is obtained. In addition, after determining the total life loss of all the applications in the first application, the estimated service life may be determined according to the total life loss and the preset time. In one possible implementation manner of this embodiment, the total life loss of the storage device is 1, so that there is an estimated time duration: 1 is a preset time length: the estimated service life duration/total life loss can be obtained. Of course, in practical application, the estimated service life may be calculated according to a preset value of the life change of the test life parameter, specifically, the first estimated service life when the life change of the storage device reaches the preset value of the life change may be calculated according to the preset time length and the total life loss, and then the estimated service life may be determined according to the corresponding relationship between the preset value of the life change and the life value. For example, if the life of the storage device changes by 10% from the preset life change value at 281 hours, which is calculated from the total life loss and the preset duration, it can be determined that the designed service life of the storage device can be reached after 2810 hours from 10% of the preset life change value. If the terminal device is operated for 8 hours per day on average, the storage device is operated after about 351 daysThe useful life expires.
And S40, when the estimated service life is less than the set service life corresponding to the storage device, processing the application program to be processed until the estimated service life is greater than or equal to the set service life, wherein the application program to be processed is the application program of which the service life loss corresponding to the target application program set meets the preset condition.
Specifically, the set service life is the preset design service life of the storage device, that is, when the operating time of the storage device reaches the set service life, the storage device reaches the service life of the storage device. The estimated use duration is less than the set use duration, which indicates that the storage device is damaged when the storage device does not reach the set use duration according to the continuous operation of each application program in the first application program. The preset condition is that the life loss of the application program to be processed is greater than or equal to a first preset life loss threshold, where the first preset life loss threshold may be preset or determined according to the calculated life loss of each application program.
Further, in an implementation manner of this embodiment, the first preset lifetime loss threshold is determined according to the lifetime loss of each application program obtained through calculation, where the first preset lifetime threshold is the lifetime loss corresponding to the application program with the largest lifetime loss in the target application program set. That is to say, the life loss corresponding to the application program to be processed is the application program with the largest life loss of the target application program set to the storage device. Thus, in one possible implementation manner of this embodiment, as shown in fig. 6, the processing the application to be processed, where the processing the application to be processed for the application whose lifetime loss corresponding to the target application set meets the preset condition specifically includes:
comparing the life losses corresponding to the application programs to determine a first application program with the largest life loss;
and taking the first application program as an application program to be processed, and processing the application program to be processed.
Specifically, comparing the life losses corresponding to the application programs, comparing the life losses of the application programs one by one, so as to sort the life losses of the application programs from large to small, and selecting the application program at the first position according to the sort from large to small, while taking the first application program as the application program to be processed. In addition, after the application program to be processed is obtained, whether the estimated use time corresponding to the target application program set from which the application program to be processed is removed reaches the set use time can be directly re-determined, and the step of obtaining the write-in data information of each application program in the target application program set from which the application program to be processed is removed can also be continuously performed. Correspondingly, in an implementation manner of this embodiment, the processing the application to be processed specifically includes:
removing the application programs to be processed in the target application program set so as to update the target application program set;
continuing to execute the operation of obtaining the written data information of each application program in the target application program set within the preset time length, or executing the operation of updating the estimated service time length according to the service life loss of each application program in the target application program;
and when the estimated use duration after updating is less than the set use duration corresponding to the storage device, continuously executing the step of removing the application program to be processed in the target application program set.
Specifically, the target application program is updated to remove the application program to be processed contained in the target application program set. After the application programs to be processed in the target application program set are removed, the operation of obtaining the written data information of each application program in the target application program set within the preset time length can be continuously executed, and the operation of updating the estimated service life according to the service life loss of each application program in the target application program can also be executed.
In one implementation manner of this embodiment, after removing the application to be processed in the target application set, the operation of updating the estimated usage time according to the lifetime loss of each application in the target application set is performed, then the updated estimated usage time corresponding to the target application set may be determined according to each application in the updated target application set, the updated estimated usage time is used to update the estimated usage time for comparison with the set usage time, the updated estimated usage time is compared with the set usage time, and the step of removing the application to be processed in the target application set is continuously performed when the updated estimated usage time is less than the corresponding set usage time of the storage device, so that the execution steps of the application to be processed may be reduced, and the efficiency of acquiring the application to be processed may be improved, meanwhile, the loss of the memory of the terminal equipment is reduced.
In addition, in an implementation manner of this embodiment, after removing the application to be processed in the target application, an operation of obtaining the write data information of each application in the target application set within a preset time is performed, so that the life loss of each application in the target application to the storage device may be obtained again, and the write data information used for determining the life loss is matched with the write data information that occurs at the determined time, thereby improving the accuracy of the estimated use time. After the application program to be processed in the target application program is removed, the operation of obtaining the written data information of each application program in the target application program set within the preset time length may be executed again at an interval of a specified time.
Further, in an implementation manner of this embodiment, as shown in fig. 7, the processing the application program to be processed specifically includes:
comparing the life loss corresponding to the application program to be processed with a second preset life loss threshold value;
when the life loss corresponding to the application program to be processed is greater than or equal to the second preset life loss threshold value, stopping the application program to be processed, and prompting that the application program to be processed is stopped;
and when the life loss corresponding to the application program to be processed is smaller than the second preset life loss threshold value, keeping the application program to be processed running, and generating prompt information for prompting the application program to be processed.
Specifically, the second preset life loss threshold is a preset threshold used for determining whether to stop the application program. After executing a corresponding operation according to a result of comparing the life loss corresponding to the application program to be processed with the second preset life loss threshold, as shown in fig. 7, for the control information input by the operation, after forcibly stopping the application program to be processed, the control information for recovering the application program to be processed may be received, and when the control information for recovering the application program to be processed is received, the application program to be processed is recovered and the application program to be processed is acquired; the control information for stopping the application to be processed may be received after the prompt information for prompting the application to be processed is generated, and the abnormal application information may be stopped when the control information for stopping the application to be processed is received. The control information may be input by a user through a terminal device, may be sent by an external device connected to the terminal device, and may also be sent by a remote control device for controlling the terminal device. Of course, it should be noted that, after determining the application program to be processed, processing the application program may be to directly stop the application program to be processed and prompt that the application program to be processed has stopped.
Further, in an implementation manner of this embodiment, the terminal device may further be configured with a result processing module and a UI display module, where the result processing module is connected to the data analysis module, receives an analysis result sent by the data analysis module, and determines whether to process the application according to the product design life parameter, where the processing operation includes: prompting the existence of data abnormal writing application, forcibly stopping abnormal application, operating according to selection, and the like. The UI display module is used for displaying the processing information of the result processing module. In addition, the processing procedures of the result processing module and the UI display module are the same as the processing procedure of step S40, and are not described herein again.
In summary, the present embodiment provides a control method for a terminal device, where the method monitors write data information of all application programs in a preset time, determines life loss of all application programs to a storage device in the preset time according to a write data signal, estimates whether the service life of the storage device can reach a set service life according to the life loss, and selects an application program with large life loss to the storage device from the application programs that write data in the preset time when the service life cannot reach the set service life, and processes the found application program, so as to avoid that the application program continues to life-lose the service life of the storage device, thereby prolonging the service life of the storage device and further improving the product quality of the terminal device.
Based on the control method of the terminal device described above, the present embodiment provides a computer-readable storage medium storing one or more programs, which are executable by one or more processors, to implement the steps in the control method of the terminal device described above in the embodiments.
Based on the control method of the terminal device, the present invention further provides a terminal device, as shown in fig. 8, which includes at least one processor (processor) 20; a display screen 21; and a memory (memory)22, and may further include a communication Interface (Communications Interface)23 and a bus 24. The processor 20, the display 21, the memory 22 and the communication interface 23 can communicate with each other through the bus 24. The display screen 21 is configured to display a user guidance interface preset in the initial setting mode. The communication interface 23 may transmit information. The processor 20 may call logic instructions in the memory 22 to perform the methods in the embodiments described above.
Furthermore, the logic instructions in the memory 22 may be implemented in software functional units and stored in a computer readable storage medium when sold or used as a stand-alone product.
The memory 22, which is a computer-readable storage medium, may be configured to store a software program, a computer-executable program, such as program instructions or modules corresponding to the methods in the embodiments of the present disclosure. The processor 20 executes the functional application and data processing, i.e. implements the method in the above-described embodiments, by executing the software program, instructions or modules stored in the memory 22.
The memory 22 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal device, and the like. Further, the memory 22 may include a high speed random access memory and may also include a non-volatile memory. For example, a variety of media that can store program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, may also be transient storage media.
In addition, the specific processes loaded and executed by the storage medium and the instruction processors in the terminal device are described in detail in the method, and are not stated herein.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A control method of a terminal device, characterized by comprising:
acquiring written data information of each application program in a target application program set within a preset time length;
determining the service life loss of each application program to the storage equipment configured by the terminal equipment according to the obtained written data information;
determining the estimated service life of the storage equipment according to the determined service life loss;
and when the estimated service life is less than the set service life corresponding to the storage device, processing the application program to be processed until the estimated service life is greater than or equal to the set service life, wherein the application program to be processed is the application program of which the service life loss corresponding to the target application program set meets the preset condition.
2. The method according to claim 1, wherein the determining, according to the obtained pieces of write data information, the life loss of the storage device configured by each application program for the terminal device specifically includes:
acquiring a service life parameter of a storage device configured by the terminal device;
and aiming at each application program, determining the life loss of the application program to the storage device according to the write data information corresponding to the application program and the life parameter.
3. The method for controlling a terminal device according to claim 2, wherein the obtaining of the lifetime parameter of the storage device configured by the terminal device specifically comprises:
acquiring equipment information of a storage device configured by the terminal equipment;
and searching a life parameter corresponding to the equipment information in a preset life parameter database according to the equipment information, wherein the life parameter corresponding to the equipment information is stored in the life parameter database.
4. The method for controlling a terminal device according to any one of claims 1 to 3, wherein the determining the estimated usage time of the storage device according to the determined life losses specifically includes:
calculating the total life loss of all the application programs to the storage equipment according to the determined life losses;
and determining the estimated service life of the storage equipment according to the total service life loss.
5. The method for controlling a terminal device according to any one of claims 1 to 3, wherein the predetermined condition is that the lifetime loss of the application to be processed is greater than or equal to a first predetermined lifetime loss threshold.
6. The method according to claim 5, wherein the first preset life loss threshold is life loss corresponding to an application program with the largest life loss in the target application program set; the processing of the application program to be processed specifically includes:
removing the application programs to be processed in the target application program set so as to update the target application program set;
continuing to execute the operation of obtaining the written data information of each application program in the target application program set within the preset time length, or executing the operation of updating the estimated service time length according to the service life loss of each application program in the target application program;
and when the estimated use duration after updating is less than the set use duration corresponding to the storage device, continuously executing the step of removing the application program to be processed in the target application program set.
7. The method according to claim 1, wherein the processing the application to be processed specifically comprises:
comparing the life loss corresponding to the application program to be processed with a second preset life loss threshold value;
when the life loss corresponding to the application program to be processed is greater than or equal to the second preset life loss threshold value, stopping the application program to be processed, and prompting that the application program to be processed is stopped;
and when the life loss corresponding to the application program to be processed is smaller than the second preset life loss threshold value, keeping the application program to be processed running, and generating prompt information for prompting the application program to be processed.
8. The method according to claim 1, wherein the processing the application to be processed specifically comprises:
and stopping the application program to be processed.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium stores one or more programs which are executable by one or more processors to implement the steps in the control method of the terminal device according to any one of claims 1 to 8.
10. A terminal device, comprising: a processor, a memory, and a communication bus; the memory has stored thereon a computer readable program executable by the processor;
the communication bus realizes connection communication between the processor and the memory;
the processor, when executing the computer readable program, implements the steps in the control method of the terminal device according to any one of claims 1 to 8.
CN201911243826.XA 2019-12-06 2019-12-06 Control method of terminal equipment, storage medium and terminal equipment Active CN112925474B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911243826.XA CN112925474B (en) 2019-12-06 2019-12-06 Control method of terminal equipment, storage medium and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911243826.XA CN112925474B (en) 2019-12-06 2019-12-06 Control method of terminal equipment, storage medium and terminal equipment

Publications (2)

Publication Number Publication Date
CN112925474A true CN112925474A (en) 2021-06-08
CN112925474B CN112925474B (en) 2023-05-23

Family

ID=76161810

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911243826.XA Active CN112925474B (en) 2019-12-06 2019-12-06 Control method of terminal equipment, storage medium and terminal equipment

Country Status (1)

Country Link
CN (1) CN112925474B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114035466A (en) * 2021-11-05 2022-02-11 肇庆高峰机械科技有限公司 Control system of duplex position magnetic sheet arrangement machine

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110191071A1 (en) * 2010-01-29 2011-08-04 Mark Sarkisian Carbon footprint analysis tool for structures
CN103514958A (en) * 2012-12-31 2014-01-15 Tcl集团股份有限公司 Method for detecting service life of EMMC (embedded multi-media card) chip
US20140201576A1 (en) * 2013-01-17 2014-07-17 Dell Products L.P. System and Method for Improving Solid State Storage System Reliability
CN106484472A (en) * 2016-09-29 2017-03-08 华为技术有限公司 A kind of method for recovering internal storage and terminal
CN107908336A (en) * 2017-11-13 2018-04-13 平安科技(深圳)有限公司 Method for refreshing, device, storage medium and the terminal of list control
CN108170548A (en) * 2017-12-27 2018-06-15 深圳Tcl新技术有限公司 Processing method, device and the computer readable storage medium of terminal data write-in

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110191071A1 (en) * 2010-01-29 2011-08-04 Mark Sarkisian Carbon footprint analysis tool for structures
CN103514958A (en) * 2012-12-31 2014-01-15 Tcl集团股份有限公司 Method for detecting service life of EMMC (embedded multi-media card) chip
US20140201576A1 (en) * 2013-01-17 2014-07-17 Dell Products L.P. System and Method for Improving Solid State Storage System Reliability
CN106484472A (en) * 2016-09-29 2017-03-08 华为技术有限公司 A kind of method for recovering internal storage and terminal
CN107908336A (en) * 2017-11-13 2018-04-13 平安科技(深圳)有限公司 Method for refreshing, device, storage medium and the terminal of list control
CN108170548A (en) * 2017-12-27 2018-06-15 深圳Tcl新技术有限公司 Processing method, device and the computer readable storage medium of terminal data write-in

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114035466A (en) * 2021-11-05 2022-02-11 肇庆高峰机械科技有限公司 Control system of duplex position magnetic sheet arrangement machine

Also Published As

Publication number Publication date
CN112925474B (en) 2023-05-23

Similar Documents

Publication Publication Date Title
US20150127961A1 (en) Method, device, platform, and mobile terminal for recording and analyzing battery power of a mobile terminal
CN109669798B (en) Crash analysis method, crash analysis device, electronic equipment and storage medium
US20180260298A1 (en) Method and Device for Reporting Mobile Terminal Behaviors
CN111666187B (en) Method and apparatus for detecting abnormal response time
CN104346264A (en) System and method for processing system event logs
CN111341090A (en) Bluetooth remote controller pressure measurement method, control device and computer readable storage medium
CN110389890B (en) Updating and maintaining method and device for public use case library and computer equipment
CN103150253A (en) Method and system for duration performance testing
CN112925474A (en) Terminal device control method, storage medium and terminal device
CN111078497A (en) Data storage method, equipment and storage medium of BMC (baseboard management controller)
CN113050020B (en) Out-of-tolerance event recording method and device for double-core intelligent ammeter and computer equipment
US8099626B2 (en) Recovery method management device, recovery method management method and computer product for recovering a failure of IT system
CN111897283B (en) Programmable logic controller software element monitoring method, system and storage medium
CN106294364B (en) Method and device for realizing web crawler to capture webpage
CN111897737B (en) Missing detection method and device for program test of micro-service system
CN110598797B (en) Fault detection method and device, storage medium and electronic device
CN109633331B (en) Data storage method and fault recording device
CN115391110A (en) Test method of storage device, terminal device and computer readable storage medium
KR102096085B1 (en) Apparatus and method for monitoring application
US20200065008A1 (en) Method of monitoring memory usage and substrate processing apparatus
JP2009277110A (en) Software test/development support device, and program for device
CN112731102B (en) Liquid crystal display television backlight fault detection method
CN110659125A (en) Analysis task execution method, device and system and electronic equipment
US9842064B2 (en) Electronic apparatus and management method thereof
CN109445877B (en) Method for detecting same virtual machine used by multiple threads of game server

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
GR01 Patent grant
GR01 Patent grant