CN112925474B - Control method of terminal equipment, storage medium and terminal equipment - Google Patents

Control method of terminal equipment, storage medium and terminal equipment Download PDF

Info

Publication number
CN112925474B
CN112925474B CN201911243826.XA CN201911243826A CN112925474B CN 112925474 B CN112925474 B CN 112925474B CN 201911243826 A CN201911243826 A CN 201911243826A CN 112925474 B CN112925474 B CN 112925474B
Authority
CN
China
Prior art keywords
application program
processed
service life
data
life loss
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911243826.XA
Other languages
Chinese (zh)
Other versions
CN112925474A (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 writing data information of all application programs in preset time, determines service life loss of the storage equipment by all application programs in the preset time according to writing data signals, predicts whether the service life of the storage equipment can reach a set service life according to the service life loss, selects the application program with large service life loss of the storage equipment when the service life cannot reach the set service life, and processes the application program, thereby avoiding the service life of the storage equipment from being continuously lost by the application program, prolonging the service life of the storage equipment and improving the product quality of the terminal equipment.

Description

Control method of terminal equipment, storage medium and terminal equipment
Technical Field
The present invention relates to the field of intelligent terminals, and in particular, to a control method of a terminal device, a storage medium, and a terminal device.
Background
The storage device is an important component of electronic devices (such as televisions, mobile phones, etc.), and is used for storing system programs, data and other resources. Each storage device is configured with a erasing period, and after the erasing period of the storage device reaches a predetermined number of times, the reliability of the data stored by the storage device is degraded, and the situation of data corruption is easy to occur. However, with the situation that the operating system of the electronic product is more and more complex and the number of application programs is more and more, the number of writing operations performed on the storage device by the electronic device in the use process is increasing, and even some applications can write a large amount of data into the storage device in order to realize functions (for example, using the storage device space as a buffer memory, etc.), so that the erasing period of the storage device reaches the preset number of times in a short time, which causes damage to the storage device, shortens the service life of the storage device, and further affects the quality of the electronic device.
There is thus a need for improvements and improvements in the art.
Disclosure of Invention
The invention aims to solve the technical problem that the service life of the terminal equipment is influenced by excessive writing operation of an application program in the existing terminal equipment.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows:
a control method of a terminal device, comprising:
acquiring write-in data information of each application program in a target application program set within a preset duration;
determining the service life loss of storage equipment configured by each application program to the terminal equipment according to the acquired write-in data information;
determining the estimated use time of the storage device according to the determined life loss;
and when the estimated use time length is smaller than the set use time length corresponding to the storage device, processing the application program to be processed until the estimated use time length is greater than or equal to the set use time length, wherein the application program to be processed is an application program of which the service life loss corresponding to the target application program set meets the preset condition.
The method for controlling the terminal device, wherein the determining, according to the acquired write-in data information, the lifetime loss of the storage device configured by each application program for the terminal device, includes:
acquiring life parameters of storage equipment configured by terminal equipment;
and for each application program, determining the service life loss of the application program to the storage device according to the written data information corresponding to the application program and the service life parameter.
The method for controlling the terminal device, wherein the service life parameter of the storage device configured by the terminal device is specifically:
acquiring equipment information of storage equipment configured by the terminal equipment;
and searching life parameters corresponding to the equipment information in a preset life parameter database according to the equipment information, wherein the life parameters corresponding to the equipment information are stored in the life parameter database.
The method for controlling the terminal device, wherein the determining the estimated service life of the storage device according to the determined life loss specifically includes:
calculating the total life loss of all application programs to the storage device according to the determined life loss;
and determining the estimated use time length of the storage equipment according to the total life loss.
The control method of the terminal equipment, wherein the preset condition is that the service life loss of the application program to be processed is larger than or equal to a first preset service life loss threshold value.
The control method of the terminal equipment, wherein the first preset life loss threshold is the life loss corresponding to the application program with the largest life loss in the target application program set; the processing of the application program to be processed specifically comprises the following steps:
removing the application program to be processed in the target application program set so as to update the target application program set;
continuously executing the operation of acquiring the written data information of each application program in a target application program set within a preset duration, or executing the operation of updating the estimated use duration according to the service life loss of each application program in the target application program;
and when the estimated use time length after updating is smaller than the set use time length corresponding to the storage equipment, continuing to execute the step of removing the application programs to be processed in the target application program set.
The method for controlling 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;
stopping the application program to be processed and prompting that the application program to be processed is stopped when the service life loss corresponding to the application program to be processed is greater than or equal to the second preset service life loss threshold value;
and when the service life loss corresponding to the application program to be processed is smaller than the second preset service life loss threshold value, keeping the application program to be processed to run, and generating prompt information for prompting the application program to be processed.
The method for controlling the terminal device, wherein the processing the application program to be processed specifically includes:
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 executable by one or more processors to implement steps in a method of controlling 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 method for controlling a terminal device as described in any one of the above.
The beneficial effects are that: compared with the prior art, the invention provides a control method of terminal equipment, which comprises the steps of monitoring the written data information of all application programs in preset time, determining the service life loss of the storage equipment by all application programs in the preset time according to written data signals, predicting whether the service life of the storage equipment can reach the set service life according to the service life loss, selecting an application program to be processed meeting preset conditions from the application programs which are written with data in the preset time when the service life cannot be set, processing the searched application program to be processed, and avoiding the application program to continue to consume the service life of the storage equipment, thereby prolonging 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 by the present invention.
Fig. 2 is a flow chart of a control method of a terminal device provided by the invention.
Fig. 3 is a schematic diagram of a determining process of writing data information in the control method of a terminal device provided by the present invention.
Fig. 4 is a flowchart of a total lifetime loss calculation process in the control method of the terminal device provided by the present invention.
Fig. 5 is a flowchart of a process for obtaining model parameters 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 abnormal application occurrence processing in the control method of a terminal device provided by the present invention.
Fig. 8 is a schematic structural diagram of a terminal device provided by the present invention.
Detailed Description
The invention provides a control method of terminal equipment, a storage medium and the terminal equipment, and in order to make the purposes, technical schemes and effects of the invention clearer and more definite, the invention is further described in detail below by referring to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless expressly stated otherwise, as understood by those skilled in the art. 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. The term "and/or" as used herein includes all or any element and all combination of one or more of the associated listed items.
It will be understood by those skilled in the art that 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 unless defined otherwise. 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 finds that each storage device is configured with a erasing period, and after the erasing period of the storage device reaches a preset number of times, the reliability of the storage device for storing data is deteriorated, and the situation of data corruption is easy to occur. However, the number of times of writing operation on the storage device by the electronic device is increasing in the use process, and frequent writing operation can enable the erasing period of the storage device to reach the preset number of times in a short time, so that the storage device is damaged, the service life of the storage device is shortened, and the quality of the electronic device is affected.
In order to solve the above problems, in the embodiment of the present invention, by monitoring the write-in data information of all the applications within a preset time, determining the life loss of all the applications to the storage device within the preset time according to the write-in data signal, and predicting whether the service life of the storage device can reach the set service life according to the life loss, when the service life cannot reach the set service life, searching the application program to be processed meeting the preset condition in the application program writing in the preset time, and processing the searched application program to be processed, thereby avoiding the application program from continuing to consume the service life of the storage device, and further prolonging the service life of the storage device and improving the product quality of the terminal device.
The embodiment of the invention can be applied to terminal equipment. In an application scenario applied to a terminal device, first, the terminal device may acquire write-in data information of each application program in a target application program set within a preset duration; determining the service life loss of storage equipment configured by each application program to the terminal equipment according to the acquired write-in data information; determining the estimated use time of the storage device according to the determined life loss; and when the estimated use time length is smaller than the set use time length corresponding to the storage equipment, determining an application program to be processed according to the service life loss corresponding to each application program, and processing the application program to be processed.
It may be understood that, in the above application scenario, although the actions of the embodiment of the present invention are described as being performed by the terminal device entirely, these actions may be performed by the server entirely or partially by the terminal device, or may be performed partially by the server (for example, the terminal device acquires write data information of each application program in the target application program set within a preset duration, and uploads the acquired write data information to the server, the server determines life loss of each application program for a storage device configured by the terminal device according to the write data information uploaded by the terminal device, determines an estimated use duration of the storage device according to the determined life loss, and sends the estimated use duration to the terminal device, where the estimated use duration is smaller than a set use duration corresponding to the storage device, and the terminal device processes the application program to be processed. The present invention is not limited to the execution subject, and may be executed by performing the operations disclosed in the embodiments of the present invention.
The invention will be further described by the description of embodiments with reference to the accompanying drawings.
The present embodiment provides a control method of a terminal device, as shown in fig. 1 and 2, where the method includes:
s10, acquiring write-in data information of each application program in a target application program set within a preset time period, wherein each application program in the target application program set executes write operation.
Specifically, the written data information refers to data information written into the memory when the application program performs a writing operation. When the application program executes the writing operation, the writing operation is generated on the storage device to write the data into the storage device, and the data written into the storage device needs to be cleared by erasing the storage device, so that the writing 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 the factory, and when the erasing times of the storage device of the terminal device is executed reach the erasing times threshold, the reliability of the storage device can be reduced, and the data stored in the storage device can be easily damaged. Thus, when the application program executes the writing operation, the service life of the storage device is lost, so that the service life loss of the application program to the storage device configured by the terminal device can be determined by acquiring the writing data information of each application program.
Further, the data information may include a write data time, an application name to perform a write operation, and a data block size. In addition, the data information may further include information such as data content, data format, and the like. The step of acquiring the write-in data information of each application program in the target application program set within the preset time period refers to acquiring each application program executing the write operation within the preset time period and the write-in data corresponding to each write operation executed by each application program, forming the target application program set according to all the acquired application programs, and associating the acquired write-in data with the application program executing the write operation. For example, when the application program a performs a write operation within a preset period of time, the write data corresponding to the write operation is 123456, and then the application program a belongs to the target application program set, and the application program corresponding to the write data 123456 is the application program a. The preset duration is preset, for example, 200 hours, etc.
Further, in one implementation manner of this embodiment, as shown in fig. 2 and 3, the obtaining of the write data information of each application program in the target application program set within the preset duration may be implemented by a data write monitor module, where the data write monitor module may be a function module that is created in advance and configured in a terminal device, for example, the data write monitor module is a function module implanted in a kernel (kernel) storage device, and when an upper application executes a write operation, the data write monitor 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, application name, and data block size in a data report form. The data report may be preset and stored in a memory of the terminal device, and when the data writing monitoring module obtains the writing data time, the application name and the data block size, the writing data time, the application name and the data block size are output to the data report stored in the memory terminal device, so that the writing data time, the application name and the data block size are stored through the data report.
S20, determining service life loss of storage devices configured by the application programs for the terminal equipment according to the acquired writing data information.
Specifically, the life loss refers to the loss of the service life of the storage device caused by the application program in a preset duration. The service life loss corresponding to each application program is calculated according to all the written data information corresponding to the application program in the preset time. In addition, when the life loss of the storage device configured by each application program for the terminal device is calculated, the model parameters of the storage device stored in advance need to be acquired, so that the life loss corresponding to each application program is determined according to the model parameters and the written data information corresponding to each application program. Wherein the model parameters are pre-stored, which are data information that can receive each writing data information during the service life of the storage device, and in one possible implementation manner of the present embodiment, the model parameters include at least one data group, and each data group may include a data block size, a total number of writing times, and a total writing amount, where the data block sizes in each data group are different from each other. The data block size represents the data amount of write data of one write operation, the total number of writes represents the 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 represents the maximum data amount of write data that can be received in the case of writing only the data block size.
Correspondingly, in one implementation of this embodiment, the determining, according to the obtained write data information, the lifetime loss of the storage device configured by each application program for each terminal device specifically includes:
s21, acquiring life parameters of storage equipment configured by the terminal equipment;
s22, for each application program, determining the service life loss of the application program to the storage device according to the written data information corresponding to the application program and the service life parameter.
Specifically, the number of the write data information corresponding to the application program may be one or more, when the number of the write data information is one, a first data block size in the write data information is read, a first data group corresponding to the first data block size is found in a lifetime parameter according to the first data block size, and lifetime loss of the application program to the storage device is calculated according to the first data block size and the total write amount in the first data group, where the lifetime loss=the first data block size/the total write amount.
In addition, when the written data information is plural, 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, the second data block size is compared with the data block sizes in each data group in the lifetime parameter, so as to determine the data block size corresponding to the second data block size, the second data block size is accumulated to the writing amount corresponding to the data block size of the application program, and the number of writing times corresponding to the data block size of the application program is increased by one. Therefore, after all the written data information is executed, the number of times that each application program executes the writing of each data block size and the writing quantity corresponding to each data block size can be determined, and the service life loss corresponding to each application program is calculated according to the number of times of writing and the writing quantity. In one possible implementation manner of this embodiment, the calculation formula of the lifetime loss corresponding to the application program may be:
Figure BDA0002306972820000091
wherein QP represents life loss of application program, P i Representing the data block size Q i Corresponding writing quantity; m is M i Representing data block size Q in lifetime parameter i The corresponding total written amount, i, is a positive integer, i=1,..n, n is the number of data block sizes in the lifetime parameter.
Illustrating: assuming that the lifetime parameter of the storage device is shown in table 1, the writing information of the application program P1 is shown in table 2, the writing information of the application program P2 is shown in table 3, and the writing information of the application program P3 is shown in table 4.
Table 1 lifetime parameters of storage devices
Data block size Total written (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 written (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 write accumulation Total written (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 written (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 program P1 can be obtained according to the calculation formula of the life loss corresponding to the application program 1 The method comprises the following steps:
QP 1 =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 same can be used to calculate the lifetime loss QP of the application P2 2 For 0.053263644, the lifetime loss QP of application P3 3 0.006157401.
Further, in an implementation manner of this embodiment, the lifetime loss corresponding to each application program may be calculated by a data analysis module, where the data analysis module may be stored in the terminal device in advance, and is responsible for performing a summary analysis on the write data information of the application program provided by the write monitoring module, and calculating, in combination with the model data, whether the data write amount of the entire system and the write amount of the single application are normal at present. 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 will not be described herein.
In addition, for different storage devices, the service life loss of the storage devices by writing data information is different, so that when the service life loss of the storage devices configured by each application program for the terminal device is calculated, the storage device information configured by the terminal device can be acquired first, and the service life parameter corresponding to the storage device can be determined according to the device information. Correspondingly, in an implementation manner of this embodiment, the service life parameter of the storage device configured by the terminal device is specifically:
acquiring equipment information of storage equipment configured by the terminal equipment;
and searching life parameters corresponding to the equipment information in a preset life parameter database according to the equipment information, wherein the life parameters corresponding to the equipment information are stored in the life parameter database.
Specifically, the device information refers to a device model of the storage device, and for example, the device information is TSB 8G or the like. The life parameter database is preset and is used for storing life parameters corresponding to storage devices of all device models. The life parameter database comprises a plurality of data bars, and each data bar comprises a device model, a device manufacturer and model data. For example, the lifetime parameter database is a data list as shown in table 5, one for each activity in the data list.
Table 5 life parameter database
Manufacturer (S) Model number Model data
Toshiba (Toshiba) TSB 8G… 46,80,131,230,318,520,735,864
Toshiba (Toshiba) TSB 16G… 123,246,436,701,1035,1510,2130,2450
Three stars SUM 8G…
Three stars SUM 16G…
The data included in the model data in each data strip in the lifetime parameter database is a data block size of the data of the storage device, for example 46,80,131,230,318,520,735,864 represents a storage device of TSB 8G of toshiba, and when a write operation is performed on the storage device, the data size of the data can be written in each write operation at 46,80,131,230,318,520,735,864. In addition, each data block size in the model data corresponding to each piece of equipment information corresponds to a 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 comprises the data block size, the total writing times and the total writing times, and all the data groups corresponding to the data block sizes in the model data corresponding to the equipment information form the service life parameter corresponding to the equipment information.
Further, in an implementation manner of this embodiment, the model data may be passed through a lifetime model module, where the lifetime model module is used to determine a lifetime model of a storage device, where the lifetime model refers to a curve model of lifetime loss of storage devices with different capacities when writing different data block sizes, and the model data is generated by a lifetime model building process. The life model stores model information of a plurality of signal storage devices, and when the device information of the storage devices of the terminal devices is transmitted into the life model module, the model data of the storage devices can be extracted. The model data stored in the life model may be obtained through an automated test using a plurality of platform samples, as shown in fig. 5, and the process of the automated test may be: the program repeatedly writes the data with the data block sizes of Q1 and Q2 … Qn, acquires the writing times, acquires the service life change condition of the storage device, changes the size of the written data block when the data writing reaches the service life change preset value, and then enters the writing operation until all the data block sizes are tested, and outputs a test report. Wherein the lifetime change preset value is preset, for example, the lifetime change preset value is 10%, so that the testing duration of the lifetime parameter of the storage device can be shortened.
S30, determining estimated use time length of the storage device according to the determined life loss.
Specifically, the estimated use time period is a time period that the storage device can use in a case where each application program in the target application program set is continuously executed. The estimated use time length is determined according to the service life loss corresponding to each application program and the preset time length for acquiring the written data information, and is characterized in that after the service life loss of each application is acquired, the total service life loss in the preset time length can be calculated, and the estimated use time length can be calculated according to the total service life loss and the preset time length. Accordingly, in one implementation manner of this embodiment, the determining, according to the determined life loss, the estimated service life of the storage device specifically includes:
s31, calculating the total life loss of all application programs to the storage equipment according to the determined life loss;
s32, determining estimated use time length of the storage device according to the total life loss.
Specifically, the total lifetime loss represents the sum of lifetime losses of all applications in the target application program set to the storage device within a preset time period, for example, lifetime loss of a single application program is QP, and then the total lifetime loss is:
Figure BDA0002306972820000131
wherein j is the j-th application program in the target application program set, m represents the total number of all application programs in the target application program set, and QP j Is the first in the target application program setAnd the service life loss corresponding to j application programs. In addition, after determining the total lifetime loss of all the applications in the first application, the estimated use time period may be determined according to the total lifetime loss and the preset time. In one possible implementation manner of this embodiment, the total lifetime loss of the storage device is 1, so that there is a predicted time period: 1 = preset duration: total life loss may be estimated in use time length=preset time length/total life loss. Of course, in practical application, the estimated service life may be calculated according to the life change preset value of the test life parameter, and specifically, the first estimated service life when the life change of the storage device reaches the life change preset value 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 life change preset value and the life value. For example, when the life of the storage device is changed by 10% at 281 hours according to the total life loss and the preset time length, it can be determined that the designed service life of the storage device can be reached after 2810 hours according to the 10% life change preset value. If the terminal device works for an average of 8 hours per day, the lifetime of the storage device will expire after about 351 days.
And S40, when the estimated use time length is smaller than the set use time length corresponding to the storage device, processing the application program to be processed until the estimated use time length is greater than or equal to the set use time length, wherein the application program to be processed is an application program with the service life loss corresponding to the target application program set meeting the preset condition.
Specifically, the set use duration is a preset design use life of the storage device, that is, when the operation duration of the storage device reaches the set use duration, the storage device reaches the use life of the storage device. And the estimated use time length is smaller than the set use time length, which indicates that the storage device is damaged when the set use time length is not reached according to the continuous operation of each application program in the first application program. The preset condition is that the service life loss of the application program to be processed is greater than or equal to a first preset service life loss threshold, wherein the first preset service life loss threshold can be preset or determined according to the service life loss of each application program obtained through calculation.
Further, in an implementation manner of this embodiment, the first preset lifetime loss threshold is determined according to the calculated lifetime loss of each application program, where the first preset lifetime threshold is a lifetime loss corresponding to an application program with the largest lifetime loss in the target application program set. That is, the lifetime loss corresponding to the application to be processed is the application with the largest lifetime loss to the storage device in the target application set. Thus, in one possible implementation manner of this embodiment, as shown in fig. 6, the processing the application to be processed, where the application to be processed specifically includes:
comparing the service life loss corresponding to each application program to determine a first application program with the maximum service 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 loss corresponding to each application program one by one to order the life loss of each application program from large to small, and selecting the application program in the first position according to the order 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 length corresponding to the target application program set for removing the application program to be processed reaches the set use time length can be directly determined again, and the step of obtaining the written data information of each application program in the target application program set for removing the application program to be processed can also be continuously executed. Accordingly, in one implementation manner of this embodiment, the processing the application to be processed specifically includes:
removing the application program to be processed in the target application program set so as to update the target application program set;
continuously executing the operation of acquiring the written data information of each application program in a target application program set within a preset duration, or executing the operation of updating the estimated use duration according to the service life loss of each application program in the target application program;
and when the estimated use time length after updating is smaller than the set use time length corresponding to the storage equipment, continuing to execute the step of removing the application programs 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 in the preset duration can be continuously executed, and the operation of updating the estimated use duration 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 the application to be processed in the target application set is removed, the operation of updating the estimated use duration according to the lifetime loss of each application in the target application set is performed, so that the execution step of the application to be processed can be reduced, the efficiency obtained by the application to be processed can be improved, and the memory loss of the terminal device can be reduced.
In addition, in one implementation manner of this embodiment, after the application program to be processed in the target application program is removed, an operation of acquiring the write-in data information of each application program in the target application program set within the preset duration is performed, so that the life loss of each application program in the target application program to the storage device can be reacquired, so that the write-in data information for determining the life loss is matched with the write-in data information occurring in the implementation at the determination time, and thus the accuracy of the estimated use time is improved. After the application program to be processed in the target application program is removed, the operation of acquiring the written data information of each application program in the target application program set in the preset duration can be executed again after the specified time is set.
Further, in an implementation manner of this embodiment, as shown in fig. 7, the processing the application 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;
stopping the application program to be processed and prompting that the application program to be processed is stopped when the service life loss corresponding to the application program to be processed is greater than or equal to the second preset service life loss threshold value;
and when the service life loss corresponding to the application program to be processed is smaller than the second preset service life loss threshold value, keeping the application program to be processed to run, and generating prompt information for prompting the application program to be processed.
Specifically, the second preset lifetime loss threshold is a threshold set in advance and used for judging whether the application program needs to be stopped. After corresponding operation is executed according to the result of comparing the lifetime loss corresponding to the application to be processed with the second preset lifetime loss threshold, control information input for the operation can be received and recovered after the application to be processed is forcedly stopped, as shown in fig. 7, and when the control information for recovering the application to be processed is received, the application to be processed is recovered and the application to be processed is obtained; when the prompt information for prompting the application to be processed is generated, the control information for stopping the application to be processed may be received, and when the control information for stopping the application to be processed is received, the abnormal application information may be stopped. The control information may be input by the user through the terminal device, may be sent by an external device connected to the terminal device, may also be sent by a remote control device for controlling the terminal device, and the like. Of course, it should be noted that, after determining the application to be processed, processing the application may be directly stopping the application to be processed, and prompting that the application to be processed has been 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 an application according to a product design lifetime parameter, where the processing operation includes: and prompting the existence of data abnormal writing application, forcibly stopping the abnormal application, selecting operation 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 steps of step S40, and will not be described herein.
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, predicts whether the service life of the storage device can reach a set service life according to the life loss, selects an application program with large life loss to the storage device from the application programs which write data in the preset time when the service life cannot reach the set service life, and processes the application program, so as to avoid the application program from continuing to consume 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 above-described control method of the terminal device, the present embodiment provides a computer-readable storage medium storing one or more programs executable by one or more processors to implement the steps in the control method of the terminal device as described in the above-described embodiment.
Based on the control method of the terminal device, the invention also provides a terminal device, as shown in fig. 8, which comprises at least one processor (processor) 20; a display screen 21; and a memory (memory) 22, which may also include a communication interface (Communications Interface) 23 and a bus 24. Wherein the processor 20, the display 21, the memory 22 and the communication interface 23 may communicate with each other via a 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 invoke logic instructions in the memory 22 to perform the methods of the embodiments described above.
Further, the logic instructions in the memory 22 described above may be implemented in the form of software functional units and stored in a computer readable storage medium when sold or used as a stand alone product.
The memory 22, as 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 performs functional applications and data processing, i.e. implements the methods of the embodiments described above, by running software programs, instructions or modules stored in the memory 22.
The memory 22 may include a storage program area that may store an operating system, at least one application program required for functions, and a storage data area; the storage data area may store data created according to the use of the terminal device, etc. In addition, the memory 22 may include high-speed random access memory, and may also include nonvolatile memory. For example, a plurality of media capable of storing program codes such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or a transitory storage medium may be used.
In addition, the specific processes that the storage medium and the plurality of instruction processors in the terminal device load and execute are described in detail in the above method, and are not stated here.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the 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 scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (7)

1. A control method of a terminal device, characterized in that it comprises:
acquiring write-in data information of each application program in a target application program set within a preset duration;
determining the service life loss of storage equipment configured by each application program to the terminal equipment according to the acquired write-in data information;
determining the estimated use time of the storage device according to the determined life loss;
when the estimated use time length is smaller than the set use time length corresponding to the storage device, processing an application program to be processed until the estimated use time length is greater than or equal to the set use time length, wherein the application program to be processed is an application program of which the service life loss corresponding to the target application program set meets a preset condition;
the preset condition is that the service life loss of the application program to be processed is larger than or equal to a first preset service life loss threshold value;
the first preset life loss threshold value is the life loss corresponding to the application program with the largest life loss in the target application program set; the processing of the application program to be processed specifically comprises the following steps:
removing the application program to be processed in the target application program set so as to update the target application program set;
continuously executing the operation of acquiring the written data information of each application program in a target application program set within a preset duration, or executing the operation of updating the estimated use duration according to the service life loss of each application program in the target application program;
when the estimated use time length after updating is smaller than the set use time length corresponding to the storage equipment, continuing to execute the step of removing the application programs to be processed in the target application program set;
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;
stopping the application program to be processed and prompting that the application program to be processed is stopped when the service life loss corresponding to the application program to be processed is greater than or equal to the second preset service life loss threshold value;
when the service life loss corresponding to the application program to be processed is smaller than the second preset service 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 data information includes a write data time, an application program name for performing a write operation, a data block size, a data content, and a data format;
the method comprises the steps that the written data information of all application programs in a target application program set in a preset duration is obtained through a data writing monitoring module, and the data writing monitoring module is a functional module which is created in advance and configured in terminal equipment.
2. The method for controlling a terminal device according to claim 1, wherein determining, according to the acquired write data information, a lifetime loss of a storage device configured by each application program for the terminal device, respectively, specifically comprises:
acquiring life parameters of storage equipment configured by terminal equipment;
and for each application program, determining the service life loss of the application program to the storage device according to the written data information corresponding to the application program and the service life parameter.
3. The method for controlling a terminal device according to claim 2, wherein the lifetime parameter of the storage device configured by the terminal device is specifically:
acquiring equipment information of storage equipment configured by the terminal equipment;
and searching life parameters corresponding to the equipment information in a preset life parameter database according to the equipment information, wherein the life parameters corresponding to the equipment information are stored in the life parameter database.
4. A method for controlling a terminal device according to any one of claims 1 to 3, wherein determining the estimated time period for use of the storage device according to the determined lifetime loss specifically includes:
calculating the total life loss of all application programs to the storage device according to the determined life loss;
and determining the estimated use time length of the storage equipment according to the total life loss.
5. The method for controlling a terminal device according to claim 1, wherein the processing the application to be processed specifically includes:
and stopping the application program to be processed.
6. A computer-readable storage medium storing one or more programs executable by one or more processors to implement the steps in the method of controlling a terminal device according to any one of claims 1 to 5.
7. 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 a terminal device according to any one of claims 1-5.
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 CN112925474A (en) 2021-06-08
CN112925474B true 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)

Families Citing this family (1)

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

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8452573B2 (en) * 2010-01-29 2013-05-28 Skidmore, Owings & Merrill Llp Carbon footprint analysis tool for structures
CN103514958B (en) * 2012-12-31 2016-02-10 Tcl集团股份有限公司 A kind of EMMC chip life detecting method
US9026863B2 (en) * 2013-01-17 2015-05-05 Dell Products, L.P. Replacement of storage responsive to remaining life parameter
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 (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN112925474A (en) 2021-06-08

Similar Documents

Publication Publication Date Title
US8516499B2 (en) Assistance in performing action responsive to detected event
KR101835303B1 (en) Systems and methods for collecting, tracking, and storing system performance and event data for computing devices
CN111341090B (en) Bluetooth remote controller pressure measurement method, control device and computer readable storage medium
US20180260298A1 (en) Method and Device for Reporting Mobile Terminal Behaviors
CN111666187B (en) Method and apparatus for detecting abnormal response time
CN108196959B (en) Resource management method and device of ETL system
CN112925474B (en) Control method of terminal equipment, storage medium and terminal equipment
US10783067B2 (en) Software quality determination apparatus, software quality determination method, and software quality determination program
US10970109B1 (en) System, method, and computer program for managing a plurality of heterogeneous software robots to automate business processes
CN111581005A (en) Terminal repairing method, terminal and storage medium
CN110602207A (en) Method, device, server and storage medium for predicting push information based on off-network
US8099626B2 (en) Recovery method management device, recovery method management method and computer product for recovering a failure of IT system
US9720759B2 (en) Server, model applicability/non-applicability determining method and non-transitory computer readable medium
CN106294364B (en) Method and device for realizing web crawler to capture webpage
CN110399264B (en) FRU information management method, device and equipment
EP2911411A1 (en) Information processing device, information processing method, and program
US10180894B2 (en) Identifying a stack frame responsible for resource usage
EP4394673A1 (en) Method and apparatus for controlling item inventory, and device and medium
JP2009277110A (en) Software test/development support device, and program for device
JP6864227B2 (en) Comparison program, comparison device and comparison method
CN115391110A (en) Test method of storage device, terminal device and computer readable storage medium
CN110659125A (en) Analysis task execution method, device and system and electronic equipment
KR102227644B1 (en) Method for measuring workload by learning on micro data center environment
CN111831472B (en) Snapshot creation method and device and electronic equipment
US10936469B2 (en) Software component verification using random selection on pooled devices

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