CN114238249B - File system aging evaluation method and device, storage medium and terminal - Google Patents

File system aging evaluation method and device, storage medium and terminal Download PDF

Info

Publication number
CN114238249B
CN114238249B CN202210177455.5A CN202210177455A CN114238249B CN 114238249 B CN114238249 B CN 114238249B CN 202210177455 A CN202210177455 A CN 202210177455A CN 114238249 B CN114238249 B CN 114238249B
Authority
CN
China
Prior art keywords
evaluated
file
equipment
aging
filling
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
CN202210177455.5A
Other languages
Chinese (zh)
Other versions
CN114238249A (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.)
Chengdu Luyi Technology Co ltd
Original Assignee
Chengdu Luyi 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 Chengdu Luyi Technology Co ltd filed Critical Chengdu Luyi Technology Co ltd
Priority to CN202210177455.5A priority Critical patent/CN114238249B/en
Publication of CN114238249A publication Critical patent/CN114238249A/en
Application granted granted Critical
Publication of CN114238249B publication Critical patent/CN114238249B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/172Caching, prefetching or hoarding of files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/162Delete operations

Abstract

The invention discloses a file system aging evaluation method and device, a storage medium and a terminal, wherein the method comprises the following steps: predicting storage information of a file system corresponding to the equipment to be evaluated in a preset time period; filling files in the equipment to be evaluated to enable the storage information of the current file system of the equipment to be evaluated to be the same as the storage information of the file system corresponding to the equipment to be evaluated in the preset time period; and determining system aging degree information corresponding to the equipment to be evaluated in the preset time period according to the comparison between the system performance information corresponding to the equipment to be evaluated after the file filling and the initial system performance information of the equipment to be evaluated. The method and the device can evaluate the targeted file system aging of the equipment to be evaluated and realize accurate evaluation of the system aging degree information corresponding to the file system of the equipment to be evaluated in the preset time period.

Description

File system aging evaluation method and device, storage medium and terminal
Technical Field
The present invention relates to the field of electronic devices, and in particular, to a method and an apparatus for evaluating aging of a file system, a storage medium, and a terminal.
Background
With the continuous development of mobile communication technology, devices to be evaluated, which are typified by smart phones, are popularized in a large scale, and the quality of a device system to be evaluated is concerned more and more. For example, after a smartphone is used for one to three years, the katon phenomenon easily occurs. The reasons for the smart phone to become stuck mainly include: the mobile phone hardware is naturally aged to cause the performance degradation of the mobile phone and the aging of the mobile phone system.
After the smart phone is used for a period of time, the number of background running programs of the smart phone is increased, so that the demand of system resources of the smart phone is increased, fragmented files in a storage space of the smart phone are increased, and the time required by the system for retrieving relevant information is increased along with the continuous increase of messages in a database of the smart phone, so that the system of the smart phone is aged.
Along with the aging of the smart phone, the system is stuck (such as APP operation is stuck and a user operation mobile phone response is stuck), and the start and operation are failed (the APP start and operation failure probability is increased), so that the smart phone is operated more and more slowly, the problems of restart and crash phenomena are increased, and the use experience of the user on the smart phone is seriously influenced. However, since experience perception of different mobile phones is different, on one hand, habits of users in using the mobile phones are different, and on the other hand, calling and sorting manners of ROM products of various manufacturers and hardware resources of a bottom layer system are different, so that the overall smoothness degree of the mobile phone after system aging caused by use of different degrees is greatly changed.
Therefore, a file system aging evaluation method for different devices to be evaluated needs to be researched.
Disclosure of Invention
In view of this, the present invention provides a file system aging evaluation method and apparatus, a storage medium, and a terminal, and mainly aims to evaluate targeted file system aging of a device to be evaluated so as to accurately evaluate system aging degree information corresponding to a preset time period of a file system of the device to be evaluated.
According to an aspect of the present invention, there is provided a file system aging evaluation method, including:
predicting storage information of a file system corresponding to the equipment to be evaluated in a preset time period;
filling files in the equipment to be evaluated to enable the storage information of the current file system of the equipment to be evaluated to be the same as the storage information of the file system corresponding to the equipment to be evaluated in the preset time period;
and determining system aging degree information corresponding to the equipment to be evaluated in the preset time period according to the comparison between the system performance information corresponding to the equipment to be evaluated after the file filling and the initial system performance information of the equipment to be evaluated.
Further, the predicting storage information of the file system corresponding to the device to be evaluated in the preset time period includes:
acquiring the use habit information of a user on the equipment to be evaluated within a preset time period; the using habit information comprises user filling habit information and type file deleting habit information of the equipment to be evaluated;
determining storage information of a file system corresponding to the equipment to be evaluated in the preset time period according to the using habit information; the storage information of the file system comprises a type file stored by the file system, the size of a storage space occupied by the type file and the size of a storage space occupied by a subfile in the type file.
Further, the file filling of the device to be evaluated so that the storage information of the current file system of the device to be evaluated is the same as the storage information of the file system corresponding to the device to be evaluated in the preset time period includes:
acquiring storage information of a file system corresponding to the equipment to be evaluated in an initial state;
determining storage information of a file system of a preset filling file of the equipment to be evaluated according to comparison of the storage information of the file system corresponding to the equipment to be evaluated in a preset time period and an initial state respectively;
and filling the preset filling file into the equipment to be evaluated to complete the file filling of the equipment to be evaluated.
Further, if the type file of the preset padding file includes a fragmented file, padding the padding file, which is the same as the storage information of the file system of the preset padding file, to the device to be evaluated, further includes:
determining the size of the storage space occupied by the fragmented files according to the number of the subfiles of the fragmented files and the size of the storage space occupied by the subfiles of the fragmented files;
taking a file with the same size as the storage space of the subfile of the fragmented file as a fragmented subfile;
filling a plurality of fragment subfiles into the equipment to be evaluated according to the occupied size of the storage space of the equipment to be evaluated in the preset time period, and enabling the sum of the storage spaces occupied by the fragment subfiles to be larger than the size of the storage space occupied by the fragment files;
and deleting the plurality of fragment subfiles at intervals, so that the sum of the storage space occupied by the undeleted fragment subfiles is the same as the size of the storage space occupied by the fragment files, and filling the fragment files of the equipment to be evaluated.
Further, before filling the plurality of fragment subfiles into the device to be evaluated according to the size of the occupied storage space of the device to be evaluated in the preset time period, the method further includes:
filling sub-file parts of the type files except the fragment files in the preset filling file into the equipment to be evaluated;
after the interval deletion processing is performed on the plurality of fragment subfiles, the method further comprises the following steps:
and filling the remaining sub-files of the type files except the fragment file in the preset filling file into the equipment to be evaluated.
Further, the filling, according to the size occupied by the storage space of the device to be evaluated in the preset time period, the plurality of fragment subfiles into the device to be evaluated includes:
filling a plurality of fragment subfiles into the equipment to be evaluated, so that the occupied size of the storage space of the equipment to be evaluated is the same as the occupied size of the storage space of the equipment to be evaluated in a preset time period;
the filling the remaining sub-files of the type files except the fragmented file in the preset filling file into the device to be evaluated comprises:
and filling a type file except the fragment file with the same size as the total storage space of the deleted fragment subfile into the device to be evaluated.
Further, before comparing the system performance information corresponding to the device to be evaluated after the file filling with the initial system performance information of the device to be evaluated, the method further includes:
determining a use case transaction set and a use case rule corresponding to each use case transaction in the use case transaction set according to the use habit information of a user on the device to be evaluated in a preset time period; the use case rule comprises a time delay value generated when each use case transaction is operated on the device to be evaluated;
and obtaining the time delay values respectively corresponding to the equipment to be evaluated which is filled with the file and is not filled with the file to the same use case transaction according to the use case rule corresponding to the use case transaction in the use case transaction set.
Further, the determining the system aging degree information corresponding to the device to be evaluated in the preset time period includes:
calculating a first aging score corresponding to the same case transaction by the equipment to be evaluated, which is not filled with the file, according to the corresponding time delay value of the equipment to be evaluated, which is not filled with the file, to the same case transaction;
calculating a second aging score corresponding to the equipment to be evaluated after the file is filled for the same use case transaction according to the corresponding time delay value of the equipment to be evaluated after the file is filled for the same use case transaction;
calculating a single aging rate score corresponding to the use case transaction by the equipment to be evaluated according to the first aging score and the second aging score;
and calculating the system aging rate score of the equipment to be evaluated according to all the single aging rate scores and the second aging scores of the equipment to be evaluated.
Further, the calculating, according to the first aging score and the second aging score, a single aging rate score corresponding to the use case transaction by the device to be evaluated includes:
calculating the single aging rate according to the first aging fraction and the second aging fraction;
recording the single aging rate score of the single aging rate with the aging rate value not exceeding a preset threshold value as a preset value, and obtaining the single aging rate score of the single aging rate with the aging rate value not exceeding the preset threshold value;
calculating the single aging rate score of the single aging rate of which the aging rate value exceeds a preset threshold value according to the aging rate value to obtain the single aging rate score corresponding to each single aging rate of which the aging rate value exceeds the preset threshold value; wherein X is an aging rate value and Y is an aging rate score.
According to another aspect of the present invention, there is provided a file system aging evaluation system, including:
the device comprises a preset module, a storage module and a processing module, wherein the preset module is used for predicting storage information of a file system corresponding to the device to be evaluated in a preset time period;
the filling module is used for filling files in the equipment to be evaluated, so that the storage information of the current file system of the equipment to be evaluated is the same as the storage information of the file system corresponding to the equipment to be evaluated in the preset time period;
and the analysis module is used for determining the system aging degree information corresponding to the equipment to be evaluated in the preset time period according to the comparison between the system performance information corresponding to the equipment to be evaluated after the file filling and the initial system performance information of the equipment to be evaluated.
According to still another aspect of the present invention, a storage medium is provided, where at least one executable instruction is stored, and the executable instruction causes a processor to perform operations corresponding to the file system aging evaluation method as described above.
According to still another aspect of the present invention, there is provided a terminal including: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction enables the processor to execute the operation corresponding to the file system aging evaluation method.
According to still another aspect of the present invention, a storage medium is provided, where at least one executable instruction is stored, and the executable instruction causes a processor to perform operations corresponding to the file system aging evaluation method as described above.
According to still another aspect of the present invention, there is provided a terminal including: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction enables the processor to execute the operation corresponding to the determination method for the file system aging evaluation.
By the technical scheme, the technical scheme provided by the embodiment of the invention at least has the following advantages:
compared with the prior art, the embodiment of the invention fills files in the equipment to be evaluated to ensure that the storage information of the current file system of the equipment to be evaluated is the same as the storage information of the file system corresponding to the equipment to be evaluated in the preset time period, to finish the aging treatment of the equipment to be evaluated in a relative preset time period, and then according to the comparison between the system performance information corresponding to the equipment to be evaluated after the file filling and the initial system performance information of the equipment to be evaluated, so as to determine the system aging degree information corresponding to the equipment to be evaluated in the preset time period, realize the targeted file system aging evaluation of the equipment to be evaluated, the system aging degree information corresponding to the file system of the equipment to be evaluated in the preset time period can be accurately evaluated.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flowchart illustrating a method for evaluating aging of a file system according to an embodiment of the present invention;
FIG. 2 is a flow chart of another file system aging evaluation method provided by the embodiment of the invention;
FIG. 3 is a flowchart illustrating a method for evaluating aging of a file system according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating a method for evaluating aging of a file system according to another embodiment of the present invention;
FIG. 5 is a flowchart illustrating a method for evaluating file system aging according to yet another embodiment of the present invention;
FIG. 6 is a block diagram illustrating a file system aging evaluation apparatus according to an embodiment of the present invention;
FIG. 7 is a block diagram illustrating an alternative file system aging evaluation apparatus according to an embodiment of the present invention;
FIG. 8 is a block diagram illustrating a file system aging evaluation apparatus according to another embodiment of the present invention;
FIG. 9 is a block diagram illustrating an apparatus for evaluating file system aging according to another embodiment of the present invention;
FIG. 10 is a block diagram illustrating still another file system aging evaluation apparatus provided by an embodiment of the present invention;
FIG. 11 is a block diagram illustrating an exemplary file system aging evaluation apparatus according to an embodiment of the present invention;
fig. 12 is a schematic physical structure diagram of a computer device according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present invention. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
The method and apparatus for evaluating the aging of a file system in a device to be evaluated according to the embodiments of the present invention will be described with reference to the accompanying drawings.
The aging phenomenon of the file system of the device to be evaluated refers to the phenomenon that the performance of the system is gradually reduced due to the fact that the number of stored files is increased and the fragmentation degree is increased after the device to be evaluated is used for a long time. The aging time refers to the time for which the equipment to be evaluated is aged for a certain period of time. The file system aging evaluation method provided by the application simulates the state of the file system after a user uses the equipment to be evaluated for a long time, so that the purpose of evaluating the performance of the equipment to be evaluated after aging is achieved.
FIG. 1 is a flowchart of a file system aging evaluation method in a device under evaluation according to an embodiment of the present invention. It should be noted that the device to be evaluated in the embodiment of the present invention may be a hardware device such as a mobile phone, a tablet computer, a personal digital assistant, and the like, which has an android or damming operating system and supports the running of an application program.
As shown in fig. 1, the method for evaluating aging of a file system provided by the present invention includes:
101. and predicting storage information of the file system corresponding to the equipment to be evaluated in a preset time period.
For convenience of description, the following description will be made by taking the device to be evaluated as a mobile phone.
It should be noted that, according to the statistical analysis of data of a large number of users using time length and remaining storage space, the ratio of the remaining storage space and the covered users conforms to 3 σ distribution. The smaller the remaining storage space is, the larger the terminal performance is reduced, and since the mobile phone gradually starts to become stuck after being used for one to three years, the preset time periods are selected to be 10 months, 18 months, 24 months and 36 months, and the three preset time periods are selected to cover a value of 1% of user proportion and the remaining storage space is small, so that the aging test value of 99% of users is covered. The remaining storage space corresponding to the preset time period is shown in table 1.
TABLE 1 and Preset time period remaining space
Figure 887325DEST_PATH_IMAGE001
Because the main operation of the user on the file system of the mobile phone is to add static resource files such as videos, audios, pictures, contacts, call records, short messages and the like, and the file system of the current mobile phone is in a severe aging state after the file system is used for three years, the preset time period of the equipment to be evaluated is selected to be 36 months.
102. And filling files in the equipment to be evaluated to enable the storage information of the current file system of the equipment to be evaluated to be the same as the storage information of the file system corresponding to the equipment to be evaluated in the preset time period.
It can be understood that, the mobile phone to be evaluated is subjected to file filling, so that the storage information of the current file system of the mobile phone to be evaluated is the same as the storage information of the file system of the mobile phone to be evaluated after being used for 36 months, the file system of the mobile phone to be evaluated simulates the state of the mobile phone to be evaluated after being used for 36 months, the system performance of the mobile phone which simulates the mobile phone to be used for 36 months is similar to the system performance of the mobile phone which simulates the mobile phone to be used for 36 months, and the aging treatment of the mobile phone to be evaluated is completed.
103. And determining system aging degree information corresponding to the equipment to be evaluated in the preset time period according to the comparison between the system performance information corresponding to the equipment to be evaluated after the file filling and the initial system performance information of the equipment to be evaluated.
For example, if the storage information of the current file system of the mobile phone to be evaluated after being filled with the file is the same as the storage information of the file system of the mobile phone to be evaluated after being used for 36 months, the system performance of the mobile phone to be evaluated is similar to the system performance of the mobile phone to be evaluated after being actually used for 36 months, so that the system performance information of the mobile phone to be evaluated is similar to the system performance information of the mobile phone to be evaluated after being actually used for 36 months, and then the aging performance information of the file system of the mobile phone to be evaluated after being used for 36 months can be determined according to the comparison between the system performance information corresponding to the mobile phone to be evaluated after being filled with the file and the initial system performance information, so that the system aging degree information corresponding to the mobile phone to be evaluated after being used for 36 months can be determined.
For the embodiment of the present invention, the storage information of the file system at least includes the type file stored by the file system, the size of the storage space occupied by the type file, and the size of the storage space occupied by the subfile in the type file, so that the storage information of the file system of the device to be evaluated is determined based on the type file stored by the file system, the size of the storage space occupied by the type file, and the size of the storage space occupied by the subfile in the type file. The system performance information corresponding to the device to be evaluated at least includes a running time required for opening each application, picture, address book, and the like on the device to be evaluated, and the embodiment of the present invention is not particularly limited.
Compared with the prior art, the file system aging evaluation method provided by the embodiment of the invention has the advantages that the equipment to be evaluated is subjected to file filling, so that the storage information of the current file system of the equipment to be evaluated is identical to the storage information of the file system corresponding to the equipment to be evaluated in the preset time period, the aging treatment of the equipment to be evaluated in the preset time period is completed, the system aging degree information corresponding to the equipment to be evaluated in the preset time period is determined according to the comparison of the system performance information corresponding to the equipment to be evaluated after the file filling and the initial system performance information of the equipment to be evaluated, and the targeted file system aging evaluation of the equipment to be evaluated is realized.
An embodiment of the present invention provides another file system aging evaluation method, as shown in fig. 2, the method includes:
201. and acquiring the use habit information of the user on the equipment to be evaluated in a preset time period.
The using habit information comprises user filling habit information and type file deleting habit information of the equipment to be evaluated.
As a result, user understanding of the performance of mobile phones has risen from the traditional hardware portion to the experience perception of feedback speed and timeliness of the mobile phone device to user operations, device playback, and fluency of operation. However, the experience perception of the user to different mobile phones is different, on one hand, the habits of the user in using the mobile phones are different, and on the other hand, the calling and sorting modes of the product ROM of each manufacturer and the hardware resources of the bottom layer system are different, so that the overall smoothness degree of the mobile phone after the system is aged due to the use of different degrees is greatly changed. Therefore, the method and the device can determine the use condition of the file system of the mobile phone to be evaluated in the preset time period by acquiring the use habit information of the mobile phone of the user in the preset time period, namely the filling habit information and the deleting habit information of the mobile phone type file of the user, so that the mobile phone to be evaluated has directionality.
It should be noted that the type file filling habit information may include filling information for various types of files (large file, small file, short message, contact, call record, picture, audio, video, etc.), for example, after downloading an APP on the mobile phone to be evaluated, the picture and audio are respectively added to the mobile phone with evaluation, where the filling information includes the name of the type file, the size and the number of the occupied storage space; the type file deletion habit information may include deletion information for various types of files (large files, small files, short messages, contacts, call records, pictures, audio, video, etc.).
202. And determining storage information of the file system corresponding to the equipment to be evaluated in the preset time period according to the using habit information.
The storage information of the file system comprises a type file stored by the file system, the size of a storage space occupied by the type file and the size of a storage space occupied by a subfile in the type file.
It can be understood that, according to the usage habit of the user, the type file filling habit information and the type file deleting habit information of the user on the mobile phone to be evaluated can be determined, and then various types of files in the file system of the mobile phone to be evaluated after being used for 36 months are determined, that is, the category names and the size and the number of occupied storage spaces respectively corresponding to the large file, the small file, the short message, the contact person, the call record, the picture, the audio, the video and the like in the file system can be determined, that is, the storage information of the file system corresponding to the mobile phone to be evaluated after being used for 36 months can be determined, so that the mobile phone to be evaluated can be aged for the corresponding preset time period by adding the preset filling files.
203. And filling files in the equipment to be evaluated to enable the storage information of the current file system of the equipment to be evaluated to be the same as the storage information of the file system corresponding to the equipment to be evaluated in the preset time period.
For example: according to the using habit of a user, after the mobile phone to be evaluated is used for 36 months, the type files stored in the file system of the mobile phone sequentially comprise: 2000 pictures, 300 audios, 30 videos, 3000 address book contacts, 7200 short messages, 500 call records, 60 third-party application installation numbers, 9000 fragmented sub-files, and about 1.5G of remaining storage space of the mobile phone, and obtaining the size of the storage space occupied by each type of file, in order to facilitate file filling of the mobile phone to be evaluated, respectively performing average processing on the size of the storage space occupied by the sub-files in each type of file, namely calculating the average storage space size of the sub-files in the type of file according to the known size of the storage space occupied by a certain type of file and the number corresponding to the sub-files in the type of file, and when subsequently filling the sub-files of the type of file in the mobile phone to be evaluated, filling the sub-files with the average storage space size into the file system of the mobile phone to be evaluated according to the number of the type of the files, to complete the filling of this type of file; for example: the space occupied by the picture file is 6000MB, and the size of the storage space of the subfiles in the type file corresponding to the preset filled picture can be determined to be 3MB by averaging the sizes of the storage spaces of 2000 pictures.
204. Determining a use case transaction set and a use case rule corresponding to each use case transaction in the use case transaction set according to the use habit information of a user on the device to be evaluated in a preset time period; the use case rule comprises a time delay value generated when each use case transaction is operated on the device to be evaluated.
It should be noted here that, receiving a control instruction triggered on a device to be evaluated, where the control instruction includes filling information of a user on various types of files (large files, small files, short messages, contacts, call records, pictures, audio, video, application programs, and the like), searching a user habit database of the user on the device to be evaluated within a preset time period according to the triggered control instruction, and in the user habit database, each control instruction is correspondingly bound with user habit data; if the user habit data bound with the triggered control instruction is found, the operation associated with the corresponding user habit data is executed, and the use habit information of the user on the equipment to be evaluated in the preset time period can be obtained.
Specifically, according to the use habit information of the device to be evaluated by the user within the preset time period, for example, according to the filling or deleting information of a large file, a small file, a short message, a contact, a call record, a picture, audio, video, an application program and the like of the mobile phone to be evaluated within 36 months by the user, the used filling file in the mobile phone to be evaluated is acquired as curiosity, hundredth sticker, flag and novel, punctuation flash newspaper, QQ, panning, browser, contact, information and album, and then the use case transactions in the use case transaction set are determined to be in sequence: love art, Baidu sticking bar, book flag novel, point of view quick report, QQ, Taobao, browser, contact, information and photo album, and the use case affairs are continuously and cold started on the equipment to be evaluated in sequence; and recording a time delay value generated by each case transaction on the equipment to be evaluated, wherein the equipment to be evaluated touches a screen of the equipment to be evaluated through a mechanical arm to release the point to open each case transaction, the total time of each completely opened case transaction is recorded, the operations of clicking, sliding and the like of the mechanical arm are operated through a program in the whole process of the test, the fingers are completely simulated, the time recording is that a mode of taking pictures by adopting a high-speed camera with 240 frames is adopted to carry out several frames one by one, and the completion time delay of the opening of each case transaction is confirmed.
205. And obtaining the time delay values respectively corresponding to the equipment to be evaluated which is filled with the file and is not filled with the file to the same use case transaction according to the use case rule corresponding to the use case transaction in the use case transaction set.
It should be particularly noted that before the use case transactions are sequentially opened in a continuous cold start manner, each use case transaction needs to be opened and closed to various notifications, permissions and the like first, so that influence in the test process is avoided, and then the test case transactions return to the background to kill all the use case transactions, so that the use case transactions are ensured to be opened in a cold start manner during the test.
When the use-case transaction is the operation of importing the contacts, importing 1000 contacts through the contact importing application, wherein the recorded result is the completion delay of importing the contacts; when the contact is started, the contact is opened from the desktop, and the recorded result is the time delay required by the opening of the contact; when a contact person is checked, clicking a contact person interface to enter a certain contact person detail, and recording a result as a time delay required by opening the contact person detail; when the short message is started, the short message is opened from the desktop, and the recorded result is the completion time delay required by the opening of the short message; when deleting the short message, clicking a certain short message from the short message interface to delete the short message, wherein the recorded result is the completion time delay required by the completion of the deletion operation of the short message; when the gallery is started, opening the gallery from the desktop, and recording a result as the completion time delay required by the gallery opening; when the picture is viewed, clicking a picture from the picture library interface to enter a large picture, and recording a result as a time delay required by the picture expansion; starting a browser, opening the browser of the mobile phone from a desktop, and recording a result as the completion time delay required by the opening of the browser; when the camera is in cold start, the camera of the mobile phone is turned on from the desktop, and the recorded result is the completion time delay required by turning on the camera (the second frame of the end point stop point selection framing interface is lightened).
206. And calculating a first aging score corresponding to the same case transaction by the equipment to be evaluated, which is not filled by the file, according to the corresponding time delay value of the equipment to be evaluated, which is not filled by the file, to the same case transaction.
207. And calculating a second aging score corresponding to the case affair for the equipment to be evaluated after the file filling according to the corresponding time delay value of the equipment to be evaluated after the file filling to the same case affair.
Specifically, when the use case transaction is ten third-party applications, the ten third-party applications are continuously cold-started on the device to be evaluated: the test result is X (unit is millisecond (ms)), and the aging scores of the devices to be evaluated which are not filled with the files and are filled with the files are respectively calculated through Y = -0.0438X +477.15, so that the first aging score and the second aging score corresponding to the use case transaction are obtained.
When the use case transaction is 1000 contacts, the test result is X (the unit is second (s)), and the aging scores of the devices to be evaluated which are not filled with the files and are filled with the files are respectively calculated through Y = -0.0118X +355.02, so that the first aging score and the second aging score corresponding to the use case transaction are obtained.
When the use case transaction is file copy and flash memory test, the test result is X (the unit is the score), and aging scores of the equipment to be evaluated which is not filled with the file and is filled with the file are calculated respectively through Y = 13.042X-77.337, so that a first aging score and a second aging score corresponding to the use case transaction are obtained.
When the use case transaction is a flash memory reading speed test, the test result is X (unit MB/s), and aging scores of the equipment to be evaluated which is not filled with the files and is filled with the files are calculated through Y = 0.3669X-37.918 respectively, so that a first aging score and a second aging score corresponding to the use case transaction are obtained.
When the use case transaction is a flash memory writing speed test, the test result is X (unit MB/s), and aging scores of the device to be evaluated are calculated through Y = 1.4858X-40.854 after the device to be evaluated is not filled with files and is filled with files respectively, so that a first aging score and a second aging score corresponding to the use case transaction are obtained.
When the use case transaction is used for starting the contact for the first time, the test result is X (the unit is milliseconds (ms)), and the aging scores of the devices to be evaluated which are not filled with the files and are filled with the files are calculated through Y = -0.6261X +474.78 respectively, so that the first aging score and the second aging score corresponding to the use case transaction are obtained.
When the use case transaction is to look up one contact, the test result is X (unit is millisecond (ms)), and the aging scores of the devices to be evaluated which are not filled with the files and are filled with the files are respectively calculated through Y = -0.4943X +442.11, so that the first aging score and the second aging score corresponding to the use case transaction are obtained.
When the use case transaction is used for starting a short message for the first time, the test result is X (the unit is millisecond (ms)), and aging scores of the equipment to be evaluated which is not filled with the file and is filled with the file are calculated through Y = -0.313X +392.17 respectively, so that a first aging score and a second aging score corresponding to the use case transaction are obtained.
When the use case transaction is a deletion short message, the test result is X (the unit is millisecond (ms)), and aging scores of the equipment to be evaluated which is not filled with the file and is filled with the file are calculated respectively through Y = -0.1217X +323.67, so that a first aging score and a second aging score corresponding to the use case transaction are obtained.
When the use case transaction starts the gallery for the first time, the test result is X (the unit is millisecond (ms)), and the aging score of the device to be evaluated is calculated through Y = -0.4832X +494.63 after the device to be evaluated is not filled with the file and is filled with the file, so that the first aging score and the second aging score corresponding to the use case transaction are obtained.
When the use case transaction is a view picture, the test result is X (unit is millisecond (ms)), and the aging scores of the devices to be evaluated which are not filled with the files and are filled with the files are respectively calculated through Y = -0.12131X +419, so that the first aging score and the second aging score corresponding to the use case transaction are obtained.
When the browser is started for the first time by the use case transaction, the test result is X (the unit is milliseconds (ms)), and the aging scores of the devices to be evaluated which are not filled with the files and are filled with the files are calculated through Y = -0.2988X +394.61 respectively, so that a first aging score and a second aging score corresponding to the use case transaction are obtained.
When the use case transaction is a camera cold start, the test result is X (the unit is millisecond (ms)), and the aging scores of the devices to be evaluated are calculated through Y = -0.3186X +507.96 after the devices to be evaluated are filled with files and not filled with the files respectively, so that a first aging score and a second aging score corresponding to the use case transaction are obtained.
208. And calculating the single aging rate score corresponding to the use case transaction by the equipment to be evaluated according to the first aging score and the second aging score.
The calculation formula of the single aging rate corresponding to each use case transaction = (unaged fraction-aged fraction)/unaged fraction = 100%, and the single aging rate score corresponding to each use case transaction of the single aging rate is calculated.
For the embodiment of the present invention, in order to improve the efficiency of calculating the single item aging rate score, step 208 specifically includes: calculating the single aging rate according to the first aging fraction and the second aging fraction; recording the single aging rate score of the single aging rate with the aging rate value not exceeding a preset threshold value as a preset value, and obtaining the single aging rate score of the single aging rate with the aging rate value not exceeding the preset threshold value, wherein the single aging rate score of the single aging rate with the aging rate value not exceeding 5% is 600 points. (ii) a Calculating Y = -187.6 LNX-50.15 according to the single aging rate score of the single aging rate of which the aging rate value exceeds a preset threshold value, and obtaining the single aging rate score corresponding to each single aging rate of which the aging rate value exceeds the preset threshold value; and calculating the single aging rate score of the single aging rate of which the aging rate value exceeds a preset threshold value according to the aging rate value by the following formula: y = -187.6X LNX-50.15, X being the aging rate value and Y being the aging rate score.
209. And calculating the system aging rate score of the equipment to be evaluated according to all the single aging rate scores and the second aging scores of the equipment to be evaluated.
The calculation formula of the system aging rate score of the equipment to be evaluated is as follows: system aging rate score = all singleton aging rate scores + all second aging scores.
Compared with the prior art, the embodiment of the invention provides another file system aging evaluation method, by acquiring the use habit information of the user on the equipment to be evaluated in the preset time period, determining storage information of a file system corresponding to the equipment to be evaluated in the preset time period according to the using habit information, and determining a use case transaction set and a use case rule corresponding to each use case transaction in the use case transaction set according to the use habit information of the device to be evaluated in a preset time period by a user, so that the evaluation method provided by the embodiment has relative pertinence to the use habits of more users of the equipment to be evaluated, the evaluation method simulates the performance condition of the equipment to be evaluated of each manufacturer after the time period to be preset by carrying out aging treatment on the new equipment to be evaluated corresponding to the preset time period. For manufacturers, the evaluation method is beneficial to upgrading and improving the product performance, plays a guiding role in product marketing and brands, is beneficial to the overall level development of the industry, and has a positive effect on enabling users to use real and good products.
An embodiment of the present invention provides another file system aging evaluation method, as shown in fig. 3, where the method includes:
301. and acquiring storage information of the file system corresponding to the equipment to be evaluated in the initial state.
It should be noted that, in order to make the storage information of the file system corresponding to the mobile phone to be evaluated in the initial state the same as the storage information of the file system of the mobile phone just purchased by the actual user, the mobile phone to be evaluated needs to be restored to factory settings, all the settings adopt factory default settings, and then 200 pictures, 200 audios and 20 videos are filled in the mobile phone to be evaluated; 1000 short messages, 1000 contacts and 500 call records are refilled, wherein the size of the storage space of the picture is as follows: 3 MB; the size of the storage space for audio is: 6 MB; size of storage space of video: 50 MB.
302. And determining the storage information of the file system of the preset filling file of the equipment to be evaluated according to the comparison of the storage information of the file system corresponding to the equipment to be evaluated in the preset time period and the initial state respectively.
It can be understood that the storage information of the file system corresponding to the device to be evaluated in the preset time period is predicted, and the storage information of the type file added to the device to be evaluated in the preset time period is determined according to the predicted structure, for example, the type files stored in the preset time period by the mobile phone to be evaluated are respectively: 400 pictures, 400 audios, 60 videos, 5000 short messages, 6000 contacts and 900 call records, wherein the storage space of the pictures is as follows: 3 MB; the size of the storage space for audio is: 6 MB; size of storage space of video: 50 MB; therefore, the storage information of the file system of the preset filling file can be determined as follows: 200 pictures, 200 audios, 40 videos, 4000 short messages, 5000 contacts and 300 call records, wherein the storage space of the pictures is as follows: 3 MB; the size of the storage space for audio is: 6 MB; size of storage space of video: 50 MB.
For the embodiment of the present invention, in order to improve the accuracy of the evaluation and make the file filling of the device to be evaluated more similar to the actual file filling of the user, step 302 specifically includes: if the type file of the preset padding file includes a fragmented file, padding the padding file, which is the same as the storage information of the file system of the preset padding file, to the device to be evaluated, referring to fig. 4, where the method further includes:
302-1, determining the size of the storage space occupied by the fragmented file according to the number of the subfiles of the fragmented file and the size of the storage space occupied by the subfiles of the fragmented file.
For example, there are 200000 fragmented small files with a storage size of 4KB in the file system of the device under evaluation, and therefore, the size of the storage space occupied by the fragmented files can be determined.
302-2, taking a file with the same size as the storage space of the subfile of the fragmented file as a fragmented subfile.
It is understood that a file having a storage space size of 4KB is taken as the fragmentation subfile.
302-3, according to the occupied size of the storage space of the equipment to be evaluated in the preset time period, filling the plurality of fragment subfiles into the equipment to be evaluated, and enabling the sum of the storage space occupied by the plurality of fragment subfiles to be larger than the size of the storage space occupied by the fragment file.
It can be understood that the number of fragment subfiles to be filled into the device to be evaluated is greater than the number of subfiles of the fragment file in step 302-1, and here, for convenience of understanding, the fragment subfiles are selected to be 400000, and 400000 fragment subfiles are numbered consecutively.
302-4, deleting the plurality of fragment subfiles at intervals, so that the sum of the storage space occupied by the undeleted fragment subfiles is the same as the size of the storage space occupied by the fragment files, thereby completing the fragment file filling of the device to be evaluated.
It can be understood that 400000 fragment subfiles filled to the device to be evaluated are deleted at intervals according to consecutive numbers, so that the sum of the storage space occupied by the fragment subfiles which are not deleted is the same as the size of the storage space occupied by the fragment files, and further the filling of the fragment files and the simulation of the information state of the fragment files of the device to be evaluated in a preset time period are realized.
For the embodiment of the present invention, in order to make the filling of the preset filling file more similar to the simulation of the storage information of the file system of the device to be evaluated in the preset time period, referring to fig. 5, step 302 further specifically includes:
302-5, filling the sub-file part of the type file except the fragment file in the preset filling file into the device to be evaluated.
302-6, filling the plurality of fragment subfiles into the device to be evaluated, so that the occupied size of the storage space of the device to be evaluated is the same as the occupied size of the storage space of the device to be evaluated in a preset time period.
For example: 5400 filling pictures, 540 audios and 54 videos are filled in the mobile phone to be evaluated; then the large file of 3MB-2000MB is filled continuously; and filling the 4KB fragment subfile until the residual storage space of the mobile phone is about 1.5G.
302-7, deleting the plurality of fragment subfiles at intervals, so that the sum of the storage space occupied by the undeleted fragment subfiles is the same as the size of the storage space occupied by the fragment files.
When the fragment subfiles are deleted at intervals, the method comprises the following steps: interval deletion is performed according to the number of the fragment subfile (deletion number: 1/3/5/7/9.).
302-8, filling the remaining subfiles of the type files except the fragment file in the preset filling file into the device to be evaluated.
Such as: and refilling 7200 short messages, 3000 contacts, 500 call records, and the APP and other APPs required by the test cases to the residual storage space of the mobile phone, and returning to about 1.5G.
For the embodiment of the present invention, step 302-8 further specifically includes: and filling a type file except the fragment file with the same size as the total storage space of the deleted fragment subfile into the device to be evaluated.
303. And filling the preset filling file into the equipment to be evaluated to complete the file filling of the equipment to be evaluated.
Compared with the prior art, the embodiment of the invention provides another file system aging evaluation method, and the method has the advantages that the filling, deletion and the like of various types of files (large files, small files, short messages, contacts, call records, pictures, audio, videos and the like) in the unaged state when a user just takes a new device to be evaluated and the severe aging state after the preset time period are simulated and restored by filling the fragment files, so that the obtained system aging degree information corresponding to the file system of the device to be evaluated in the preset time period is more accurate.
Further, as an implementation of the method shown in fig. 1, an embodiment of the present invention provides a file system aging evaluation system, as shown in fig. 6, where the file system aging evaluation system includes:
the device comprises a preset module 61, a storage module and a processing module, wherein the preset module 61 is used for predicting storage information of a file system corresponding to the device to be evaluated in a preset time period;
a filling module 62, configured to perform file filling on the device to be evaluated, so that storage information of a current file system of the device to be evaluated is the same as storage information of a file system corresponding to the device to be evaluated in the preset time period;
and the analysis module 63 is configured to determine, according to the comparison between the system performance information corresponding to the device to be evaluated after the file filling and the initial system performance information of the device to be evaluated, system aging degree information corresponding to the device to be evaluated in the preset time period.
Compared with the prior art, the file system aging evaluation device provided by the embodiment of the invention has the advantages that the file filling is carried out on the equipment to be evaluated, so that the storage information of the current file system of the equipment to be evaluated is the same as the storage information of the file system corresponding to the equipment to be evaluated in the preset time period, the aging treatment of the equipment to be evaluated in the preset time period is completed, the system aging degree information corresponding to the equipment to be evaluated in the preset time period is determined according to the comparison of the system performance information corresponding to the equipment to be evaluated after the file filling and the initial system performance information of the equipment to be evaluated, and the targeted file system aging evaluation of the equipment to be evaluated is realized.
Further, as an implementation of the method shown in fig. 2, an embodiment of the present invention provides another file system aging evaluation apparatus, as shown in fig. 7, where the apparatus includes:
a habit information obtaining unit 6101, configured to obtain usage habit information of the device to be evaluated in a preset time period;
a storage unit 6102, configured to determine, according to the usage habit information, storage information of a file system corresponding to the device to be evaluated in the preset time period;
a filling module 62, configured to perform file filling on the device to be evaluated, so that storage information of a current file system of the device to be evaluated is the same as storage information of a file system corresponding to the device to be evaluated in the preset time period;
the use case module 64 is configured to determine a use case transaction set and a use case rule corresponding to each use case transaction in the use case transaction set according to the use habit information of the user on the device to be evaluated within a preset time period;
a data module 65, configured to obtain, according to a use case rule corresponding to a use case transaction in the use case transaction set, time delay values respectively corresponding to the same use case transaction for the device to be evaluated, which is filled with the file, and the device to be evaluated, which is not filled with the file;
a first aging score calculating module 66, configured to calculate, according to a corresponding delay value of the to-be-evaluated device that is not filled with the file to the same use case transaction, a first aging score corresponding to the to-be-evaluated device that is not filled with the file to the use case transaction;
a second aging score calculating module 67, configured to calculate, according to the corresponding delay value of the device to be evaluated after being filled with the file for the same use case transaction, a second aging score corresponding to the use case transaction of the device to be evaluated after being filled with the file;
the single aging rate score calculating module 68 is configured to calculate a single aging rate score corresponding to the use case transaction by the device to be evaluated according to the first aging score and the second aging score;
and a system aging rate score calculating module 69, configured to calculate a system aging rate score of the device to be evaluated according to all the individual aging rate scores and the second aging scores of the device to be evaluated.
Referring to fig. 8, the single term aging rate score calculating module 68 includes:
an individual aging rate calculation unit 6801 for calculating the individual aging rate according to the first aging score and the second aging score;
the first individual aging rate score calculating unit 6802 is used for recording the individual aging rate score of the individual aging rate of which the aging rate value is not more than a preset threshold value as a preset value, and obtaining the individual aging rate score of the individual aging rate of which the aging rate value is not more than 5%;
a second individual aging rate score calculating unit 6803, configured to obtain, according to Y = -187.6 × LNX-50.15, an individual aging rate score corresponding to each of the individual aging rates whose aging rate value exceeds a preset threshold, for the individual aging rate score of the individual aging rate whose aging rate value exceeds the preset threshold; wherein X is an aging rate value and Y is an aging rate score.
Compared with the prior art, the embodiment of the invention provides another file system aging evaluation device, by acquiring the use habit information of the user on the equipment to be evaluated in the preset time period, determining storage information of a file system corresponding to the equipment to be evaluated in the preset time period according to the using habit information, and determining a use case transaction set and a use case rule corresponding to each use case transaction in the use case transaction set according to the use habit information of the device to be evaluated in a preset time period by a user, so that the evaluation method provided by the embodiment has relative pertinence to the use habits of more users of the equipment to be evaluated, the evaluation method simulates the performance condition of the equipment to be evaluated of each manufacturer after the time period to be preset by carrying out aging treatment on the new equipment to be evaluated corresponding to the preset time period. For manufacturers, the evaluation method is beneficial to upgrading and improving the product performance, plays a guiding role in product marketing and brands, is beneficial to the overall level development of the industry, and has a positive effect on enabling users to use real and good products.
Further, as an implementation of the method shown in fig. 3, another file system aging evaluation apparatus is provided in an embodiment of the present invention, as shown in fig. 9, the apparatus includes:
an initial storage information obtaining unit 6201, configured to obtain storage information of a file system corresponding to the device to be evaluated in an initial state;
a preset filler file determining unit 6202, configured to determine, according to comparison between storage information of file systems corresponding to the to-be-evaluated device in a preset time period and an initial state, storage information of a file system of a preset filler file of the to-be-evaluated device;
a filling unit 6203, configured to fill the preset filling file into the device to be evaluated, so as to complete file filling on the device to be evaluated.
As shown in fig. 10, the preset fill file determining unit 6202 includes:
a fragment file analyzing subunit 62021, configured to determine, according to the number of subfiles of the fragment file and the size of the storage space occupied by the subfiles of the fragment file, the size of the storage space occupied by the fragment file;
a fragmentation subfile determination subunit 60222 configured to determine, as a fragmentation subfile, a file having the same size as the subfile storage space of the fragmentation file;
a first fragment subfile filling subunit 60223, configured to fill, according to the size occupied by the storage space of the device to be evaluated in the preset time period, the plurality of fragment subfiles to the device to be evaluated, and enable the sum of the storage spaces occupied by the plurality of fragment subfiles to be larger than the size of the storage space occupied by the fragment files;
the first fragment subfile deleting sub-unit 60224 is configured to delete a plurality of fragment subfiles at intervals, so that the sum of storage spaces occupied by the fragment subfiles that are not deleted is the same as the size of the storage space occupied by the fragment file, thereby completing the filling of the fragment file into the device to be evaluated.
Here, referring to fig. 11, the preset fill file determination unit 6202 further includes:
a first preset padding file padding subunit 60225, configured to pad sub-file portions of a type file other than the fragmented file in the preset padding file to the device to be evaluated;
a second fragment subfile filling subunit 60226, configured to fill the plurality of fragment subfiles into the device to be evaluated, so that the size occupied by the storage space of the device to be evaluated is the same as the size occupied by the storage space of the device to be evaluated in a preset time period;
a second fragment subfile deletion subunit 60227, configured to delete the plurality of fragment subfiles at intervals, so that the total storage space occupied by the undeleted fragment subfiles is the same as the size of the storage space occupied by the fragment subfiles;
a second preset padding file padding subunit 60228, configured to pad the remaining subfiles, which are related to the type file other than the fragmented file, in the preset padding file, to the device to be evaluated;
compared with the prior art, the embodiment of the invention provides another file system aging evaluation device, and the method and the device simulate and restore the non-aging state when a user just takes a new device to be evaluated and the filling, deletion and the like of various types of files (large files, small files, short messages, contacts, call records, pictures, audio, videos and the like) in the severe aging state after a preset time period by filling fragment files, so that the obtained system aging degree information corresponding to the file system of the device to be evaluated in the preset time period is more accurate.
According to an embodiment of the present invention, a storage medium is provided, where at least one executable instruction is stored, and the computer executable instruction may execute the file system aging evaluation method in any of the above method embodiments.
Based on the above embodiments of the method shown in fig. 1 and the apparatus shown in fig. 6, an embodiment of the present invention further provides an entity structure diagram of a computer device, as shown in fig. 12, where the computer device includes: a processor 121, a memory 122, and a computer program stored on the memory 122 and executable on the processor, wherein the memory 122 and the processor 121 are both arranged on a bus 123 such that the processor 121, when executing the program, implements the steps of: predicting storage information of a file system corresponding to the equipment to be evaluated in a preset time period; filling files in the equipment to be evaluated to enable the storage information of the current file system of the equipment to be evaluated to be the same as the storage information of the file system corresponding to the equipment to be evaluated in the preset time period; and determining system aging degree information corresponding to the equipment to be evaluated in the preset time period according to the comparison between the system performance information corresponding to the equipment to be evaluated after the file filling and the initial system performance information of the equipment to be evaluated.
According to the technical scheme, the file filling is carried out on the equipment to be evaluated, so that the storage information of the current file system of the equipment to be evaluated is the same as the storage information of the file system corresponding to the equipment to be evaluated in the preset time period, the aging processing of the equipment to be evaluated in the preset time period is completed, the system aging degree information corresponding to the equipment to be evaluated in the preset time period is determined according to the comparison between the system performance information corresponding to the equipment to be evaluated after the file filling and the initial system performance information of the equipment to be evaluated, and the targeted file system aging evaluation of the equipment to be evaluated is realized.
It will be apparent to those skilled in the art that the various modules or steps of the invention described above may be implemented using a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and optionally they may be implemented using program code executable by a computing device, such that it may be stored in a memory device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that shown or described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (12)

1. A file system aging evaluation method is characterized by comprising the following steps:
predicting storage information of a file system corresponding to the equipment to be evaluated in a preset time period;
filling files in the equipment to be evaluated to enable the storage information of the current file system of the equipment to be evaluated to be the same as the storage information of the file system corresponding to the equipment to be evaluated in the preset time period;
according to the comparison between the system performance information corresponding to the equipment to be evaluated after the file filling and the initial system performance information of the equipment to be evaluated, determining the system aging degree information corresponding to the equipment to be evaluated in the preset time period;
the file filling of the device to be evaluated so that the storage information of the current file system of the device to be evaluated is the same as the storage information of the file system corresponding to the device to be evaluated in the preset time period includes:
acquiring storage information of a file system corresponding to the equipment to be evaluated in an initial state;
determining storage information of a file system of a preset filling file of the equipment to be evaluated according to comparison of the storage information of the file system corresponding to the equipment to be evaluated in a preset time period and an initial state respectively;
filling the preset filling file into the equipment to be evaluated to complete the file filling of the equipment to be evaluated;
if the type file of the preset padding file includes a fragment file, padding the preset padding file to the device to be evaluated, further including:
determining the size of the storage space occupied by the fragmented files according to the number of the subfiles of the fragmented files and the size of the storage space occupied by the subfiles of the fragmented files;
taking a file with the same size as the storage space of the subfile of the fragment file as a fragment subfile;
filling a plurality of fragment subfiles into the equipment to be evaluated according to the occupied size of the storage space of the equipment to be evaluated in the preset time period, and enabling the sum of the storage spaces occupied by the fragment subfiles to be larger than the size of the storage space occupied by the fragment files;
deleting the plurality of fragment subfiles at intervals, so that the sum of storage spaces occupied by the fragment subfiles which are not deleted is the same as the size of the storage space occupied by the fragment files, and filling the fragment files of the equipment to be evaluated;
wherein the deleting the plurality of fragmentation subfiles at intervals comprises:
sequentially numbering the fragment subfiles continuously;
and deleting intervals according to the continuous numbers.
2. The file system aging evaluation method according to claim 1, wherein the predicting of the storage information of the file system corresponding to the device to be evaluated in the preset time period comprises:
acquiring the use habit information of a user on the equipment to be evaluated within a preset time period; the using habit information comprises user filling habit information and type file deleting habit information of the equipment to be evaluated;
determining storage information of a file system corresponding to the equipment to be evaluated in the preset time period according to the using habit information; the storage information of the file system comprises a type file stored by the file system, the size of a storage space occupied by the type file and the size of a storage space occupied by a subfile in the type file.
3. The file system aging evaluation method according to claim 1, before filling the plurality of fragment subfiles into the device to be evaluated according to the size of the storage space of the device to be evaluated occupied in the preset time period, further comprising:
filling sub-file parts of type files except the fragment files in the preset filling file into the equipment to be evaluated;
after the interval deletion processing is performed on the plurality of fragment subfiles, the method further comprises the following steps:
and filling the remaining sub-files of the type files except the fragment file in the preset filling file into the equipment to be evaluated.
4. The file system aging evaluation method according to claim 3, wherein the filling of the plurality of fragment subfiles into the device to be evaluated according to the size of the storage space of the device to be evaluated occupied in the preset time period comprises:
filling a plurality of fragment subfiles into the equipment to be evaluated, so that the occupied size of the storage space of the equipment to be evaluated is the same as the occupied size of the storage space of the equipment to be evaluated in a preset time period;
the filling the remaining sub-files of the type files except the fragmented file in the preset filling file into the device to be evaluated comprises:
and filling a type file except the fragment file with the same size as the total storage space of the deleted fragment subfile into the device to be evaluated.
5. The file system aging evaluation method according to claim 2, wherein before the comparing the system performance information corresponding to the device to be evaluated after the file filling with the initial system performance information of the device to be evaluated, further comprising:
determining a use case transaction set and a use case rule corresponding to each use case transaction in the use case transaction set according to the use habit information of a user on the device to be evaluated in a preset time period; the use case rule comprises a time delay value generated when each use case transaction is operated on the device to be evaluated;
and obtaining the time delay values respectively corresponding to the equipment to be evaluated which is filled with the file and is not filled with the file to the same use case transaction according to the use case rule corresponding to the use case transaction in the use case transaction set.
6. The file system aging evaluation method according to claim 5, wherein the determining of the system aging degree information corresponding to the device to be evaluated in the preset time period comprises:
calculating a first aging score corresponding to the same case transaction by the equipment to be evaluated, which is not filled with the file, according to the corresponding time delay value of the equipment to be evaluated, which is not filled with the file, to the same case transaction;
calculating a second aging score corresponding to the equipment to be evaluated after the file is filled for the same use case transaction according to the corresponding time delay value of the equipment to be evaluated after the file is filled for the same use case transaction;
calculating a single aging rate score corresponding to the use case transaction by the equipment to be evaluated according to the first aging score and the second aging score;
and calculating the system aging rate score of the equipment to be evaluated according to all the single aging rate scores and the second aging scores of the equipment to be evaluated.
7. The file system aging evaluation method according to claim 6, wherein the calculating of the single aging rate score corresponding to the use case transaction by the device to be evaluated according to the first aging score and the second aging score comprises:
calculating the single aging rate according to the first aging fraction and the second aging fraction;
recording the single aging rate score of the single aging rate with the aging rate value not exceeding a preset threshold value as a preset value, and obtaining the single aging rate score of the single aging rate with the aging rate value not exceeding the preset threshold value;
and calculating the single aging rate score of the single aging rate of which the aging rate value exceeds a preset threshold value according to the aging rate value to obtain the single aging rate score corresponding to each single aging rate of which the aging rate value exceeds the preset threshold value.
8. A file system aging evaluation apparatus, comprising:
the device comprises a preset module, a storage module and a processing module, wherein the preset module is used for predicting storage information of a file system corresponding to the device to be evaluated in a preset time period;
the filling module is used for filling files in the equipment to be evaluated, so that the storage information of the current file system of the equipment to be evaluated is the same as the storage information of the file system corresponding to the equipment to be evaluated in the preset time period;
the analysis module is used for determining system aging degree information corresponding to the equipment to be evaluated in the preset time period according to the comparison between the system performance information corresponding to the equipment to be evaluated after the file filling and the initial system performance information of the equipment to be evaluated;
wherein, fill the module and include:
the device comprises an initial storage information acquisition unit, a storage information acquisition unit and a storage information acquisition unit, wherein the initial storage information acquisition unit is used for acquiring the storage information of a file system corresponding to the device to be evaluated in an initial state;
the device comprises a preset filling file determining unit, a filling file storing unit and a filling file storing unit, wherein the preset filling file determining unit is used for determining the storage information of the file system of the preset filling file of the device to be evaluated according to the comparison of the storage information of the file system corresponding to the device to be evaluated in a preset time period and an initial state respectively;
the filling unit is used for filling the preset filling file into the equipment to be evaluated to complete the file filling of the equipment to be evaluated;
the preset filler file determination unit includes:
the fragment file analysis subunit is used for determining the size of the storage space occupied by the fragment file according to the number of the subfiles of the fragment file and the size of the storage space occupied by the subfiles of the fragment file;
a fragmentation subfile determination subunit configured to determine, as a fragmentation subfile, a file having the same size as a subfile storage space of the fragmentation file;
the first fragment subfile filling subunit is configured to fill the multiple fragment subfiles to the device to be evaluated according to the size of the storage space of the device to be evaluated, which is occupied in the preset time period, and enable the sum of the storage spaces occupied by the multiple fragment subfiles to be larger than the size of the storage space occupied by the fragment files;
the first fragment subfile deleting subunit is configured to delete the plurality of fragment subfiles at intervals, so that the sum of storage spaces occupied by the undeleted fragment subfiles is the same as the size of the storage space occupied by the fragment file, and thus the fragment file filling of the device to be evaluated is completed;
wherein the deleting the plurality of fragmentation subfiles at intervals comprises: sequentially numbering the fragment subfiles continuously; and deleting intervals according to the continuous numbers.
9. A storage medium having at least one executable instruction stored therein, wherein the executable instruction causes a processor to perform operations corresponding to the file system aging evaluation method according to any one of claims 1 to 7.
10. A terminal, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is configured to store at least one executable instruction, wherein the executable instruction causes the processor to perform operations corresponding to the file system aging evaluation method according to any one of claims 1 to 7.
11. A storage medium having at least one executable instruction stored therein, wherein the executable instruction causes a processor to perform operations corresponding to the file system aging evaluation apparatus as claimed in claim 8.
12. A terminal, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is configured to store at least one executable instruction, wherein the executable instruction causes the processor to perform operations corresponding to the file system aging evaluation apparatus as claimed in claim 8.
CN202210177455.5A 2022-02-25 2022-02-25 File system aging evaluation method and device, storage medium and terminal Active CN114238249B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210177455.5A CN114238249B (en) 2022-02-25 2022-02-25 File system aging evaluation method and device, storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210177455.5A CN114238249B (en) 2022-02-25 2022-02-25 File system aging evaluation method and device, storage medium and terminal

Publications (2)

Publication Number Publication Date
CN114238249A CN114238249A (en) 2022-03-25
CN114238249B true CN114238249B (en) 2022-05-10

Family

ID=80748146

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210177455.5A Active CN114238249B (en) 2022-02-25 2022-02-25 File system aging evaluation method and device, storage medium and terminal

Country Status (1)

Country Link
CN (1) CN114238249B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116028327B (en) * 2023-02-20 2023-06-13 成都佰维存储科技有限公司 File system read-write performance test method and device, readable storage medium and equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113485969A (en) * 2021-05-31 2021-10-08 荣耀终端有限公司 Storage fragmentation method and device, terminal and computer storage medium

Family Cites Families (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7523140B2 (en) * 2004-03-01 2009-04-21 Sandisk Il Ltd. File system that manages files according to content
US8484150B2 (en) * 2010-02-26 2013-07-09 General Electric Company Systems and methods for asset condition monitoring in electric power substation equipment
CN102750221B (en) * 2012-05-29 2015-07-15 北京航空航天大学 Performance test method for Linux file system
US10235055B1 (en) * 2015-12-28 2019-03-19 EMC IP Holding Company LLC Storage performance testing to evaluate moving data among arrays
CN105871699A (en) * 2016-05-30 2016-08-17 广东欧珀移动通信有限公司 Terminal device, operator server, conversation method and conversation system
CN106093635A (en) * 2016-06-03 2016-11-09 深圳市樊溪电子有限公司 Mobile terminal ageing testing method, Apparatus and system
US20210382800A1 (en) * 2016-06-03 2021-12-09 Pure Storage, Inc. Efficient partitioning for storage system resiliency groups
CN106155824A (en) * 2016-06-27 2016-11-23 贵州万臻时代通讯技术有限公司 A kind of mobile phone hardware accelerated ageing test method and system
CN108093427B (en) * 2016-11-23 2020-11-06 中国移动通信集团公司 VoLTE service quality evaluation method and system
CN108280007B (en) * 2017-01-05 2021-08-13 中国移动通信集团福建有限公司 Method and device for evaluating equipment resource utilization rate
CN109614660A (en) * 2018-11-16 2019-04-12 国网宁夏电力有限公司电力科学研究院 The construction method and device of secondary equipment of intelligent converting station evaluation system
CN109634782B (en) * 2018-12-06 2021-05-04 Oppo广东移动通信有限公司 Method and device for detecting system robustness, storage medium and terminal
CN110221781B (en) * 2019-06-04 2022-08-23 Oppo广东移动通信有限公司 Manufacturing method and device of disk fragments, storage medium and intelligent terminal
CN110286281B (en) * 2019-06-11 2021-11-02 上海龙旗科技股份有限公司 Method and equipment for aging test of intelligent equipment
CN110502414B (en) * 2019-08-20 2023-08-29 Oppo广东移动通信有限公司 Terminal equipment performance test method and device, terminal equipment and storage medium
CN111209257B (en) * 2020-01-15 2023-05-09 西安奥卡云数据科技有限公司 File system fragmentation method and device
CN111782156A (en) * 2020-08-17 2020-10-16 Oppo广东移动通信有限公司 Memory life index establishing method and device, storage medium and terminal
CN113179524B (en) * 2020-08-27 2023-09-12 几维通信技术(深圳)有限公司 Network optimization method and computer readable storage medium
CN112910709B (en) * 2021-02-08 2022-11-22 中国联合网络通信集团有限公司 Method and device for determining service quality
CN113052515A (en) * 2021-05-31 2021-06-29 南京百伦斯智能科技有限公司 Teaching evaluation method and system based on data concurrent processing

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113485969A (en) * 2021-05-31 2021-10-08 荣耀终端有限公司 Storage fragmentation method and device, terminal and computer storage medium

Also Published As

Publication number Publication date
CN114238249A (en) 2022-03-25

Similar Documents

Publication Publication Date Title
US9836346B2 (en) Error troubleshooting using a correlated knowledge base
CN109992715B (en) Information display method, device, medium and computing equipment
US11782821B2 (en) Page simulation system
CN107276842B (en) Interface test method and device and electronic equipment
CN114238249B (en) File system aging evaluation method and device, storage medium and terminal
CN110717536A (en) Method and device for generating training sample
TWI694373B (en) Method and device for identifying click event of mobile terminal
CN111324303A (en) SSD garbage recycling method and device, computer equipment and storage medium
CN112182010B (en) Dirty page refreshing method and device, storage medium and electronic equipment
CN110069264A (en) Construct method, apparatus, computer equipment and the storage medium of resource packet
CN106358062A (en) Browser video file playing processing method and equipment
CN113076416A (en) Information heat evaluation method and device and electronic equipment
CN107391038A (en) Method for writing data, flash memory and the storage medium of data storage type flash memory
CN105138344A (en) Method and system for randomly generating screensaver according to picture hotness
CN108509348A (en) A kind of test method and mobile terminal of system aging
CN108228598B (en) Media information sorting method, server and system
CN109587040A (en) Mail processing method, system, computer device and storage medium
CN108228611B (en) Document information copying method and device
CN110427394B (en) Data operation method and device
CN111259017A (en) Order retrieval method, computer device and storage medium
CN110187836B (en) Data deleting method and device, computer and storage medium
CN111597129A (en) Cache management method and device, storage medium and solid-state nonvolatile storage device
CN108156054B (en) Method and device for testing performance of cloud desktop
CN111143236A (en) Memory mapping implementation queue and data reading and writing method thereof
US10482105B1 (en) External verification of content popularity

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