CN109324763B - Method and system for identifying low-importance files in mobile terminal in mobile internet - Google Patents

Method and system for identifying low-importance files in mobile terminal in mobile internet Download PDF

Info

Publication number
CN109324763B
CN109324763B CN201811212390.3A CN201811212390A CN109324763B CN 109324763 B CN109324763 B CN 109324763B CN 201811212390 A CN201811212390 A CN 201811212390A CN 109324763 B CN109324763 B CN 109324763B
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.)
Active
Application number
CN201811212390.3A
Other languages
Chinese (zh)
Other versions
CN109324763A (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.)
Aiyunbao Shanghai Technology Co ltd
Original Assignee
Aiyunbao Shanghai 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 Aiyunbao Shanghai Technology Co ltd filed Critical Aiyunbao Shanghai Technology Co ltd
Priority to CN201811212390.3A priority Critical patent/CN109324763B/en
Publication of CN109324763A publication Critical patent/CN109324763A/en
Application granted granted Critical
Publication of CN109324763B publication Critical patent/CN109324763B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/78Protecting 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/062Securing 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 method and a system for identifying low-importance files in a mobile terminal of a mobile internet, wherein the method comprises the following steps: when the total file number is larger than the file number threshold value, the first memory is prompted to enter a storage protection mode; processing the file processing request according to the type of the file processing request; determining a statistical item of each data file based on the region classification information and the effective operation information of each data file; determining a plurality of candidate data files with accumulated storage time larger than a preset accumulated storage time threshold in all data files in the current effective data time period according to the statistical items of each data file, and determining the initial importance of each candidate data file; determining an importance coefficient of each candidate data file according to the initial importance of each candidate data file; and 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.

Description

Method and system for identifying low-importance files in mobile terminal in mobile internet
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,
Figure GDA0003223465400000021
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,
Figure GDA0003223465400000022
when TA isi≤CAi<(3×TAi) When the temperature of the water is higher than the set temperature,
Figure GDA0003223465400000023
when (0.5 XTA)i)≤CAi<TAiWhen the temperature of the water is higher than the set temperature,
Figure GDA0003223465400000024
when CA is ini<(0.5×TAi) When the temperature of the water is higher than the set temperature,
Figure GDA0003223465400000031
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. 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,
Figure GDA0003223465400000061
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,
Figure GDA0003223465400000071
when TA isi≤CAi<(3×TAi) When the temperature of the water is higher than the set temperature,
Figure GDA0003223465400000072
when (0.5 XTA)i)≤CAi<TAiWhen the temperature of the water is higher than the set temperature,
Figure GDA0003223465400000073
when CA is ini<(0.5×TAi) When the temperature of the water is higher than the set temperature,
Figure GDA0003223465400000074
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,
Figure GDA0003223465400000131
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,
Figure GDA0003223465400000132
when TA isi≤CAi<(3×TAi) When the temperature of the water is higher than the set temperature,
Figure GDA0003223465400000133
when (0.5 XTA)i)≤CAi<TAiWhen the temperature of the water is higher than the set temperature,
Figure GDA0003223465400000134
when CA is ini<(0.5×TAi) When the temperature of the water is higher than the set temperature,
Figure GDA0003223465400000135
wherein REiIs as followsimportance coefficient, preRE of i candidate data filesiIs 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,
Figure GDA0003223465400000171
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,
Figure GDA0003223465400000172
when TA isi≤CAi<(3×TAi) When the temperature of the water is higher than the set temperature,
Figure GDA0003223465400000173
when (0.5 XT)Ai)≤CAi<TAiWhen the temperature of the water is higher than the set temperature,
Figure GDA0003223465400000174
when CA is ini<(0.5×TAi) When the temperature of the water is higher than the set temperature,
Figure GDA0003223465400000181
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; wherein the current valid data period TP is a period of time with the day preceding the current date as the end date and with a specific date in the past as the start date; wherein any one of the default region, the regular region, and the strange region is a building region or a public utility region;
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; wherein the file types include: video type, document type, and audio type; the feature description information includes: high, medium and low privacy;
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,
Figure FDA0003223465390000021
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,
Figure FDA0003223465390000022
when TA isi≤CAi<(3×TAi) When the temperature of the water is higher than the set temperature,
Figure FDA0003223465390000023
when (0.5 XTA)i)≤CAi<TAiWhen the temperature of the water is higher than the set temperature,
Figure FDA0003223465390000024
when CA is ini<(0.5×TAi) When the temperature of the water is higher than the set temperature,
Figure FDA0003223465390000025
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, 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; wherein the current valid data period TP is a period of time with the day preceding the current date as the end date and with a specific date in the past as the start date; wherein any one of the default region, the regular region, and the strange region is a building region or a public utility region;
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; wherein the file types include: video type, document type, and audio type; the feature description information includes: high, medium and low privacy;
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,
Figure FDA0003223465390000041
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,
Figure FDA0003223465390000042
when TA isi≤CAi<(3×TAi) When the temperature of the water is higher than the set temperature,
Figure FDA0003223465390000043
when (0.5 XTA)i)≤CAi<TAiWhen the temperature of the water is higher than the set temperature,
Figure FDA0003223465390000044
when CA is ini<(0.5×TAi) When the temperature of the water is higher than the set temperature,
Figure FDA0003223465390000045
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(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.
CN201811212390.3A 2018-10-18 2018-10-18 Method and system for identifying low-importance files in mobile terminal in mobile internet Active CN109324763B (en)

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 CN109324763A (en) 2019-02-12
CN109324763B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112506875B (en) * 2020-12-15 2023-01-17 科大讯飞股份有限公司 File storage method, related device and file storage system

Citations (6)

* Cited by examiner, † Cited by third party
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN109324763A (en) 2019-02-12

Similar Documents

Publication Publication Date Title
CN108345524B (en) Application program monitoring method and application program monitoring device
US8213730B2 (en) Server, screen transmitting method, and program storage medium
EP2215821B1 (en) Method and apparatus for alert control
CN111447505B (en) Video clipping method, network device, and computer-readable storage medium
JP4699476B2 (en) Video summarization device
CN101465879A (en) System and method for identifying transient friends
CN103442299B (en) A kind of display methods for playing record and electronic equipment
JP2012239085A (en) Image processor, and image processing method
CN105893471B (en) Data processing method and electronic equipment
CN113835985A (en) Method, device and equipment for monitoring and analyzing cause of stuck
CN109324763B (en) Method and system for identifying low-importance files in mobile terminal in mobile internet
CN105045882A (en) Hot word processing method and device
CN111784418B (en) Display control method and device for live broadcasting room, computer medium and electronic equipment
US20150085194A1 (en) Still image provision device
CN115357772A (en) Data processing method and device
CN112449209B (en) Video storage method and device, cloud server and computer readable storage medium
CN110333968B (en) Data management method and device applied to database and computer equipment
CN113128274B (en) Data analysis method and device, electronic equipment and storage medium
CN107864234B (en) Method and device for acquiring address continuation time
CN112825081A (en) Video information processing method and device, electronic equipment, processor and readable medium
CN113873268B (en) Virtual gift list pushing method, server, live broadcast system and storage medium
CN109726223B (en) Data stream association method and device
CN110958433B (en) Image uploading method, monitoring device, electronic equipment and storage medium
CN113596524A (en) Intelligent pushing method and system for television programs
CN107172495B (en) View generation method for Electronic Program Guide (EPG) and smart television

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