CN109324763A - Identify the method and system of low different degree file in mobile terminal in mobile Internet - Google Patents
Identify the method and system of low different degree file in mobile terminal in mobile Internet Download PDFInfo
- Publication number
- CN109324763A CN109324763A CN201811212390.3A CN201811212390A CN109324763A CN 109324763 A CN109324763 A CN 109324763A CN 201811212390 A CN201811212390 A CN 201811212390A CN 109324763 A CN109324763 A CN 109324763A
- Authority
- CN
- China
- Prior art keywords
- data file
- file
- memory
- importance
- candidate data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 27
- 238000012545 processing Methods 0.000 claims abstract description 88
- 238000012986 modification Methods 0.000 claims description 24
- 230000004048 modification Effects 0.000 claims description 24
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 claims description 24
- 230000004044 response Effects 0.000 claims description 20
- 238000012544 monitoring process Methods 0.000 claims description 8
- 238000012935 Averaging Methods 0.000 claims description 6
- 230000006835 compression Effects 0.000 description 6
- 238000007906 compression Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 6
- 230000001186 cumulative effect Effects 0.000 description 4
- 230000009182 swimming Effects 0.000 description 2
- 238000003672 processing method Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/70—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
- G06F21/78—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure storage of data
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/062—Securing storage systems
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Human Computer Interaction (AREA)
- Telephone Function (AREA)
- Telephonic Communication Services (AREA)
Abstract
The invention discloses a kind of for identifying the method and system of low different degree file in the mobile terminal of mobile Internet, and wherein method includes: to promote the first memory to enter storage protection mode when general act quantity is greater than quantity of documents threshold value;The document processing request is handled according to the type of the document processing request;The statistical items of each data file are determined based on effective operation information of territorial classification information and each data file;It is determined according to the statistical items of each data file and adds up multiple candidate data files that storage time is greater than pre-set accumulative storage time threshold value in the current valid data period in all data files, determine the initial different degree of each candidate data file;The different degree coefficient of each candidate data file is determined according to the initial different degree of each candidate data file;And the candidate data file that different degree coefficient in multiple candidate data files is less than different degree threshold value is determined as to the data file of low different degree.
Description
Technical Field
The present invention relates to the field of mobile internet, and more particularly, to a method and system for recognizing a low importance file in a mobile terminal of mobile internet.
Background
In the mobile internet, as the use of mobile terminals becomes more and more popular, the number of data files stored in the mobile terminals also becomes more and more. Typically, various types of applications also generate data files at runtime. For example, a camera application may generate a plurality of data files by taking pictures or recording videos, and the plurality of data files are stored in the mobile terminal. For this reason, data files in mobile terminals are increasing over time. In order to increase the operating speed of the mobile terminal, it is necessary to identify a data file with a low importance level in the mobile terminal, that is, to identify a file with a low importance level.
Disclosure of Invention
According to an aspect of the present invention, there is provided a method for identifying a low importance file in a mobile terminal of a mobile internet, the method comprising:
monitoring the total file number of all data files stored in a first memory of the mobile terminal in real time, and when the total file number is greater than a file number threshold value, prompting the first memory to enter a storage protection mode, so that when a file processing request aiming at the first memory is received from a current running application, the type of the file processing request is determined;
when the type of the file processing request is that a new data file is stored in the first memory, analyzing the file processing request to determine at least one new data file included in the file processing request, storing all of the at least one new data file in a second memory, and sending a response message to the currently running application to inform the currently running application that the at least one new data file has been stored in the first memory, without informing the currently running application of a state that the at least one new data file has been stored in the second memory in fact;
when the type of the file processing request is to modify an existing data file in the first memory, parsing the file handling request to determine at least one existing data file and modified content associated with each existing data file to which the file handling request relates, copying the at least one existing data file to the second memory, modifying at least one existing data file stored in the second memory based on the modification associated with each existing data file, and sending a response message to the currently running application to inform the currently running application to: the modification to at least one existing data file in the first memory has been completed, without notifying the currently running application that the modification to the at least one existing data file in the first storage is completed in the second storage;
after the first memory enters a storage protection mode, acquiring a log record file for recording an operation log of each data file in a plurality of data files in the mobile terminal, determining effective operation information of each data file based on a current effective data time period TP and the log record file, and determining a statistical item of each data file based on area classification information and the effective operation information of each data file, wherein the statistical item comprises an identifier of the data file, a default area operation frequency DC, a conventional area operation frequency UC, a strange area operation frequency SC, a total storage time TT and a total operation frequency TC in the total storage time; wherein the region classification information includes: default, regular, and unfamiliar areas;
determining a plurality of candidate data files of which the accumulated storage time is greater than a preset accumulated storage time threshold in all the data files according to the statistical items of each data file, determining the file type of each candidate data file, and determining the initial importance preRE of each candidate data file according to the file type of each candidate data file and the feature description information of the mobile terminal;
determining an importance coefficient of each candidate data file according to the initial importance of each candidate data file, the operation times DC of a default area, the operation times UC of a conventional area, the operation times SC of an unfamiliar area, the total storage time TT and the operation times TC in the total storage time:
determining the average hourly operation times CA of each candidate data file in the current effective time data sectioniAnd average number of runs per hour TA of each candidate data file in respective total storage timei;
Wherein,
wherein i is a natural number, and DFN is more than or equal to i and more than or equal to 1, wherein DFN is a natural number and is the number of candidate data files, and DFN is more than or equal to 100;
when CA is ini≥(3×TAi) When the temperature of the water is higher than the set temperature,
when TA isi≤CAi<(3×TAi) When the temperature of the water is higher than the set temperature,
when (0.5 XTA)i)≤CAi<TAiWhen the temperature of the water is higher than the set temperature,
when CA is ini<(0.5×TAi) When the temperature of the water is higher than the set temperature,
wherein REiIs the importance coefficient, preRE, of the ith candidate data fileiIs the initial importance of the ith candidate data file; DC (direct current)iRunning times and UC of the default area of the ith candidate data fileiRun times of regular regions, SC, for the ith candidate data fileiNumber of runs, TT, for unfamiliar area of ith candidate data fileiTotal storage time for ith candidate data file and TCiFor the number of runs of the ith candidate data file in its total storage time: CAiAveraging the operating times of the ith data file in the current effective time data section per hour; TA (TA)iFor the average number of times of operation per hour TA of the ith data file in the total storage timei(ii) a And
and determining the candidate data files with the importance coefficients smaller than the importance threshold value in the plurality of candidate data files as the data files with low importance.
Wherein the file number threshold is 500, 1000, 2000, 3000, or 5000; the mobile terminal comprises a plurality of applications, and the specific application is determined as the current running application in response to a trigger request of a user aiming at the specific application in the plurality of applications in the mobile terminal.
And when the current running application needs to store the data file or modify the data file in the first memory during running, generating a file processing request aiming at the first memory. 4. The method of claim 1, wherein the first memory is a flash memory or a dynamic random access memory and the second memory is a random access memory.
The log record file of each data file comprises a plurality of log records, and each log record is used for recording a running log of the data file, and each log record comprises: identifier of data file, location of mobile terminal at runtime, runtime start time, runtime end time
Determining a current effective data time period TP according to user input, or determining the current effective time period TP according to system preset information;
wherein the current valid period TP is a period of time in which a day previous to the current date is an end date and a specific date in the past is a start date, the current valid period TP including 5 natural days, 10 natural days, 15 natural days, or 20 natural days;
wherein the current validity period TP is a period of time with a previous hour of a current hour as an end time and a specific hour in the past as a start date, the current validity period TP comprising 30 hours, 50 hours, 80 hours, or 100 hours;
the current validity period TP includes a plurality of natural days, or the current validity period TP includes a plurality of hours.
The determining the valid operation information of each data file based on the current valid data period TP and the log record file includes:
selecting log records with the operation starting time and the operation ending time within the current valid data time period TP from the plurality of log records of the log record file of each data file, so that the plurality of selected log records of each data file form valid operation information of each data file.
The default area is a living area and/or a working area, or the default area is a living area and/or a learning area;
the method further comprises the steps of obtaining operation history information of the mobile terminal, and analyzing the operation history information to obtain a set of all position points of the mobile terminal which have been experienced;
determining an area in which the number of included location points is greater than or equal to a normal threshold as a normal area, wherein the normal area does not include a default area;
determining an area, in which the number of included position points is smaller than a conventional threshold value, as a strange area;
wherein the conventional threshold is 500, 1000, 1500 or 2000;
wherein the mobile terminal records the location points that have been experienced every 5 seconds.
The default area is a living area and/or a working area, or the default area is a living area and/or a learning area;
determining as a regular area according to a user input;
all areas outside the default area and the regular area are determined as strange areas.
The default area is a living area and/or a working area, or the default area is a living area and/or a learning area;
determining an area with the user terminal entering times larger than or equal to a time threshold value as a conventional area, wherein the conventional area does not comprise a default area;
determining an area with the user terminal entering times smaller than a time threshold value as an unfamiliar area;
the number threshold is 2.
Wherein any one of the default area, the regular area, and the strange area is a building area or a public utility area.
The determining the statistical item of each data file based on the region classification information and the valid operation information of each data file comprises:
and performing classification statistics on the log records in the effective operation information of each data file based on the region classification information to generate a statistical result, and determining a statistical item of each data file based on the statistical result.
Acquiring storage information files in a first storage, and determining the total storage time TT of each data file according to the storage information files;
and acquiring an operation statistical file in a first memory, and determining the total operation times TC of each data file in the total storage time according to the operation statistical file.
The cumulative storage time threshold is 50 natural days, 80 natural days, 100 natural days, or 200 natural days. Wherein the time length of the accumulated storage time threshold is greater than the time length of the current valid data time period;
wherein the file types include: video type, document type, and audio type;
the feature description information includes: high, medium and low privacy;
the method further comprises the steps of determining the use attribute of the mobile terminal, wherein the use attribute is office use or non-office use;
determining the initial importance preRE of each candidate data file according to the file type of each candidate data file and the feature description information of the mobile terminal comprises:
when the use attribute of the mobile terminal is office use, setting the importance of the video type to 50%, the importance of the document type to 90%, and the importance of the audio type to 40%; when the use attribute of the mobile terminal is office use, setting the importance of high privacy as 90%, setting the importance of medium privacy as 70% and setting the importance of low privacy as 50%;
when the usage attribute of the mobile terminal is non-office usage, setting the importance of the video type to 80%, the importance of the document type to 60%, and the importance of the audio type to 70%; when the use attribute of the mobile terminal is office use, setting the importance of high privacy as 90%, setting the importance of medium privacy as 70% and setting the importance of low privacy as 50%;
taking the average value of the importance of the file type of each candidate data file and the importance of the feature description information as the initial importance preRE of each candidate data file;
the initial importance preRE is 50%, 60% or 80%.
And compressing the determined at least one data file with low importance according to a preset compression rate.
Causing the first memory to exit the storage protection mode after determining a candidate data file of the plurality of candidate data files whose importance coefficient is less than the importance threshold as a data file of low importance.
After determining a candidate data file of the plurality of candidate data files having an importance coefficient less than the importance threshold as a data file of low importance,
moving new data files involved in each file processing request during the first memory entering a storage protected mode from the second memory into the first memory;
moving the modified existing data file to which each file processing request during the first memory entering the storage protection mode relates from the second memory to the first memory;
causing the first memory to exit a storage protection mode.
After determining a candidate data file of the plurality of candidate data files having an importance coefficient less than the importance threshold as a data file of low importance,
moving new data files involved in each file processing request during the first memory entering a storage protected mode from the second memory into the first memory;
the modified content related to each file processing request during the first memory entering the storage protection mode is moved from the second memory to the first memory, and the corresponding existing data file in the first memory is modified by the modified content;
causing the first memory to exit a storage protection mode.
During the first memory entering a storage protected mode, access requests for new data files or modified content stored during the first memory entering a storage protected mode are directed to the second memory.
Wherein the significance threshold is 30%, 40%, 50%, 60% or 80%.
According to another aspect of the present invention, there is provided a system for identifying a low importance file in a mobile terminal of a mobile internet, the system comprising:
the monitoring unit is used for monitoring the total file number of all data files stored in a first memory of the mobile terminal in real time, and when the total file number is larger than a file number threshold value, the first memory is prompted to enter a storage protection mode, so that when a file processing request aiming at the first memory is received from a current running application, the type of the file processing request is determined;
a processing unit, when the type of the file processing request is to store a new data file into the first memory, parsing the file processing request to determine at least one new data file included in the file processing request, storing all of the at least one new data file into a second memory, and sending a response message to the currently running application to notify the currently running application that the at least one new data file has been stored into the first memory, without notifying the currently running application of a state in which the at least one new data file has actually been stored into the second memory; when the type of the file processing request is to modify an existing data file in the first memory, parsing the file handling request to determine at least one existing data file and modified content associated with each existing data file to which the file handling request relates, copying the at least one existing data file to the second memory, modifying at least one existing data file stored in the second memory based on the modification associated with each existing data file, and sending a response message to the currently running application to inform the currently running application to: the modification to at least one existing data file in the first memory has been completed, without notifying the currently running application that the modification to the at least one existing data file in the first storage is completed in the second storage;
the acquisition unit is used for acquiring a log record file for recording an operation log of each data file in a plurality of data files in the mobile terminal after the first memory enters a storage protection mode, determining effective operation information of each data file based on a current effective data time period TP and the log record file, and determining a statistical item of each data file based on the area classification information and the effective operation information of each data file, wherein the statistical item comprises an identifier of the data file, a default area operation frequency DC, a conventional area operation frequency UC, a strange area operation frequency SC, total storage time TT and total operation frequency TC in the total storage time; wherein the region classification information includes: default, regular, and unfamiliar areas;
the determining unit is used for determining a plurality of candidate data files of which the accumulated storage time is greater than a preset accumulated storage time threshold in all the data files according to the statistical items of each data file, determining the file type of each candidate data file, and determining the initial importance preRE of each candidate data file according to the file type of each candidate data file and the feature description information of the mobile terminal;
the calculating unit is used for determining the importance coefficient of each candidate data file according to the initial importance of each candidate data file, the operation times DC of the default area, the operation times UC of the conventional area, the operation times SC of the strange area, the total storage time TT and the operation times TC in the total storage time:
determining the average hourly operation times CA of each candidate data file in the current effective time data sectioniAnd average number of runs per hour TA of each candidate data file in respective total storage timei;
Wherein,
wherein i is a natural number, and DFN is more than or equal to i and more than or equal to 1, wherein DFN is a natural number and is the number of candidate data files, and DFN is more than or equal to 100;
when CA is ini≥(3×TAi) When the temperature of the water is higher than the set temperature,
when TA isi≤CAi<(3×TAi) When the temperature of the water is higher than the set temperature,
when (0.5 XTA)i)≤CAi<TAiWhen the temperature of the water is higher than the set temperature,
when CA is ini<(0.5×TAi) When the temperature of the water is higher than the set temperature,
wherein REiIs the importance coefficient, preRE, of the ith candidate data fileiIs the initial importance of the ith candidate data file; DC (direct current)iRunning times and UC of the default area of the ith candidate data fileiRun times of regular regions, SC, for the ith candidate data fileiNumber of runs, TT, for unfamiliar area of ith candidate data fileiTotal storage time for ith candidate data file and TCiFor the number of runs of the ith candidate data file in its total storage time: CAiAveraging the operating times of the ith data file in the current effective time data section per hour; TA (TA)iFor the ith data file, average number of times of operation per hour TA in total storage timei(ii) a And
and determining the candidate data files with the importance coefficients smaller than the importance threshold value in the plurality of candidate data files as the data files with low importance.
Wherein the file number threshold is 500, 1000, 2000, 3000, or 5000; the mobile terminal comprises a plurality of applications, and the specific application is determined as the current running application in response to a trigger request of a user aiming at the specific application in the plurality of applications in the mobile terminal.
The file processing method further comprises a generating unit, and when the current running application needs to store the data file or modify the data file in the first storage during running, the generating unit generates a file processing request aiming at the first storage.
The first memory is a flash memory or a dynamic random access memory, and the second memory is a random access memory.
The log record file of each data file comprises a plurality of log records, and each log record is used for recording a running log of the data file, and each log record comprises: identifier of data file, location of mobile terminal at runtime, runtime start time, runtime end time
Determining a current effective data time period TP according to user input, or determining the current effective time period TP according to system preset information;
wherein the current valid period TP is a period of time in which a day previous to the current date is an end date and a specific date in the past is a start date, the current valid period TP including 5 natural days, 10 natural days, 15 natural days, or 20 natural days;
wherein the current validity period TP is a period of time with a previous hour of a current hour as an end time and a specific hour in the past as a start date, the current validity period TP comprising 30 hours, 50 hours, 80 hours, or 100 hours;
the current validity period TP includes a plurality of natural days, or the current validity period TP includes a plurality of hours.
The determining the valid operation information of each data file based on the current valid data period TP and the log record file includes:
selecting log records with the operation starting time and the operation ending time within the current valid data time period TP from the plurality of log records of the log record file of each data file, so that the plurality of selected log records of each data file form valid operation information of each data file.
The default area is a living area and/or a working area, or the default area is a living area and/or a learning area;
the method further comprises the steps of obtaining operation history information of the mobile terminal, and analyzing the operation history information to obtain a set of all position points of the mobile terminal which have been experienced;
determining an area in which the number of included location points is greater than or equal to a normal threshold as a normal area, wherein the normal area does not include a default area;
determining an area, in which the number of included position points is smaller than a conventional threshold value, as a strange area;
wherein the conventional threshold is 500, 1000, 1500 or 2000;
wherein the mobile terminal records the location points that have been experienced every 5 seconds.
The default area is a living area and/or a working area, or the default area is a living area and/or a learning area;
determining as a regular area according to a user input;
all areas outside the default area and the regular area are determined as strange areas.
The default area is a living area and/or a working area, or the default area is a living area and/or a learning area;
determining an area with the user terminal entering times larger than or equal to a time threshold value as a conventional area, wherein the conventional area does not comprise a default area;
determining an area with the user terminal entering times smaller than a time threshold value as an unfamiliar area;
the number threshold is 2.
Wherein any one of the default area, the regular area, and the strange area is a building area or a public utility area.
The determining the statistical item of each data file based on the region classification information and the valid operation information of each data file comprises:
and performing classification statistics on the log records in the effective operation information of each data file based on the region classification information to generate a statistical result, and determining a statistical item of each data file based on the statistical result.
Acquiring storage information files in a first storage, and determining the total storage time TT of each data file according to the storage information files;
and acquiring an operation statistical file in a first memory, and determining the total operation times TC of each data file in the total storage time according to the operation statistical file.
The cumulative storage time threshold is 50 natural days, 80 natural days, 100 natural days, or 200 natural days.
Wherein the file types include: video type, document type, and audio type;
the feature description information includes: high, medium and low privacy;
the method further comprises the steps of determining the use attribute of the mobile terminal, wherein the use attribute is office use or non-office use;
determining the initial importance preRE of each candidate data file according to the file type of each candidate data file and the feature description information of the mobile terminal comprises:
when the use attribute of the mobile terminal is office use, setting the importance of the video type to 50%, the importance of the document type to 90%, and the importance of the audio type to 40%; when the use attribute of the mobile terminal is office use, setting the importance of high privacy as 90%, setting the importance of medium privacy as 70% and setting the importance of low privacy as 50%;
when the usage attribute of the mobile terminal is non-office usage, setting the importance of the video type to 80%, the importance of the document type to 60%, and the importance of the audio type to 70%; when the use attribute of the mobile terminal is office use, setting the importance of high privacy as 90%, setting the importance of medium privacy as 70% and setting the importance of low privacy as 50%;
and taking the average value of the importance of the file type of each candidate data file and the importance of the feature description information as the initial importance preRE of each candidate data file.
And compressing the determined at least one data file with low importance according to a preset compression rate.
Causing the first memory to exit the storage protection mode after determining a candidate data file of the plurality of candidate data files whose importance coefficient is less than the importance threshold as a data file of low importance.
After determining a candidate data file of the plurality of candidate data files having an importance coefficient less than the importance threshold as a data file of low importance,
moving new data files involved in each file processing request during the first memory entering a storage protected mode from the second memory into the first memory;
moving the modified existing data file to which each file processing request during the first memory entering the storage protection mode relates from the second memory to the first memory;
causing the first memory to exit a storage protection mode.
After determining a candidate data file of the plurality of candidate data files having an importance coefficient less than the importance threshold as a data file of low importance,
moving new data files involved in each file processing request during the first memory entering a storage protected mode from the second memory into the first memory;
the modified content related to each file processing request during the first memory entering the storage protection mode is moved from the second memory to the first memory, and the corresponding existing data file in the first memory is modified by the modified content;
causing the first memory to exit a storage protection mode.
During the first memory entering a storage protected mode, access requests for new data files or modified content stored during the first memory entering a storage protected mode are directed to the second memory.
Wherein the significance threshold is 30%, 40%, 50%, 60% or 80%.
Drawings
A more complete understanding of exemplary embodiments of the present invention may be had by reference to the following drawings in which:
fig. 1 is a flowchart of a method for identifying a low-importance file in a mobile terminal of a mobile internet according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating data processing according to the type of file processing request, according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating data processing according to the type of file processing request according to another embodiment of the present invention; and
fig. 4 is a schematic structural diagram of a system for recognizing a low-importance file in a mobile terminal of the mobile internet according to an embodiment of the present invention.
Detailed Description
Fig. 1 is a flowchart of a method 100 for identifying a low-importance file in a mobile terminal of a mobile internet according to an embodiment of the present invention. As shown in fig. 1, method 100 begins at step 101.
In step 101, the total file number of all data files stored in a first memory of the mobile terminal is monitored in real time, and when the total file number is greater than a file number threshold, the first memory is prompted to enter a storage protection mode, so that when a file processing request for the first memory is subsequently received from a currently running application, the type of the file processing request is determined. Wherein the file number threshold is 500, 1000, 2000, 3000, or 5000; the mobile terminal comprises a plurality of applications, and the specific application is determined as the current running application in response to a trigger request of a user aiming at the specific application in the plurality of applications in the mobile terminal. And when the current running application needs to store the data file or modify the data file in the first memory during running, generating a file processing request aiming at the first memory.
At step 102, the file processing request is processed according to the type of the file processing request. When the type of the file processing request is that a new data file is stored in the first memory, analyzing the file processing request to determine at least one new data file included in the file processing request, storing all of the at least one new data file in a second memory, and sending a response message to the currently running application to inform the currently running application that the at least one new data file has been stored in the first memory, without informing the currently running application of a state that the at least one new data file has been stored in the second memory in fact;
when the type of the file processing request is to modify an existing data file in the first memory, parsing the file handling request to determine at least one existing data file and modified content associated with each existing data file to which the file handling request relates, copying the at least one existing data file to the second memory, modifying at least one existing data file stored in the second memory based on the modification associated with each existing data file, and sending a response message to the currently running application to inform the currently running application to: the modification to at least one existing data file in the first memory has been completed, without notifying the currently running application that the modification to the at least one existing data file in the first storage is completed in the second storage. The first memory is a flash memory or a dynamic random access memory, and the second memory is a random access memory.
In step 103, after the first memory enters a storage protection mode, acquiring a log record file for recording an operation log of each data file in a plurality of data files in the mobile terminal, determining effective operation information of each data file based on a current effective data time period TP and the log record file, and determining a statistical item of each data file based on the area classification information and the effective operation information of each data file, wherein the statistical item comprises an identifier of the data file, a default area operation time DC, a conventional area operation time UC, a strange area operation time SC, a total storage time TT and a total operation time TC in the total storage time; wherein the region classification information includes: default area, regular area, and strange area.
The log record file of each data file comprises a plurality of log records, and each log record is used for recording a running log of the data file, and each log record comprises: an identifier of the data file, a location of the mobile terminal at runtime, a runtime start time, a runtime end time. Determining a current effective data time period TP according to user input, or determining the current effective time period TP according to system preset information; wherein the current valid period TP is a period of time in which a day previous to the current date is an end date and a specific date in the past is a start date, the current valid period TP including 5 natural days, 10 natural days, 15 natural days, or 20 natural days; wherein the current validity period TP is a period of time with a previous hour of a current hour as an end time and a specific hour in the past as a start date, the current validity period TP comprising 30 hours, 50 hours, 80 hours, or 100 hours; the current validity period TP includes a plurality of natural days, or the current validity period TP includes a plurality of hours.
The determining the valid operation information of each data file based on the current valid data period TP and the log record file includes: selecting log records with the operation starting time and the operation ending time within the current valid data time period TP from the plurality of log records of the log record file of each data file, so that the plurality of selected log records of each data file form valid operation information of each data file. The default area is a living area and/or a working area, or the default area is a living area and/or a learning area; the method further comprises the steps of obtaining operation history information of the mobile terminal, and analyzing the operation history information to obtain a set of all position points of the mobile terminal which have been experienced; determining an area in which the number of included location points is greater than or equal to a normal threshold as a normal area, wherein the normal area does not include a default area; determining an area, in which the number of included position points is smaller than a conventional threshold value, as a strange area; wherein the conventional threshold is 500, 1000, 1500 or 2000; wherein the mobile terminal records the location points that have been experienced every 5 seconds.
The default area is a living area and/or a working area, or the default area is a living area and/or a learning area; determining as a regular area according to a user input; all areas outside the default area and the regular area are determined as strange areas. Wherein the default zone is a residential zone and/or a work zone, or the default zone is a residential zone and/or a learning zone. And determining the area of which the number of times the user terminal enters is greater than or equal to the number threshold value as a normal area, wherein the normal area does not comprise a default area. The general area is, for example, a restaurant, a fitness site, a swimming site, etc. where the user often goes with the mobile terminal. And determining the area with the entering frequency of the user terminal being less than the frequency threshold value as the strange area. The unfamiliar area is for example a movie theatre where the user goes for the first time with the mobile terminal. With the number threshold of 2.
Wherein any one of the default area, the regular area, and the strange area is a building area or a public utility area. Wherein the default area, the regular area, and the unfamiliar area are geographic areas such as building areas, park areas, scientific park areas, and the like.
The determining the statistical item of each data file based on the region classification information and the valid operation information of each data file comprises: and performing classification statistics on the log records in the effective operation information of each data file based on the region classification information to generate a statistical result, and determining a statistical item of each data file based on the statistical result. And acquiring the storage information files in the first storage, and determining the total storage time TT of each data file according to the storage information files. And acquiring an operation statistical file in a first memory, and determining the total operation times TC of each data file in the total storage time according to the operation statistical file.
In step 104, a plurality of candidate data files with accumulated storage time larger than a preset accumulated storage time threshold in all the data files are determined according to the statistical items of each data file, the file type of each candidate data file is determined, and the initial importance preRE of each candidate data file is determined according to the file type of each candidate data file and the feature description information of the mobile terminal.
The cumulative storage time threshold is 50 natural days, 80 natural days, 100 natural days, or 200 natural days. Wherein the file types include: video type, document type, and audio type; the feature description information includes: high, medium and low privacy; the method further comprises the step of determining the use attribute of the mobile terminal, wherein the use attribute is office use or non-office use. Determining the initial importance preRE of each candidate data file according to the file type of each candidate data file and the feature description information of the mobile terminal comprises: when the use attribute of the mobile terminal is office use, setting the importance of the video type to 50%, the importance of the document type to 90%, and the importance of the audio type to 40%; when the usage attribute of the mobile terminal is office usage, the importance of high privacy is set to 90%, the importance of medium privacy is set to 70%, and the importance of low privacy is set to 50%. When the usage attribute of the mobile terminal is non-office usage, setting the importance of the video type to 80%, the importance of the document type to 60%, and the importance of the audio type to 70%; when the usage attribute of the mobile terminal is office usage, the importance of high privacy is set to 90%, the importance of medium privacy is set to 70%, and the importance of low privacy is set to 50%. And taking the average value of the importance of the file type of each candidate data file and the importance of the feature description information as the initial importance preRE of each candidate data file.
In step 105, determining an importance coefficient of each candidate data file according to the initial importance of each candidate data file, the default area operation times DC, the normal area operation times UC, the strange area operation times SC, the total storage time TT and the operation times TC in the total storage time:
determining the average hourly operation times CA of each candidate data file in the current effective time data sectioniAnd average number of runs per hour TA of each candidate data file in respective total storage timei;
Wherein,
wherein i is a natural number, and DFN is more than or equal to i and more than or equal to 1, wherein DFN is a natural number and is the number of candidate data files, and DFN is more than or equal to 100;
when CA is ini≥(3×TAi) When the temperature of the water is higher than the set temperature,
when TA isi≤CAi<(3×TAi) When the temperature of the water is higher than the set temperature,
when (0.5 XTA)i)≤CAi<TAiWhen the temperature of the water is higher than the set temperature,
when CA is ini<(0.5×TAi) When the temperature of the water is higher than the set temperature,
wherein REiIs the importance coefficient, preRE, of the ith candidate data fileiIs the initial importance of the ith candidate data file; DC (direct current)iRunning times and UC of the default area of the ith candidate data fileiRun times of regular regions, SC, for the ith candidate data fileiNumber of runs, TT, for unfamiliar area of ith candidate data fileiTotal storage time for ith candidate data file and TCiThe number of runs in the total storage time of the ith candidate data file is as follows: CAiAveraging the operating times of the ith data file in the current effective time data section per hour; TA (TA)iAverage operation times TA per hour in respective total storage time for ith data filei。
In step 106, the candidate data file with the importance coefficient smaller than the importance threshold value in the plurality of candidate data files is determined as the data file with low importance. And compressing the determined at least one data file with low importance according to a preset compression rate. Alternatively, the determined plurality of data files of low importance are compressed at a predetermined compression rate. Causing the first memory to exit the storage protection mode after determining a candidate data file of the plurality of candidate data files whose importance coefficient is less than the importance threshold as a data file of low importance.
After determining the candidate data files with the importance coefficient smaller than the importance threshold value in the plurality of candidate data files as the data files with low importance, moving the new data files related to each file processing request during the first memory entering the storage protection mode from the second memory to the first memory; moving the modified existing data file to which each file processing request during the first memory entering the storage protection mode relates from the second memory to the first memory; causing the first memory to exit a storage protection mode.
After determining the candidate data files with the importance coefficient smaller than the importance threshold value in the plurality of candidate data files as the data files with low importance, moving the new data files related to each file processing request during the first memory entering the storage protection mode from the second memory to the first memory; the modified content related to each file processing request during the first memory entering the storage protection mode is moved from the second memory to the first memory, and the corresponding existing data file in the first memory is modified by the modified content; causing the first memory to exit a storage protection mode.
During the first memory entering a storage protected mode, access requests for new data files or modified content stored during the first memory entering a storage protected mode are directed to the second memory. Wherein the significance threshold is 30%, 40%, 50%, 60% or 80%.
Fig. 2 is a schematic diagram of data processing according to the type of a file processing request according to an embodiment of the present invention. A control unit 202 within the mobile terminal monitors in real time the total file number of all data files stored in a first memory 204 of the mobile terminal. When the total number of files is greater than the threshold number of files, the control unit 202 causes the first memory 204 to enter a storage protection mode, so that when a file processing request for the first memory is subsequently received from the currently running application 201, the type of the file processing request is determined.
The control unit 202 processes the file processing request according to the type of the file processing request. When the type of the file processing request is to store a new data file into the first memory 204, the control unit 202 parses the file processing request to determine at least one new data file included in the file processing request. The control unit 202 stores all of the at least one new data file in the second memory 203 and sends a response message to the currently running application to inform the currently running application 201 that the at least one new data file has been stored in the first memory 204 and does not inform the currently running application 201 of the state in which the at least one new data file has actually been stored in the second memory 203. The first memory 204 is a flash memory or a dynamic random access memory, and the second memory 203 is a random access memory.
Fig. 3 is a diagram illustrating data processing according to the type of a file processing request according to another embodiment of the present invention. The control unit 302 monitors in real time the total file number of all data files stored in the first memory 304 of the mobile terminal. When the total number of files is greater than the threshold number of files, the control unit 302 causes the first memory 304 to enter a storage protection mode such that the type of the file processing request is determined when the file processing request directed to the first memory 304 is subsequently received from the currently running application 301.
When the type of the file processing request is to modify the existing data files in the first storage 304, the control unit 302 parses the file processing request to determine at least one existing data file and modification content associated with each existing data file to which the file processing request relates. The control unit 302 copies the at least one existing data file from the first memory 304 to the second memory 303 and modifies the at least one existing data file stored in the second memory 303 according to the modification content associated with each existing data file and sends a response message to the currently running application to inform the currently running application 301 that the modification for the at least one existing data file in the first memory 304 has been completed without informing the currently running application 301 that the modification for the at least one existing data file in the first memory 304 is completed in the second memory 303. The first memory 304 is a flash memory or a dynamic random access memory, and the second memory 303 is a random access memory.
Fig. 4 is a schematic structural diagram of a system 400 for identifying a low-importance file in a mobile terminal of the mobile internet according to an embodiment of the present invention. As shown in fig. 4, the system 400 includes a monitoring unit 401, a processing unit 402, an acquisition unit 403, a determination unit 404, a calculation unit 405, and a generation unit 406. The monitoring unit 401 monitors the total file number of all data files stored in the first memory of the mobile terminal in real time, and when the total file number is greater than a file number threshold, causes the first memory to enter a storage protection mode, so that when a file processing request for the first memory is subsequently received from a currently running application, the type of the file processing request is determined. Wherein the file number threshold is 500, 1000, 2000, 3000, or 5000; the mobile terminal comprises a plurality of applications, and the specific application is determined as the current running application in response to a trigger request of a user aiming at the specific application in the plurality of applications in the mobile terminal. And when the current running application needs to store the data file or modify the data file in the first memory during running, generating a file processing request aiming at the first memory.
The processing unit 402 processes the file processing request according to the type of the file processing request. When the type of the file processing request is that a new data file is stored in the first memory, analyzing the file processing request to determine at least one new data file included in the file processing request, storing all of the at least one new data file in a second memory, and sending a response message to the currently running application to inform the currently running application that the at least one new data file has been stored in the first memory, without informing the currently running application of a state that the at least one new data file has been stored in the second memory in fact;
when the type of the file processing request is to modify an existing data file in the first memory, parsing the file handling request to determine at least one existing data file and modified content associated with each existing data file to which the file handling request relates, copying the at least one existing data file to the second memory, modifying at least one existing data file stored in the second memory based on the modification associated with each existing data file, and sending a response message to the currently running application to inform the currently running application to: the modification to at least one existing data file in the first memory has been completed, without notifying the currently running application that the modification to the at least one existing data file in the first storage is completed in the second storage. The first memory is a flash memory or a dynamic random access memory, and the second memory is a random access memory.
The obtaining unit 403 obtains a log record file for recording an operation log of each of a plurality of data files in the mobile terminal after the first storage enters a storage protection mode, determines valid operation information of each data file based on a current valid data time period TP and the log record file, and determines a statistical item of each data file based on the region classification information and the valid operation information of each data file, where the statistical item includes an identifier of the data file, a default region operation frequency DC, a normal region operation frequency UC, a strange region operation frequency SC, a total storage time TT, and a total operation frequency TC in the total storage time; wherein the region classification information includes: default area, regular area, and strange area.
The log record file of each data file comprises a plurality of log records, and each log record is used for recording a running log of the data file, and each log record comprises: an identifier of the data file, a location of the mobile terminal at runtime, a runtime start time, a runtime end time. Determining a current effective data time period TP according to user input, or determining the current effective time period TP according to system preset information; wherein the current valid period TP is a period of time in which a day previous to the current date is an end date and a specific date in the past is a start date, the current valid period TP including 5 natural days, 10 natural days, 15 natural days, or 20 natural days; wherein the current validity period TP is a period of time with a previous hour of a current hour as an end time and a specific hour in the past as a start date, the current validity period TP comprising 30 hours, 50 hours, 80 hours, or 100 hours; the current validity period TP includes a plurality of natural days, or the current validity period TP includes a plurality of hours.
The determining the valid operation information of each data file based on the current valid data period TP and the log record file includes: selecting log records with the operation starting time and the operation ending time within the current valid data time period TP from the plurality of log records of the log record file of each data file, so that the plurality of selected log records of each data file form valid operation information of each data file. The default area is a living area and/or a working area, or the default area is a living area and/or a learning area; the method further comprises the steps of obtaining operation history information of the mobile terminal, and analyzing the operation history information to obtain a set of all position points of the mobile terminal which have been experienced; determining an area in which the number of included location points is greater than or equal to a normal threshold as a normal area, wherein the normal area does not include a default area; determining an area, in which the number of included position points is smaller than a conventional threshold value, as a strange area; wherein the conventional threshold is 500, 1000, 1500 or 2000; wherein the mobile terminal records the location points that have been experienced every 5 seconds.
The default area is a living area and/or a working area, or the default area is a living area and/or a learning area; determining as a regular area according to a user input; all areas outside the default area and the regular area are determined as strange areas. Wherein the default zone is a residential zone and/or a work zone, or the default zone is a residential zone and/or a learning zone. And determining the area of which the number of times the user terminal enters is greater than or equal to the number threshold value as a normal area, wherein the normal area does not comprise a default area. The general area is, for example, a restaurant, a fitness site, a swimming site, etc. where the user often goes with the mobile terminal. And determining the area with the entering frequency of the user terminal being less than the frequency threshold value as the strange area. The unfamiliar area is for example a movie theatre where the user goes for the first time with the mobile terminal. With the number threshold of 2.
Wherein any one of the default area, the regular area, and the strange area is a building area or a public utility area. Wherein the default area, the regular area, and the unfamiliar area are geographic areas such as building areas, park areas, scientific park areas, and the like.
The determining the statistical item of each data file based on the region classification information and the valid operation information of each data file comprises: and performing classification statistics on the log records in the effective operation information of each data file based on the region classification information to generate a statistical result, and determining a statistical item of each data file based on the statistical result. And acquiring the storage information files in the first storage, and determining the total storage time TT of each data file according to the storage information files. And acquiring an operation statistical file in a first memory, and determining the total operation times TC of each data file in the total storage time according to the operation statistical file.
The determining unit 404 determines a plurality of candidate data files with accumulated storage time greater than a preset accumulated storage time threshold in all the data files according to the statistical items of each data file, determines a file type of each candidate data file, and determines an initial importance preRE of each candidate data file according to the file type of each candidate data file and the feature description information of the mobile terminal.
The cumulative storage time threshold is 50 natural days, 80 natural days, 100 natural days, or 200 natural days. Wherein the file types include: video type, document type, and audio type; the feature description information includes: high, medium and low privacy; the method further comprises the step of determining the use attribute of the mobile terminal, wherein the use attribute is office use or non-office use. Determining the initial importance preRE of each candidate data file according to the file type of each candidate data file and the feature description information of the mobile terminal comprises: when the use attribute of the mobile terminal is office use, setting the importance of the video type to 50%, the importance of the document type to 90%, and the importance of the audio type to 40%; when the usage attribute of the mobile terminal is office usage, the importance of high privacy is set to 90%, the importance of medium privacy is set to 70%, and the importance of low privacy is set to 50%. When the usage attribute of the mobile terminal is non-office usage, setting the importance of the video type to 80%, the importance of the document type to 60%, and the importance of the audio type to 70%; when the usage attribute of the mobile terminal is office usage, the importance of high privacy is set to 90%, the importance of medium privacy is set to 70%, and the importance of low privacy is set to 50%. And taking the average value of the importance of the file type of each candidate data file and the importance of the feature description information as the initial importance preRE of each candidate data file.
The calculating unit 405 determines an importance coefficient of each candidate data file according to the initial importance of each candidate data file, the default area operation times DC, the normal area operation times UC, the strange area operation times SC, the total storage time TT, and the operation times TC within the total storage time:
determining the average hourly operation times CA of each candidate data file in the current effective time data sectioniAnd average number of runs per hour TA of each candidate data file in respective total storage timei;
Wherein,
wherein i is a natural number, and DFN is more than or equal to i and more than or equal to 1, wherein DFN is a natural number and is the number of candidate data files, and DFN is more than or equal to 100;
when CA is ini≥(3×TAi) When the temperature of the water is higher than the set temperature,
when TA isi≤CAi<(3×TAi) When the temperature of the water is higher than the set temperature,
when (0.5 XTA)i)≤CAi<TAiWhen the temperature of the water is higher than the set temperature,
when CA is ini<(0.5×TAi) When the temperature of the water is higher than the set temperature,
wherein REiIs the importance coefficient, preRE, of the ith candidate data fileiIs the initial importance of the ith candidate data file; DC (direct current)iRunning times and UC of the default area of the ith candidate data fileiRun times of regular regions, SC, for the ith candidate data fileiNumber of runs, TT, for unfamiliar area of ith candidate data fileiTotal storage time for ith candidate data file and TCiThe number of runs in the total storage time of the ith candidate data file is as follows: CAiAveraging the operating times of the ith data file in the current effective time data section per hour; TA (TA)iAverage operation times TA per hour in respective total storage time for ith data filei。
The generation unit 406 determines a candidate data file whose importance coefficient is smaller than the importance threshold value among the plurality of candidate data files as a data file of low importance. And compressing the determined at least one data file with low importance according to a preset compression rate. Alternatively, the determined plurality of data files of low importance are compressed at a predetermined compression rate. Causing the first memory to exit the storage protection mode after determining a candidate data file of the plurality of candidate data files whose importance coefficient is less than the importance threshold as a data file of low importance.
After determining the candidate data files with the importance coefficient smaller than the importance threshold value in the plurality of candidate data files as the data files with low importance, moving the new data files related to each file processing request during the first memory entering the storage protection mode from the second memory to the first memory; moving the modified existing data file to which each file processing request during the first memory entering the storage protection mode relates from the second memory to the first memory; causing the first memory to exit a storage protection mode.
After determining the candidate data files with the importance coefficient smaller than the importance threshold value in the plurality of candidate data files as the data files with low importance, moving the new data files related to each file processing request during the first memory entering the storage protection mode from the second memory to the first memory; the modified content related to each file processing request during the first memory entering the storage protection mode is moved from the second memory to the first memory, and the corresponding existing data file in the first memory is modified by the modified content; causing the first memory to exit a storage protection mode.
During the first memory entering a storage protected mode, access requests for new data files or modified content stored during the first memory entering a storage protected mode are directed to the second memory. Wherein the significance threshold is 30%, 40%, 50%, 60% or 80%.
Claims (10)
1. A method for identifying a low importance file in a mobile terminal of a mobile internet, the method comprising:
monitoring the total file number of all data files stored in a first memory of the mobile terminal in real time, and when the total file number is greater than a file number threshold value, prompting the first memory to enter a storage protection mode, so that when a file processing request aiming at the first memory is received from a current running application, the type of the file processing request is determined;
when the type of the file processing request is that a new data file is stored in the first memory, analyzing the file processing request to determine at least one new data file included in the file processing request, storing all of the at least one new data file in a second memory, and sending a response message to the currently running application to inform the currently running application that the at least one new data file has been stored in the first memory, without informing the currently running application of a state that the at least one new data file has been stored in the second memory in fact;
when the type of the file processing request is to modify an existing data file in the first memory, parsing the file handling request to determine at least one existing data file and modified content associated with each existing data file to which the file handling request relates, copying the at least one existing data file to the second memory, modifying at least one existing data file stored in the second memory based on the modification associated with each existing data file, and sending a response message to the currently running application to inform the currently running application to: the modification to at least one existing data file in the first memory has been completed, without notifying the currently running application that the modification to the at least one existing data file in the first storage is completed in the second storage;
after the first memory enters a storage protection mode, acquiring a log record file for recording an operation log of each data file in a plurality of data files in the mobile terminal, determining effective operation information of each data file based on a current effective data time period TP and the log record file, and determining a statistical item of each data file based on area classification information and the effective operation information of each data file, wherein the statistical item comprises an identifier of the data file, a default area operation frequency DC, a conventional area operation frequency UC, a strange area operation frequency SC, a total storage time TT and a total operation frequency TC in the total storage time; wherein the region classification information includes: default, regular, and unfamiliar areas;
determining a plurality of candidate data files of which the accumulated storage time is greater than a preset accumulated storage time threshold in all the data files according to the statistical items of each data file, determining the file type of each candidate data file, and determining the initial importance preRE of each candidate data file according to the file type of each candidate data file and the feature description information of the mobile terminal;
determining an importance coefficient of each candidate data file according to the initial importance preRE, the default region operation times DC, the conventional region operation times UC, the strange region operation times SC, the total storage time TT and the operation times TC in the total storage time of each candidate data file:
determining the average hourly operation times CA of each candidate data file in the current effective time data sectioniAnd average number of runs per hour TA of each candidate data file in respective total storage timei;
Wherein,
wherein i is a natural number, and DFN is more than or equal to i and more than or equal to 1, wherein DFN is a natural number and is the number of candidate data files, and DFN is more than or equal to 100;
when CA is ini≥(3×TAi) When the temperature of the water is higher than the set temperature,
when TA isi≤CAi<(3×TAi) When the temperature of the water is higher than the set temperature,
when (0.5 XTA)i)≤CAi<TAiWhen the temperature of the water is higher than the set temperature,
when CA is ini<(0.5×TAi) When the temperature of the water is higher than the set temperature,
wherein REiIs the importance coefficient, preRE, of the ith candidate data fileiIs the initial importance of the ith candidate data file; DC (direct current)iRunning times and UC of the default area of the ith candidate data fileiRun times of regular regions, SC, for the ith candidate data fileiNumber of runs, TT, for unfamiliar area of ith candidate data fileiTotal storage time for ith candidate data file and TCiFor the number of runs of the ith candidate data file in the total storage time: CAiAveraging the operating times of the ith data file in the current effective time data section per hour; TA (TA)iAverage operation times TA per hour in respective total storage time for ith data filei(ii) a And
and determining the candidate data files with the importance coefficients smaller than the importance threshold value in the plurality of candidate data files as the data files with low importance.
2. The method of claim 1 or 2, wherein the file number threshold is 500, 1000, 2000, 3000, or 5000; the mobile terminal comprises a plurality of applications, and the specific application is determined as the current running application in response to a trigger request of a user aiming at the specific application in the plurality of applications in the mobile terminal.
3. The method of claim 2, generating a file processing request for the first memory when the currently running application requires storage of a data file or modification of a data file to the first memory at runtime.
4. The method of claim 1, wherein the first memory is a flash memory or a dynamic random access memory and the second memory is a random access memory.
5. The method of claim 1, wherein the log record file for each data file comprises a plurality of log records, and each log record is for recording a running log of the data file, each log record comprising: an identifier of the data file, a location of the mobile terminal at runtime, a runtime start time, a runtime end time.
6. A system for recognizing a low-importance file in a mobile terminal of a mobile internet, the system comprising:
the monitoring unit is used for monitoring the total file number of all data files stored in a first memory of the mobile terminal in real time, and when the total file number is larger than a file number threshold value, the first memory is prompted to enter a storage protection mode, so that when a file processing request aiming at the first memory is received from a current running application, the type of the file processing request is determined;
a processing unit, when the type of the file processing request is to store a new data file into the first memory, parsing the file processing request to determine at least one new data file included in the file processing request, storing all of the at least one new data file into a second memory, and sending a response message to the currently running application to notify the currently running application that the at least one new data file has been stored into the first memory, without notifying the currently running application of a state in which the at least one new data file has actually been stored into the second memory; when the type of the file processing request is to modify an existing data file in the first memory, parsing the file handling request to determine at least one existing data file and modified content associated with each existing data file to which the file handling request relates, copying the at least one existing data file to the second memory, modifying at least one existing data file stored in the second memory based on the modification associated with each existing data file, and sending a response message to the currently running application to inform the currently running application to: the modification to at least one existing data file in the first memory has been completed, without notifying the currently running application that the modification to the at least one existing data file in the first storage is completed in the second storage;
the acquisition unit is used for acquiring a log record file for recording an operation log of each data file in a plurality of data files in the mobile terminal after the first memory enters a storage protection mode, determining effective operation information of each data file based on a current effective data time period TP and the log record file, and determining a statistical item of each data file based on the area classification information and the effective operation information of each data file, wherein the statistical item comprises an identifier of the data file, a default area operation frequency DC, a conventional area operation frequency UC, a strange area operation frequency SC, total storage time TT and total operation frequency TC in the total storage time; wherein the region classification information includes: default, regular, and unfamiliar areas;
the determining unit is used for determining a plurality of candidate data files of which the accumulated storage time is greater than a preset accumulated storage time threshold in all the data files according to the statistical items of each data file, determining the file type of each candidate data file, and determining the initial importance preRE of each candidate data file according to the file type of each candidate data file and the feature description information of the mobile terminal;
the calculating unit is used for determining the importance coefficient of each candidate data file according to the initial importance of each candidate data file, the operation times DC of the default area, the operation times UC of the conventional area, the operation times SC of the strange area, the total storage time TT and the operation times TC in the total storage time:
determining each candidate numberAccording to the average hourly operation times CA of the files in the current effective time data sectioniAnd average number of runs per hour TA of each candidate data file in respective total storage timei;
Wherein,
wherein i is a natural number, and DFN is more than or equal to i and more than or equal to 1, wherein DFN is a natural number and is the number of candidate data files, and DFN is more than or equal to 100;
when CA is ini≥(3×TAi) When the temperature of the water is higher than the set temperature,
when TA isi≤CAi<(3×TAi) When the temperature of the water is higher than the set temperature,
when (0.5 XTA)i)≤CAi<TAiWhen the temperature of the water is higher than the set temperature,
when CA is ini<(0.5×TAi) When the temperature of the water is higher than the set temperature,
wherein REiIs the importance coefficient, preRE, of the ith candidate data fileiIs the initial importance of the ith candidate data file; DC (direct current)iRunning times and UC of the default area of the ith candidate data fileiRun times of regular regions, SC, for the ith candidate data fileiNumber of runs, TT, for unfamiliar area of ith candidate data fileiTotal storage time for ith candidate data file and TCiIs the ithRun times within total storage time of the candidate data file: CAiAveraging the operating times of the ith data file in the current effective time data section per hour; TA (TA)iAverage operation times TA per hour in respective total storage time for ith data filei(ii) a And
and determining the candidate data files with the importance coefficients smaller than the importance threshold value in the plurality of candidate data files as the data files with low importance.
7. The system of claim 6, wherein the file number threshold is 500, 1000, 2000, 3000, or 5000; the mobile terminal comprises a plurality of applications, and the specific application is determined as the current running application in response to a trigger request of a user aiming at the specific application in the plurality of applications in the mobile terminal.
8. The system of claim 7, further comprising a generation unit that generates a file processing request for the first storage when the currently running application requires storage of a data file or modification of a data file to the first storage at runtime.
9. The system of claim 6, wherein the first memory is a flash memory or a dynamic random access memory and the second memory is a random access memory.
10. The system of claim 6, wherein the log record file for each data file comprises a plurality of log records, and each log record is for recording a running log of the data file, each log record comprising: an identifier of the data file, a location of the mobile terminal at runtime, a runtime start time, a runtime end time.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811212390.3A CN109324763B (en) | 2018-10-18 | 2018-10-18 | Method and system for identifying low-importance files in mobile terminal in mobile internet |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811212390.3A CN109324763B (en) | 2018-10-18 | 2018-10-18 | Method and system for identifying low-importance files in mobile terminal in mobile internet |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109324763A true CN109324763A (en) | 2019-02-12 |
CN109324763B CN109324763B (en) | 2022-01-07 |
Family
ID=65262558
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811212390.3A Active CN109324763B (en) | 2018-10-18 | 2018-10-18 | Method and system for identifying low-importance files in mobile terminal in mobile internet |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109324763B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112506875A (en) * | 2020-12-15 | 2021-03-16 | 科大讯飞股份有限公司 | File storage method, related device and file storage system |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5731064A (en) * | 1980-07-31 | 1982-02-19 | Fujitsu Ltd | Space control system in direct access storage device |
CN101311911A (en) * | 2007-05-23 | 2008-11-26 | 株式会社日立制作所 | Staging memory system and data migration method thereof |
CN103823728A (en) * | 2014-03-13 | 2014-05-28 | 深圳市迪菲特科技股份有限公司 | Intelligent reestablishing method for RAID (redundant array of independent disks) |
CN105892937A (en) * | 2016-02-23 | 2016-08-24 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN107203341A (en) * | 2017-05-23 | 2017-09-26 | 建荣半导体(深圳)有限公司 | Date storage method, device and flash chip based on flash memory |
CN107944292A (en) * | 2017-11-15 | 2018-04-20 | 北京邮电大学 | A kind of private data guard method and system |
-
2018
- 2018-10-18 CN CN201811212390.3A patent/CN109324763B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5731064A (en) * | 1980-07-31 | 1982-02-19 | Fujitsu Ltd | Space control system in direct access storage device |
CN101311911A (en) * | 2007-05-23 | 2008-11-26 | 株式会社日立制作所 | Staging memory system and data migration method thereof |
CN103823728A (en) * | 2014-03-13 | 2014-05-28 | 深圳市迪菲特科技股份有限公司 | Intelligent reestablishing method for RAID (redundant array of independent disks) |
CN105892937A (en) * | 2016-02-23 | 2016-08-24 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN107203341A (en) * | 2017-05-23 | 2017-09-26 | 建荣半导体(深圳)有限公司 | Date storage method, device and flash chip based on flash memory |
CN107944292A (en) * | 2017-11-15 | 2018-04-20 | 北京邮电大学 | A kind of private data guard method and system |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112506875A (en) * | 2020-12-15 | 2021-03-16 | 科大讯飞股份有限公司 | File storage method, related device and file storage system |
CN112506875B (en) * | 2020-12-15 | 2023-01-17 | 科大讯飞股份有限公司 | File storage method, related device and file storage system |
Also Published As
Publication number | Publication date |
---|---|
CN109324763B (en) | 2022-01-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2215821B1 (en) | Method and apparatus for alert control | |
US20100054618A1 (en) | Server, screen transmitting method, and program storage medium | |
CN111447505B (en) | Video clipping method, network device, and computer-readable storage medium | |
WO2018153271A1 (en) | Data push method and apparatus, storage medium, and electronic device | |
CN106357789B (en) | Information access control method, server and computer readable storage medium | |
CN109740089A (en) | Collecting method, device, system, readable storage medium storing program for executing and electronic equipment | |
CN110781372B (en) | Method and device for optimizing website, computer equipment and storage medium | |
CN108600836B (en) | Video processing method and device | |
CN103442299B (en) | A kind of display methods for playing record and electronic equipment | |
WO2015027882A1 (en) | Method, apparatus and terminal for image processing | |
CN105893471B (en) | Data processing method and electronic equipment | |
CN110543451A (en) | Method and device for efficiently cleaning equipment files | |
CN109324763B (en) | Method and system for identifying low-importance files in mobile terminal in mobile internet | |
US20090276412A1 (en) | Method, apparatus, and computer program product for providing usage analysis | |
CN109597566B (en) | Data reading and storing method and device | |
CN104967690A (en) | Information push method and device | |
CN109688217B (en) | Message pushing method and device and electronic equipment | |
CN111078588B (en) | Garbage recycling method, device, equipment and storage medium | |
JP2004282110A (en) | Contents distribution supporting method, contents distribution supporting apparatus, and contents distribution supporting program | |
CN108764021B (en) | Cheating video identification method and device | |
CN107864234B (en) | Method and device for acquiring address continuation time | |
CN112449209A (en) | Video storage method and device, cloud server and computer readable storage medium | |
KR101637022B1 (en) | Apparatus and method for transmitting and receiving content | |
CN110691143A (en) | File pushing method and device, electronic equipment and medium | |
CN112579805A (en) | Image searching method and device, electronic equipment and storage medium |
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 | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20211217 Address after: 200051 room 7-59, No. 500, Loushanguan Road, Changning District, Shanghai Applicant after: Aiyunbao (Shanghai) Technology Co.,Ltd. Address before: 110034 gate 2, 14 / F, unit 1, building 6, No. 10 Xianglushan Road, Shenyang City, Liaoning Province (relocation building of Shenyang University of Aeronautics and Astronautics) (11) Applicant before: Wang Mei |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant |