CN109189737A - The method and system that file prefetches are carried out in mobile Internet according to time slice - Google Patents

The method and system that file prefetches are carried out in mobile Internet according to time slice Download PDF

Info

Publication number
CN109189737A
CN109189737A CN201810943819.XA CN201810943819A CN109189737A CN 109189737 A CN109189737 A CN 109189737A CN 201810943819 A CN201810943819 A CN 201810943819A CN 109189737 A CN109189737 A CN 109189737A
Authority
CN
China
Prior art keywords
user
application
mobile terminal
destination mobile
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810943819.XA
Other languages
Chinese (zh)
Other versions
CN109189737B (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.)
Beijing Hesi Information Technology Co Ltd
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201810943819.XA priority Critical patent/CN109189737B/en
Publication of CN109189737A publication Critical patent/CN109189737A/en
Application granted granted Critical
Publication of CN109189737B publication Critical patent/CN109189737B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of to carry out the method and system that file prefetches according to time slice in mobile Internet, and wherein method comprises determining that the run time statistics information of each user's application in multiple user's applications in destination mobile terminal;Determine that each user applies the operation probability in specific time segmentation according to the run time statistics information that each user applies;Third regulation coefficient based on each user application and each user of operation probability calculation in specific time is segmented apply the operation probability being adjusted in specific time segmentation, apply the operation probability being adjusted in specific time segmentation to carry out the descending sort of operation probability to multiple users application to generate sorted lists based on each user;It is prefetched according to sorted lists at least one and each prefetches user's application setting storage rank in user's application;And according to prefetch user application storage rank will with it is each prefetch user using associated data file from second memory carry out file prefetch.

Description

The method and system that file prefetches are carried out in mobile Internet according to time slice
Technical field
The present invention relates to internet of things field and internet area, and more particularly, in mobile Internet field A kind of method and system for carrying out file in mobile Internet according to time slice and prefetching.
Background technique
Currently, with Internet of Things, especially mobile Internet, development be getting faster, the use of mobile terminal is increasingly Universal, people would generally be installed using mobile terminal largely to apply and stores a large amount of personal data.Due to data volume Increase it is more rapider than the increase of memory space, therefore effectively management is carried out then increasingly to the data file in mobile terminal It is important.In some cases, the stronger user of regularity of service condition is used when mobile terminal is in specific time Family would generally use the common application in multiple users application.In the prior art, not pre- for this regularity progress file The technology taken.
Summary of the invention
According to an aspect of the present invention, it provides and a kind of file is carried out in mobile Internet according to time slice prefetch Method, which comprises
Operating statistic file associated with destination mobile terminal in mobile Internet is obtained, to the operating statistic file It is parsed with the run time statistics information of user's application each in users multiple in determination destination mobile terminal application;
It is pre-set according to user application application switching frequency F at runtime and user in the destination mobile terminal Each time interval T in multiple time intervals in one consecutive days is divided into multiple time slices by dynamic Dynamic gene A, When the current run time of destination mobile terminal enters the specific time segmentation in multiple time slices, applied according to each user Run time statistics information determine each user apply specific time segmentation in operation probability;
According to the state parameter of the destination mobile terminal be each user application setting the first adjustment coefficient S and according to The location parameter of the destination mobile terminal be each user application setting second adjustment coefficient L, obtain the state parameter and The weight proportion of location parameter, according to the first adjustment coefficient S of each user application and second adjustment coefficient L and weight proportion The third regulation coefficient K for determining each user application, third regulation coefficient K based on each user application and in specific time point The each user of operation probability calculation in section applies the operation probability being adjusted in specific time segmentation, is based on each use The descending that family applies the operation probability being adjusted in specific time segmentation to carry out operation probability to multiple users application is arranged Sequence is to generate sorted lists;
The can be loaded previously into from second memory by being determined in the multiple user application according to the sorted lists At least one of one memory prefetches user's application, and is that at least one is prefetched in user's application according to the sorted lists Each prefetch user's application setting storage rank, wherein the storage level do not include: decrement storage level, it is increment storage level, quantitative Storage level and compression storage level;
User's application is prefetched for each of decrement storage level and distributes at least one dynamic storage cell, for compression storage level It each prefetches user's application and distributes at least one dynamic storage cell, prefetch user's application distribution one for each of increment storage level A dynamic storage cell and user's application one dynamic storage cell of distribution is each prefetched for quantitative storage level;
Distributed dynamic memory list is applied to each to prefetch user according to each storage rank for prefetching user's application Member setting storage rank;
According to the storage rank for prefetching user's application user will be prefetched using associated data file from second with each Memory carries out file and prefetches, comprising:
By with decrement storage level each prefetch user using associated multiple data files from second memory duplication To the dynamic storage cell for prefetching at least one decrement storage level that user's application is distributed for each of decrement storage level, multiple Dynamic storage cell when system is completed for each decrement storage level is arranged period first time and starts timing, whenever at the first time The data file of the first predetermined quantity is deleted when period expires in the dynamic storage cell of each decrement storage level;
User is being prefetched using selecting at least one base in associated multiple data files with each of increment storage level Plinth data file answers at least one essence data files that each of increment storage level prefetches user's application from second memory The dynamic storage cell for prefetching the increment storage level that user's application distributes by each of increment storage level is made, is completed in duplication When be arranged for the dynamic storage cell of increment storage level and second time period and start timing, wherein whenever the second time period phase The data that will each prefetch user with increment storage level when full and apply the second predetermined quantity in associated multiple data files File copies to the dynamic that the increment storage level that user's application distributes is prefetched by each of increment storage level from second memory Storage unit;
According to the dynamic storage cell for prefetching the quantitative storage level that user's application is distributed for each of quantitative storage level Memory capacity selects at least one data using associated multiple data files from user is prefetched with each of quantitative storage level File, and at least one selected data file is copied to from second memory and is taken for each of quantitative storage level is pre- The dynamic storage cell for the quantitative storage level that family application is distributed;And
By with compression storage level each prefetch user apply associated multiple data files compress it is more to generate A data file through overcompression, by compress each of storage level prefetch user application multiple data files through overcompression from Second memory, which copies to, prefetches user using the dynamic of at least one the compression storage level distributed for each of compression storage level State storage unit.
Include multiple mobile terminals in the mobile Internet, and the mobile terminal that initiation file prefetches request is determined For destination mobile terminal, wherein the quantity of user's application is greater than 4.
The operating statistic file includes multiple tables of data, and is each in user's applications multiple in destination mobile terminal User's application distributes a tables of data, and the content including multiple data item and each data item is four-tuple in each tables of data <Apply Names, front stage operation initial time, front stage operation end time, front stage operation cumulative time>.
The run time statistics information that wherein tables of data distributed by each user application is applied as each user, And the runing time information that the tables of data distributed by each user application is applied for recording each user in real time.
In the operating statistic file, the data item of predetermined quantity is saved for each user application, or is each user Using the data item in the consecutive days for saving predetermined quantity or in predetermined time length.Wherein the consecutive days of predetermined quantity are 10 Consecutive days, 20 consecutive days or 30 consecutive days, wherein predetermined time length is 240 hours, 480 hours or 720 hours.
The application switching frequency F of user's application at runtime is transported in destination mobile terminal in the destination mobile terminal Row user is in application, be located at the switching frequency for being switched to backstage of user's application on foreground at runtime, the application switching Frequency F is the quilt of the interior user's application positioned at foreground of the effective period of time in each consecutive days in the first date section at runtime Be switched to the mean handoff number on backstage, wherein when be located at foreground user application at runtime between more than 1 minute after be switched It includes at least ten consecutive days that switching times and the first date section, which can be just counted into, when to backstage, and wherein effective period of time is At 6 points in the morning to 11 points of the period of afternoon.Wherein user stores according to the processor host frequency of the destination mobile terminal and second The reading speed of device presets dynamic Dynamic gene A, and wherein dynamic Dynamic gene is 5.
Wherein set in advance according to user application application switching frequency F at runtime and user in the destination mobile terminal Each time interval T in multiple time intervals is divided into multiple time slices by the dynamic Dynamic gene A set
Wherein S is the quantity of time slice in each time interval T.When each time interval T is 60 minutes and is each Between section T initial time and the end time be the integral point time.Wherein by each time interval T be divided into 3 time slices, 6 time slices or 10 time slices.Each user is wherein determined according to the run time statistics information that each user applies Applying the operation probability in specific time segmentation includes: selection for determining the second date section for running probability, and described the Two date sections include at least ten consecutive days;To in multiple data item in the run time statistics information of each user application Each data item is parsed, to determine in the second date section, when each user applies specific within each consecutive days Between be segmented in the effective degree Ci that runs, wherein 1≤i≤Na, Na are the quantity of user's application in destination mobile terminal, wherein Na For natural number and Na is greater than 4;The operation in multiple specific times segmentation in the second date section is applied based on each user Effective degree Ci calculates all users and applies the total effective degree S run in specific time is segmented:
It calculates each user and applies the operation probability P i=Ci/S in specific time segmentation.
Wherein when user applies the runing time in specific time segmentation to be more than 20 seconds, it is calculated as an effective degree.
It wherein determines that each user applies according to the run time statistics information that each user applies to be segmented in specific time Interior operation probability includes: selection for determining the second date section of operation probability, and second date section is including at least 10 consecutive days;
Each data item in multiple data item in the run time statistics information of each user application is parsed, with It determines in the second time interval, each user applies the time span run in the segmentation of the specific time within each consecutive days Ti, wherein 1≤i≤Na, Na are the quantity of user's application in destination mobile terminal, wherein Na is natural number and Na is greater than 4;
It is applied in multiple specific times segmentation in the second date section based on the time span ti of operation by each user It calculates all users and applies the total time length T run in specific time is segmented:
It calculates each user and applies the operation probability P i=ti/T in specific time segmentation.The state parameter is target The current state of mobile terminal.It is wherein each user application setting the first adjustment system according to the state parameter of destination mobile terminal Counting S includes:
In the case where the state parameter of destination mobile terminal is strong light state, the first adjustment system that each user is applied Number S is set smaller than 1, such as 0.8;In the case where the state parameter of destination mobile terminal is sheen state, by each user The first adjustment coefficient S of application is set greater than 1, for example, 1.2;And destination mobile terminal state parameter be dim light shape In the case where state, the first adjustment coefficient S that each user applies is set smaller than 1, such as 0.9.
It is wherein each user application setting the first adjustment coefficient S according to the state parameter of the destination mobile terminal:
The state parameter of destination mobile terminal be display screen upward in the case where, the first adjustment that each user is applied Coefficient S is set greater than 1, such as 1.2;Destination mobile terminal state parameter be display screen situation directed downwardly under, will be each The first adjustment coefficient S of user's application is set smaller than 1, for example, 0.3;It is level side in the state parameter of destination mobile terminal In the case where movement, the first adjustment coefficient S that each user applies is set smaller than 1, such as 0.9;It is mobile eventually in target The state parameter at end is that the first adjustment coefficient S that each user applies is set smaller than 1 in the case that vertical direction is mobile, Such as 0.7.
It is wherein each user application setting the first adjustment coefficient S packet according to the state parameter of the destination mobile terminal It includes: in the case where the state parameter of destination mobile terminal is hot state, the first adjustment coefficient S that each user applies being set It is set to less than 1, such as 0.8;In the case where the state parameter of destination mobile terminal is the condition of high temperature, each user is applied The first adjustment coefficient S is set smaller than 1, such as 0.9;In the case where the state parameter of destination mobile terminal is appropriate state, The first adjustment coefficient S that each user applies is set greater than 1, such as 1.2;It is low in the state parameter of destination mobile terminal In the case where temperature state, the first adjustment coefficient S that each user applies is set smaller than 1, such as 0.9;It is mobile eventually in target In the case that the state parameter at end is cold state, the first adjustment coefficient S that each user applies is set smaller than 1, such as 0.6;
Wherein hot state is temperature T >=32 DEG C;The condition of high temperature is 32 DEG C > temperature T >=25 DEG C, appropriate state be 25 DEG C > Temperature T >=18 DEG C, low-temperature condition are 18 DEG C > temperature T >=8 DEG C or cold state is 8 DEG C > temperature T.
The location parameter is the current location of destination mobile terminal.
According to the location parameter of the destination mobile terminal be each user application setting second adjustment coefficient L include: In the case that the location parameter of destination mobile terminal is office, set small for the second adjustment coefficient L that each user applies In 1, such as 0.8;In the case where the location parameter of destination mobile terminal is family, second adjustment coefficient that each user is applied L is set greater than 1, such as 1.2;In the case where the location parameter of destination mobile terminal is restaurant, each user is applied Second adjustment coefficient L is set smaller than 1, such as 0.9;It, will be every in the case where the location parameter of destination mobile terminal is road The second adjustment coefficient L of a user's application is set smaller than 1, such as 0.8;And it is ground in the location parameter of destination mobile terminal In the case where iron, the second adjustment coefficient L that each user applies is set greater than 1, such as 1.1.
The weight proportion for wherein obtaining the state parameter and location parameter includes: the weight read in destination mobile terminal Configuration file parses to obtain the weight proportion of the state parameter and location parameter the weight configuration file.Institute State the weight proportion of state parameter and location parameter and be 1, the weight proportion of the state parameter and location parameter is respectively 0.5 and 0.5;The weight proportion of the state parameter and location parameter is respectively 0.3 and 0.7;The state parameter and position ginseng Several weight proportions is respectively 0.2 and 0.8;The weight proportion of the state parameter and location parameter is respectively 0.7 and 0.3;Institute The weight proportion for stating state parameter and location parameter is respectively 0.8 and 0.2;The weight proportion of the state parameter and location parameter Respectively 0.4 and 0.6;The weight proportion of the state parameter and location parameter is respectively 0.6 and 0.4.
It is wherein determined according to the first adjustment coefficient S of each user application and second adjustment coefficient L and weight proportion every The third regulation coefficient K of a user's application are as follows: third regulation coefficient K=the first adjustment coefficient S × W1+ second adjustment coefficient L × W2, wherein W1 is the weight proportion of state parameter sum, and W2 is the weight proportion of location parameter.
Third regulation coefficient K based on each user application and each use of operation probability calculation in specific time segmentation It includes: the third regulation coefficient K for applying each user that the operation probability being adjusted in specific time segmentation is applied at family Being adjusted in specific time segmentation is applied as each user with the product of the operation probability in specific time is segmented Operation probability.Before obtaining operating statistic file associated with destination mobile terminal in mobile Internet further include:
With user associated data are applied for destination mobile terminal in mobile Internet in response to Client-initiated File carries out the file that file prefetches and prefetches request, obtains and prefetches associated dynamic configuration file with the file;
Dynamic index region is created in the first memory of the destination mobile terminal, and according to the dynamic configuration File creates multiple dynamic storage cells of file for storing data in the first memory, wherein according to the dynamic configuration File determines the memory capacity of each dynamic storage cell in the multiple dynamic storage cell;And
Dynamic index table is generated in the dynamic index region, the dynamic index table includes multiple index entries, each Index entry is used to record the application identities of the corresponding dynamic storage cell in multiple dynamic storage cells, initial address, terminates ground Location, memory capacity and storage rank.
Wherein first memory is random access memory, and second memory is read-only memory.The dynamic configuration text Part includes the initial address and end address in first memory for providing the storage region of multiple dynamic storage cells, and The dynamic configuration file further includes the memory capacity of each dynamic storage cell in multiple dynamic storage cells.
The identifier for user's application that wherein application identities are belonged to by dynamic storage cell, initial address is dynamic memory The initial address of the memory space of unit, end address are the end address of the memory space of dynamic storage cell, memory capacity Memory capacity and storage rank for the memory space of dynamic storage cell are the storage level of the memory space of dynamic storage cell Not.
Further include the storage rank according to set by for dynamic storage cell to index entry corresponding in dynamic index table into Row updates.
According to the dynamic storage cell for prefetching the quantitative storage level that user's application is distributed for each of quantitative storage level Memory capacity selects at least one data using associated multiple data files from user is prefetched with each of quantitative storage level File includes:
According to the dynamic storage cell for prefetching the quantitative storage level that user's application is distributed for each of quantitative storage level Memory capacity by with each of quantitative storage level prefetch user be grouped using associated multiple data files it is more to generate A file group wherein each file group includes at least one data file, and prefetches user's application for each of quantitative storage level Multiple file groups different priority is set to constitute priority query, the file of head of the queue will be located in each priority query Group is copied to as current file group and by least one data file in current file group from second memory quantitatively to deposit Each of storage grade prefetches the dynamic storage cell for the quantitative storage level that user's application is distributed and is each of quantitative storage level The third time cycle is arranged in dynamic storage cell, when expiring the third time cycle, uses according to the sequence that priority reduces Next file group in priority query is as current file group, until next file group is not present;By current file group In at least one data file prefetch user using associated multiple data files as from each of quantitative storage level At least one data file of selection;Wherein the size of each file group is less than the dynamic storage cell of corresponding quantitatively storage level Memory space.
According to the dynamic storage cell for prefetching the quantitative storage level that user's application is distributed for each of quantitative storage level Memory capacity selects at least one data using associated multiple data files from user is prefetched with each of quantitative storage level File includes:
According to the dynamic storage cell for prefetching the quantitative storage level that user's application is distributed for each of quantitative storage level Memory capacity by with each of quantitative storage level prefetch user be grouped using associated multiple data files it is more to generate A file group randomly chooses a text wherein each file group includes at least one data file from the multiple file group Part group is as current file group and to copy at least one data file in current file group from second memory be quantitative Each of storage level prefetches the dynamic storage cell for the quantitative storage level that user's application is distributed and is the every of quantitative storage level The third time cycle is arranged in a dynamic storage cell, when expiring the third time cycle, randomly choosed from multiple file groups Next file group is as current file group, until next file group is not present;
User's application is prefetched using at least one data file in current file group as from each of quantitative storage level At least one data file of associated multiple data file selections;Wherein the size of each file group is less than corresponding quantitative The memory space of the dynamic storage cell of storage level.At least one selected data file is being copied to from second memory After the dynamic storage cell for prefetching the quantitative storage level that user's application distributes by each of quantitative storage level, when third is set Between period and when expiring the third time cycle, apply that is distributed to determine according to user is prefetched for each of quantitative storage level Measure storage level dynamic storage cell memory capacity, again from quantitative storage level each prefetch user apply it is associated Multiple data files select at least one data file, at least one data file reselected is replicated from second memory To the dynamic storage cell for prefetching the quantitative storage level that user's application is distributed for each of quantitative storage level.
Wherein according to the dynamic memory list for prefetching the quantitative storage level that user's application is distributed for each of quantitative storage level Member memory capacity, from quantitative storage level each prefetch user apply associated multiple data files select at least one Data file includes:
Step 1 prefetches user using the dynamic memory of the quantitative storage level distributed according to for each of quantitative storage level The memory capacity of unit by with each of quantitative storage level prefetch user using associated multiple data files be grouped with N number of file group is generated, wherein N is greater than 1 natural number and each file group includes at least one data file;
Different serial numbers is arranged for each file group in N number of file group in step 2, wherein the serial number is from 1 to N;
Step 3, using the file group of serial number i=1 as current file group, wherein N >=i > 0;
The third time cycle is arranged for each dynamic storage cell of quantitative storage level in step 4;
Step 5 copies at least one data file included by current file group quantitatively to deposit from second memory Each of storage grade prefetches the dynamic storage cell for the quantitative storage level that user's application is distributed;
Step 6, when the third time cycle expire when, judge whether i=N true, if set up, terminate;If not at It is vertical, then using the file group of serial number i=i+1 as current file group, carry out step 5;
Wherein the size of each file group is less than the memory capacity of the dynamic storage cell of quantitative storage level.
Wherein being determined according to the sorted lists can be by pre-loaded from second memory in the multiple user's application Multiple into first memory prefetch user's application
It, will be in sorted lists when running quantity of the probability greater than the user's application for prefetching threshold value in sorted lists greater than 0 Operation probability is determined as to be loaded previously into first memory from second memory greater than the user's application for prefetching threshold value Prefetch user application, with determine at least one prefetch user application;
It, will be in sorted lists when running quantity of the probability greater than the user's application for prefetching threshold value in sorted lists equal to 0 All user's applications are determined as that user's application can be prefetched by being loaded previously into first memory from second memory, with true Determine at least one and prefetches user's application.
It is wherein prefetched according to the sorted lists at least one and each prefetches user's application setting storage in user's application Rank includes: that will run the storage rank that prefetches user application of the probability greater than high probability threshold value in the sorted lists to be set as It is reduced storage level;Probability will be run in the sorted lists to be less than or equal to high probability threshold value and be greater than the pre- of middle probability threshold value The storage rank for taking family application is set as increment storage level;It is less than or equal to middle probability for probability is run in the sorted lists The threshold value and storage rank for prefetching user's application for being greater than low probability threshold value is set as quantitative storage level;By the sorted lists The storage rank for prefetching user's application that middle operation probability is less than or equal to low probability threshold value is set as compression storage level.
Apply at least one dynamic storage cell distributed that can accommodate phase by the user that prefetches of each decrement storage level All data files for prefetching user's application for the decrement storage level answered, and user's application is prefetched for each compression storage level At least one dynamic storage cell distributed can accommodate all processes for prefetching user's application of corresponding compression storage level The data file of compression.Wherein period first time is 30 seconds, and second time period is 60 seconds, and wherein the third time cycle is 90 Second.Wherein each prefetch user application at least one essence data files be with increment storage level each prefetch user apply Boot sequence is higher than at least one data file of priority threshold in associated multiple data files.Wherein the first predetermined quantity It is 5, second predetermined quantity is 8.
According to another aspect of the present invention, it provides and a kind of file is carried out in mobile Internet according to time slice prefetch System, the system comprises: resolver obtains operating statistic text associated with destination mobile terminal in mobile Internet Part is parsed the operating statistic file and is answered with each user in users multiple in determination destination mobile terminal application Run time statistics information;
Determine the probability device, according to user application application switching frequency F at runtime in the destination mobile terminal and Each time interval T in multiple time intervals in one consecutive days is divided by the pre-set dynamic Dynamic gene A of user Multiple time slices, when the current run time of destination mobile terminal enters the specific time segmentation in multiple time slices, Determine that each user applies the operation probability in specific time segmentation according to the run time statistics information that each user applies;
Collator is each user application setting the first adjustment coefficient according to the state parameter of the destination mobile terminal S and according to the location parameter of the destination mobile terminal be each user application setting second adjustment coefficient L, obtain the shape The weight proportion of state parameter and location parameter, according to each user application the first adjustment coefficient S and second adjustment coefficient L and Weight proportion determines the third regulation coefficient K of each user application, third regulation coefficient K based on each user application and in spy The each user of operation probability calculation in segmentation that fixes time applies the operation probability being adjusted in specific time segmentation, base The operation probability being adjusted in specific time segmentation is applied to carry out operation probability to multiple users application in each user Descending sort to generate sorted lists;
Device is set, and being determined according to the sorted lists can be by preparatory from second memory in the multiple user's application It is loaded at least one of first memory and prefetches user's application, and be that at least one pre- is taken according to the sorted lists User's application setting storage rank is each prefetched in the application of family, wherein the storage level does not include: decrement storage level, increment storage Grade, quantitative storage level and compression storage level;It is applied according to each storage rank for prefetching user's application to each to prefetch user The dynamic storage cell setting storage rank distributed;
Distributor prefetches user's application for each of decrement storage level and distributes at least one dynamic storage cell, for pressure Each of contracting storage level prefetches user's application and distributes at least one dynamic storage cell, prefetches user for each of increment storage level User's application one dynamic memory list of distribution is prefetched using one dynamic storage cell of distribution and for each of quantitative storage level Member;
Prefetching device will prefetch user using associated data text with each according to the storage rank for prefetching user's application Part carries out file from second memory and prefetches, comprising:
By with decrement storage level each prefetch user using associated multiple data files from second memory duplication To the dynamic storage cell for prefetching at least one decrement storage level that user's application is distributed for each of decrement storage level, multiple Dynamic storage cell when system is completed for each decrement storage level is arranged period first time and starts timing, whenever at the first time The data file of the first predetermined quantity is deleted when period expires in the dynamic storage cell of each decrement storage level;
User is being prefetched using selecting at least one base in associated multiple data files with each of increment storage level Plinth data file answers at least one essence data files that each of increment storage level prefetches user's application from second memory The dynamic storage cell for prefetching the increment storage level that user's application distributes by each of increment storage level is made, is completed in duplication When be arranged for the dynamic storage cell of increment storage level and second time period and start timing, wherein whenever the second time period phase The data that will each prefetch user with increment storage level when full and apply the second predetermined quantity in associated multiple data files File copies to the dynamic that the increment storage level that user's application distributes is prefetched by each of increment storage level from second memory Storage unit;
According to the dynamic storage cell for prefetching the quantitative storage level that user's application is distributed for each of quantitative storage level Memory capacity selects at least one data using associated multiple data files from user is prefetched with each of quantitative storage level File, and at least one selected data file is copied to from second memory and is taken for each of quantitative storage level is pre- The dynamic storage cell for the quantitative storage level that family application is distributed;And
By with compression storage level each prefetch user apply associated multiple data files compress it is more to generate A data file through overcompression, by compress each of storage level prefetch user application multiple data files through overcompression from Second memory, which copies to, prefetches user using the dynamic of at least one the compression storage level distributed for each of compression storage level State storage unit.
Include multiple mobile terminals in the mobile Internet, and the mobile terminal that initiation file prefetches request is determined For destination mobile terminal, wherein the quantity of user's application is greater than 4.The operating statistic file includes multiple tables of data, and is Each user's application distributes a tables of data in multiple user's applications in destination mobile terminal, includes multiple numbers in each tables of data According to the content of item and each data item be four-tuple < Apply Names, front stage operation initial time, the front stage operation end time, The front stage operation cumulative time >.When the operation that wherein tables of data distributed by each user application is applied as each user Between statistical information, and by each user tables of data for distributing of application for recording the runing time of each user's application in real time Information.
In the operating statistic file, the data item of predetermined quantity is saved for each user application, or is each user Using the data item in the consecutive days for saving predetermined quantity or in predetermined time length.Wherein the consecutive days of predetermined quantity are 10 Consecutive days, 20 consecutive days or 30 consecutive days, wherein predetermined time length is 240 hours, 480 hours or 720 hours.
The application switching frequency F of user's application at runtime is transported in destination mobile terminal in the destination mobile terminal Row user is in application, be located at the switching frequency for being switched to backstage of user's application on foreground at runtime, the application switching Frequency F is the quilt of the interior user's application positioned at foreground of the effective period of time in each consecutive days in the first date section at runtime Be switched to the mean handoff number on backstage, wherein when be located at foreground user application at runtime between more than 1 minute after be switched It includes at least ten consecutive days that switching times and the first date section, which can be just counted into, when to backstage, and wherein effective period of time is At 6 points in the morning to 11 points of the period of afternoon.Wherein user stores according to the processor host frequency of the destination mobile terminal and second The reading speed of device presets dynamic Dynamic gene A, and wherein dynamic Dynamic gene is 5.
Wherein set in advance according to user application application switching frequency F at runtime and user in the destination mobile terminal Each time interval T in multiple time intervals is divided into multiple time slices by the dynamic Dynamic gene A set
Wherein S is the quantity of time slice in each time interval T.Wherein each time interval T is for 60 minutes and every The initial time of a time interval T and end time are the integral point time.Each time interval T is wherein divided into 3 times Segmentation, 6 time slices or 10 time slices.It is wherein determined according to the run time statistics information of each user application each It includes: selection for determining the second date section of operation probability, institute that user, which applies the operation probability in specific time segmentation, Stating the second date section includes at least ten consecutive days;To multiple data item in the run time statistics information of each user application In each data item parsed, with determine in the second date section, each user applies the spy within each consecutive days It fixes time and is segmented the effective degree Ci of interior operation, wherein 1≤i≤Na, Na are the quantity of user's application in destination mobile terminal, Middle Na is natural number and Na is greater than 4;
It is applied in multiple specific times segmentation in the second date section based on the effective degree Ci of operation by each user It calculates all users and applies the total effective degree S run in specific time is segmented:
It calculates each user and applies the operation probability P i=Ci/S in specific time segmentation.
Wherein when user applies the runing time in specific time segmentation to be more than 20 seconds, it is calculated as an effective degree.
It wherein determines that each user applies according to the run time statistics information that each user applies to be segmented in specific time Interior operation probability includes: selection for determining the second date section of operation probability, and second date section is including at least 10 consecutive days;
Each data item in multiple data item in the run time statistics information of each user application is parsed, with It determines in the second time interval, each user applies the time span run in the segmentation of the specific time within each consecutive days Ti, wherein 1≤i≤Na, Na are the quantity of user's application in destination mobile terminal, wherein Na is natural number and Na is greater than 4;
It is applied in multiple specific times segmentation in the second date section based on the time span ti of operation by each user It calculates all users and applies the total time length T run in specific time is segmented:
It calculates each user and applies the operation probability P i=ti/T in specific time segmentation.The state parameter is target The current state of mobile terminal.It is wherein that each user application setting first is adjusted according to the state parameter of the destination mobile terminal Integral coefficient S includes: in the case where the state parameter of destination mobile terminal is strong light state, and first that each user is applied is adjusted Integral coefficient S is set smaller than 1, such as 0.8;It, will be each in the case where the state parameter of destination mobile terminal is sheen state The first adjustment coefficient S of user's application is set greater than 1, for example, 1.2;And destination mobile terminal state parameter be it is weak In the case where light state, the first adjustment coefficient S that each user applies is set smaller than 1, such as 0.9.
It is wherein each user application setting the first adjustment coefficient S according to the state parameter of the destination mobile terminal: The state parameter of destination mobile terminal be display screen upward in the case where, the first adjustment coefficient S that each user is applied is arranged For greater than 1, such as 1.2;Destination mobile terminal state parameter be display screen situation directed downwardly under, each user is applied The first adjustment coefficient S is set smaller than 1, for example, 0.3;It is the mobile feelings of horizontal direction in the state parameter of destination mobile terminal Under condition, the first adjustment coefficient S that each user applies is set smaller than 1, such as 0.9;Join in the state of destination mobile terminal Number is that the first adjustment coefficient S that each user applies is set smaller than 1, such as 0.7 in the case that vertical direction is mobile.
It is wherein each user application setting the first adjustment coefficient S packet according to the state parameter of the destination mobile terminal It includes: in the case where the state parameter of destination mobile terminal is hot state, the first adjustment coefficient S that each user applies being set It is set to less than 1, such as 0.8;In the case where the state parameter of destination mobile terminal is the condition of high temperature, each user is applied The first adjustment coefficient S is set smaller than 1, such as 0.9;In the case where the state parameter of destination mobile terminal is appropriate state, The first adjustment coefficient S that each user applies is set greater than 1, such as 1.2;It is low in the state parameter of destination mobile terminal In the case where temperature state, the first adjustment coefficient S that each user applies is set smaller than 1, such as 0.9;It is mobile eventually in target In the case that the state parameter at end is cold state, the first adjustment coefficient S that each user applies is set smaller than 1, such as 0.6;
Wherein hot state is temperature T >=32 DEG C;The condition of high temperature is 32 DEG C > temperature T >=25 DEG C, appropriate state be 25 DEG C > Temperature T >=18 DEG C, low-temperature condition are 18 DEG C > temperature T >=8 DEG C or cold state is 8 DEG C > temperature T.
The location parameter is the current location of destination mobile terminal.Location parameter according to the destination mobile terminal is It includes: to incite somebody to action in the case where the location parameter of destination mobile terminal is office that each user, which applies setting second adjustment coefficient L, The second adjustment coefficient L of each user's application is set smaller than 1, such as 0.8;It is family in the location parameter of destination mobile terminal In the case of, the second adjustment coefficient L that each user applies is set greater than 1, such as 1.2;In the position of destination mobile terminal In the case that parameter is restaurant, the second adjustment coefficient L that each user applies is set smaller than 1, such as 0.9;It is moved in target In the case that the location parameter of dynamic terminal is road, the second adjustment coefficient L that each user applies is set smaller than 1, such as 0.8;And in the case where the location parameter of destination mobile terminal is subway, second adjustment coefficient L that each user is applied It is set greater than 1, such as 1.1.
The weight proportion for wherein obtaining the state parameter and location parameter includes:
The weight configuration file in destination mobile terminal is read, the weight configuration file is parsed described in acquisition The weight proportion of state parameter and location parameter.The weight proportion of the state parameter and location parameter and be 1, the state The weight proportion of parameter and location parameter is respectively 0.5 and 0.5;The weight proportion of the state parameter and location parameter is respectively 0.3 and 0.7;The weight proportion of the state parameter and location parameter is respectively 0.2 and 0.8;The state parameter and position ginseng Several weight proportions is respectively 0.7 and 0.3;The weight proportion of the state parameter and location parameter is respectively 0.8 and 0.2;Institute The weight proportion for stating state parameter and location parameter is respectively 0.4 and 0.6;The weight proportion of the state parameter and location parameter Respectively 0.6 and 0.4.
It is wherein determined according to the first adjustment coefficient S of each user application and second adjustment coefficient L and weight proportion every The third regulation coefficient K of a user's application are as follows: third regulation coefficient K=the first adjustment coefficient S × W1+ second adjustment coefficient L × W2, wherein W1 is the weight proportion of state parameter sum, and W2 is the weight proportion of location parameter.
Third regulation coefficient K based on each user application and each use of operation probability calculation in specific time segmentation It includes: the third regulation coefficient K for applying each user that the operation probability being adjusted in specific time segmentation is applied at family Being adjusted in specific time segmentation is applied as each user with the product of the operation probability in specific time is segmented Operation probability.It further include apparatus for initializing, for being directed to destination mobile terminal in mobile Internet in response to Client-initiated Carry out the file that prefetches of file using associated data file with user and prefetch request, obtain prefetched to the file it is related The dynamic configuration file of connection;Dynamic index region is created in the first memory of the destination mobile terminal, and according to institute Multiple dynamic storage cells that dynamic configuration file creates file for storing data in the first memory are stated, wherein according to institute State the memory capacity for each dynamic storage cell that dynamic configuration file determines in the multiple dynamic storage cell;And
Dynamic index table is generated in the dynamic index region, the dynamic index table includes multiple index entries, each Index entry is used to record the application identities of the corresponding dynamic storage cell in multiple dynamic storage cells, initial address, terminates ground Location, memory capacity and storage rank.Wherein first memory is random access memory, and second memory is read-only memory.
The dynamic configuration file includes in first memory for providing the storage region of multiple dynamic storage cells Initial address and end address, and the dynamic configuration file further includes each dynamic memory in multiple dynamic storage cells The memory capacity of unit.The identifier for user's application that wherein application identities are belonged to by dynamic storage cell, initial address are The initial address of the memory space of dynamic storage cell, end address are the end address of the memory space of dynamic storage cell, Memory capacity be the memory space of dynamic storage cell memory capacity and storage rank be dynamic storage cell memory space Storage rank.
Further include the storage rank according to set by for dynamic storage cell to index entry corresponding in dynamic index table into Row updates.
Wherein prefetching device prefetches user using the dynamic of the quantitative storage level distributed according to for each of quantitative storage level The memory capacity of state storage unit is selected from user is prefetched with each of quantitative storage level using associated multiple data files At least one data file includes: to prefetch user using the dynamic of the quantitative storage level distributed according to for each of quantitative storage level The memory capacity of state storage unit will prefetch user with each of quantitative storage level and carry out using associated multiple data files Grouping is to generate multiple file groups, wherein each file group includes at least one data file, and is each of quantitative storage level Different priority is arranged to constitute priority query, by position in each priority query in the multiple file groups for prefetching user's application It is answered from second memory in the file group of head of the queue as current file group and by least one data file in current file group It makes and prefetches the dynamic storage cell for the quantitative storage level that user's application is distributed for each of quantitative storage level and be quantitative The third time cycle is arranged in each dynamic storage cell of storage level, when expiring the third time cycle, drops according to priority Next file group in low sequence use priority queue is as current file group, until next file group is not present;
User's application is prefetched using at least one data file in current file group as from each of quantitative storage level At least one data file of associated multiple data file selections;Wherein the size of each file group is less than corresponding quantitative The memory space of the dynamic storage cell of storage level.Wherein prefetching device prefetches user's application according to for each of quantitative storage level The memory capacity of the dynamic storage cell of the quantitative storage level distributed prefetches user using phase from each of quantitative storage level Associated multiple data files select at least one data file to include:
According to the dynamic storage cell for prefetching the quantitative storage level that user's application is distributed for each of quantitative storage level Memory capacity by with each of quantitative storage level prefetch user be grouped using associated multiple data files it is more to generate A file group randomly chooses a text wherein each file group includes at least one data file from the multiple file group Part group is as current file group and to copy at least one data file in current file group from second memory be quantitative Each of storage level prefetches the dynamic storage cell for the quantitative storage level that user's application is distributed and is the every of quantitative storage level The third time cycle is arranged in a dynamic storage cell, when expiring the third time cycle, randomly chooses from multiple file groups Next file group is as current file group, until next file group is not present;By at least one of current file group number At least one that user selects using associated multiple data files is prefetched as from each of quantitative storage level according to file Data file;
Wherein the size of each file group is less than the memory space of the corresponding quantitatively dynamic storage cell of storage level.
At least one selected data file is copied to from second memory as quantitative storage level in prefetching device After the dynamic storage cell for each prefetching the quantitative storage level that user's application is distributed, the third time cycle is arranged in prefetching device And when expiring the third time cycle, the quantitative storage that user's application is distributed is prefetched according to for each of quantitative storage level Grade dynamic storage cell memory capacity, again from quantitative storage level each prefetch user apply associated multiple numbers At least one data file is selected according to file, it is fixed that at least one data file reselected is copied to from second memory Each of amount storage level prefetches the dynamic storage cell for the quantitative storage level that user's application is distributed.
Wherein prefetching device prefetches user using the dynamic of the quantitative storage level distributed according to for each of quantitative storage level The memory capacity of state storage unit is selected from user is prefetched with each of quantitative storage level using associated multiple data files At least one data file includes:
Step 1 prefetches user using the dynamic memory of the quantitative storage level distributed according to for each of quantitative storage level The memory capacity of unit by with each of quantitative storage level prefetch user using associated multiple data files be grouped with N number of file group is generated, wherein N is greater than 1 natural number and each file group includes at least one data file;
Different serial numbers is arranged for each file group in N number of file group in step 2, wherein the serial number is from 1 to N;
Step 3, using the file group of serial number i=1 as current file group, wherein N >=i > 0;
The third time cycle is arranged for each dynamic storage cell of quantitative storage level in step 4;
Step 5 copies at least one data file included by current file group quantitatively to deposit from second memory Each of storage grade prefetches the dynamic storage cell for the quantitative storage level that user's application is distributed;
Step 6, when the third time cycle expire when, judge whether i=N true, if set up, terminate;If not at It is vertical, then using the file group of serial number i=i+1 as current file group, carry out step 5;
Wherein the size of each file group is less than the memory capacity of the dynamic storage cell of quantitative storage level.
Being provided with that device determines in the multiple user application according to the sorted lists can be by from second memory Be loaded previously into first memory multiple prefetch user's application and includes:
It, will be in sorted lists when running quantity of the probability greater than the user's application for prefetching threshold value in sorted lists greater than 0 Operation probability is determined as to be loaded previously into first memory from second memory greater than the user's application for prefetching threshold value Prefetch user application, with determine at least one prefetch user application;When in sorted lists run probability be greater than prefetch threshold value When the quantity of user's application is equal to 0, users all in sorted lists application is determined as to be added in advance from second memory It is downloaded in first memory and prefetches user's application, to determine that at least one prefetches user's application.
Be provided with device according to the sorted lists be at least one prefetch user application in each prefetch user application It includes: the storage level for prefetching user's application for probability being run in the sorted lists greater than high probability threshold value that storage rank, which is arranged, It is not set as decrement storage level;Probability will be run in the sorted lists to be less than or equal to high probability threshold value and be greater than middle probability The storage rank for prefetching user's application of threshold value is set as increment storage level;Probability will be run in the sorted lists to be less than or wait Quantitative storage level is set as in middle probability threshold value and greater than the storage rank for prefetching user's application of low probability threshold value;It will be described The storage rank for prefetching user's application that probability is run in sorted lists less than or equal to low probability threshold value is set as compression storage Grade.
Wherein at least one the dynamic memory list for prefetching user's application and distributing of distributor by each decrement storage level Member can accommodate all data files for prefetching user's application of corresponding decrement storage level, and distributor is each compression The user that prefetches of storage level applies at least one dynamic storage cell distributed that can accommodate the pre- of corresponding compression storage level Take all data files through overcompression of family application.Wherein period first time is 30 seconds, and second time period is 60 seconds, Wherein the third time cycle is 90 seconds.At least one essence data files for wherein each prefetching user's application are stored with increment Each of grade prefetches at least one data that user is higher than priority threshold using boot sequence in associated multiple data files File.Wherein the first predetermined quantity is 5, and second predetermined quantity is 8.
Detailed description of the invention
By reference to the following drawings, exemplary embodiments of the present invention can be more fully understood by:
Fig. 1 is the process according to the present invention for carrying out the method that file prefetches in mobile Internet according to time slice Figure;
Fig. 2 is the logical schematic of sorted lists according to the present invention;
Fig. 3 is the logical schematic of decrement storage according to the present invention;
Fig. 4 is the logical schematic of increment according to the present invention storage;
Fig. 5 is the logical schematic according to the present invention quantitatively stored;
Fig. 6 is the logical schematic of compression storage according to the present invention;And
Fig. 7 is that the structure according to the present invention for carrying out the system that file prefetches in mobile Internet according to time slice is shown It is intended to.
Specific embodiment
Fig. 1 is the method for carrying out file in mobile Internet according to time slice and prefetching according to embodiment of the present invention 100 flow chart.As shown in Figure 1, method 100 is since step 101 place.
In step 101, operating statistic file associated with destination mobile terminal in mobile Internet is obtained, to the fortune When the operation that row statistics file is parsed with user's application each in users multiple in determination destination mobile terminal application Between statistical information.It include multiple mobile terminals, base station, content server etc. in mobile Internet.The application will will initiate file The mobile terminal or request for prefetching request carry out the mobile terminal that file prefetches and are determined as destination mobile terminal.In addition, each shifting Include in dynamic terminal (including destination mobile terminal) or the quantity of the user of installation application is greater than 4, such as 5,10,20 users answer With.Applying relevant concept to user includes system application, and system application is usually the operating system institute by mobile terminal Determining system-level application.
Operating statistic file includes multiple tables of data, and the application is every in multiple user's applications in destination mobile terminal A user's application one tables of data of distribution.Content including multiple data item and each data item in each tables of data is quaternary Group<Apply Names, front stage operation initial time, front stage operation end time, front stage operation cumulative time>.For example, data item is <king's honor, 20:00 on June 8th, 2018,21:50 on June 8th, 2018,110 minutes>.
The application believes the run time statistics that the tables of data distributed by each user application is applied as each user Breath, that is, the run time statistics information of each user application is provided by way of tables of data.For each user application The tables of data distributed is used to record the runing time information of each user's application in real time.That is, the running of mobile terminal the case where Under, the operation information that operating system or control equipment can apply each user, for example, when Apply Names, front stage operation originate Between, front stage operation end time, front stage operation cumulative time etc., carry out real-time statistics and record.Therefore, tables of data will record often A user applies since past particular point in time to the operation information in the statistical time section of current point in time.Wherein, In the operating statistic file, the application is that each user application saves predetermined quantity (for example, 100,200,300) Data item, or for each user application save predetermined time length (for example, 10 days, 20 days, 30 days) in data item.
In step 102, according to the application switching frequency F and user of user's application at runtime in the destination mobile terminal Each time interval T in multiple time intervals in one consecutive days is divided into multiple by pre-set dynamic Dynamic gene A Time slice.When the current run time of destination mobile terminal enters the specific time segmentation in multiple time slices, according to The run time statistics information of each user's application determines that each user applies the operation probability in specific time segmentation;
The application switching frequency F of user's application at runtime is to run to use in destination mobile terminal in destination mobile terminal Family is in application, be located at the switching frequency for being switched to backstage of user's application on foreground at runtime.Application switching frequency F is Effective period of time in each consecutive days in one date section (for example, 10 consecutive days, 20 consecutive days, 30 consecutive days) User in (for example, 8 a.m. to 12 points of period of afternoon, at 10 points in the morning to 10 points of period of afternoon) positioned at foreground answers With the mean handoff number for being switched to backstage at runtime.In general, can be inputted according to user or be set by operating system Set the first date section and effective period of time.In this application, at any time, front stage operation is in destination mobile terminal Using only one, and when the user for being located at foreground applies when being switched to backstage after the front stage operation time is greater than 1 minute Switching times can be just counted into.That is, if the user on foreground applies the quilt when the front stage operation time is for 1 minute or less than 1 minute It is switched to backstage, then current switching is not included in switching times (being considered as interference operation).According to this mode, the application energy Enough avoid the problem that the frequent switching front stage operation as brought by maloperation is excessive using brought switching times.Wherein One date section includes at least ten consecutive days, and effective period of time is at 6 points in the morning to 11 points of the period of afternoon.
For example, the application switching frequency F of multiple user's applications at runtime is mobile eventually in target in destination mobile terminal The multiple users of operation in end are in application, be located at the switching frequency for being switched to backstage of user's application on foreground at runtime.It answers With effective period of time (at 10 points in the morning to 10 points of time of afternoon that switching frequency F is in each consecutive days of 10 consecutive days Section), i.e. 12 hours, the mean handoff number for being switched to backstage of interior user's application positioned at foreground at runtime.For example, The switching times of effective period of time in each consecutive days of 10 consecutive days are as follows: 10,15,20,9,21,16,12,22,10 and 15, then mean handoff number is 15.
User presets according to the processor host frequency of the destination mobile terminal and the reading speed of second memory Dynamic Dynamic gene A.In general, when destination mobile terminal processor host frequency is higher and/or the reading speed of second memory more Fastly, then dynamic Dynamic gene A is arranged bigger, for example, 3,4,5,6 and 8.Furthermore, it is possible to have user or system directly specified Dynamic Dynamic gene, for example, being set as 5.
Wherein set in advance according to user application application switching frequency F at runtime and user in the destination mobile terminal Each time interval T in multiple time intervals is divided into multiple time slices by the dynamic Dynamic gene A set
Wherein S is the quantity of time slice in each time interval T.The application according to the value of application switching frequency F not With determining different time slice quantity.When wherein each time interval T is 60 minutes and the starting of each time interval T Between and the end time be the integral point time, for example, time interval be 10:00 to 11:00,11:00 to 12:00,15:00 to 16: The application such as 00 can will be pre- according to user application application switching frequency F at runtime and user in the destination mobile terminal When each time interval T in multiple time intervals in one consecutive days is divided into multiple by the dynamic Dynamic gene A being first arranged Between be segmented replacement are as follows: when each time interval in a consecutive days in multiple time intervals is divided into 3 time slices, 6 Between be segmented or 10 time slices.According to user application application switching frequency F at runtime in the destination mobile terminal and Each time interval T in multiple time intervals in one consecutive days is divided by the pre-set dynamic Dynamic gene A of user Multiple time slices, which may alternatively be, is divided into 6 for each time interval T in time intervals multiple in a consecutive days Time slice.
Wherein when the current run time of destination mobile terminal enters the specific time segmentation in multiple time slices, root Determine that each user applies the operation probability in specific time segmentation according to the run time statistics information that each user applies.
Wherein, the current run time of destination mobile terminal refers to the present system time of destination mobile terminal, for example, behaviour Make the current time that system is indicated or shows.The current run time of destination mobile terminal enters the spy in multiple time slices It fixes time segmentation, such as when the current run time of destination mobile terminal is 10:00, then entering specific time segmentation, (10:00 is extremely 10:10), as shown in Figure 2.Fig. 2 is the logical schematic according to the sorted lists 200 of embodiment of the present invention.Wherein, from 2018 Totally 10 consecutive days in 204 and 2018 year on the 9th 10 days 205 June of June in 202,2018 on June 203 to 2018 years 2, on June 1, and And time slice therein is morning 10:00 to 10:10.
It wherein determines that each user applies according to the run time statistics information that each user applies to be segmented in specific time Interior operation probability includes: selection for determining the second date section of operation probability, and second date section is including at least 10 consecutive days (for example, 10 consecutive days, 20 consecutive days, 30 consecutive days);
Each data item in multiple data item in the run time statistics information of each user application is parsed, with It determines in the second date section, each user applies the effective degree run in the segmentation of the specific time within each consecutive days Ci.Wherein when user applies the runing time in specific time segmentation to be more than 20 seconds, it is calculated as an effective degree.For example, Specific time is segmented into 10:00 to 10:10 (that is, be 10:00 to 11:00 by time interval point be 6 time slices), Alipay Applying the runing time within each consecutive days of 10 consecutive days in specific time segmentation is that (operation was less than 20 in 10 seconds Second), 60 seconds, 0 second (not running), 50 seconds, 30 seconds, 90 seconds, 120 seconds, 0 second (not running), 15 seconds (operation is less than 20 seconds) and 60 seconds, then the effective degree of Alipay application is 0+1+0+1+1+1+1+0+0+1=6 times.Wherein 1≤i≤Na, Na are target The quantity that user applies in mobile terminal, wherein Na is natural number and Na is greater than 4.
It is applied in multiple specific times segmentation in the second date section based on the effective degree Ci of operation by each user It calculates all users and applies the total effective degree S run in specific time is segmented:
It calculates each user and applies the operation probability P i=Ci/S in specific time segmentation.For example, Alipay is applied 10 consecutive days specific time segmentation (10:00 to 10:10) run 6 times, wechat apply the specific time in 10 consecutive days Segmentation (10:00 to 10:10) run 10 times, Taobao using 10 consecutive days specific time segmentation (10:00 to 10:10) operation 3 times, (10:00 to 10:10) runs 1 time and Meituan and applies at 10 for specific time segmentation of king's honor in 10 consecutive days (10:00 to 10:10) is run 0 time, then S=20 times for the specific time segmentation of consecutive days.Alipay, wechat application, Taobao answer With, king's honor and Meituan apply specific time segmentation (the operation probability of 10:00 to 10:10) is 30% respectively, 50%, 15%, 5% and 0%.
It wherein determines that each user applies according to the run time statistics information that each user applies to be segmented in specific time Interior operation probability includes: selection for determining the second date section of operation probability, and second date section is including at least 10 consecutive days (for example, 10 consecutive days, 20 consecutive days, 30 consecutive days);
Each data item in multiple data item in the run time statistics information of each user application is parsed, with It determines in the second time interval, each user applies the time span run in the segmentation of the specific time within each consecutive days ti.For example, specific time is segmented into 10:00 to 10:10 (that is, be 10:00 to 11:00 by time interval point being 6 times point Section), it is 10 seconds, 60 that Alipay, which applies the runing time within each consecutive days of 10 consecutive days in specific time segmentation, Second, 0 second, 50 seconds, 30 seconds, 90 seconds, 120 seconds, 0 second, 15 seconds and 60 seconds, then the time span of Alipay application is 435 seconds.Its In 1≤i≤Na, Na is the quantity of user's application in destination mobile terminal, and wherein Na is that natural number and Na are greater than 4.
It is applied in multiple specific times segmentation in the second date section based on the time span ti of operation by each user It calculates all users and applies the total time length T run in specific time is segmented:
It calculates each user and applies the operation probability P i=ti/T in specific time segmentation.For example, Alipay is applied 10 consecutive days specific time segmentation (10:00 to 10:10) run 435 seconds, wechat apply 10 consecutive days it is specific when Between segmentation (10:00 to 10:10) run 875 seconds, Taobao using 10 consecutive days specific time be segmented (10:00 to 10:10) Run 500 seconds, (10:00 to 10:10) is run 190 seconds and Meituan is answered for specific time segmentation of king's honor in 10 consecutive days (10:00 to 10:10) is run 0 second, then T=2000 seconds for specific time segmentation used in 10 consecutive days.Alipay, wechat are answered Apply that (the operation probability of 10:00 to 10:10) is respectively in specific time segmentation with the application of, Taobao, king's honor and Meituan 21.75%, 43.75%, 25%, 9.5% and 0%.
In the example shown in figure 2, as shown in table 206, from 10 of on June 10th, 1 day 1 June in 2018 from So for time slice A morning 10:00 in a few days into 10:10, the operation probability of king's honor is the operation of 15%, the short-sighted frequency of trill Probability is 13.3%, the operation probability of youku.com's video is 12.5%, the operation probability of mobile phone Taobao is 10.8%, Meituan is taken out Operation probability is 8.3%, the operation probability that Baidu takes out is 7.5%, the operation probability of Need For Speed be 5.8%, three state poles without Double operation probability is 5% and the operation probability of lazyboot's English is 0%.
It is each user application setting the first adjustment system according to the state parameter of the destination mobile terminal in step 103 Number S and be each user application setting second adjustment coefficient L according to the location parameter of the destination mobile terminal, described in acquisition The weight proportion of state parameter and location parameter, according to each user application the first adjustment coefficient S and second adjustment coefficient L with And weight proportion determines the third regulation coefficient K of each user application, third regulation coefficient K based on each user application and The each user of operation probability calculation in specific time segmentation applies the operation probability being adjusted in specific time segmentation, The operation probability being adjusted in specific time segmentation is applied run generally to multiple users application based on each user The descending sort of rate is to generate sorted lists;
The application obtains the state parameter of destination mobile terminal using the sensor module of destination mobile terminal.It is wherein described The state parameter of destination mobile terminal is the current state of destination mobile terminal.Sensor module for example, luminance sensor, Acceleration transducer, environment temperature sensor etc..Described in sensor module acquisition of the application using the destination mobile terminal The state parameter of destination mobile terminal includes:
The destination mobile terminal is obtained using the luminance sensor in the sensor module of the destination mobile terminal State parameter is strong light state, sheen state or dim light state.Strong light state is the state that illumination is greater than 10000 luxs;It is soft Light state is the state that illumination is less than or equal to 10000 luxs and illumination is greater than or equal to 100 luxs;Dim light state is small State in 100 luxs.Strong light state, sheen state or dim light state can refer to that extraneous light is directed to destination mobile terminal Display screen illumination.
The application is each user application setting the first adjustment coefficient S packet according to the state parameter of the destination mobile terminal It includes: in the case where the state parameter of destination mobile terminal is strong light state, the first adjustment coefficient S that each user applies being set It is set to less than 1, such as 0.8;In the case where the state parameter of destination mobile terminal is sheen state, each user is applied The first adjustment coefficient S is set greater than 1, for example, 1.2.
In the case where the state parameter of destination mobile terminal is dim light state, the first adjustment system that each user is applied Number S is set smaller than 1, such as 0.9.This is because user is transported using destination mobile terminal under strong light state and dim light state Row user application may have the case where poor display effect, therefore the first adjustment coefficient S is less than 1.And in the feelings of sheen Under condition, the wish that user runs user's application using destination mobile terminal can be greatly enhanced, therefore the first adjustment coefficient S is greater than 1。
The application obtains the state parameter of the destination mobile terminal using the sensor module of the destination mobile terminal Include:
The destination mobile terminal is obtained using the acceleration transducer in the sensor module of the destination mobile terminal State parameter be display screen upward, display screen downward, horizontal direction is mobile or vertical direction is mobile.Wherein display screen example upward Destination mobile terminal is placed on the table and shows screen side upward by user in this way;Display screen is, for example, that user will downward Destination mobile terminal is placed on the table and shows screen side downward;The mobile e.g. user of horizontal direction is mobile by target Terminal, which is put in the hand or carried, is horizontally moved (such as being moved in leveling office);Vertical direction moves example Destination mobile terminal is put in the hand or carried by user in this way is vertically moved (such as taking elevator).
The application is each user application setting the first adjustment coefficient S packet according to the state parameter of the destination mobile terminal It includes:
The state parameter of destination mobile terminal be display screen upward in the case where, regulation coefficient that each user is applied It is set greater than 1, such as 1.2;Destination mobile terminal state parameter be display screen situation directed downwardly under, each user is answered The first adjustment coefficient S is set smaller than 1, for example, 0.3;It is mobile for horizontal direction in the state parameter of destination mobile terminal In the case where, the first adjustment coefficient S that each user applies is set smaller than 1, such as 0.9;In the shape of destination mobile terminal State parameter is in the case that vertical direction is mobile, and the first adjustment coefficient S that each user applies is set smaller than 1, such as 0.7。
Due to being transported using destination mobile terminal in the case that user sets display screen upward for destination mobile terminal The probability of row user application is larger, for this purpose, the first adjustment coefficient S is greater than 1.Due to setting aobvious for destination mobile terminal as user In the case that display screen is downward, horizontal direction is mobile or vertical direction is mobile, user's application is run using destination mobile terminal Probability is smaller, for this purpose, the first adjustment coefficient S is less than 1.
The application obtains the state parameter of the destination mobile terminal using the sensor module of the destination mobile terminal Include:
It is mobile eventually that the target is obtained using the environment temperature sensor in the sensor module of the destination mobile terminal The state parameter at end is hot state, the condition of high temperature, appropriate state, low-temperature condition or cold state.
The application is each user application setting the first adjustment coefficient S packet according to the state parameter of the destination mobile terminal It includes:
In the case where the state parameter of destination mobile terminal is hot state, the first adjustment system that each user is applied Number S is set smaller than 1, such as 0.8;In the case where the state parameter of destination mobile terminal is the condition of high temperature, by each user The first adjustment coefficient S of application is set smaller than 1, such as 0.9;In the feelings that the state parameter of destination mobile terminal is appropriate state Under condition, the first adjustment coefficient S that each user applies is set greater than 1, such as 1.2;Join in the state of destination mobile terminal In the case that number is low-temperature condition, the first adjustment coefficient S that each user applies is set smaller than 1, such as 0.9;In target In the case that the state parameter of mobile terminal is cold state, the first adjustment coefficient S that each user applies is set smaller than 1, such as 0.6;Wherein hot state is temperature T >=32 DEG C;The condition of high temperature is 32 DEG C > temperature T >=25 DEG C, appropriate state is 25 DEG C > temperature T >=18 DEG C, 18 DEG C > temperature of low-temperature condition T >=8 DEG C are or cold state is 8 DEG C > temperature T.
Since in the case that environment temperature is appropriate state, user runs user's application using destination mobile terminal Probability is larger, for this purpose, the first adjustment coefficient S is greater than 1.Due to when environment temperature be hot state, the condition of high temperature, appropriate state, In the case where low-temperature condition or cold state, the probability that user runs user's application using destination mobile terminal is smaller, for this purpose, The first adjustment coefficient S is greater than 1.
It will be appreciated that user can according to need come the size for the first adjustment coefficient S being arranged under each state.Its Middle location parameter is the current location (current location obtained by positioning component) of destination mobile terminal.
It is that each user application setting second adjustment coefficient L includes: according to the location parameter of the destination mobile terminal
In the case where the location parameter of destination mobile terminal is office, second adjustment coefficient that each user is applied L is set smaller than 1, such as 0.8.In the case where the location parameter of destination mobile terminal is family, each user is applied the Two regulation coefficient L are set greater than 1, such as 1.2.It, will be each in the case where the location parameter of destination mobile terminal is restaurant The second adjustment coefficient L of user's application is set smaller than 1, such as 0.9.It is road (example in the location parameter of destination mobile terminal Such as, highway) in the case where, the second adjustment coefficient L that each user applies is set smaller than 1, such as 0.8.It is mobile in target In the case that the location parameter of terminal is subway, the second adjustment coefficient L that each user applies is set greater than 1, such as 1.1。
It will be appreciated that user can according to need that the size of the second adjustment coefficient L at each position is arranged.
It wherein obtains the state parameter and the respective weight proportion of location parameter includes: to read in destination mobile terminal Weight configuration file parses the weight configuration file to obtain the state parameter and the respective weight of location parameter Ratio;Wherein the state parameter and the respective weight proportion of location parameter and be 1, for example, the state parameter and The weight proportion of location parameter is respectively 0.5 and 0.5;The weight proportion of the state parameter and location parameter is respectively 0.3 He 0.7;The weight proportion of the state parameter and location parameter is respectively 0.2 and 0.8;The power of the state parameter and location parameter Weight ratio is respectively 0.7 and 0.3;The weight proportion of the state parameter and location parameter is respectively 0.8 and 0.2;The state The weight proportion of parameter and location parameter is respectively 0.4 and 0.6;The weight proportion of the state parameter and location parameter is respectively 0.6 and 0.4.
Wherein according to the first adjustment coefficient S of each user application and second adjustment coefficient L and respective weight proportion Determine the third regulation coefficient K of each user's application are as follows: third regulation coefficient K=the first adjustment coefficient S × W1+ second adjustment system Number L × W2, wherein W1 is the weight proportion of state parameter, and W2 is the weight proportion of location parameter, as shown in Figure 2.
Third regulation coefficient K based on each user application and each use of operation probability calculation in specific time segmentation Apply the operation probability being adjusted in specific time segmentation in family: third regulation coefficient K that each user is applied and The product of operation probability in specific time segmentation applies the fortune being adjusted in specific time segmentation as each user Row probability.
In the example shown in figure 2, as shown in table 206, from 10 of on June 10th, 1 day 1 June in 2018 from So in specific time segmentation A in a few days, the operation probability of king's honor is 15%, the operation probability of the short-sighted frequency of trill is 13.3%, the operation that the operation probability of youku.com's video is 12.5%, the operation probability of mobile phone Taobao is 10.8%, Meituan is taken out is general The operation probability that rate is 8.3%, Baidu takes out is 7.5%, the operation probability of Need For Speed being adjusted is 5.8%, three states Extremely unparalleled operation probability is 5% and the operation probability of lazyboot's English being adjusted is 0%.
In the case where the state parameter of destination mobile terminal is dim light state, the first adjustment system that each user is applied Number S are set as 0.9, and at the same time, in the case where the location parameter of destination mobile terminal is family, each user is applied the Two regulation coefficient L are set as 1.2.The weight proportion of state parameter is 0.4 and the weight proportion of location parameter is 0.6.So, Third regulation coefficient F are as follows: third regulation coefficient F=the first adjustment coefficient T × W1+ second adjustment coefficient L × W2, i.e. third adjustment Coefficient F=0.9 × 0.4+1.2 × 0.6=0.36+0.72=1.08.
Third regulation coefficient K wherein based on each user application and the operation probability calculation in specific time segmentation are every It includes: the third adjustment system for applying each user that a user, which applies the operation probability being adjusted in specific time segmentation, Number K and the operation probability in specific time segmentation product apply as each user in specific time is segmented through toning The operation probability that whole operation probability, i.e. operation probability × 1.08=are adjusted.
For ease of calculation, the example for the operation probability being adjusted is elected to be 1.2.In the example shown in figure 2, such as table Shown in 207, in the specific time segmentation A in 10 consecutive days from June 10th, 1 day 1 June in 2018, Wang Zherong The operation probability of credit being adjusted is 18%, the operation probability of the short-sighted frequency of trill being adjusted is 16%, youku.com's video The operation probability being adjusted is 15%, the operation probability of mobile phone Taobao being adjusted is 13%, Meituan take out through toning Whole operation probability is 10%, the operation probability of Baidu's take-away being adjusted is 9%, the operation of Need For Speed being adjusted Probability is that the extremely unparalleled operation probability being adjusted of 7%, three states is 6% and the operation probability of lazyboot's English being adjusted It is 0%.
In step 104, being determined according to the sorted lists can be by pre- from second memory in the multiple user's application It is first loaded at least one of first memory and prefetches user's application, and prefetched according to the sorted lists at least one User's application setting storage rank is each prefetched in user's application, wherein the storage level does not include: that decrement storage level, increment are deposited Store up grade, quantitative storage level and compression storage level.
Wherein being determined according to the sorted lists can be by pre-loaded from second memory in the multiple user's application Multiple into first memory prefetch user's application include: when run in sorted lists probability be greater than prefetch threshold value (for example, 5%, 10%) user application quantity be greater than 0 (for example, 10) when, will in sorted lists run probability be greater than prefetch threshold value User application be determined as can by from second memory be loaded previously into first memory prefetch user application, with determination At least one prefetches user's application;It is answered when running probability in sorted lists greater than the user for prefetching threshold value (for example, 5%, 10%) When quantity is equal to 0, users all in sorted lists are determined as using (for example, 15) can be by pre- from second memory It is first loaded into first memory and prefetches user's application, to determine that at least one prefetches user's application.
It is wherein prefetched according to the sorted lists at least one and each prefetches user's application setting storage in user's application Rank includes: that will run probability in the sorted lists to prefetch depositing for user's application greater than high probability threshold value (for example, 15%) Storage rank is set as decrement storage level;Will in the sorted lists run probability be less than or equal to high probability threshold value (for example, 15%) and greater than the storage rank for prefetching user's application of middle probability threshold value (for example, 12%) it is set as increment storage level;It will In the sorted lists run probability be less than or equal to middle probability threshold value (for example, 12%) and be greater than low probability threshold value (for example, 8%) the storage rank for prefetching user's application is set as quantitative storage level;Probability will be run in the sorted lists to be less than or wait Compression storage level is set as in the storage rank for prefetching user's application of low probability threshold value (for example, 8%).User is wherein prefetched to answer Operation probability is all larger than 5%.
As shown in Fig. 2, according to aforesaid way it was determined that the operation probability of king's honor is 18% and the short-sighted frequency of trill Running probability is 16%, therefore king's honor and the storage rank of the short-sighted frequency of trill are decrement storage level.The operation of youku.com's video Probability is 15% and the operation probability of mobile phone Taobao is 13%, therefore the storage rank of youku.com's video and mobile phone Taobao is deposited for increment Store up grade.The operation probability that the operation probability that Meituan is taken out is 10% and Baidu takes out is 9%, therefore Meituan is taken out and Baidu takes out Storage rank be quantitative storage level, the operation probability of Need For Speed be 7% and three the extremely unparalleled operation probability of state be 6%, because The extremely unparalleled storage rank of this Need For Speed and three states is compression storage level.
The quantity 8 for being greater than the user's application for prefetching threshold value 5% due to running probability in sorted lists is greater than 0, sequence Probability is run in list is greater than the user for prefetching threshold value using (the operation probability of king's honor is the fortune of 18%, the short-sighted frequency of trill The operation that row probability is 16%, the operation probability of youku.com's video is 15%, the operation probability of mobile phone Taobao is 13%, Meituan is taken out The operation probability that probability is 10%, Baidu takes out is 9%, the operation probability of Need For Speed is that the extremely unparalleled operation of 7%, three states is general Rate is 6%) to be determined as that user's application can be prefetched by being loaded previously into first memory from second memory, to determine extremely Few one prefetches user's application.The operation probability of lazyboot's English is 0%, therefore is not belonging to prefetch user's application.
In step 105, user's application is prefetched for each of decrement storage level and distributes at least one dynamic storage cell, for pressure Each of contracting storage level prefetches user's application and distributes at least one dynamic storage cell, prefetches user for each of increment storage level User's application one dynamic memory list of distribution is prefetched using one dynamic storage cell of distribution and for each of quantitative storage level Member.The each dynamic wherein prefetched for each of decrement storage level at least one dynamic storage cell of user's application distribution is deposited The memory capacity of storage unit can be identical or different, and prefetches user's application for each of compression storage level and distribute at least one The memory capacity of each dynamic storage cell in dynamic storage cell can be identical or different.
Held by the total storage for prefetching at least one dynamic storage cell that user's application distributes of each decrement storage level Amount can accommodate all data files for prefetching user's application of corresponding decrement storage level.For prefetching for each compression storage level The total memory capacity at least one dynamic storage cell that user's application is distributed can accommodate the pre- of corresponding compression storage level Take all data files through overcompression of family application.User's application distribution one is prefetched by each of increment storage level to move State storage unit can accommodate all data files for prefetching user's application of corresponding increment storage level.For quantitative storage level Each prefetch user application distribute one dynamic storage cell can accommodate accordingly quantify storage level prefetch user apply All data files.
In step 106, distributed according to each storage rank for prefetching user's application to user's application is each prefetched Dynamic storage cell setting storage rank.At least one dynamic that user's application is distributed will be prefetched for each of decrement storage level Each dynamic storage cell of storage unit is set as decrement storage level, will prefetch user using institute for each of compression storage level Each dynamic storage cell of at least one dynamic storage cell of distribution is set as compression storage level, will be for increment storage level It each prefetches user's application one dynamic storage cell of distribution and is set as increment storage level and will be to quantify each of storage level It prefetches user and is set as quantitative storage level using a distributed dynamic storage cell.
In step 107, user will be prefetched using associated data with each according to the storage rank for prefetching user's application File from second memory carry out file prefetch, comprising: preferably, by decrement storage level each prefetch user apply it is related (all) multiple data files of connection are copied to prefetch user by decrement each of storage level and apply from second memory and be distributed At least one decrement storage level dynamic storage cell, and replicate complete when be it is each decrement storage level dynamic memory list Member setting period first time simultaneously starts timing, in the dynamic memory of each decrement storage level when expiring period first time The data file that the first predetermined quantity is deleted in unit, until the dynamic storage cell of each decrement storage level does not have data Until file.
Fig. 3 is the logical schematic according to the decrement storage 300 of embodiment of the present invention.Wherein the operation of king's honor is general Rate is 18% and the operation probability of the short-sighted frequency of trill is 16%, therefore king's honor and the storage rank of the short-sighted frequency of trill are decrement Storage level.By all data files of king's honor to copy at least one distributed by king's honor from second memory It is reduced the dynamic storage cell 301,302 and 303 of storage level.Each memory capacity in dynamic storage cell 301,302 and 303 It is 500M, and marks Apply Names and storage rank in each dynamic storage cell.It is each subtract after the completion of duplication Period first time (for example, 30 seconds, 50 seconds, 60 seconds) are arranged in the dynamic storage cell 301,302 and 303 for measuring storage level, whenever In the dynamic storage cell of each decrement storage level when period first time expired (that is, whenever have passed through 30 seconds, 50 seconds, 60 seconds) 301, the data file of the first predetermined quantity (for example, 3,5) is deleted in 302 and 303.
By all data files of the short-sighted frequency of trill for from second memory copy to by the short-sighted frequency of trill distribute to The dynamic storage cell 311 and 312 of few decrement storage level.Each memory capacity is equal in dynamic storage cell 311 and 312 For 60M, and Apply Names and storage rank are marked in each dynamic storage cell.It and is each decrement after the completion of duplication Period first time (for example, 30 seconds, 50 seconds, 60 seconds) are arranged in the dynamic storage cell 311 and 312 of storage level, whenever first Between the period expire (that is, whenever have passed through 30 seconds, 50 seconds, 60 seconds) when it is each decrement storage level dynamic storage cell in delete The data file of first predetermined quantity (for example, 3,5).For example, the data file in king's honor and the short-sighted frequency of trill is complete After portion copies to corresponding dynamic storage cell 301,302 and 303 and 311 and 312, start timing, whenever by 30 seconds When, from 3 data files of each deletion in dynamic storage cell 301,302,303,311 and 312.Work as dynamic storage cell 301, when not having data file in 302 and 303 and 311 and 312, stop deleting file.
Preferably, user is being prefetched using selecting in associated (all) multiple data files with each of increment storage level Select at least one essence data files, by each of increment storage level prefetch user application at least one essence data files from Second memory copies to the dynamic memory list that the increment storage level that user's application distributes is prefetched by each of increment storage level Member, and second time period is set for the dynamic storage cell of increment storage level when replicating completion and starts timing, wherein often When second time period is expired user will be prefetched using removing in associated multiple data files with each of increment storage level The data file of the second predetermined quantity except replicated file copies to as increment storage level from second memory The dynamic storage cell for each prefetching the distributed increment storage level of user's application prefetches user using associated until each Until all data files are all copied to the dynamic storage cell of the corresponding increment storage level distributed.It is wherein each pre- Take family application at least one essence data files be with increment storage level each prefetch user apply it is associated multiple Boot sequence is higher than priority threshold (for example, priority threshold is 3, i.e., by starting each in multiple data files in data file Sequence be set as 1,2,3,4 or 5 grade, wherein the rank of 1,2,3,4 or 5 grade of boot sequence successively increases) at least one number According to file.
Wherein it can accommodate/deposit each to prefetch a dynamic storage cell of the distributed increment storage level of user's application Storage is corresponding/all (multiple) data files for prefetching user's application for being belonged to.
Fig. 4 is the logical schematic according to the increment of embodiment of the present invention storage 400.Wherein the operation of youku.com's video is general Rate is 15% and the operation probability of mobile phone Taobao is 13%, therefore the storage rank of youku.com's video and mobile phone Taobao is increment storage Grade.
10 essence data files are selected from associated (all) the multiple data files of youku.com's video, by this 10 bases Plinth file copies to the dynamic storage cell 401 of the increment storage level distributed by youku.com's video from second memory.Dynamic is deposited The memory capacity of storage unit 401 is 200M, and Apply Names and storage rank are marked in each dynamic storage cell.? Second time period (for example, 30 seconds, 50 seconds, 60 seconds) are set for the dynamic storage cell 401 of increment storage level after the completion of duplication, It will be with youku.com's video with associated multiple when second time period expires (that is, whenever have passed through 30 seconds, 50 seconds, 60 seconds) In data file (other than replicated file) the second predetermined quantity (for example, 3,5,8) data file Dynamic storage cell 401 is copied to from second memory.
10 essence data files are selected from associated (all) the multiple data files of mobile phone Taobao, by this 10 bases Plinth file copies to the dynamic storage cell 402 of the increment storage level distributed by mobile phone Taobao from second memory.Dynamic is deposited The memory capacity of storage unit 402 is 300M, and Apply Names and storage rank are marked in each dynamic storage cell.? Second time period (for example, 30 seconds, 50 seconds, 60 seconds) are set for the dynamic storage cell 402 of increment storage level after the completion of duplication, It will be with mobile phone Taobao with associated multiple when second time period expires (that is, whenever have passed through 30 seconds, 50 seconds, 60 seconds) In data file (other than replicated file) the second predetermined quantity (for example, 3,5,8) data file Dynamic storage cell 402 is copied to from second memory.
For example, 10 essence data files in youku.com's video and mobile phone Taobao all copy to corresponding dynamic memory list After member 401 and 402, start timing, it, will be with youku.com's video in associated 90 data files whenever by 60 seconds 8 data files of (being initially 100 data files) copy to dynamic storage cell 401 from second memory;And whenever It, will be with mobile phone Taobao 8 numbers for (being initially 160 data files) in associated 150 data files when by 60 seconds Dynamic storage cell 401 is copied to from second memory according to file.When all 100 data files of youku.com's video are all answered When making in dynamic storage cell 401 difficult to understand, replication actions are no longer carried out, when all 160 data file whole quilts of mobile phone Taobao When replicating in dynamic storage cell 402 difficult to understand, replication actions are no longer carried out
Preferably, according to the dynamic memory for prefetching the quantitative storage level that user's application is distributed for each of quantitative storage level The memory capacity of unit prefetches user using associated (all) multiple data files selections from each of quantitative storage level (total memory capacity needed at least one selected data file is less than the dynamic of quantitative storage level at least one data file The memory capacity of state storage unit), and it is quantitative that at least one selected data file is copied to from second memory Each of storage level prefetches the dynamic storage cell for the quantitative storage level that user's application is distributed.
Fig. 5 is the logical schematic according to the quantitative storage 500 of embodiment of the present invention.The operation that wherein Meituan is taken out is general The operation probability that rate is 10% and Baidu takes out is 9%, therefore the storage rank that Meituan is taken out and Baidu takes out is quantitative storage Grade.According to the memory capacity 20M for taking out the dynamic storage cell of quantitative storage level distributed by Meituan, from appearance outside Meituan Associated (all) multiple data files select at least one data file (to deposit needed at least one selected data file Store up capacity and be less than 20M), and at least one selected data file is copied to from second memory as dynamic storage cell 501.According to the memory capacity 10M for the dynamic storage cell for taking out the quantitative storage level distributed by Baidu, taken out from Meituan Associated (all) multiple data files select at least one data file (needed at least one selected data file Memory capacity is less than 10M), and at least one selected data file is copied to from second memory as dynamic memory list Member 511.
Alternatively, wherein prefetching user using the dynamic of the quantitative storage level distributed according to for each of quantitative storage level The memory capacity of state storage unit is selected from user is prefetched with each of quantitative storage level using associated multiple data files At least one data file includes:
It is deposited according to quantifying of each prefetching that user's application (Meituan is taken out or Baidu's take-away) distributed for quantitative storage level Store up grade dynamic storage cell (501 or 511) memory capacity by with quantitative storage level each prefetch user apply it is associated Multiple data files be grouped to generate multiple file groups, wherein each file group includes at least one data file.Its In each file group at least one data file needed for total memory capacity be less than the dynamic of corresponding quantitatively storage level and deposit The memory capacity of storage unit.That is, total memory capacity of all data files is less than 20M in each file group that Meituan is taken out, And total memory capacity of all data files is less than 10M in each grouping that Baidu takes out.For each of quantitative storage level Different priority is arranged to constitute priority query in the multiple file groups for prefetching user's application.For example, it includes 5 that Meituan, which is taken out, File group, and the priority of 5 file groups is 1,2,3,4 and 5 (wherein digital smaller priority is higher).By each priority In queue positioned at the file group (priority be 1 file group) of head of the queue as current file group and by current file group at least One data file copies to from second memory and prefetches the quantitative storage that user's application distributes by each of quantitative storage level The dynamic storage cell (for example, dynamic storage cell 501) of grade.It is each dynamic memory for quantifying storage level after the completion of duplication Third time cycle (for example, 30 seconds, 60 seconds or 90 seconds) are arranged in unit (501 or 511).When expiring the third time cycle (that is, whenever have passed through 30 seconds, 60 seconds, 60 seconds), the next file in sequence use priority queue reduced according to priority Group (such as priority is 2 file group) is used as current file group, until next file group is not present.That is, by priority 1, until 2,3,4 and 5 file group copies to after dynamic storage cell 501 or 511.It follows that when time long enough (foot Enough be greater than multiple phases third time cycle) when, for example, the third time cycle is 90 seconds, and reach the 450th second (i.e. 5 the When three time cycles), the All Files group in 5 file groups was both used as current file group.In this case, not to dynamic Content in state storage unit (501 or 511) is updated, i.e., reservation priority is literary at least one data of 5 file group Part is in dynamic storage cell 501.
At least one data file in current file group (may be the file group that priority is 1,2,3,4 or 5) is made To prefetch at least one data file that user selects using associated multiple data files from each of quantitative storage level. Wherein the size size of all data files (that is, in file group) of each file group is less than the dynamic of corresponding quantitatively storage level The memory space of storage unit.Alternatively, wherein determining according to user is prefetched for each of quantitative storage level using what is distributed Measure storage level dynamic storage cell memory capacity, from quantitative storage level each prefetch user apply it is associated multiple Data file selects at least one data file to include:
It is deposited according to quantifying of each prefetching that user's application (Meituan is taken out or Baidu's take-away) distributed for quantitative storage level Store up grade dynamic storage cell (501 or 511) memory capacity by with quantitative storage level each prefetch user apply it is associated Multiple data files be grouped to generate multiple file groups, wherein each file group include at least one data file wherein Total memory capacity needed at least one data file of each file group is less than the dynamic memory of corresponding quantitatively storage level The memory capacity of unit.That is, total memory capacity of all data files is less than 20M in each file group that Meituan is taken out, and And total memory capacity of all data files is less than 10M in each grouping of Baidu's take-away.For example, it includes 5 that Meituan, which is taken out, File group, and the serial number 1,2,3,4 and 5 of 5 file groups.A file group is randomly choosed from the multiple file group (the file group of serial number 5) is as current file group and by least one data file in current file group from second memory It copies to and the dynamic storage cell for the quantitative storage level that user's application distributes is prefetched (for example, dynamic by each of quantitative storage level State storage unit 501) and be each dynamic storage cell (501 or 511) the setting third for quantifying storage level after the completion of duplication Time cycle (for example, 30 seconds, 60 seconds or 90 seconds).Whenever the third time cycle expire when (that is, whenever have passed through 30 seconds, 60 seconds, 60 seconds), next file group (for example, file group of serial number 2) is randomly choosed from multiple file groups as current file group, directly To there is no until next file group.The file group of serial number 1,2,3,4 and 5 is copied into dynamic storage cell 501 or 511 Until afterwards.It follows that when time long enough (being sufficiently more than multiple phases third time cycle), for example, the third time cycle It is 90 seconds, and reaches the 450th second (i.e. when 5 third time cycles), the All Files group in 5 file groups was both used as Current file group.In this case, be not updated to the content in dynamic storage cell (501 or 511), that is, retain with At least one data file of the last one file group (such as file group 1) of machine selection is in dynamic storage cell 501.
Using at least one data file in current file group (may be the file group of serial number 1,2,3,4 or 5) as At least one data file that user selects using associated multiple data files is prefetched from each of quantitative storage level.Its In the size size of all data files (that is, in file group) of each file group be less than the dynamic of corresponding quantitatively storage level and deposit The memory space of storage unit.
Alternatively, at least one selected data file is being copied to from second memory as quantitative storage level Each prefetch the quantitative storage level that user's application (Meituan take out or Baidu take out) is distributed dynamic storage cell (501 or 511) after, third time cycle (for example, 30 seconds, 60 seconds or 90 seconds) is set and start timing, whenever the third time cycle When (for example, 30 seconds, 60 seconds or 90 seconds) expire, user's application (Meituan take-away or hundred are prefetched according to for each of quantitative storage level Be outside one's consideration and sell) memory capacity (20M or 10M) of the dynamic storage cell (501 or 511) of quantitative storage level distributed, again from With each of quantitative storage level prefetch user using associated multiple data files it is random/select at least one data in order At least one data file reselected is copied to from second memory and prefetches user for each of quantitative storage level by file Using the dynamic storage cell (20M or 10M) for the quantitative storage level that (Meituan is taken out or Baidu takes out) is distributed.Wherein, pass through The data file at least one data file that randomly selected mode reselects may be with randomly selected number before It is identical according to file.The data file at least one data file reselected by way of selecting in order will not be therewith The preceding arbitrary data file selected in order is identical.
Alternatively, wherein prefetching user using the dynamic of the quantitative storage level distributed according to for each of quantitative storage level The memory capacity of state storage unit is selected from user is prefetched with each of quantitative storage level using associated multiple data files At least one data file includes the following steps: (1) that (Meituan is taken out or Baidu according to user's application is prefetched for each of quantitative storage level Take out) memory capacity (20M or 10M) of the dynamic storage cell (501 or 511) of quantitative storage level distributed will with quantitatively deposit Each of storage grade prefetches user and is grouped using associated multiple data files to generate a file group of N (for example, N=5), Wherein N is greater than 1 natural number and each file group includes at least one data file;
Different serial numbers is arranged for each file group in N number of file group in step 2, wherein the serial number is from 1 to N (example Such as, 1,2,3,4 and 5);
Step 3, using the file group of serial number i=1 as current file group, wherein N >=i > 0;
Step 4, for quantitative storage level each dynamic storage cell (501 or 511) be arranged the third time cycle (for example, 30 seconds, 60 seconds or 90 seconds);
Step 5 copies at least one data file included by current file group quantitatively to deposit from second memory Each of storage grade prefetches the dynamic storage cell for the quantitative storage level that user's application is distributed, and starts timing;
Step 6, when the third time cycle expire when, judge whether i=N (that is, whether i=5 true) true, if at It is vertical, then terminate;If invalid, using the file group of serial number i=i+1 as current file group, step 5 is carried out;
Wherein the size of each file group is less than the memory capacity of the dynamic storage cell (501 or 511) of quantitative storage level (20M or 10M).That is, total memory capacity of all data files is less than 20M, and hundred in each file group that Meituan is taken out Total memory capacity of all data files in each grouping sold of being outside one's consideration is less than 10M.For example, it includes 5 files that Meituan, which is taken out, Group, and the serial number 1,2,3,4 and 5 of 5 file groups.
In step 6, if set up, terminate, it is meant that: the file group of serial number 1,2,3,4 and 5 is copied to dynamic Stop duplication after state storage unit 501 or 511.It follows that when time long enough (is sufficiently more than multiple third time cycles Phase) when, for example, the third time cycle is 90 seconds, and reach the 450th second (i.e. when 5 third time cycles), 5 files All Files group in group was both used as current file group.In this case, not to dynamic storage cell (501 or 511) In content be updated, that is, retain the last one randomly selected file group (such as file group 5) at least one data text Part is in dynamic storage cell 501.
Preferably, user will each be prefetched using associated (all) multiple data files progress with compression storage level Compression will compress each of storage level and prefetch the multiple through overcompression of user's application to generate multiple data files through overcompression Data file from second memory copy to for compression storage level each prefetch user application distributed at least one press The dynamic storage cell of contracting storage level.
Fig. 6 is the logical schematic according to the compression storage 600 of embodiment of the present invention.Wherein the operation of Need For Speed is general Rate be 7% and three the extremely unparalleled operation probability of state be 6%, therefore king's honor and the storage rank of the short-sighted frequency of trill are that compression is deposited Store up grade.By with compression storage level each prefetch user apply (Need For Speed or three states are extremely unparalleled) it is associated (all) multiple Data file is compressed to generate multiple data files through overcompression, will be compressed each of storage level and is prefetched user's application Multiple data files through overcompression of (Need For Speed or three states are extremely unparalleled) copy to compress storage level from second memory Each of prefetch user application distributed at least one compression storage level dynamic storage cell 601,602 and 603, and 611 and 612.
For example, will (all) multiple data files associated with Need For Speed compress it is multiple through overcompression to generate Data file, multiple data files through overcompression of Need For Speed are copied into dynamic storage cell from second memory 601,602 and 603.For example, will be compressed with extremely unparalleled associated (all) the multiple data files of three states multiple to generate The extremely unparalleled multiple data files through overcompression of three states are copied to dynamic from second memory and deposited by the data file through overcompression Storage unit 611 and 612.Preferably, obtain associated with destination mobile terminal in mobile Internet operating statistic file it Before further include:
With user associated data are applied for destination mobile terminal in mobile Internet in response to Client-initiated File carries out the file that file prefetches and prefetches request, obtains and prefetches associated dynamic configuration file with the file.It is mobile mutual It include multiple mobile terminals, base station, content server etc. in networking.The mobile terminal that the application will will initiate file and prefetch request Or request carries out the mobile terminal that file prefetches and is determined as destination mobile terminal.In addition, each mobile terminal (including target is mobile Terminal) in include or the quantity of the user of installation application is greater than 4, such as 5,10,20 users application.To user using relevant Concept includes system application, and system application is usually the system-level application determined by the operating system of mobile terminal.
The dynamic configuration file includes in first memory for providing the storage region of multiple dynamic storage cells Initial address and end address.The storage region for providing multiple dynamic storage cells can be to be connected on address in first memory Discontinuous memory block on continuous memory block or address.The dynamic configuration file further includes in multiple dynamic storage cells The memory capacity of each dynamic storage cell.In general, can be applied according to user each in mobile terminal (destination mobile terminal) The size and number of multiple data files the memory capacity of each dynamic storage cell is set so that each dynamic memory The memory capacity of unit can accommodate at least one corresponding data file.
Dynamic index region is created in the first memory of the destination mobile terminal, and according to the dynamic configuration File creates multiple dynamic storage cells of file for storing data in the first memory, wherein according to the dynamic configuration File determines the memory capacity of each dynamic storage cell in the multiple dynamic storage cell.Therefore, the application is according to every Multiple dynamic storage cells of file for storing data are created in the memory capacity first memory of a dynamic storage cell.
Dynamic index table is generated in the dynamic index region, the dynamic index table includes multiple index entries, each Index entry is used to record the application identities of the corresponding dynamic storage cell in multiple dynamic storage cells, initial address, terminates ground Location, memory capacity and storage rank.The identifier for user's application that wherein application identities are belonged to by dynamic storage cell, starting Address is the initial address of the memory space of dynamic storage cell, and end address is the end of the memory space of dynamic storage cell Address, memory capacity be the memory space of dynamic storage cell memory capacity and storage rank be dynamic storage cell storage The storage rank in space.For example, the index entry of dynamic storage cell includes: Alipay application, 7000H00,8FFFH, 8Kb, subtracts Measure storage level.When any index entry in dynamic index table is related to the data updated, using the data of update to dynamic index Respective index item in table is updated.
Wherein first memory is random access memory and second memory is read-only memory.It further include that basis is Storage rank set by dynamic storage cell is updated index entry corresponding in dynamic index table.It is wherein all at the first time Phase is 30 seconds, and second time period is 60 seconds, and wherein the third time cycle is 90 seconds.Wherein the first predetermined quantity is 5, described the Two predetermined quantities are 8.
It will be appreciated that one or more data files are copied to from second memory or other positions in the application It is to delete the former data file in the dynamic storage cell of any storage level when the dynamic storage cell of any storage level And new one or more data files are copied in the dynamic storage cell of any storage level.In addition, when file is pre- At the end of taking, or depending on the user's operation by dynamic index region or all dynamic storage cells deletion/resetting/removing.
Fig. 7 is the system for carrying out file in mobile Internet according to time slice and prefetching according to embodiment of the present invention 700 structural schematic diagram.As shown in fig. 7, system 700 includes: resolver 701, determine the probability device 702, collator 703, device 704, distributor 705, prefetching device 706 and apparatus for initializing 707 are set.
Resolver 701 obtains operating statistic file associated with destination mobile terminal in mobile Internet, to described Operating statistic file is parsed with the operation of user's application each in users multiple in determination destination mobile terminal application Time statistical information.It include multiple mobile terminals, base station, content server etc. in mobile Internet.The application will will initiate text Part prefetches the mobile terminal of request or request carries out the mobile terminal that file prefetches and is determined as destination mobile terminal.In addition, each Include in mobile terminal (including destination mobile terminal) or the quantity of the user of installation application is greater than 4, such as 5,10,20 users Using.Applying relevant concept to user includes system application, and system application is usually the operating system by mobile terminal Identified system-level application.Operating statistic file includes multiple tables of data, and the application is multiple in destination mobile terminal Each user's application one tables of data of distribution in user's application.It include multiple data item and each data item in each tables of data Content be four-tuple<Apply Names, front stage operation initial time, front stage operation end time, front stage operation cumulative time>. For example, data item is<king's honor, 20:00 on June 8th, 2018,21:50 on June 8th, 2018,110 minutes>.
The application believes the run time statistics that the tables of data distributed by each user application is applied as each user Breath, that is, the run time statistics information of each user application is provided by way of tables of data.For each user application The tables of data distributed is used to record the runing time information of each user's application in real time.That is, the running of mobile terminal the case where Under, the operation information that operating system or control equipment can apply each user, for example, when Apply Names, front stage operation originate Between, front stage operation end time, front stage operation cumulative time etc., carry out real-time statistics and record.Therefore, tables of data will record often A user applies since past particular point in time to the operation information in the statistical time section of current point in time.Wherein, In the operating statistic file, the application is that each user application saves predetermined quantity (for example, 100,200,300) Data item, or for each user application save predetermined time length (for example, 10 days, 20 days, 30 days) in data item.
Determine the probability device 702, according to the application switching frequency F of user's application at runtime in the destination mobile terminal Each time interval T in multiple time intervals in one consecutive days is divided with the pre-set dynamic Dynamic gene A of user For multiple time slices.Enter the specific time segmentation in multiple time slices in the current run time of destination mobile terminal When, determine that each user applies the operation in specific time segmentation general according to the run time statistics information that each user applies Rate;
The application switching frequency F of user's application at runtime is to run to use in destination mobile terminal in destination mobile terminal Family is in application, be located at the switching frequency for being switched to backstage of user's application on foreground at runtime.Application switching frequency F is Effective period of time in each consecutive days in one date section (for example, 10 consecutive days, 20 consecutive days, 30 consecutive days) User in (for example, 8 a.m. to 12 points of period of afternoon, at 10 points in the morning to 10 points of period of afternoon) positioned at foreground answers With the mean handoff number for being switched to backstage at runtime.In general, can be inputted according to user or be set by operating system Set the first date section and effective period of time.In this application, at any time, front stage operation is in destination mobile terminal Using only one, and when the user for being located at foreground applies when being switched to backstage after the front stage operation time is greater than 1 minute Switching times can be just counted into.That is, if the user on foreground applies the quilt when the front stage operation time is for 1 minute or less than 1 minute It is switched to backstage, then current switching is not included in switching times (being considered as interference operation).According to this mode, the application energy Enough avoid the problem that the frequent switching front stage operation as brought by maloperation is excessive using brought switching times.Wherein One date section includes at least ten consecutive days, and effective period of time is at 6 points in the morning to 11 points of the period of afternoon.
For example, the application switching frequency F of multiple user's applications at runtime is mobile eventually in target in destination mobile terminal The multiple users of operation in end are in application, be located at the switching frequency for being switched to backstage of user's application on foreground at runtime.It answers With effective period of time (at 10 points in the morning to 10 points of time of afternoon that switching frequency F is in each consecutive days of 10 consecutive days Section), i.e. 12 hours, the mean handoff number for being switched to backstage of interior user's application positioned at foreground at runtime.For example, The switching times of effective period of time in each consecutive days of 10 consecutive days are as follows: 10,15,20,9,21,16,12,22,10 and 15, then mean handoff number is 15.
User presets according to the processor host frequency of the destination mobile terminal and the reading speed of second memory Dynamic Dynamic gene A.In general, when destination mobile terminal processor host frequency is higher and/or the reading speed of second memory more Fastly, then dynamic Dynamic gene A is arranged bigger, for example, 3,4,5,6 and 8.Furthermore, it is possible to have user or system directly specified Dynamic Dynamic gene, for example, being set as 5.
Wherein set in advance according to user application application switching frequency F at runtime and user in the destination mobile terminal Each time interval T in multiple time intervals is divided into multiple time slices by the dynamic Dynamic gene A set
Wherein S is the quantity of time slice in each time interval T.The application according to the value of application switching frequency F not With determining different time slice quantity.When wherein each time interval T is 60 minutes and the starting of each time interval T Between and the end time be the integral point time, for example, time interval be 10:00 to 11:00,11:00 to 12:00,15:00 to 16: The application such as 00 can will be pre- according to user application application switching frequency F at runtime and user in the destination mobile terminal When each time interval T in multiple time intervals in one consecutive days is divided into multiple by the dynamic Dynamic gene A being first arranged Between be segmented replacement are as follows: when each time interval in a consecutive days in multiple time intervals is divided into 3 time slices, 6 Between be segmented or 10 time slices.
Wherein set in advance according to user application application switching frequency F at runtime and user in the destination mobile terminal Each time interval T in multiple time intervals in one consecutive days is divided into multiple times point by the dynamic Dynamic gene A set Section, which may alternatively be, is divided into 6 time slices for each time interval T in time intervals multiple in a consecutive days.
Wherein when the current run time of destination mobile terminal enters the specific time segmentation in multiple time slices, root Determine that each user applies the operation probability in specific time segmentation according to the run time statistics information that each user applies.
Wherein, the current run time of destination mobile terminal refers to the present system time of destination mobile terminal, for example, behaviour Make the current time that system is indicated or shows.The current run time of destination mobile terminal enters the spy in multiple time slices It fixes time segmentation, such as when the current run time of destination mobile terminal is 10:00, then entering specific time segmentation, (10:00 is extremely 10:10), as shown in Figure 2.Fig. 2 is the logical schematic according to the sorted lists 200 of embodiment of the present invention.Wherein, from 2018 Totally 10 consecutive days in 204 and 2018 year on the 9th 10 days 205 June of June in 202,2018 on June 203 to 2018 years 2, on June 1, and And time slice therein is morning 10:00 to 10:10.
It wherein determines that each user applies according to the run time statistics information that each user applies to be segmented in specific time Interior operation probability includes: selection for determining the second date section of operation probability, and second date section is including at least 10 consecutive days (for example, 10 consecutive days, 20 consecutive days, 30 consecutive days);
Each data item in multiple data item in the run time statistics information of each user application is parsed, with It determines in the second date section, each user applies the effective degree run in the segmentation of the specific time within each consecutive days Ci.Wherein when user applies the runing time in specific time segmentation to be more than 20 seconds, it is calculated as an effective degree.For example, Specific time is segmented into 10:00 to 10:10 (that is, be 10:00 to 11:00 by time interval point be 6 time slices), Alipay Applying the runing time within each consecutive days of 10 consecutive days in specific time segmentation is that (operation was less than 20 in 10 seconds Second), 60 seconds, 0 second (not running), 50 seconds, 30 seconds, 90 seconds, 120 seconds, 0 second (not running), 15 seconds (operation is less than 20 seconds) and 60 seconds, then the effective degree of Alipay application is 0+1+0+1+1+1+1+0+0+1=6 times.Wherein 1≤i≤Na, Na are target The quantity that user applies in mobile terminal, wherein Na is natural number and Na is greater than 4.
It is applied in multiple specific times segmentation in the second date section based on the effective degree Ci of operation by each user It calculates all users and applies the total effective degree S run in specific time is segmented:
It calculates each user and applies the operation probability P i=Ci/S in specific time segmentation.For example, Alipay is applied 10 consecutive days specific time segmentation (10:00 to 10:10) run 6 times, wechat apply the specific time in 10 consecutive days Segmentation (10:00 to 10:10) run 10 times, Taobao using 10 consecutive days specific time segmentation (10:00 to 10:10) operation 3 times, (10:00 to 10:10) runs 1 time and Meituan and applies at 10 for specific time segmentation of king's honor in 10 consecutive days (10:00 to 10:10) is run 0 time, then S=20 times for the specific time segmentation of consecutive days.Alipay, wechat application, Taobao answer With, king's honor and Meituan apply specific time segmentation (the operation probability of 10:00 to 10:10) is 30% respectively, 50%, 15%, 5% and 0%.
It wherein determines that each user applies according to the run time statistics information that each user applies to be segmented in specific time Interior operation probability includes:
For determining the second date section of operation probability, second date section includes at least ten consecutive days for selection (for example, 10 consecutive days, 20 consecutive days, 30 consecutive days);
Each data item in multiple data item in the run time statistics information of each user application is parsed, with It determines in the second time interval, each user applies the time span run in the segmentation of the specific time within each consecutive days ti.For example, specific time is segmented into 10:00 to 10:10 (that is, be 10:00 to 11:00 by time interval point being 6 times point Section), it is 10 seconds, 60 that Alipay, which applies the runing time within each consecutive days of 10 consecutive days in specific time segmentation, Second, 0 second, 50 seconds, 30 seconds, 90 seconds, 120 seconds, 0 second, 15 seconds and 60 seconds, then the time span of Alipay application is 435 seconds.Its In 1≤i≤Na, Na is the quantity of user's application in destination mobile terminal, and wherein Na is that natural number and Na are greater than 4.
It is applied in multiple specific times segmentation in the second date section based on the time span ti of operation by each user It calculates all users and applies the total time length T run in specific time is segmented:
It calculates each user and applies the operation probability P i=ti/T in specific time segmentation.For example, Alipay is applied 10 consecutive days specific time segmentation (10:00 to 10:10) run 435 seconds, wechat apply 10 consecutive days it is specific when Between segmentation (10:00 to 10:10) run 875 seconds, Taobao using 10 consecutive days specific time be segmented (10:00 to 10:10) Run 500 seconds, (10:00 to 10:10) is run 190 seconds and Meituan is answered for specific time segmentation of king's honor in 10 consecutive days (10:00 to 10:10) is run 0 second, then T=2000 seconds for specific time segmentation used in 10 consecutive days.Alipay, wechat are answered Apply that (the operation probability of 10:00 to 10:10) is respectively in specific time segmentation with the application of, Taobao, king's honor and Meituan 21.75%, 43.75%, 25%, 9.5% and 0%.
In the example shown in figure 2, as shown in table 206, from 10 of on June 10th, 1 day 1 June in 2018 from So for time slice A morning 10:00 in a few days into 10:10, the operation probability of king's honor is the operation of 15%, the short-sighted frequency of trill Probability is 13.3%, the operation probability of youku.com's video is 12.5%, the operation probability of mobile phone Taobao is 10.8%, Meituan is taken out Operation probability is 8.3%, the operation probability that Baidu takes out is 7.5%, the operation probability of Need For Speed be 5.8%, three state poles without Double operation probability is 5% and the operation probability of lazyboot's English is 0%.
Collator 703 is each user application setting the first adjustment according to the state parameter of the destination mobile terminal Coefficient S and according to the location parameter of the destination mobile terminal be each user application setting second adjustment coefficient L, obtain institute The weight proportion for stating state parameter and location parameter, according to the first adjustment coefficient S and second adjustment coefficient L of each user application And weight proportion determines the third regulation coefficient K of each user application, third regulation coefficient K based on each user application and Apply the operation being adjusted in specific time segmentation general in each user of operation probability calculation in specific time segmentation Rate applies the operation probability being adjusted in specific time segmentation to run multiple users application based on each user The descending sort of probability is to generate sorted lists;
The application obtains the state parameter of destination mobile terminal using the sensor module of destination mobile terminal.It is wherein described The state parameter of destination mobile terminal is the current state of destination mobile terminal.Sensor module for example, luminance sensor, Acceleration transducer, environment temperature sensor etc..Described in sensor module acquisition of the application using the destination mobile terminal The state parameter of destination mobile terminal includes:
The destination mobile terminal is obtained using the luminance sensor in the sensor module of the destination mobile terminal State parameter is strong light state, sheen state or dim light state.Strong light state is the state that illumination is greater than 10000 luxs;It is soft Light state is the state that illumination is less than or equal to 10000 luxs and illumination is greater than or equal to 100 luxs;Dim light state is small State in 100 luxs.Strong light state, sheen state or dim light state can refer to that extraneous light is directed to destination mobile terminal Display screen illumination.
The application is each user application setting the first adjustment coefficient S packet according to the state parameter of the destination mobile terminal It includes: in the case where the state parameter of destination mobile terminal is strong light state, the first adjustment coefficient S that each user applies being set It is set to less than 1, such as 0.8;In the case where the state parameter of destination mobile terminal is sheen state, each user is applied The first adjustment coefficient S is set greater than 1, for example, 1.2.
In the case where the state parameter of destination mobile terminal is dim light state, the first adjustment system that each user is applied Number S is set smaller than 1, such as 0.9.This is because user is transported using destination mobile terminal under strong light state and dim light state Row user application may have the case where poor display effect, therefore the first adjustment coefficient S is less than 1.And in the feelings of sheen Under condition, the wish that user runs user's application using destination mobile terminal can be greatly enhanced, therefore the first adjustment coefficient S is greater than 1。
The application obtains the state parameter of the destination mobile terminal using the sensor module of the destination mobile terminal Include:
The destination mobile terminal is obtained using the acceleration transducer in the sensor module of the destination mobile terminal State parameter be display screen upward, display screen downward, horizontal direction is mobile or vertical direction is mobile.Wherein display screen example upward Destination mobile terminal is placed on the table and shows screen side upward by user in this way;Display screen is, for example, that user will downward Destination mobile terminal is placed on the table and shows screen side downward;The mobile e.g. user of horizontal direction is mobile by target Terminal, which is put in the hand or carried, is horizontally moved (such as being moved in leveling office);Vertical direction moves example Destination mobile terminal is put in the hand or carried by user in this way is vertically moved (such as taking elevator).
The application is each user application setting the first adjustment coefficient S packet according to the state parameter of the destination mobile terminal It includes:
The state parameter of destination mobile terminal be display screen upward in the case where, regulation coefficient that each user is applied It is set greater than 1, such as 1.2;Destination mobile terminal state parameter be display screen situation directed downwardly under, each user is answered The first adjustment coefficient S is set smaller than 1, for example, 0.3;It is mobile for horizontal direction in the state parameter of destination mobile terminal In the case where, the first adjustment coefficient S that each user applies is set smaller than 1, such as 0.9;In the shape of destination mobile terminal State parameter is in the case that vertical direction is mobile, and the first adjustment coefficient S that each user applies is set smaller than 1, such as 0.7。
Due to being transported using destination mobile terminal in the case that user sets display screen upward for destination mobile terminal The probability of row user application is larger, for this purpose, the first adjustment coefficient S is greater than 1.Due to setting aobvious for destination mobile terminal as user In the case that display screen is downward, horizontal direction is mobile or vertical direction is mobile, user's application is run using destination mobile terminal Probability is smaller, for this purpose, the first adjustment coefficient S is less than 1.
The application obtains the state parameter of the destination mobile terminal using the sensor module of the destination mobile terminal Include:
It is mobile eventually that the target is obtained using the environment temperature sensor in the sensor module of the destination mobile terminal The state parameter at end is hot state, the condition of high temperature, appropriate state, low-temperature condition or cold state.
The application is each user application setting the first adjustment coefficient S packet according to the state parameter of the destination mobile terminal It includes:
In the case where the state parameter of destination mobile terminal is hot state, the first adjustment system that each user is applied Number S is set smaller than 1, such as 0.8;In the case where the state parameter of destination mobile terminal is the condition of high temperature, by each user The first adjustment coefficient S of application is set smaller than 1, such as 0.9;In the feelings that the state parameter of destination mobile terminal is appropriate state Under condition, the first adjustment coefficient S that each user applies is set greater than 1, such as 1.2;Join in the state of destination mobile terminal In the case that number is low-temperature condition, the first adjustment coefficient S that each user applies is set smaller than 1, such as 0.9;In target In the case that the state parameter of mobile terminal is cold state, the first adjustment coefficient S that each user applies is set smaller than 1, such as 0.6;Wherein hot state is temperature T >=32 DEG C;The condition of high temperature is 32 DEG C > temperature T >=25 DEG C, appropriate state is 25 DEG C > temperature T >=18 DEG C, 18 DEG C > temperature of low-temperature condition T >=8 DEG C are or cold state is 8 DEG C > temperature T.
Since in the case that environment temperature is appropriate state, user runs user's application using destination mobile terminal Probability is larger, for this purpose, the first adjustment coefficient S is greater than 1.Due to when environment temperature be hot state, the condition of high temperature, appropriate state, In the case where low-temperature condition or cold state, the probability that user runs user's application using destination mobile terminal is smaller, for this purpose, The first adjustment coefficient S is greater than 1.
It will be appreciated that user can according to need come the size for the first adjustment coefficient S being arranged under each state.Its Middle location parameter is the current location (current location obtained by positioning component) of destination mobile terminal.
It is that each user application setting second adjustment coefficient L includes: according to the location parameter of the destination mobile terminal
In the case where the location parameter of destination mobile terminal is office, second adjustment coefficient that each user is applied L is set smaller than 1, such as 0.8.In the case where the location parameter of destination mobile terminal is family, each user is applied the Two regulation coefficient L are set greater than 1, such as 1.2.It, will be each in the case where the location parameter of destination mobile terminal is restaurant The second adjustment coefficient L of user's application is set smaller than 1, such as 0.9.It is road (example in the location parameter of destination mobile terminal Such as, highway) in the case where, the second adjustment coefficient L that each user applies is set smaller than 1, such as 0.8.It is mobile in target In the case that the location parameter of terminal is subway, the second adjustment coefficient L that each user applies is set greater than 1, such as 1.1。
It will be appreciated that user can according to need that the size of the second adjustment coefficient L at each position is arranged.
It wherein obtains the state parameter and the respective weight proportion of location parameter includes: to read in destination mobile terminal Weight configuration file parses the weight configuration file to obtain the state parameter and the respective weight of location parameter Ratio;Wherein the state parameter and the respective weight proportion of location parameter and be 1, for example, the state parameter and The weight proportion of location parameter is respectively 0.5 and 0.5;The weight proportion of the state parameter and location parameter is respectively 0.3 He 0.7;The weight proportion of the state parameter and location parameter is respectively 0.2 and 0.8;The power of the state parameter and location parameter Weight ratio is respectively 0.7 and 0.3;The weight proportion of the state parameter and location parameter is respectively 0.8 and 0.2;The state The weight proportion of parameter and location parameter is respectively 0.4 and 0.6;The weight proportion of the state parameter and location parameter is respectively 0.6 and 0.4.
Wherein according to the first adjustment coefficient S of each user application and second adjustment coefficient L and respective weight proportion Determine the third regulation coefficient K of each user's application are as follows: third regulation coefficient K=the first adjustment coefficient S × W1+ second adjustment system Number L × W2, wherein W1 is the weight proportion of state parameter, and W2 is the weight proportion of location parameter, as shown in Figure 2.
Third regulation coefficient K wherein based on each user application and the operation probability calculation in specific time segmentation are every A user applies the operation probability being adjusted in specific time segmentation: the third regulation coefficient K that each user is applied Being adjusted in specific time segmentation is applied as each user with the product of the operation probability in specific time is segmented Operation probability.
In the example shown in figure 2, as shown in table 206, from 10 of on June 10th, 1 day 1 June in 2018 from So in specific time segmentation A in a few days, the operation probability of king's honor is 15%, the operation probability of the short-sighted frequency of trill is 13.3%, the operation that the operation probability of youku.com's video is 12.5%, the operation probability of mobile phone Taobao is 10.8%, Meituan is taken out is general The operation probability that rate is 8.3%, Baidu takes out is 7.5%, the operation probability of Need For Speed being adjusted is 5.8%, three states Extremely unparalleled operation probability is 5% and the operation probability of lazyboot's English being adjusted is 0%.
In the case where the state parameter of destination mobile terminal is dim light state, the first adjustment system that each user is applied Number S are set as 0.9, and at the same time, in the case where the location parameter of destination mobile terminal is family, each user is applied the Two regulation coefficient L are set as 1.2.The weight proportion of state parameter is 0.4 and the weight proportion of location parameter is 0.6.So, Third regulation coefficient F are as follows: third regulation coefficient F=the first adjustment coefficient T × W1+ second adjustment coefficient L × W2, i.e. third adjustment Coefficient F=0.9 × 0.4+1.2 × 0.6=0.36+0.72=1.08.
Third regulation coefficient K wherein based on each user application and the operation probability calculation in specific time segmentation are every It includes: the third adjustment system for applying each user that a user, which applies the operation probability being adjusted in specific time segmentation, Number K and the operation probability in specific time segmentation product apply as each user in specific time is segmented through toning The operation probability that whole operation probability, i.e. operation probability × 1.08=are adjusted.
For ease of calculation, the example for the operation probability being adjusted is elected to be 1.2.In the example shown in figure 2, such as table Shown in 207, in the specific time segmentation A in 10 consecutive days from June 10th, 1 day 1 June in 2018, Wang Zherong The operation probability of credit being adjusted is 18%, the operation probability of the short-sighted frequency of trill being adjusted is 16%, youku.com's video The operation probability being adjusted is 15%, the operation probability of mobile phone Taobao being adjusted is 13%, Meituan take out through toning Whole operation probability is 10%, the operation probability of Baidu's take-away being adjusted is 9%, the operation of Need For Speed being adjusted Probability is that the extremely unparalleled operation probability being adjusted of 7%, three states is 6% and the operation probability of lazyboot's English being adjusted It is 0%.
Setting device 704 is used to be determined according to the sorted lists in the multiple user's application and can be stored from second Device is loaded previously at least one of first memory and prefetches user's application, and is at least one according to the sorted lists It prefetches and each prefetches user's application setting storage rank in user's application, wherein the storage level does not include: decrement storage level, increases Measure storage level, quantitative storage level and compression storage level;According to each storage rank for prefetching user's application to each to take in advance The distributed dynamic storage cell setting storage rank of family application.
Wherein being determined according to the sorted lists can be by pre-loaded from second memory in the multiple user's application Multiple into first memory prefetch user's application include: when run in sorted lists probability be greater than prefetch threshold value (for example, 5%, 10%) user application quantity be greater than 0 (for example, 10) when, will in sorted lists run probability be greater than prefetch threshold value User application be determined as can by from second memory be loaded previously into first memory prefetch user application, with determination At least one prefetches user's application;It is answered when running probability in sorted lists greater than the user for prefetching threshold value (for example, 5%, 10%) When quantity is equal to 0, users all in sorted lists are determined as using (for example, 15) can be by pre- from second memory It is first loaded into first memory and prefetches user's application, to determine that at least one prefetches user's application.
It is wherein prefetched according to the sorted lists at least one and each prefetches user's application setting storage in user's application Rank includes: that will run probability in the sorted lists to prefetch depositing for user's application greater than high probability threshold value (for example, 15%) Storage rank is set as decrement storage level;Will in the sorted lists run probability be less than or equal to high probability threshold value (for example, 15%) and greater than the storage rank for prefetching user's application of middle probability threshold value (for example, 12%) it is set as increment storage level;It will In the sorted lists run probability be less than or equal to middle probability threshold value (for example, 12%) and be greater than low probability threshold value (for example, 8%) the storage rank for prefetching user's application is set as quantitative storage level;Probability will be run in the sorted lists to be less than or wait Compression storage level is set as in the storage rank for prefetching user's application of low probability threshold value (for example, 8%).User is wherein prefetched to answer Operation probability is all larger than 5%.
Distributor 705, which is used to prefetch user's application for each of decrement storage level, distributes at least one dynamic memory list Member prefetches user's application for each of compression storage level and distributes at least one dynamic storage cell, is each of increment storage level It prefetches user's application one dynamic storage cell of distribution and each prefetches user's application distribution one for quantitative storage level and move State storage unit.It is wherein prefetched for each of decrement storage level every at least one dynamic storage cell of user's application distribution The memory capacity of a dynamic storage cell can be identical or different, and prefetches user's application distribution for each of compression storage level The memory capacity of each dynamic storage cell at least one dynamic storage cell can be identical or different.
Held by the total storage for prefetching at least one dynamic storage cell that user's application distributes of each decrement storage level Amount can accommodate all data files for prefetching user's application of corresponding decrement storage level.For prefetching for each compression storage level The total memory capacity at least one dynamic storage cell that user's application is distributed can accommodate the pre- of corresponding compression storage level Take all data files through overcompression of family application.User's application distribution one is prefetched by each of increment storage level to move State storage unit can accommodate all data files for prefetching user's application of corresponding increment storage level.For quantitative storage level Each prefetch user application distribute one dynamic storage cell can accommodate accordingly quantify storage level prefetch user apply All data files.
Prefetching device 706 is used to that user will to be prefetched using associated with each according to the storage rank for prefetching user's application Data file carries out file from second memory and prefetches, comprising:
By with decrement storage level each prefetch user using associated multiple data files from second memory duplication To the dynamic storage cell for prefetching at least one decrement storage level that user's application is distributed for each of decrement storage level, multiple Dynamic storage cell when system is completed for each decrement storage level is arranged period first time and starts timing, whenever at the first time The data file of the first predetermined quantity is deleted when period expires in the dynamic storage cell of each decrement storage level;
User is being prefetched using selecting at least one base in associated multiple data files with each of increment storage level Plinth data file answers at least one essence data files that each of increment storage level prefetches user's application from second memory The dynamic storage cell for prefetching the increment storage level that user's application distributes by each of increment storage level is made, is completed in duplication When be arranged for the dynamic storage cell of increment storage level and second time period and start timing, wherein whenever the second time period phase The data that will each prefetch user with increment storage level when full and apply the second predetermined quantity in associated multiple data files File copies to the dynamic that the increment storage level that user's application distributes is prefetched by each of increment storage level from second memory Storage unit;
According to the dynamic storage cell for prefetching the quantitative storage level that user's application is distributed for each of quantitative storage level Memory capacity selects at least one data using associated multiple data files from user is prefetched with each of quantitative storage level File, and at least one selected data file is copied to from second memory and is taken for each of quantitative storage level is pre- The dynamic storage cell for the quantitative storage level that family application is distributed;And
By with compression storage level each prefetch user apply associated multiple data files compress it is more to generate A data file through overcompression, by compress each of storage level prefetch user application multiple data files through overcompression from Second memory, which copies to, prefetches user using the dynamic of at least one the compression storage level distributed for each of compression storage level State storage unit.
Apparatus for initializing 707 be used in response to Client-initiated in mobile Internet destination mobile terminal and user The file that file prefetches is carried out using associated data file and prefetches request, is obtained and is prefetched associated dynamic with the file Configuration file;
Dynamic index region is created in the first memory of the destination mobile terminal, and according to the dynamic configuration File creates multiple dynamic storage cells of file for storing data in the first memory, wherein according to the dynamic configuration File determines the memory capacity of each dynamic storage cell in the multiple dynamic storage cell;And
Dynamic index table is generated in the dynamic index region, the dynamic index table includes multiple index entries, each Index entry is used to record the application identities of the corresponding dynamic storage cell in multiple dynamic storage cells, initial address, terminates ground Location, memory capacity and storage rank.

Claims (10)

1. a kind of method for carrying out file in mobile Internet according to time slice and prefetching, which comprises
Operating statistic file associated with destination mobile terminal in mobile Internet is obtained, the operating statistic file is carried out Parsing is with the run time statistics information of user's application each in users multiple in determination destination mobile terminal application;
Application switching frequency F and the pre-set dynamic of user at runtime are applied according to user in the destination mobile terminal Each time interval T in multiple time intervals in one consecutive days is divided into multiple time slices by Dynamic gene A, in target When the current run time of mobile terminal enters the specific time segmentation in multiple time slices, according to the fortune of each user application Row time statistical information determines that each user applies the operation probability in specific time segmentation;
It is that the first adjustment coefficient S is arranged and according to described in each user application according to the state parameter of the destination mobile terminal The location parameter of destination mobile terminal is each user application setting second adjustment coefficient L, obtains the state parameter and position The weight proportion of parameter is determined according to the first adjustment coefficient S of each user application and second adjustment coefficient L and weight proportion The third regulation coefficient K of each user application, third regulation coefficient K based on each user application and in specific time segmentation The each user of operation probability calculation apply specific time segmentation in the operation probability being adjusted, answered based on each user Used in specific time segmentation in the operation probability being adjusted to multiple users application carry out run probability descending sort with Generate sorted lists;
Being determined in the multiple user's application according to the sorted lists can be deposited by being loaded previously into first from second memory At least one of reservoir prefetches user's application, and is that at least one is prefetched in user's application each according to the sorted lists User's application setting storage rank is prefetched, wherein the storage level does not include: decrement storage level, increment storage level, quantitative storage Grade and compression storage level;
User's application is prefetched for each of decrement storage level and distributes at least one dynamic storage cell, for each of compression storage level It prefetches user's application and distributes at least one dynamic storage cell, it is dynamic using distribution one to prefetch user for each of increment storage level State storage unit and user's application one dynamic storage cell of distribution is each prefetched for quantitative storage level;
It is set according to each storage rank for prefetching user's application to each to prefetch user using distributed dynamic storage cell Set storage rank;
According to prefetch user application storage rank will with it is each prefetch user using associated data file from second storage Device carries out file and prefetches, comprising:
By with decrement storage level each prefetch user apply associated multiple data files from second memory copy to for Each of decrement storage level prefetches the dynamic storage cell at least one decrement storage level that user's application is distributed, and is replicating Dynamic storage cell setting period first time of each decrement storage level of Cheng Shiwei simultaneously starts timing, whenever period first time The data file of the first predetermined quantity is deleted when expiring in the dynamic storage cell of each decrement storage level;
User is being prefetched using selecting at least one basic number in associated multiple data files with each of increment storage level According to file, at least one essence data files that each of increment storage level prefetches user's application are copied to from second memory User is prefetched using the dynamic storage cell of the increment storage level distributed by each of increment storage level, is when replicating and completing The dynamic storage cell setting second time period of increment storage level simultaneously starts timing, wherein when being expired second time period User will be prefetched using the data file of the second predetermined quantity in associated multiple data files with each of increment storage level The dynamic memory that the increment storage level that user's application distributes is prefetched by each of increment storage level is copied to from second memory Unit;
According to the storage for the dynamic storage cell for prefetching the quantitative storage level that user's application is distributed for each of quantitative storage level Capacity selects at least one data literary from user is prefetched with each of quantitative storage level using associated multiple data files Part, and at least one selected data file is copied to from second memory and prefetches user for each of quantitative storage level Using the dynamic storage cell of the quantitative storage level distributed;And
By with compression storage level each prefetch user apply associated multiple data files compress to generate multiple warps The data file of overcompression will compress each of storage level and prefetch multiple data files through overcompression of user's application from second Memory copy is deposited to the dynamic for prefetching at least one compression storage level that user's application is distributed for each of compression storage level Storage unit.
2. according to the method described in claim 1, including multiple mobile terminals in the mobile Internet, and file will be initiated The mobile terminal for prefetching request is determined as destination mobile terminal, and wherein the quantity of user's application is greater than 4;The operating statistic file It including multiple tables of data, and is user's application one tables of data of distribution each in user's applications multiple in destination mobile terminal, Content including multiple data item and each data item in each tables of data is four-tuple < Apply Names, front stage operation starting Time, the front stage operation end time, the front stage operation cumulative time >;Wherein the tables of data distributed by each user application is made For the run time statistics information of each user application, and for each user tables of data for distributing of application for record in real time The runing time information of each user's application;In the operating statistic file, predetermined quantity is saved for each user application Data item, or be the data item in the consecutive days of each user application preservation predetermined quantity or in predetermined time length.It is wherein pre- The consecutive days of fixed number amount be 10 consecutive days, 20 consecutive days or 30 consecutive days, wherein predetermined time length be 240 hours, 480 hours or 720 hours.
3. method described in any one of -2 according to claim 1, in the destination mobile terminal, user's application is at runtime Application switching frequency F be in destination mobile terminal run user in application, be located at foreground user application at runtime The switching frequency on backstage is switched to, when the application switching frequency F is effective in each consecutive days in the first date section Between in section positioned at user's application mean handoff number for being switched to backstage at runtime on foreground, wherein when being located at foreground Between user's application at runtime more than 1 minute after can just be counted into switching times and the first date section when being switched to backstage Including at least ten consecutive days, wherein effective period of time is at 6 points in the morning to 11 points of the period of afternoon;Wherein user is according to described The processor host frequency of destination mobile terminal and the reading speed of second memory preset dynamic Dynamic gene A, wherein moving State Dynamic gene is 5;Wherein according to the application switching frequency F and user of user's application at runtime in the destination mobile terminal Each time interval T in multiple time intervals is divided into multiple time slices by pre-set dynamic Dynamic gene A
Wherein S is the quantity of time slice in each time interval T;When wherein each time interval T is 60 minutes and is each Between section T initial time and the end time be the integral point time;Wherein by each time interval T be divided into 3 time slices, 6 time slices or 10 time slices;
Wherein determine that each user applies in specific time segmentation according to the run time statistics information that each user applies Running probability includes:
For determining the second date section of operation probability, second date section includes at least ten consecutive days for selection;
Each data item in multiple data item in the run time statistics information of each user application is parsed, with determination In the second date section, each user applies the effective degree Ci run in the segmentation of the specific time within each consecutive days, Wherein 1≤i≤Na, Na are the quantity of user's application in destination mobile terminal, and wherein Na is natural number and Na is greater than 4;
The effective degree Ci run in multiple specific times segmentation in the second date section is applied to calculate institute based on each user There is user to apply the total effective degree S run in specific time is segmented:
It calculates each user and applies the operation probability P i=Ci/S in specific time segmentation;Wherein when user applies when specific Between runing time in segmentation when being more than 20 seconds, be calculated as an effective degree.
4. method described in any one of -3 according to claim 1, the state parameter is the current shape of destination mobile terminal State;It is wherein that each user application setting the first adjustment coefficient S includes: according to the state parameter of the destination mobile terminal
In the case where the state parameter of destination mobile terminal is strong light state, the first adjustment coefficient S that each user is applied It is set smaller than 1;
In the case where the state parameter of destination mobile terminal is sheen state, the first adjustment coefficient S that each user is applied It is set greater than 1;And
In the case where the state parameter of destination mobile terminal is dim light state, the first adjustment coefficient S that each user is applied It is set smaller than 1;
Alternatively, being wherein each user application setting the first adjustment coefficient S according to the state parameter of the destination mobile terminal:
The state parameter of destination mobile terminal be display screen upward in the case where, the first adjustment coefficient that each user is applied S is set greater than 1;
It is the first adjustment coefficient of applying each user in display screen situation directed downwardly in the state parameter of destination mobile terminal S is set smaller than 1;
In the case where the state parameter of destination mobile terminal is that horizontal direction is mobile, the first adjustment system that each user is applied Number S is set smaller than 1;
In the case where the state parameter of destination mobile terminal is that vertical direction is mobile, the first adjustment system that each user is applied Number S is set smaller than 1;
Alternatively, being wherein each user application setting the first adjustment coefficient S packet according to the state parameter of the destination mobile terminal It includes:
In the case where the state parameter of destination mobile terminal is hot state, the first adjustment coefficient S that each user is applied It is set smaller than 1;
In the case where the state parameter of destination mobile terminal is the condition of high temperature, the first adjustment coefficient S that each user is applied It is set smaller than 1;
In the case where the state parameter of destination mobile terminal is appropriate state, the first adjustment coefficient S that each user is applied It is set greater than 1;
In the case where the state parameter of destination mobile terminal is low-temperature condition, the first adjustment coefficient S that each user is applied It is set smaller than 1;
In the case where the state parameter of destination mobile terminal is cold state, the first adjustment coefficient S that each user is applied It is set smaller than 1;
Wherein hot state is temperature T >=32 DEG C;The condition of high temperature is 32 DEG C > temperature T >=25 DEG C, appropriate state is 25 DEG C > temperature T >=18 DEG C, low-temperature condition is 18 DEG C > temperature T >=8 DEG C or cold state is 8 DEG C > temperature T;
The location parameter is the current location of destination mobile terminal;Location parameter according to the destination mobile terminal is each Second adjustment coefficient L is arranged in user's application
In the case where the location parameter of destination mobile terminal is office, the second adjustment coefficient L that each user applies is set It is set to less than 1;
In the case where the location parameter of destination mobile terminal is family, set the second adjustment coefficient L that each user applies to Greater than 1;
In the case where the location parameter of destination mobile terminal is restaurant, the second adjustment coefficient L that each user is applied is arranged For less than 1;
In the case where the location parameter of destination mobile terminal is road, the second adjustment coefficient L that each user is applied is arranged For less than 1;And
In the case where the location parameter of destination mobile terminal is subway, the second adjustment coefficient L that each user is applied is arranged For greater than 1.
5. method described in any one of -4 according to claim 1, wherein obtaining the power of the state parameter and location parameter Ratio includes: again
The weight configuration file in destination mobile terminal is read, the weight configuration file is parsed to obtain the state The weight proportion of parameter and location parameter.The weight proportion of the state parameter and location parameter and be 1, the state parameter Weight proportion with location parameter is respectively 0.5 and 0.5;The weight proportion of the state parameter and location parameter is respectively 0.3 With 0.7;The weight proportion of the state parameter and location parameter is respectively 0.2 and 0.8;The state parameter and location parameter Weight proportion is respectively 0.7 and 0.3;The weight proportion of the state parameter and location parameter is respectively 0.8 and 0.2;The shape The weight proportion of state parameter and location parameter is respectively 0.4 and 0.6;The weight proportion of the state parameter and location parameter difference For 0.6 and 0.4;Wherein determined according to the first adjustment coefficient S of each user application and second adjustment coefficient L and weight proportion The third regulation coefficient K of each user's application are as follows:
Third regulation coefficient K=the first adjustment coefficient S × W1+ second adjustment coefficient L × W2, wherein W1 is the power of state parameter sum Weight ratio, W2 are the weight proportion of location parameter;
Third regulation coefficient K based on each user application and each user of operation probability calculation in specific time segmentation answer Used in specific time segmentation in the operation probability being adjusted include:
The product of the third regulation coefficient K that each user is applied and the operation probability in specific time segmentation is as each use Apply the operation probability being adjusted in specific time segmentation in family.
6. a kind of system for carrying out file in mobile Internet according to time slice and prefetching, the system comprises:
Resolver obtains operating statistic file associated with destination mobile terminal in mobile Internet, unites to the operation Meter file is parsed with the runing time system of user's application each in users multiple in determination destination mobile terminal application Count information;
Determine the probability device, according to the application switching frequency F and user of user's application at runtime in the destination mobile terminal Each time interval T in multiple time intervals in one consecutive days is divided into multiple by pre-set dynamic Dynamic gene A Time slice, when the current run time of destination mobile terminal enters the specific time segmentation in multiple time slices, according to The run time statistics information of each user's application determines that each user applies the operation probability in specific time segmentation;
Collator is that the first adjustment coefficient S is arranged simultaneously in each user application according to the state parameter of the destination mobile terminal And second adjustment coefficient L is arranged for each user application according to the location parameter of the destination mobile terminal, obtain the state The weight proportion of parameter and location parameter, according to the first adjustment coefficient S of each user application and second adjustment coefficient L and power The third regulation coefficient K of weight ratio-dependent each user application, third regulation coefficient K based on each user application and specific The each user of operation probability calculation in time slice applies the operation probability being adjusted in specific time segmentation, is based on Each user applies the operation probability being adjusted in specific time segmentation to carry out operation probability to multiple users application Descending sort is to generate sorted lists;
Device is set, and being determined according to the sorted lists can be by pre-loaded from second memory in the multiple user's application User's application is prefetched at least one of first memory, and is that at least one prefetches user and answers according to the sorted lists Each prefetched in user application setting storage rank, wherein the storage level do not include: decrement storage level, increment storage level, Quantitative storage level and compression storage level;Divided according to each storage rank for prefetching user's application to each to prefetch user's application The dynamic storage cell setting storage rank matched;
Distributor prefetches user's application for each of decrement storage level and distributes at least one dynamic storage cell, deposits for compression Each of storage grade prefetches user's application and distributes at least one dynamic storage cell, prefetches user's application for each of increment storage level It distributes a dynamic storage cell and prefetches user's application one dynamic storage cell of distribution for each of quantitative storage level;
Prefetching device, according to prefetch user application storage rank will with it is each prefetch user using associated data file from Second memory carries out file and prefetches, comprising:
By with decrement storage level each prefetch user apply associated multiple data files from second memory copy to for Each of decrement storage level prefetches the dynamic storage cell at least one decrement storage level that user's application is distributed, and is replicating Dynamic storage cell setting period first time of each decrement storage level of Cheng Shiwei simultaneously starts timing, whenever period first time The data file of the first predetermined quantity is deleted when expiring in the dynamic storage cell of each decrement storage level;
User is being prefetched using selecting at least one basic number in associated multiple data files with each of increment storage level According to file, at least one essence data files that each of increment storage level prefetches user's application are copied to from second memory User is prefetched using the dynamic storage cell of the increment storage level distributed by each of increment storage level, is when replicating and completing The dynamic storage cell setting second time period of increment storage level simultaneously starts timing, wherein when being expired second time period User will be prefetched using the data file of the second predetermined quantity in associated multiple data files with each of increment storage level The dynamic memory that the increment storage level that user's application distributes is prefetched by each of increment storage level is copied to from second memory Unit;
According to the storage for the dynamic storage cell for prefetching the quantitative storage level that user's application is distributed for each of quantitative storage level Capacity selects at least one data literary from user is prefetched with each of quantitative storage level using associated multiple data files Part, and at least one selected data file is copied to from second memory and prefetches user for each of quantitative storage level Using the dynamic storage cell of the quantitative storage level distributed;And
By with compression storage level each prefetch user apply associated multiple data files compress to generate multiple warps The data file of overcompression will compress each of storage level and prefetch multiple data files through overcompression of user's application from second Memory copy is deposited to the dynamic for prefetching at least one compression storage level that user's application is distributed for each of compression storage level Storage unit.
7. system according to claim 6, the interior mobile Internet includes multiple mobile terminals, and will initiate file The mobile terminal for prefetching request is determined as destination mobile terminal, and wherein the quantity of user's application is greater than 4;The operating statistic file It including multiple tables of data, and is user's application one tables of data of distribution each in user's applications multiple in destination mobile terminal, Content including multiple data item and each data item in each tables of data is four-tuple < Apply Names, front stage operation starting Time, the front stage operation end time, the front stage operation cumulative time >;Wherein the tables of data distributed by each user application is made For the run time statistics information of each user application, and for each user tables of data for distributing of application for record in real time The runing time information of each user's application;In the operating statistic file, predetermined quantity is saved for each user application Data item, or be the data item in the consecutive days of each user application preservation predetermined quantity or in predetermined time length.It is wherein pre- The consecutive days of fixed number amount be 10 consecutive days, 20 consecutive days or 30 consecutive days, wherein predetermined time length be 240 hours, 480 hours or 720 hours.
8. the system according to any one of claim 6-7, in the destination mobile terminal, user's application is at runtime Application switching frequency F be in destination mobile terminal run user in application, be located at foreground user application at runtime The switching frequency on backstage is switched to, when the application switching frequency F is effective in each consecutive days in the first date section Between in section positioned at user's application mean handoff number for being switched to backstage at runtime on foreground, wherein when being located at foreground Between user's application at runtime more than 1 minute after can just be counted into switching times and the first date section when being switched to backstage Including at least ten consecutive days, wherein effective period of time is at 6 points in the morning to 11 points of the period of afternoon;Wherein user is according to described The processor host frequency of destination mobile terminal and the reading speed of second memory preset dynamic Dynamic gene A, wherein moving State Dynamic gene is 5;Wherein according to the application switching frequency F and user of user's application at runtime in the destination mobile terminal Each time interval T in multiple time intervals is divided into multiple time slices by pre-set dynamic Dynamic gene A
Wherein S is the quantity of time slice in each time interval T;When wherein each time interval T is 60 minutes and is each Between section T initial time and the end time be the integral point time;Wherein by each time interval T be divided into 3 time slices, 6 time slices or 10 time slices;Each user is wherein determined according to the run time statistics information that each user applies Apply specific time segmentation in operation probability include:
For determining the second date section of operation probability, second date section includes at least ten consecutive days for selection;
Each data item in multiple data item in the run time statistics information of each user application is parsed, with determination In the second date section, each user applies the effective degree Ci run in the segmentation of the specific time within each consecutive days, Wherein 1≤i≤Na, Na are the quantity of user's application in destination mobile terminal, and wherein Na is natural number and Na is greater than 4;
The effective degree Ci run in multiple specific times segmentation in the second date section is applied to calculate institute based on each user There is user to apply the total effective degree S run in specific time is segmented:
It calculates each user and applies the operation probability P i=Ci/S in specific time segmentation;Wherein when user applies when specific Between runing time in segmentation when being more than 20 seconds, be calculated as an effective degree.
9. the system according to any one of claim 6-8, the state parameter is the current shape of destination mobile terminal State;It is wherein that each user application setting the first adjustment coefficient S includes: according to the state parameter of the destination mobile terminal
In the case where the state parameter of destination mobile terminal is strong light state, the first adjustment coefficient S that each user is applied It is set smaller than 1;
In the case where the state parameter of destination mobile terminal is sheen state, the first adjustment coefficient S that each user is applied It is set greater than 1;And
In the case where the state parameter of destination mobile terminal is dim light state, the first adjustment coefficient S that each user is applied It is set smaller than 1;
Alternatively, being wherein each user application setting the first adjustment coefficient S according to the state parameter of the destination mobile terminal:
The state parameter of destination mobile terminal be display screen upward in the case where, the first adjustment coefficient that each user is applied S is set greater than 1;
It is the first adjustment coefficient of applying each user in display screen situation directed downwardly in the state parameter of destination mobile terminal S is set smaller than 1;
In the case where the state parameter of destination mobile terminal is that horizontal direction is mobile, the first adjustment system that each user is applied Number S is set smaller than 1;
In the case where the state parameter of destination mobile terminal is that vertical direction is mobile, the first adjustment system that each user is applied Number S is set smaller than 1;
Alternatively, being wherein each user application setting the first adjustment coefficient S packet according to the state parameter of the destination mobile terminal It includes:
In the case where the state parameter of destination mobile terminal is hot state, the first adjustment coefficient S that each user is applied It is set smaller than 1;
In the case where the state parameter of destination mobile terminal is the condition of high temperature, the first adjustment coefficient S that each user is applied It is set smaller than 1;
In the case where the state parameter of destination mobile terminal is appropriate state, the first adjustment coefficient S that each user is applied It is set greater than 1;
In the case where the state parameter of destination mobile terminal is low-temperature condition, the first adjustment coefficient S that each user is applied It is set smaller than 1;
In the case where the state parameter of destination mobile terminal is cold state, the first adjustment coefficient S that each user is applied It is set smaller than 1;
Wherein hot state is temperature T >=32 DEG C;The condition of high temperature is 32 DEG C > temperature T >=25 DEG C, appropriate state is 25 DEG C > temperature T >=18 DEG C, low-temperature condition is 18 DEG C > temperature T >=8 DEG C or cold state is 8 DEG C > temperature T;
The location parameter is the current location of destination mobile terminal;Location parameter according to the destination mobile terminal is each Second adjustment coefficient L is arranged in user's application
In the case where the location parameter of destination mobile terminal is office, the second adjustment coefficient L that each user applies is set It is set to less than 1;
In the case where the location parameter of destination mobile terminal is family, set the second adjustment coefficient L that each user applies to Greater than 1;
In the case where the location parameter of destination mobile terminal is restaurant, the second adjustment coefficient L that each user is applied is arranged For less than 1;
In the case where the location parameter of destination mobile terminal is road, the second adjustment coefficient L that each user is applied is arranged For less than 1;And
In the case where the location parameter of destination mobile terminal is subway, the second adjustment coefficient L that each user is applied is arranged For greater than 1.
10. the system according to any one of claim 6-9, wherein obtaining the power of the state parameter and location parameter Ratio includes: again
The weight configuration file in destination mobile terminal is read, the weight configuration file is parsed to obtain the state The weight proportion of parameter and location parameter.The weight proportion of the state parameter and location parameter and be 1, the state parameter Weight proportion with location parameter is respectively 0.5 and 0.5;The weight proportion of the state parameter and location parameter is respectively 0.3 With 0.7;The weight proportion of the state parameter and location parameter is respectively 0.2 and 0.8;The state parameter and location parameter Weight proportion is respectively 0.7 and 0.3;The weight proportion of the state parameter and location parameter is respectively 0.8 and 0.2;The shape The weight proportion of state parameter and location parameter is respectively 0.4 and 0.6;The weight proportion of the state parameter and location parameter difference For 0.6 and 0.4;Wherein determined according to the first adjustment coefficient S of each user application and second adjustment coefficient L and weight proportion The third regulation coefficient K of each user's application are as follows:
Third regulation coefficient K=the first adjustment coefficient S × W1+ second adjustment coefficient L × W2, wherein W1 is the power of state parameter sum Weight ratio, W2 are the weight proportion of location parameter;Based on each user application third regulation coefficient K and specific time be segmented The interior each user of operation probability calculation apply specific time segmentation in the operation probability being adjusted include:
The product of the third regulation coefficient K that each user is applied and the operation probability in specific time segmentation is as each use Apply the operation probability being adjusted in specific time segmentation in family.
CN201810943819.XA 2018-08-18 2018-08-18 Method and system for prefetching files in mobile internet according to time segments Active CN109189737B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810943819.XA CN109189737B (en) 2018-08-18 2018-08-18 Method and system for prefetching files in mobile internet according to time segments

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810943819.XA CN109189737B (en) 2018-08-18 2018-08-18 Method and system for prefetching files in mobile internet according to time segments

Publications (2)

Publication Number Publication Date
CN109189737A true CN109189737A (en) 2019-01-11
CN109189737B CN109189737B (en) 2021-11-26

Family

ID=64918365

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810943819.XA Active CN109189737B (en) 2018-08-18 2018-08-18 Method and system for prefetching files in mobile internet according to time segments

Country Status (1)

Country Link
CN (1) CN109189737B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521041A (en) * 2011-12-14 2012-06-27 华为终端有限公司 Method for processing application program and wireless handheld device
CN102999368A (en) * 2012-12-14 2013-03-27 广东欧珀移动通信有限公司 Program pre-starting method and device in mobile terminal and mobile terminal
CN103186566A (en) * 2011-12-28 2013-07-03 中国移动通信集团河北有限公司 Data classification storage method, device and system
US20140101238A1 (en) * 2012-10-08 2014-04-10 Patrick Soon-Shiong Distributed storage systems and methods
CN104503756A (en) * 2014-12-22 2015-04-08 北京奇虎科技有限公司 Application acceleration method and device
CN105930213A (en) * 2016-04-22 2016-09-07 北京小米移动软件有限公司 Application running method and apparatus
CN105939416A (en) * 2016-05-30 2016-09-14 努比亚技术有限公司 Mobile terminal and application prestart method thereof
CN106227844A (en) * 2016-07-27 2016-12-14 深圳市金立通信设备有限公司 The method of a kind of application recommendation and terminal
CN106570108A (en) * 2016-11-01 2017-04-19 中国科学院计算机网络信息中心 Adaptive reading optimization method and system for mass data under cloud storage environment
CN107544822A (en) * 2017-07-26 2018-01-05 北京珠穆朗玛移动通信有限公司 Application program pre-add support method, mobile terminal and the device with store function
CN107783801A (en) * 2017-11-06 2018-03-09 广东欧珀移动通信有限公司 Application program forecast model is established, preloads method, apparatus, medium and terminal
CN107944277A (en) * 2017-11-21 2018-04-20 广东欧珀移动通信有限公司 Using the control method of startup, device, storage medium and intelligent terminal
CN108363593A (en) * 2018-05-21 2018-08-03 Oppo广东移动通信有限公司 Application program preloads method, apparatus, storage medium and terminal

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521041A (en) * 2011-12-14 2012-06-27 华为终端有限公司 Method for processing application program and wireless handheld device
CN103186566A (en) * 2011-12-28 2013-07-03 中国移动通信集团河北有限公司 Data classification storage method, device and system
US20140101238A1 (en) * 2012-10-08 2014-04-10 Patrick Soon-Shiong Distributed storage systems and methods
CN102999368A (en) * 2012-12-14 2013-03-27 广东欧珀移动通信有限公司 Program pre-starting method and device in mobile terminal and mobile terminal
CN104503756A (en) * 2014-12-22 2015-04-08 北京奇虎科技有限公司 Application acceleration method and device
CN105930213A (en) * 2016-04-22 2016-09-07 北京小米移动软件有限公司 Application running method and apparatus
CN105939416A (en) * 2016-05-30 2016-09-14 努比亚技术有限公司 Mobile terminal and application prestart method thereof
CN106227844A (en) * 2016-07-27 2016-12-14 深圳市金立通信设备有限公司 The method of a kind of application recommendation and terminal
CN106570108A (en) * 2016-11-01 2017-04-19 中国科学院计算机网络信息中心 Adaptive reading optimization method and system for mass data under cloud storage environment
CN107544822A (en) * 2017-07-26 2018-01-05 北京珠穆朗玛移动通信有限公司 Application program pre-add support method, mobile terminal and the device with store function
CN107783801A (en) * 2017-11-06 2018-03-09 广东欧珀移动通信有限公司 Application program forecast model is established, preloads method, apparatus, medium and terminal
CN107944277A (en) * 2017-11-21 2018-04-20 广东欧珀移动通信有限公司 Using the control method of startup, device, storage medium and intelligent terminal
CN108363593A (en) * 2018-05-21 2018-08-03 Oppo广东移动通信有限公司 Application program preloads method, apparatus, storage medium and terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王梅等: "列存储数据区级压缩模式与压缩策略选择方法", 《计算机学报》 *

Also Published As

Publication number Publication date
CN109189737B (en) 2021-11-26

Similar Documents

Publication Publication Date Title
US6195654B1 (en) System and method for obtaining improved search results and for decreasing network loading
CN110297848A (en) Recommended models training method, terminal and storage medium based on federation&#39;s study
US20060003823A1 (en) Dynamic player groups for interest management in multi-character virtual environments
CN106126524B (en) Information pushing method and device
CN112153426B (en) Content account management method and device, computer equipment and storage medium
CN110489655A (en) Hot content determination, recommended method, device, equipment and readable storage medium storing program for executing
CN103761228B (en) The rank threshold of application program determines that method and rank threshold determine system
CN110191168A (en) Processing method, device, computer equipment and the storage medium of online business datum
CN103945430A (en) Mobile terminal type recommending method and device
CN110287250A (en) User gradation quantization method and device
CN112131413A (en) Multimedia information processing method and device, electronic equipment and storage medium
CN109033173A (en) It is a kind of for generating the data processing method and device of multidimensional index data
CN106446210A (en) Multimedia file searching method, server and client
CN109240574A (en) The method and system that file prefetches are carried out in mobile Internet based on operation temperature
CN109189737A (en) The method and system that file prefetches are carried out in mobile Internet according to time slice
CN109240987A (en) The method and system that data pre-fetching is carried out based on the time for mobile Internet
CN103577481B (en) A kind of method and apparatus of ad data search
CN109151196A (en) The method and system of data pre-fetching are carried out in mobile Internet based on current location
CN109033445A (en) The method and system that file prefetches are carried out according to operation application in mobile Internet
CN116578409A (en) Method, system and medium for identifying and migrating memory hot page
CN110990779A (en) Game resource transfer method, server and storage medium
CN109144960A (en) The method and system of data pre-fetching are carried out in mobile Internet according to regional scope
CN113886679A (en) Recommendation method and device, electronic equipment and storage medium
CN111401969B (en) Method, device, server and storage medium for improving user retention
CN109241348B (en) Video recommendation method and system

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
CB03 Change of inventor or designer information

Inventor after: Ma Chunchuo

Inventor after: Other inventors ask not to disclose names

Inventor before: Not publicizing the inventor

CB03 Change of inventor or designer information
TA01 Transfer of patent application right

Effective date of registration: 20211110

Address after: 100087 room 2201, 22 / F, building 1, courtyard 1, Danling street, Haidian District, Beijing

Applicant after: Beijing HESI Information Technology Co., Ltd

Address before: 110034 gate 2, floor 14, unit 1, building 6, No. 10 Xianglushan Road, Shenyang City, Liaoning Province (relocation building of Shenyang University of Aeronautics and Astronautics)

Applicant before: Wang Mei

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant