CN115097996A - Method and system for prefetching files in mobile internet based on operation heat - Google Patents

Method and system for prefetching files in mobile internet based on operation heat Download PDF

Info

Publication number
CN115097996A
CN115097996A CN202210163558.6A CN202210163558A CN115097996A CN 115097996 A CN115097996 A CN 115097996A CN 202210163558 A CN202210163558 A CN 202210163558A CN 115097996 A CN115097996 A CN 115097996A
Authority
CN
China
Prior art keywords
user application
mobile terminal
running
target
storage
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.)
Pending
Application number
CN202210163558.6A
Other languages
Chinese (zh)
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.)
Individual
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 CN202210163558.6A priority Critical patent/CN115097996A/en
Publication of CN115097996A publication Critical patent/CN115097996A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method and a system for prefetching files in a mobile internet based on operation heat, wherein the method comprises the following steps: determining the application quantity of user applications installed in the target mobile terminal, acquiring the current position of the target mobile terminal, determining a target area for running heat statistics, and determining the running heat of each non-selected user application except the selected user application in a plurality of user applications in the target mobile terminal in the target area based on running statistical information; sorting the plurality of non-selected user applications in descending order of probability of operation based on the probability of operation of each non-selected user application at the current location to generate a sorted list; setting a storage level for each pre-fetching user application in at least one pre-fetching user application according to the sorted list; and file prefetching the data files associated with each prefetched user application from the second memory according to the storage level of the prefetched user application.

Description

Method and system for prefetching files in mobile internet based on operation heat
Divisional application
The application is a divisional application of a patent application which is filed in 2018, 8, month and 18, has an application number of 2018109438113 and is named as a method and a system for prefetching files in a mobile internet based on operation heat.
Technical Field
The invention relates to the field of internet of things and the field of internet, in particular to a method and a system for prefetching files in a mobile internet based on operation heat in the field of mobile internet.
Background
Currently, as the internet of things, especially the mobile internet, develops faster and faster, and the use of mobile terminals is more and more popular, people usually use mobile terminals to install a large amount of applications and store a large amount of personal data. Since the amount of data increases more rapidly than the storage space increases, it is increasingly important to efficiently manage data files in a mobile terminal. In some cases, for a user with a high regularity of usage, when the user enters a specific target area, the user usually uses a user application with a high popularity to run in the specific target area. In the prior art, no technology for prefetching files according to the regularity exists.
Disclosure of Invention
According to one aspect of the invention, a method for prefetching files in a mobile internet based on operation heat is provided, and the method comprises the following steps:
when detecting that a user of a target mobile terminal in a mobile internet selects a selected user application from a plurality of user applications to perform foreground operation, determining the application number of the user applications installed in the target mobile terminal, acquiring the current position of the target mobile terminal, and determining a target area for performing operation heat statistics, wherein the current position is determined as the center of a circle of the target area and the radius of the target area is determined based on the application number;
acquiring running heat statistical information associated with all mobile terminals except a target mobile terminal in a target area, and determining the running heat of each non-selected user application except a selected user application in a plurality of user applications in the target mobile terminal in the target area based on the running statistical information;
determining an operation probability of each non-selected user application in the target mobile terminal at the current position based on the operation heat of each non-selected user application and the total number of the mobile terminals except the target mobile terminal in the target area, and sorting the plurality of non-selected user applications in a descending order of the operation probability based on the operation probability of each non-selected user application at the current position to generate a sorted list;
determining at least one of the plurality of non-selected user applications that can be preloaded from the second memory into the first memory according to the ordered list, and setting a storage level for each of the at least one pre-fetched user application according to the ordered list, wherein the storage levels comprise: a decrement storage stage, an increment storage stage, a quantitative storage stage and a compression storage stage;
allocating at least one dynamic memory unit for each pre-fetch user application of the decrement storage stage, allocating at least one dynamic memory unit for each pre-fetch user application of the compression storage stage, allocating one dynamic memory unit for each pre-fetch user application of the increment storage stage and allocating one dynamic memory unit for each pre-fetch user application of the quantitive storage stage;
setting a storage level for a dynamic storage unit allocated to each pre-fetching user application according to the storage level of each pre-fetching user application;
file prefetching a data file associated with each prefetched user application from the second memory according to the storage level of the prefetched user application, comprising:
copying a plurality of data files associated with each pre-fetch user application of the reduced storage tier from the second memory to the dynamic storage unit of the at least one reduced storage tier allocated for each pre-fetch user application of the reduced storage tier, setting a first time period for the dynamic storage unit of each reduced storage tier upon completion of the copying and starting timing, deleting a first predetermined number of data files in the dynamic storage unit of each reduced storage tier each time the first time period expires;
selecting at least one base data file among the plurality of data files associated with each pre-fetching user application of the incremental storage tier, copying the at least one base data file of each pre-fetching user application of the incremental storage tier from the second memory to the dynamic storage unit of the incremental storage tier allocated for each pre-fetching user application of the incremental storage tier, setting a second time period for the dynamic storage unit of the incremental storage tier upon completion of the copying and starting clocking, wherein a second predetermined number of data files among the plurality of data files associated with each pre-fetching user application of the incremental storage tier are copied from the second memory to the dynamic storage unit of the incremental storage tier allocated for each pre-fetching user application of the incremental storage tier each time the second time period expires;
selecting at least one data file from the plurality of data files associated with each pre-fetch user application of the quantitative storage tier in accordance with the storage capacity of the dynamic storage unit of the quantitative storage tier assigned to each pre-fetch user application of the quantitative storage tier, and copying the selected at least one data file from the second memory to the dynamic storage unit of the quantitative storage tier assigned to each pre-fetch user application of the quantitative storage tier; and
the plurality of data files associated with each of the pre-fetch user applications of the compressed storage tier are compressed to generate a plurality of compressed data files, the plurality of compressed data files of each of the pre-fetch user applications of the compressed storage tier are copied from the second memory to the dynamic storage unit of the at least one compressed storage tier allocated for each of the pre-fetch user applications of the compressed storage tier.
The mobile internet comprises a plurality of mobile terminals, the mobile terminal which initiates a file pre-fetching request is determined as a target mobile terminal, and the number of applications applied by a user is more than 5.
And the user selects the selected user application from a plurality of user applications by performing touch operation on the touch screen of the target mobile terminal so as to prompt the selected user application to perform foreground running.
Wherein detecting, by an operating system of a target mobile terminal, whether a user of the target mobile terminal selects a selected user application from a plurality of user applications.
Wherein the current location of the target mobile terminal is obtained using a positioning component of the target mobile terminal.
Determining, by an operating system of a target mobile terminal, an application number of a user application installed in the target mobile terminal,
the application number of the user application installed in the target mobile terminal is recorded in a registry of an operating system of the target mobile terminal.
The running heat statistics refers to the quantity statistics of user applications which are in foreground running in each mobile terminal except for the target mobile terminal in the target area.
The target area is a circular area with the current position as a center.
Wherein determining the radius of the target area based on the number of applications comprises: taking the product of the application number and the area adjustment coefficient as the radius of the target area,
the radius R is the application number AN multiplied by the area adjustment coefficient alpha, wherein the unit of the radius R is meter, the application number AN is more than or equal to 6, and the area adjustment coefficient alpha is 1, 5, 10, 20, 50 or 100.
Before obtaining the running heat statistical information associated with all mobile terminals except the target mobile terminal in the target area, the method further comprises the following steps:
the target mobile terminal sends a statistical request message comprising the circle center and the radius of the target area to a statistical server;
the statistical server determines all mobile terminals, except the target mobile terminal, included in the target area based on the circle center and the radius of the target area;
transmitting a status query message to each of all mobile terminals except the target mobile terminal;
in response to receiving the status query message, each mobile terminal determines whether a user application running in the foreground exists per se;
the mobile terminal with the user application running in the foreground generates a running data item and sends the running data item to a statistical server;
the statistical server determines operation heat statistical information according to the received operation data items;
where the running data item is a binary < identifier of mobile terminal, identifier of foreground running user application >.
The statistical server determining the operation heat statistical information according to the received plurality of operation data items comprises:
the statistical server carries out heat statistics on the received multiple running data items according to the identifiers of the user applications running in the foreground so as to generate running heat statistical information;
the running heat statistical information is a data table, and the data table is used for indicating the respective statistical number of each foreground running user application in the target area.
And the statistical server sends the running heat statistical information to the target mobile terminal.
Wherein determining a running heat of each non-selected user application of the plurality of user applications other than the selected user application in the target area based on the running statistics comprises:
and inquiring the running statistical information according to the identifier of each non-selected user application except the selected user application in the plurality of user applications in the target mobile terminal to determine the statistical quantity associated with each non-selected user application, and taking the statistical quantity associated with each non-selected user application as the running heat of each non-selected user application in the target area range.
Determining an operation probability of each non-selected user application in the target mobile terminal at the current position based on the operation heat of each non-selected user application and the total number of the mobile terminals except the target mobile terminal in the target area range comprises:
and determining the ratio of the running heat of each non-selected user application to the total number of the mobile terminals except the target mobile terminal in the target area range as the running probability of each non-selected user application in the target mobile terminal at the current position.
And determining the operation probability of each non-selected user application in the current position in the target mobile terminal as the ratio obtained by dividing the operation heat of each non-selected user application by the total number of the mobile terminals in the target area range.
Before obtaining the running heat statistical information associated with all mobile terminals except the target mobile terminal in the target area, the method further comprises the following steps:
the target mobile terminal sends an acquisition request aiming at the running heat statistical information to a content server, and the content server sends the running heat statistical information to the target mobile terminal in response to receiving the acquisition request;
the operation heat statistical information is a data table used for indicating the respective statistical quantity of each user application installed in all the mobile terminals except the target mobile terminal in the target area range.
Wherein determining the running heat of each non-selected user application except the selected user application in the target area in the plurality of user applications in the target mobile terminal based on the running statistical information comprises:
and inquiring the running statistical information according to the identifier of each non-selected user application except the selected user application in the plurality of user applications in the target mobile terminal to determine the statistical quantity associated with each non-selected user application, and taking the statistical quantity associated with each non-selected user application as the running heat of each non-selected user application in the target area range.
Determining an operation probability of each non-selected user application in the target mobile terminal at the current position based on the operation heat of each non-selected user application and the total number of the mobile terminals except the target mobile terminal in the target area range comprises:
and determining the ratio of the running heat of each non-selected user application to the total number of the mobile terminals except the target mobile terminal in the target area range as the running probability of each non-selected user application in the target mobile terminal at the current position.
And determining the running probability of each non-selected user application in the target mobile terminal at the current position as the ratio obtained by dividing the running heat of each non-selected user application by the total number of the mobile terminals except the target mobile terminal in the target area range.
Before obtaining the operation statistical file associated with the target mobile terminal in the mobile internet, the method further comprises the following steps:
responding to a file prefetching request initiated by a user and used for prefetching a file aiming at a data file of a target mobile terminal in a mobile Internet and associated with a user application, and acquiring a dynamic configuration file associated with the file prefetching;
creating a dynamic index area in a first memory of the target mobile terminal, and creating a plurality of dynamic storage units for storing data files in the first memory according to the dynamic configuration file, wherein the storage capacity of each of the plurality of dynamic storage units is determined according to the dynamic configuration file; and
and generating a dynamic index table in the dynamic index area, wherein the dynamic index table comprises a plurality of index entries, and each index entry is used for recording the application identification, the starting address, the ending address, the storage capacity and the storage level of a corresponding dynamic storage unit in the plurality of dynamic storage units.
The first memory is a random access memory, and the second memory is a read-only memory.
The dynamic profile includes a start address and an end address of a storage area in the first memory for providing a plurality of dynamic storage units, and the dynamic profile further includes a storage capacity of each of the plurality of dynamic storage units.
The application identifier is an identifier of a user application to which the dynamic storage unit belongs, the starting address is a starting address of a storage space of the dynamic storage unit, the ending address is an ending address of the storage space of the dynamic storage unit, and the storage capacity is the storage capacity and the storage level of the storage space of the dynamic storage unit.
And updating the corresponding index entry in the dynamic index table according to the storage level set for the dynamic storage unit.
Wherein selecting at least one data file from the plurality of data files associated with each pre-fetching user application of the quantitative storage tier based on the storage capacity of the dynamic storage unit of the quantitative storage tier allocated for each pre-fetching user application of the quantitative storage tier comprises:
grouping a plurality of data files associated with each of the pre-fetch user applications of the quantitative storage tier according to a storage capacity of a dynamic storage unit of the quantitative storage tier allocated to each of the pre-fetch user applications of the quantitative storage tier to generate a plurality of file groups, wherein each of the file groups includes at least one data file, and setting different priorities for the plurality of file groups of each of the pre-fetch user applications of the quantitative storage tier to constitute priority queues, regarding a file group at a head of a queue in each of the priority queues as a current file group and copying at least one data file in the current file group from the second memory to a dynamic storage unit of the quantitative storage tier allocated to each of the pre-fetch user applications of the quantitative storage tier and setting a third time period for each of the dynamic storage units of the quantitative storage tier, whenever the third time period expires, using a next file group in the priority queues as the current file group in descending order, until there is no next set of files;
determining a number of pre-fetch user applications associated with the quantitative storage tier based on the at least one data file selected from the plurality of data files;
wherein the size of each file group is smaller than the storage space of the dynamic storage unit of the corresponding quantitative storage tier.
Wherein selecting at least one data file from the plurality of data files associated with each pre-fetching user application of the quantitative storage tier based on the storage capacity of the dynamic storage unit of the quantitative storage tier allocated for each pre-fetching user application of the quantitative storage tier comprises:
grouping a plurality of data files associated with each pre-fetch user application of the quantitative storage tier according to a storage capacity of a dynamic storage unit of the quantitative storage tier assigned for each pre-fetch user application of the quantitative storage tier to generate a plurality of file groups, wherein each file group includes at least one data file, randomly selecting one file group from the plurality of file groups as a current file group and copying at least one data file in the current file group from the second memory to the dynamic storage unit of the quantitative storage tier assigned for each pre-fetch user application of the quantitative storage tier and setting a third time period for each dynamic storage unit of the quantitative storage tier, randomly selecting a next file group from the plurality of file groups as the current file group each time the third time period expires until there is no next file group;
determining a number of pre-fetch user applications associated with the quantitative storage tier based on the at least one data file selected from the plurality of data files;
wherein the size of each file group is smaller than the storage space of the dynamic storage unit of the corresponding quantitative storage tier.
After copying the selected at least one data file from the second memory to the dynamic storage unit of the quantitative storage tier assigned to each pre-fetching user application of the quantitative storage tier, setting a third time period and, each time the third time period expires, re-selecting at least one data file from the plurality of data files associated with each pre-fetching user application of the quantitative storage tier based on the storage capacity of the dynamic storage unit of the quantitative storage tier assigned to each pre-fetching user application of the quantitative storage tier, copying the re-selected at least one data file from the second memory to the dynamic storage unit of the quantitative storage tier assigned to each pre-fetching user application of the quantitative storage tier.
Wherein selecting at least one data file from the plurality of data files associated with each pre-fetching user application of the quantitative storage tier based on the storage capacity of the dynamic storage unit of the quantitative storage tier allocated for each pre-fetching user application of the quantitative storage tier comprises:
step 1, grouping a plurality of data files associated with each pre-fetching user application of the quantitative storage tier to generate N file groups according to the storage capacity of a dynamic storage unit of the quantitative storage tier allocated to each pre-fetching user application of the quantitative storage tier, wherein N is a natural number greater than 1 and each file group comprises at least one data file;
step 2, setting different sequence numbers for each file group in the N file groups, wherein the sequence numbers are from 1 to N;
step 3, taking the file group with the serial number i equal to 1 as a current file group, wherein N is more than or equal to i and is more than 0;
step 4, setting a third time period for each dynamic storage unit of the quantitative storage level;
step 5, copying at least one data file included in the current file group from the second memory to a dynamic storage unit of a quantitative storage level allocated to each pre-fetching user application of the quantitative storage level;
step 6, when the third time period expires, judging whether i is true or not, and if yes, ending; if not, taking the file group with the serial number i being i +1 as the current file group, and performing step 5;
wherein the size of each file group is smaller than the storage capacity of the dynamic storage unit of the fixed-amount storage tier.
Wherein determining a plurality (or at least one) of the plurality of non-selected user applications that can be preloaded into the first memory from the second memory according to the ordered list comprises:
when the number of the non-selected user applications with the operation probability larger than the pre-fetching threshold value in the ordered list is larger than 0, determining the non-selected user applications with the operation probability larger than the pre-fetching threshold value in the ordered list as the pre-fetching user applications which can be pre-loaded into the first memory from the second memory so as to determine at least one pre-fetching user application;
when the number of non-selected user applications in the ordered list having an operating probability greater than the pre-fetch threshold is equal to 0, determining all non-selected user applications in the ordered list as pre-fetched user applications that can be pre-loaded from the second memory into the first memory to determine at least one pre-fetched user application.
Wherein setting a storage level for each of the at least one pre-fetching user application according to the ordered list comprises:
setting the storage level of the pre-fetching user application with the operation probability larger than the high probability threshold value in the ordered list as a decrement storage level;
setting the storage level of the pre-fetching user application with the operation probability smaller than or equal to the high probability threshold and larger than the medium probability threshold in the sorted list as an incremental storage level;
setting the storage level of the pre-fetching user application with the operation probability smaller than or equal to the middle probability threshold and larger than the low probability threshold in the sorted list as a quantitative storage level;
and setting the storage level of the pre-fetching user application with the operation probability less than or equal to the low probability threshold value in the sorted list as a compression storage level.
Wherein the at least one dynamic storage unit allocated for the pre-fetch user application of each reduced storage tier is capable of holding all data files of the pre-fetch user application of the corresponding reduced storage tier, and the at least one dynamic storage unit allocated for the pre-fetch user application of each compressed storage tier is capable of holding all compressed data files of the pre-fetch user application of the corresponding compressed storage tier.
Wherein the first time period is 30 seconds, the second time period is 60 seconds, and wherein the third time period is 90 seconds.
Wherein the at least one base data file of each pre-fetching user application is at least one data file of the plurality of data files associated with each pre-fetching user application of the incremental storage tier having a launch order above a priority threshold.
Wherein the first predetermined number is 5 and the second predetermined number is 8.
According to another aspect of the present invention, there is provided a system for prefetching a file in a mobile internet based on a running heat, the system including:
the mobile terminal comprises an area determining device, a foreground operating device and a foreground operating device, wherein when the fact that a user of a target mobile terminal in the mobile internet selects a selected user application from a plurality of user applications to operate in the foreground is detected, the application number of the user applications installed in the target mobile terminal is determined, the current position of the target mobile terminal is obtained, a target area used for operating heat statistics is determined, the current position is determined as the center of a circle of the target area, and the radius of the target area is determined based on the application number;
the system comprises a heat determining device, a heat determining device and a heat determining device, wherein the heat determining device is used for acquiring running heat statistical information associated with all mobile terminals except a target mobile terminal in a target area, and determining the running heat of each non-selected user application except a selected user application in a plurality of user applications in the target mobile terminal in the target area based on the running statistical information;
a sorting device for determining the operation probability of each non-selected user application in the target mobile terminal at the current position based on the operation heat of each non-selected user application and the total number of the mobile terminals except the target mobile terminal in the target area, and sorting the operation probabilities of the plurality of non-selected user applications in a descending order based on the operation probability of each non-selected user application at the current position to generate a sorted list;
setting means for determining at least one pre-fetching user application of said plurality of non-selected user applications that can be pre-loaded from the second memory into the first memory according to said ordered list, and setting a storage level for each pre-fetching user application of said at least one pre-fetching user application according to said ordered list, wherein said storage level comprises: a decrement storage stage, an increment storage stage, a quantitative storage stage and a compression storage stage; setting a storage level for a dynamic storage unit allocated to each pre-fetching user application according to the storage level of each pre-fetching user application;
the allocation device allocates at least one dynamic storage unit for each pre-fetching user application of the decrement storage level, allocates at least one dynamic storage unit for each pre-fetching user application of the compression storage level, allocates one dynamic storage unit for each pre-fetching user application of the increment storage level and allocates one dynamic storage unit for each pre-fetching user application of the quantitative storage level;
prefetching means for file prefetching the data files associated with each prefetched user application from the second memory according to the storage level of the prefetched user application, comprising:
copying a plurality of data files associated with each pre-fetch user application of the decrement storage tier from the second memory to the dynamic storage unit of at least one decrement storage tier allocated for each pre-fetch user application of the decrement storage tier, setting a first time period for the dynamic storage unit of each decrement storage tier and starting timing when the copying is completed, deleting a first predetermined number of data files in the dynamic storage unit of each decrement storage tier each time the first time period expires;
selecting at least one base data file among the plurality of data files associated with each of the pre-fetch user applications of the incremental storage tier, copying the at least one base data file of each of the pre-fetch user applications of the incremental storage tier from the second memory to a dynamic storage unit of the incremental storage tier allocated for each of the pre-fetch user applications of the incremental storage tier, setting a second time period for the dynamic storage unit of the incremental storage tier and starting clocking when copying is complete, wherein a second predetermined number of data files among the plurality of data files associated with each of the pre-fetch user applications of the incremental storage tier are copied from the second memory to the dynamic storage unit of the incremental storage tier allocated for each of the pre-fetch user applications of the incremental storage tier each time period expires;
selecting at least one data file from the plurality of data files associated with each pre-fetch user application of the quantitative storage tier in accordance with the storage capacity of the dynamic storage unit of the quantitative storage tier assigned to each pre-fetch user application of the quantitative storage tier, and copying the selected at least one data file from the second memory to the dynamic storage unit of the quantitative storage tier assigned to each pre-fetch user application of the quantitative storage tier; and
the plurality of data files associated with each pre-fetch user application of the compressed storage tier are compressed to generate a plurality of compressed data files, the plurality of compressed data files of each pre-fetch user application of the compressed storage tier are copied from the second memory to the dynamic storage unit of the at least one compressed storage tier allocated for each pre-fetch user application of the compressed storage tier.
The mobile internet comprises a plurality of mobile terminals, the mobile terminal which initiates a file pre-fetching request is determined as a target mobile terminal, and the number of applications applied by a user is more than 5.
And the user selects the selected user application from a plurality of user applications by performing touch operation on the touch screen of the target mobile terminal so as to prompt the selected user application to perform foreground running.
Wherein detecting, by an operating system of a target mobile terminal, whether a user of the target mobile terminal selects a selected user application from a plurality of user applications.
Wherein a current location of a target mobile terminal is obtained using a positioning component of the target mobile terminal.
Determining, by an operating system of a target mobile terminal, an application number of a user application installed within the target mobile terminal,
the application number of the user application installed in the target mobile terminal is recorded in a registry of an operating system of the target mobile terminal.
The running heat statistics refers to the quantity statistics of user applications which are run in the foreground in each mobile terminal except the target mobile terminal in the target area.
The target area is a circular area with the current position as a center.
Wherein determining the radius of the target area based on the number of applications comprises: taking the product of the application number and the area adjustment coefficient as the radius of the target area,
radius R is the number of applications AN × the area adjustment factor α, where radius R is in meters, the number of applications AN is greater than or equal to 6, and area adjustment factor α is 1, 5, 10, 20, 50, or 100.
Before obtaining the running heat statistical information associated with all mobile terminals except the target mobile terminal in the target area, the method further comprises the following steps:
the target mobile terminal sends a counting request message comprising the circle center and the radius of the target area to a counting server;
the statistical server determines all mobile terminals, except the target mobile terminal, included in the target area based on the circle center and the radius of the target area;
transmitting a status query message to each of all mobile terminals except the target mobile terminal;
in response to receiving the status query message, each mobile terminal determines whether a user application running in the foreground exists per se;
the mobile terminal with the user application running in the foreground generates a running data item and sends the running data item to a statistical server;
the statistical server determines operation heat statistical information according to the received operation data items;
where the running data item is a binary < identifier of the mobile terminal, identifier of the user application running in foreground >.
The statistical server determining the operation heat statistical information according to the received plurality of operation data items comprises:
the statistical server carries out heat statistics on the received multiple running data items according to the identifiers of the user applications running in the foreground so as to generate running heat statistical information;
the running heat statistical information is a data table, and the data table is used for indicating the respective statistical number of each foreground running user application in the target area.
And the statistical server sends the running heat statistical information to the target mobile terminal.
Wherein determining a running heat of each non-selected user application of the plurality of user applications other than the selected user application in the target area based on the running statistics comprises:
and querying the running statistical information according to the identifier of each non-selected user application except the selected user application in the plurality of user applications in the target mobile terminal to determine the statistical quantity associated with each non-selected user application, and taking the statistical quantity associated with each non-selected user application as the running heat of each non-selected user application in the target area range.
Determining an operation probability of each non-selected user application in the target mobile terminal at the current position based on the operation heat of each non-selected user application and the total number of the mobile terminals except the target mobile terminal in the target area range comprises:
and determining the ratio of the running heat of each non-selected user application to the total number of the mobile terminals except the target mobile terminal in the target area range as the running probability of each non-selected user application in the target mobile terminal at the current position.
And determining the running probability of each non-selected user application in the target mobile terminal at the current position as the ratio obtained by dividing the running heat of each non-selected user application by the total number of the mobile terminals except the target mobile terminal in the target area range.
Before obtaining the running heat statistical information associated with all mobile terminals except the target mobile terminal in the target area, the method further comprises the following steps:
the target mobile terminal sends an acquisition request aiming at the running heat statistical information to a content server, and the content server sends the running heat statistical information to the target mobile terminal in response to receiving the acquisition request;
the operation heat statistical information is a data table used for indicating the respective statistical quantity of each user application installed in all the mobile terminals except the target mobile terminal in the target area range.
Wherein determining the running heat of each non-selected user application except the selected user application in the target area in the plurality of user applications in the target mobile terminal based on the running statistical information comprises:
and inquiring the running statistical information according to the identifier of each non-selected user application except the selected user application in the plurality of user applications in the target mobile terminal to determine the statistical quantity associated with each non-selected user application, and taking the statistical quantity associated with each non-selected user application as the running heat of each non-selected user application in the target area range.
Determining an operation probability of each non-selected user application in the target mobile terminal at the current position based on the operation heat of each non-selected user application and the total number of the mobile terminals except the target mobile terminal in the target area range comprises:
and determining the ratio of the running heat of each non-selected user application to the total number of the mobile terminals except the target mobile terminal in the target area range as the running probability of each non-selected user application in the target mobile terminal at the current position.
And determining the running probability of each non-selected user application in the target mobile terminal at the current position according to the ratio obtained by dividing the running heat of each non-selected user application by the total number of the mobile terminals except the target mobile terminal in the target area range.
The system comprises a mobile internet and an initialization device, wherein the initialization device is used for responding to a file prefetching request initiated by a user and used for prefetching a file aiming at a data file of a target mobile terminal in the mobile internet and relevant to a user application, and acquiring a dynamic configuration file relevant to the file prefetching;
creating a dynamic index area in a first memory of the target mobile terminal, and creating a plurality of dynamic storage units for storing data files in the first memory according to the dynamic configuration file, wherein the storage capacity of each dynamic storage unit in the plurality of dynamic storage units is determined according to the dynamic configuration file; and
and generating a dynamic index table in the dynamic index area, wherein the dynamic index table comprises a plurality of index entries, and each index entry is used for recording the application identification, the starting address, the ending address, the storage capacity and the storage level of a corresponding dynamic storage unit in the plurality of dynamic storage units.
The first memory is a random access memory, and the second memory is a read-only memory.
The dynamic profile includes a start address and an end address of a storage area in the first memory for providing a plurality of dynamic storage units, and the dynamic profile further includes a storage capacity of each of the plurality of dynamic storage units.
The application identifier is an identifier of a user application to which the dynamic storage unit belongs, the starting address is a starting address of a storage space of the dynamic storage unit, the ending address is an ending address of the storage space of the dynamic storage unit, and the storage capacity is the storage capacity and the storage level of the storage space of the dynamic storage unit.
And updating the corresponding index entry in the dynamic index table according to the storage level set for the dynamic storage unit.
Wherein the pre-fetching means selects at least one data file from the plurality of data files associated with each pre-fetching user application of the quantitative storage tier based on the storage capacity of the dynamic storage unit of the quantitative storage tier allocated for each pre-fetching user application of the quantitative storage tier comprises:
grouping a plurality of data files associated with each of the pre-fetch user applications of the quantitative storage tier according to a storage capacity of a dynamic storage unit of the quantitative storage tier allocated to each of the pre-fetch user applications of the quantitative storage tier to generate a plurality of file groups, wherein each of the file groups includes at least one data file, and setting different priorities for the plurality of file groups of each of the pre-fetch user applications of the quantitative storage tier to constitute priority queues, regarding a file group at a head of a queue in each of the priority queues as a current file group and copying at least one data file in the current file group from the second memory to a dynamic storage unit of the quantitative storage tier allocated to each of the pre-fetch user applications of the quantitative storage tier and setting a third time period for each of the dynamic storage units of the quantitative storage tier, whenever the third time period expires, using a next file group in the priority queues as the current file group in descending order, until there is no next set of files;
determining a number of pre-fetch user applications associated with the quantitative storage tier based on the at least one data file selected from the plurality of data files;
wherein the size of each file group is smaller than the storage space of the dynamic storage unit of the corresponding quantitative storage tier.
Wherein the pre-fetching means selects at least one data file from the plurality of data files associated with each pre-fetching user application of the quantitative storage tier based on the storage capacity of the dynamic storage unit of the quantitative storage tier allocated for each pre-fetching user application of the quantitative storage tier comprises:
grouping a plurality of data files associated with each pre-fetch user application of the quantitative storage tier according to a storage capacity of a dynamic storage unit of the quantitative storage tier assigned to each pre-fetch user application of the quantitative storage tier to generate a plurality of file groups, wherein each file group includes at least one data file, randomly selecting one file group from the plurality of file groups as a current file group and copying at least one data file in the current file group from the second memory to the dynamic storage unit of the quantitative storage tier assigned to each pre-fetch user application of the quantitative storage tier and setting a third time period for each dynamic storage unit of the quantitative storage tier, randomly selecting a next file group from the plurality of file groups as the current file group whenever the third time period expires until there is no next file group;
determining a number of pre-fetch user applications associated with the quantitative storage tier based on the at least one data file selected from the plurality of data files;
wherein the size of each file group is smaller than the storage space of the dynamic storage unit of the corresponding quantitative storage tier.
After the pre-fetching means copies the selected at least one data file from the second memory to the dynamic storage unit of the quantitative storage tier assigned to each pre-fetching user application of the quantitative storage tier, the pre-fetching means sets a third time period and re-selects the at least one data file from the plurality of data files associated with each pre-fetching user application of the quantitative storage tier according to the storage capacity of the dynamic storage unit of the quantitative storage tier assigned to each pre-fetching user application of the quantitative storage tier each time the third time period expires, copying the re-selected at least one data file from the second memory to the dynamic storage unit of the quantitative storage tier assigned to each pre-fetching user application of the quantitative storage tier.
Wherein the pre-fetching means selects at least one data file from the plurality of data files associated with each pre-fetching user application of the quantitative storage tier based on the storage capacity of the dynamic storage unit of the quantitative storage tier allocated for each pre-fetching user application of the quantitative storage tier comprises:
step 1, grouping a plurality of data files associated with each pre-fetching user application of the quantitative storage tier to generate N file groups according to the storage capacity of a dynamic storage unit of the quantitative storage tier allocated to each pre-fetching user application of the quantitative storage tier, wherein N is a natural number greater than 1 and each file group comprises at least one data file;
step 2, setting different sequence numbers for each file group in the N file groups, wherein the sequence numbers are from 1 to N;
step 3, taking the file group with the serial number i equal to 1 as the current file group, wherein N is more than or equal to i and is more than 0;
step 4, setting a third time period for each dynamic storage unit of the quantitative storage level;
step 5, copying at least one data file included in the current file group from the second memory to a dynamic storage unit of the quantitative storage level allocated to each pre-fetching user application of the quantitative storage level;
step 6, when the third time period expires, judging whether i is true or not, and if yes, ending; if not, taking the file group with the serial number i being i +1 as the current file group, and performing step 5;
wherein the size of each file group is smaller than the storage capacity of the dynamic storage unit of the fixed-amount storage tier.
Wherein the means for setting determines a plurality of pre-fetch user applications of the plurality of non-selected user applications that can be pre-loaded from the second memory into the first memory based on the ordered list comprises:
when the number of the non-selected user applications with the operation probability larger than the pre-fetching threshold value in the ordered list is larger than 0, determining the non-selected user applications with the operation probability larger than the pre-fetching threshold value in the ordered list as the pre-fetching user applications which can be pre-loaded into the first memory from the second memory so as to determine at least one pre-fetching user application;
when the number of non-selected user applications in the ordered list having an operating probability greater than the pre-fetch threshold is equal to 0, determining all non-selected user applications in the ordered list as pre-fetched user applications that can be pre-loaded from the second memory into the first memory to determine at least one pre-fetched user application.
Wherein the setting means setting a storage level for each of the at least one pre-fetch user application according to the ordered list comprises:
setting the storage level of the pre-fetching user application with the operation probability larger than the high probability threshold value in the ordered list as a decrement storage level;
setting the storage level of the pre-fetching user application with the operation probability smaller than or equal to the high probability threshold and larger than the medium probability threshold in the sorted list as an incremental storage level;
setting the storage level of the pre-fetching user application with the running probability less than or equal to the middle probability threshold and greater than the low probability threshold in the sorted list as a quantitative storage level;
and setting the storage level of the pre-fetching user application with the operation probability less than or equal to the low probability threshold value in the sorted list as a compression storage level.
Wherein the at least one dynamic storage unit allocated for the pre-fetching user application of each reduced storage tier is capable of holding all data files of the pre-fetching user application of the corresponding reduced storage tier, and the at least one dynamic storage unit allocated for the pre-fetching user application of each compressed storage tier is capable of holding all compressed data files of the pre-fetching user application of the corresponding compressed storage tier.
Wherein the first time period is 30 seconds, the second time period is 60 seconds, and wherein the third time period is 90 seconds.
Wherein the at least one base data file of each pre-fetching user application is at least one data file of the plurality of data files associated with each pre-fetching user application of the incremental storage tier that has a launch order above a priority threshold.
Wherein the first predetermined number is 5 and the second predetermined number is 8.
Drawings
A more complete understanding of exemplary embodiments of the present invention may be had by reference to the following drawings, in which:
FIG. 1 is a flowchart of a method for prefetching a file in a mobile Internet based on a running heat according to an embodiment of the present invention;
FIG. 2 is a logical representation of an ordered list according to an embodiment of the present invention;
FIG. 3 is a logic diagram illustrating a reduced amount store according to an embodiment of the present invention;
FIG. 4 is a logic diagram of incremental storage according to an embodiment of the present invention;
FIG. 5 is a logic diagram of a quantitative store according to an embodiment of the present invention;
FIG. 6 is a logic diagram of compressed storage according to an embodiment of the present invention; and
fig. 7 is a schematic structural diagram of a system for performing file prefetching in a mobile internet based on operation heat according to an embodiment of the present invention.
Detailed Description
FIG. 1 is a flow diagram of a method 100 for file prefetching according to a running application according to an embodiment of the present invention. As shown in fig. 1, method 100 begins at step 101.
In step 101, when it is detected that a user of a target mobile terminal in a mobile internet selects a selected user application from a plurality of user applications to perform foreground operation, determining the number of applications of the user application installed in the target mobile terminal, acquiring the current position of the target mobile terminal, and determining a target area for performing operation heat statistics, wherein the current position is determined as the center of a circle of the target area and the radius of the target area is determined based on the number of applications.
The mobile internet includes a plurality of mobile terminals, base stations, content servers, and the like. The method and the device determine the mobile terminal which initiates the file prefetching request or the mobile terminal which requests to perform file prefetching as the target mobile terminal. Furthermore, the number of user applications included or installed in each mobile terminal (including the target mobile terminal) is greater than 5, e.g. 6, 10, 20 user applications. Concepts related to user applications include system applications, and system applications are typically system level applications determined by the operating system of the mobile terminal.
The user selects the selected user application from a plurality of user applications by performing touch operation on the touch screen of the target mobile terminal so as to prompt the selected user application to perform foreground running. For example, the user selects/clicks a selected user application, e.g., the royal glory, from a plurality of user applications by performing a touch operation on a touch screen of the target mobile terminal to prompt the royal glory to run in the foreground. Wherein detecting, by an operating system of a target mobile terminal, whether a user of the target mobile terminal selects a selected user application from a plurality of user applications. For example, it is detected by the IOS or Andriod whether the user of the target mobile terminal selects a selected user application from a plurality of user applications, e.g. royal glory.
The current position of the target mobile terminal is obtained by utilizing a positioning component of the target mobile terminal, such as a GPS component or a Beidou component. The number of applications of the user application installed in the target mobile terminal is determined by an operating system of the target mobile terminal, for example, IOS or Andriod, and the number of applications is, for example, 10, 20, 30, and the like. The number of applications of the user application installed in the target mobile terminal is recorded in a registry (or an application statistics table) of an operating system (e.g., IOS or Andriod) of the target mobile terminal, for example, the number of applications is 10, 20, 30, and the like.
The running heat statistics refers to the quantity statistics of the user applications which are run in the foreground in each mobile terminal except the target mobile terminal in the target area. For example, in addition to the target mobile terminal, 100 mobile terminals are included within the target area (i.e., a total of 101 mobile terminals). The running heat statistics refers to counting the number of user applications which run in the foreground in each of all 100 mobile terminals except the target mobile terminal in the target area.
The target area is a circular area having a current position of the target mobile terminal as a center, and determining the radius of the target area based on the number of applications includes: and taking the product of the application number and the area adjusting coefficient as the radius of the target area. For example, the radius R is the number of applications AN × the area adjustment coefficient α, where the radius R is expressed in meters, the number of applications AN ≧ 6, and the area adjustment coefficient α is 1, 5, 10, 20, 50, or 100. When the number of applications is 20 and the adjustment factor α is 100, the radius R is 20 × 100, 2000 meters, that is, 2 kilometers. The target area is a circular area having a current position of the target mobile terminal as a center and a radius of 2000 meters.
In step 102, operation heat statistical information associated with all mobile terminals except a target mobile terminal in a target area is obtained, and operation heat of each non-selected user application except a selected user application in a plurality of user applications in the target mobile terminal in the target area is determined based on the operation statistical information. And the user selects the selected user application by performing touch operation on the touch screen of the target mobile terminal so as to prompt the selected user application to perform foreground running.
Before obtaining the running heat statistical information associated with all mobile terminals except the target mobile terminal in the target area, the method further comprises the following steps: the target mobile terminal transmits a statistics request message including a center of a circle (a current position of the target mobile terminal) and a radius (2000 m) of the target area to the statistics server. The statistics server determines all mobile terminals included in the target area except for the target mobile terminal, for example, 100 mobile terminals included in the target area except for the target mobile terminal (i.e., a total of 101 mobile terminals), based on the center and radius of the target area. A status query message is transmitted to each of all mobile terminals (100 mobile terminals) except for the target mobile terminal. In response to receiving the status query message, each mobile terminal determines whether there is a user application that is running in the foreground. The foreground running means that the user application is directly run by a display screen, a display area or a display window of the target mobile terminal, and the display screen, the display area or the display window is an interface capable of being performed with a user of the target mobile terminal.
And the mobile terminal with the user application running in the foreground generates a running data item and sends the running data item to the statistical server. The running data item is a binary set < identifier of the mobile terminal, identifier of the foreground running user application >, < identifier of the mobile terminal, name of the foreground running user application > and the like. Examples of the identifier include an IMSI International Mobile Subscriber identity (International Mobile Subscriber identity Number), an IMEI International Mobile Equipment identity (International Mobile Equipment identity Number), an ESN Electronic Serial Number (Electronic Serial Number), an MEID Mobile Equipment identifier (Mobile Equipment ID), and the like. The identifier of the foreground-running user application may be a name of the foreground-running user application. The operation data items are, for example, < 355412076769210 (IMEI), paupo >, < 355412076869610, glory of prince >, < 355412056862610, glory of prince >. The mobile terminal, for which there is no user application running in the foreground, does not generate a running data item.
The statistical server determines running heat statistical information according to the received running data items, specifically, the statistical server creates a data table and uses the data table to count the number of user applications performing foreground applications in the target area, as shown in data table 1.
Data table 1
Name of user application Statistical number of foreground runs
Rong Yao of the king 18
Shake tone short video 16
Youku video 15
Mobile phone treasure 13
Beauty group take-out 10
Hundred degree takeaway 9
Polar flying vehicle 7
Three kingdoms are extremely without two 6
...... ......
Da English 1
Wherein the statistical server determining the operation heat statistical information according to the received plurality of operation data items comprises: the statistical server performs heat statistics on the received multiple running data items according to the identifier of the user application running in the foreground to generate running heat statistical information, namely a data table 1. The running heat statistic information is a data table, and the data table is used for indicating the respective statistic number of each foreground running user application in the target area, namely the total number of the user applications in the target area selected to be subjected to foreground application.
And the statistical server sends the running heat statistical information to the target mobile terminal. Determining, by the application (target mobile terminal), a running heat of each non-selected user application, except for the selected user application, in the plurality of user applications in the target mobile terminal based on the running statistical information includes:
and inquiring the running statistical information according to the identifier of each non-selected user application except the selected user application in the plurality of user applications in the target mobile terminal to determine the statistical quantity associated with each non-selected user application, and taking the statistical quantity associated with each non-selected user application as the running heat of each non-selected user application in the target area range. For example, the selected user application in the target mobile terminal is WeChat, and all non-selected user applications are Royal of the King, tremble short video, Youko video, Taobao, American takeaway, hundred takeaway, mastership, Sanguo, and Idle English. Identifiers (e.g., names) of each non-selected user application (royal glory, trembling short video, youku video, mobile panning, beauty group takeaway, hectic takeaway, mastership flyer, tribune duality,.., lazy english) of the plurality of user applications other than the selected user application within the target mobile terminal are queried in the running statistics to determine a statistical quantity associated with each non-selected user application as royal glory (18), trembling short video (16), youku video (15), mobile panning (13), beauty group takeaway (10), hectic takeaway (9), mastership flyer (7), tribune duality (6),..., lazy english (0). Since no lazy english language is running for the hotness statistics or data table (e.g., data table 1), this is because no user application is running lazy english in the foreground in the target area. For this reason, the statistical number of lazy english is 0.
It can thus be determined that taking the statistical number associated with each non-selected user application as the running heat of each non-selected user application within the target area is: the running heat of the royal is 18 in the target area range, the running heat of the tremble short video is 16 in the target area range, the running heat of the Youkou video is 15 in the target area range, the running heat of the mobile phone is 13 in the target area range, the running heat of the American group takeout is 10 in the target area range, the running heat of the hundred-degree takeout is 9 in the target area range, the running heat of the mastership coaster is 7 in the target area range, the running heat of the three kingdoms is extremely rarely in the target area range is 6, the running heat of the idle English in the target area range is 0 (or the idle English is not counted).
Alternatively, before obtaining the running heat statistical information associated with all mobile terminals except the target mobile terminal in the target area, the method further comprises the following steps: the target mobile terminal sends an acquisition request aiming at the running heat statistical information to a content server, and the content server sends the running heat statistical information to the target mobile terminal in response to receiving the acquisition request; the operation heat statistical information is a data table used for indicating the respective statistical quantity of each user application installed in all the mobile terminals except the target mobile terminal in the target area range.
Wherein determining a running heat of each non-selected user application of the plurality of user applications other than the selected user application in the target area based on the running statistics comprises: and inquiring the running statistical information according to the identifier of each non-selected user application except the selected user application in the plurality of user applications in the target mobile terminal to determine the statistical quantity associated with each non-selected user application, and taking the statistical quantity associated with each non-selected user application as the running heat of each non-selected user application in the target area range.
At step 103, determining an operation probability of each non-selected user application in the target mobile terminal at the current location based on the operation heat of each non-selected user application and the total number of the mobile terminal(s) other than the target mobile terminal in the target area, and sorting the operation probabilities of the plurality of non-selected user applications in a descending order based on the operation probability of each non-selected user application at the current location to generate an ordered list.
Wherein determining an operation probability of each non-selected user application in the target mobile terminal at the current location based on the operation heat of each non-selected user application and the total number of mobile terminals except the target mobile terminal in the target area range comprises: and determining the ratio of the running heat of each non-selected user application to the total number of the mobile terminals except the target mobile terminal in the target area range as the running probability of each non-selected user application in the target mobile terminal at the current position. And determining the running probability of each non-selected user application in the target mobile terminal at the current position according to the ratio obtained by dividing the running heat of each non-selected user application by the total number of the mobile terminals except the target mobile terminal in the target area range.
For example, the running heat of the royal glory in the target area range is 18, the running heat of the judder short video in the target area range is 16, the running heat of the kukou video in the target area range is 15, the running heat of the mobile phone panning in the target area range is 13, the running heat of the beauty group takeout in the target area range is 10, the running heat of the Baidu takeout in the target area range is 9, the running heat of the pole flyer in the target area range is 7, the running heat of the three kingdoms extremely none in the target area range is 6, the running heat of the lazy english in the target area range is 0, the total number of mobile terminals other than the target mobile terminal is 100, then the running probability of the royal glory is 18/100-18%, the running probability of the judder short video is 16/100-16%, The operation probability of the Youkou video is 15/100-15%, the operation probability of the mobile phone Taobao is 13/100-13%, the operation probability of the American group takeaway is 10/100-10%, the operation probability of the Baidu takeaway is 9/100-9%, the operation probability of the masterwork flying vehicle is 7/100-7%, the operation probability of the three kingdoms extremely-innocent is 6/100-6%, and the operation probability of the lazy English is 0/100-0%.
FIG. 2 is a logic diagram of an ordered list 200 according to an embodiment of the invention. When it is detected that a user of a target mobile terminal 203 in the mobile internet selects a selected user application (WeChat) from a plurality of user applications (WeChat, Rong of King, tremble short video, Youkou video, Tao Bao, American takeaway, Baidu takeaway, masterwork runaway, Sanguo duan, Excellent, and Idle English) to perform foreground operation, the number (20) of the user applications installed in the target mobile terminal is determined, the current position 204 of the target mobile terminal is obtained, a target area 202 for performing operation heat statistics is determined, wherein the current position 204 is determined as the center of a circle of the target area, and the radius of the target area is determined based on the number (20) of the applications.
The running heat statistics refers to the quantity statistics of user applications which are run in the foreground in each mobile terminal except the target mobile terminal in the target area. For example, in addition to target mobile terminal 203, 100 mobile terminals (mobile terminals 210-1, 210-2, 210-3, 210-4, 210-5, 210-6, 210-7, 210-8, 210-9,... 122-. Running heat statistics refers to counting the number of user applications running in foreground in each of all 100 mobile terminals (mobile terminals 210-1, 210-2, 210-3, 210-4, 210-5, 210-6, 210-7, 210-8, 210-9,.., 210- & 100) except for target mobile terminal 203 in the target area.
The target area is a circular area 202 centered around a current location 204 of the target mobile terminal, and determining a radius 205 of the target area based on the number of applications comprises: the product of the number of applications 20 and the area adjustment coefficient 100 is taken as the radius of the target area. For example, the radius R is 20 × 100 ═ 2000 m, that is, 2 km. The target area is a circular area 202 centered at the current location 204 of the target mobile terminal and having a radius 205 of 2000 meters.
Before obtaining the running heat statistical information associated with all mobile terminals except the target mobile terminal 203 in the target area 202, the method further comprises the following steps: the target mobile terminal transmits a statistics request message including a center 204 of the target area (current position of the target mobile terminal) and a radius (2000 m) to the statistics server. The statistics server determines all mobile terminals included in the target area except for the target mobile terminal, for example, 100 mobile terminals included in the target area except for the target mobile terminal (i.e., a total of 101 mobile terminals), based on the center and radius of the target area. A status query message is transmitted to each of all mobile terminals (100 mobile terminals) except for the target mobile terminal. In response to receiving the status query message, each mobile terminal determines whether there is a user application that is running in the foreground. The foreground operation refers to that the user application is directly operated by a display screen, a display area or a display window of the target mobile terminal, and the display screen, the display area or the display window can be an interface with a user of the target mobile terminal.
For example, the selected user application in the target mobile terminal is WeChat, and all non-selected user applications are Royal of the King, tremble short video, Youko video, Taobao, American takeaway, hundred takeaway, mastership, Sanguo, and Idle English. Identifiers (e.g., names) of each non-selected user application (royal glory, trembling short video, youku video, mobile panning, beauty group takeaway, hectic takeaway, mastership flyer, tribune duality,.., lazy english) of the plurality of user applications other than the selected user application within the target mobile terminal are queried in the running statistics to determine a statistical quantity associated with each non-selected user application as royal glory (18), trembling short video (16), youku video (15), mobile panning (13), beauty group takeaway (10), hectic takeaway (9), mastership flyer (7), tribune duality (6),..., lazy english (0). Since no lazy english language is running for the hotness statistics or data table (e.g., data table 1), this is because no user application is running lazy english in the foreground in the target area. For this reason, the statistical number of lazy english is 0.
It can thus be determined that taking the statistical number associated with each non-selected user application as the running heat of each non-selected user application within the target area is: the running heat of the royal is 18 in the target area range, the running heat of the tremble short video is 16 in the target area range, the running heat of the Youkou video is 15 in the target area range, the running heat of the mobile phone is 13 in the target area range, the running heat of the American group takeout is 10 in the target area range, the running heat of the hundred-degree takeout is 9 in the target area range, the running heat of the mastership coaster is 7 in the target area range, the running heat of the three kingdoms is extremely rarely in the target area range is 6, the running heat of the idle English in the target area range is 0 (or the idle English is not counted).
For example, the running heat of the royal glory in the target area range is 18, the running heat of the judder short video in the target area range is 16, the running heat of the kukou video in the target area range is 15, the running heat of the mobile phone panning in the target area range is 13, the running heat of the beauty group takeout in the target area range is 10, the running heat of the Baidu takeout in the target area range is 9, the running heat of the pole flyer in the target area range is 7, the running heat of the three kingdoms extremely none in the target area range is 6, the running heat of the lazy english in the target area range is 0, the total number of mobile terminals other than the target mobile terminal is 100, then the running probability of the royal glory is 18/100-18%, the running probability of the judder short video is 16/100-16%, The operation probability of the Youkou video is 15/100-15%, the operation probability of the mobile phone Taobao is 13/100-13%, the operation probability of the American group takeaway is 10/100-10%, the operation probability of the Baidu takeaway is 9/100-9%, the operation probability of the masterwork flying vehicle is 7/100-7%, the operation probability of the three kingdoms extremely-innocent is 6/100-6%, and the operation probability of the lazy English is 0/100-0%.
At step 104, determining at least one of the plurality of user applications that can be preloaded from the second memory into the first memory according to the ordered list, and setting a storage level for each of the at least one pre-fetching user application according to the ordered list, wherein the storage levels include: a decrement storage stage, an increment storage stage, a quantitative storage stage, and a compressed storage stage.
Wherein determining a plurality of pre-fetch user applications of the plurality of non-selected user applications that can be pre-loaded from a second memory into a first memory according to the ordered list comprises: when the number of the non-selected user applications in the ordered list having the operation probability greater than the pre-fetching threshold (e.g., 5%, 10%) is greater than 0 (e.g., 10), determining the non-selected user applications in the ordered list having the operation probability greater than the pre-fetching threshold as the pre-fetched user applications that can be pre-loaded from the second memory into the first memory to determine at least one pre-fetched user application; when the number of non-selected user applications in the ordered list having a probability of running greater than the pre-fetch threshold (e.g., 5%, 10%) is equal to 0, all non-selected user applications (e.g., 15) in the ordered list are determined as pre-fetched user applications that can be pre-loaded from the second memory into the first memory to determine at least one pre-fetched user application.
Wherein setting a storage level for each of at least one pre-fetch user application according to the ordered list comprises:
setting a storage level of the pre-fetched user applications in the ordered list having an operational probability greater than a high probability threshold (e.g., 15%) to a reduced storage level;
setting a storage level of the pre-fetch user application in the sorted list having an operating probability less than or equal to a high probability threshold (e.g., 15%) and greater than a medium probability threshold (e.g., 12%) as an incremental storage level;
setting a storage level of the pre-fetched user applications in the sorted list having a probability of operation less than or equal to a medium probability threshold (e.g., 12%) and greater than a low probability threshold (e.g., 8%) as a quantitative storage level;
setting a storage level of the pre-fetched user applications in the sorted list having an operating probability less than or equal to a low probability threshold (e.g., 8%) as a compressed storage level. Wherein the pre-fetching of user applications has a running probability of more than 5%.
As shown in fig. 2, according to the above-described manner, it can be determined that the operation probability of the royal glowing and the operation probability of the tremble short video are 18% and 16%, and therefore the storage level of the royal glowing and the tremble short video is the reduced storage level. The running probability of the Youkou video is 15% and the running probability of the mobile phone panning is 13%, so the storage level of the Youkou video and the mobile phone panning is an incremental storage level. The operation probability of the American college takeout is 10% and the operation probability of the Baidu takeout is 9%, so that the storage level of the American college takeout and the Baidu takeout is a quantitative storage level, the operation probability of the masterpiece flying vehicle is 7% and the operation probability of the masterpiece flying vehicle in three countries is 6%, and therefore the storage level of the masterpiece flying vehicle in three countries is a compression storage level.
Since the number 8 of the non-selected user applications having the operation probability greater than 5% of the pre-fetching threshold in the sorted list is greater than 0, the non-selected user applications having the operation probability greater than the pre-fetching threshold in the sorted list (the operation probability of royal glory is 18%, the operation probability of buffalo short video is 16%, the operation probability of kukoku video is 15%, the operation probability of mobile phone panning is 13%, the operation probability of beauty group takeaway is 10%, the operation probability of Baidu takeaway is 9%, the operation probability of masterwork flying vehicle is 7%, and the operation probability of tribasic masterwork little-no is 6%) are determined as the pre-fetched user applications that can be pre-loaded from the second memory into the first memory to determine at least one pre-fetched user application. The operating probability of the lazy english language is 0%, and therefore does not belong to the pre-fetching user application.
At step 105, at least one dynamic memory location is allocated for each pre-fetch user application of the reduced storage tier, at least one dynamic memory location is allocated for each pre-fetch user application of the compressed storage tier, one dynamic memory location is allocated for each pre-fetch user application of the increased storage tier and one dynamic memory location is allocated for each pre-fetch user application of the quantitative storage tier. Wherein the storage capacity of each of the at least one dynamic storage unit allocated for each of the pre-fetched user applications of the reduced storage tier may be the same or different, and the storage capacity of each of the at least one dynamic storage unit allocated for each of the pre-fetched user applications of the compressed storage tier may be the same or different.
The total storage capacity of the at least one dynamic storage unit allocated for the pre-fetching user application of each reduced storage tier can accommodate all data files of the pre-fetching user application of the corresponding reduced storage tier. The total storage capacity of the at least one dynamic storage unit allocated for the pre-fetching user application of each compressed storage tier is capable of accommodating all compressed data files of the pre-fetching user application of the corresponding compressed storage tier. One dynamic memory unit is allocated for each pre-fetching user application of the incremental storage tier that can accommodate all data files of the pre-fetching user application of the corresponding incremental storage tier. One dynamic memory unit is allocated to each pre-fetching user application of a quantitative memory rank to be able to accommodate all data files of the pre-fetching user application of the corresponding quantitative memory rank.
In step 106, a storage level is set for the dynamic storage unit allocated for each pre-fetch user application according to the storage level of each pre-fetch user application. Setting each dynamic memory unit of the at least one dynamic memory unit allocated for each pre-fetch user application of the reduced memory rank as a reduced memory rank, setting each dynamic memory unit of the at least one dynamic memory unit allocated for each pre-fetch user application of the compressed memory rank as a compressed memory rank, setting one dynamic memory unit allocated for each pre-fetch user application of the incremental memory rank as an incremental memory rank and setting one dynamic memory unit allocated for each pre-fetch user application of the quantitative memory rank as a quantitative memory rank.
In step 107, file prefetching the data files associated with each prefetched user application from the second memory according to the storage level of the prefetched user application, comprising:
preferably, the (all) plurality of data files associated with each pre-fetching user application of a reduced storage tier are copied from the second memory to the dynamic storage unit of at least one reduced storage tier allocated for each pre-fetching user application of a reduced storage tier, and a first time period is set and timed for the dynamic storage unit of each reduced storage tier upon completion of the copying, and a first predetermined number of data files are deleted in the dynamic storage unit of each reduced storage tier each time the first time period expires until none of the dynamic storage units of each reduced storage tier has a data file.
FIG. 3 is a logic diagram of an embodiment of a decrement storage 300. The operation probability of the royal glory is 18% and the operation probability of the tremble short video is 16%, so that the storage level of the royal glory and tremble short video is a decrement storage level.
All data files that the joker glows are copied from the second memory to the dynamic memory units 301, 302 and 303 of the at least one reduced memory level allocated for the joker glowing. Each of the dynamic memory units 301, 302, and 303 has a memory capacity of 500M, and an application name and a memory level are labeled in each dynamic memory unit. A first time period (e.g., 30 seconds, 50 seconds, 60 seconds) is set for the dynamic memory units 301, 302, and 303 of each reduced memory rank after the completion of the copy, and a first predetermined number (e.g., 3, 5) of data files are deleted in the dynamic memory units 301, 302, and 303 of each reduced memory rank every time the first time period expires (i.e., every time 30 seconds, 50 seconds, 60 seconds elapses).
All data files of the trembling short video are copied from the second memory to the dynamic memory units 311 and 312 of at least one decrement memory level allocated for the trembling short video. Each of the dynamic memory units 311 and 312 has a memory capacity of 60M, and an application name and a memory level are labeled in each dynamic memory unit. And sets a first time period (e.g., 30 seconds, 50 seconds, 60 seconds) for the dynamic memory units 311 and 312 of each reduced memory rank after the copying is completed, and deletes a first predetermined number (e.g., 3, 5) of data files in the dynamic memory units of each reduced memory rank every time the first time period expires (i.e., every time 30 seconds, 50 seconds, 60 seconds elapses). For example, after the data files of the royal glory and tremble short videos are all copied to the corresponding dynamic storage units 301, 302, and 303, and 311 and 312, a timer is started, and 3 data files are deleted from each of the dynamic storage units 301, 302, 303, 311, and 312 every time 30 seconds pass. When none of the dynamic storage units 301, 302, and 303, and 311 and 312 have a data file, deletion of the file is stopped.
Preferably, at least one base data file is selected among the (all) plurality of data files associated with each pre-fetching user application of the incremental storage tier, the at least one base data file of each pre-fetching user application of the incremental storage tier is copied from the second memory to the dynamic storage unit of the incremental storage tier allocated for each pre-fetching user application of the incremental storage tier, and a second time period is set and timed for the dynamic storage unit of the incremental storage tier upon completion of the copying, wherein a second predetermined number of data files, other than already copied files, of the plurality of data files associated with each pre-fetching user application of the incremental storage tier are copied from the second memory to the dynamic storage unit of the incremental storage tier allocated for each pre-fetching user application of the incremental storage tier each time period expires until all data files associated with each pre-fetching user application are copied to the allocated corresponding incremental storage tier Dynamic memory cells of the storage level. Wherein the at least one base data file of each pre-fetching user application is at least one of the plurality of data files associated with each pre-fetching user application of the incremental storage tier having a firing order above a priority threshold (e.g., a priority threshold of 3, i.e., the firing order for each of the plurality of data files is set to a level of 1, 2, 3, 4, or 5, with the level of the firing order for the levels 1, 2, 3, 4, or 5 increasing in order).
Wherein one dynamic memory unit of the incremental memory level allocated for each pre-fetching user application is capable of accommodating/storing all data file(s) of the corresponding/attributed pre-fetching user application.
FIG. 4 is a logic diagram of an incremental store 400 according to an embodiment of the present invention. The running probability of the Youkou video is 15% and the running probability of the mobile phone panning is 13%, so that the storage level of the Youkou video and the mobile phone panning is an incremental storage level.
The 10 elementary data files are selected from the (all) plurality of data files associated with the youth video, and these 10 elementary files are copied from the second memory to the dynamic storage unit 401 of the incremental storage tier allocated for the youth video. The storage capacity of the dynamic storage units 401 is 200M each, and an application name and a storage level are noted in each dynamic storage unit. A second time period (e.g., 30 seconds, 50 seconds, 60 seconds) is set for the dynamic storage unit 401 of the incremental storage tier after the copying is completed, and a second predetermined number (e.g., 3, 5, 8) of data files (other than the already copied files) associated with the use of the kuku video are copied from the second memory to the dynamic storage unit 401 every time the second time period expires (i.e., every time 30 seconds, 50 seconds, 60 seconds have elapsed).
The 10 base data files are selected from the (all) plurality of data files associated with the mobile phone panning, and these 10 base files are copied from the second memory to the dynamic storage unit 402 of the incremental storage level allocated for the mobile phone panning. The dynamic memory cells 402 each have a memory capacity of 300M, and an application name and a memory level are labeled in each dynamic memory cell. A second time period (e.g., 30 seconds, 50 seconds, 60 seconds) is set for the dynamic storage unit 402 of the incremental storage stage after the copying is completed, and a second predetermined number (e.g., 3, 5, 8) of data files (other than the already copied files) associated with the mobile phone panning is copied from the second memory to the dynamic storage unit 402 every time the second time period expires (i.e., every time 30 seconds, 50 seconds, 60 seconds elapses).
For example, after all 10 basic data files of the youku video and the mobile phone panning are copied to the corresponding dynamic storage units 401 and 402, timing is started, and every time 60 seconds pass, 8 data files (initially 100 data files) of 90 data files related to the youku video are copied from the second memory to the dynamic storage unit 401; and copying 8 data files (initially 160 data files) of the 150 data files associated with the mobile phone panning function from the second memory to the dynamic storage unit 401 every time 60 seconds elapses. When all 100 data files of the Youkou video are copied into the Olympic dynamic storage unit 401, the copying operation is not performed, and when all 160 data files of the mobile phone Taobao are copied into the Olympic dynamic storage unit 402, the copying operation is not performed
Preferably, at least one data file is selected from the (all) plurality of data files associated with each pre-fetching user application of the quantitative storage tier (the total storage capacity required for the selected at least one data file being smaller than the storage capacity of the dynamic storage units of the quantitative storage tier) in dependence on the storage capacity of the dynamic storage units of the quantitative storage tier allocated for each pre-fetching user application of the quantitative storage tier, and the selected at least one data file is copied from the second memory to the dynamic storage units of the quantitative storage tier allocated for each pre-fetching user application of the quantitative storage tier.
FIG. 5 is a logic diagram of a quantitative storage 500 according to an embodiment of the present invention. Wherein the operation probability of the American group takeout is 10% and the operation probability of the Baidu takeout is 9%, so that the storage level of the American group takeout and the Baidu takeout is a quantitative storage level. At least one data file is selected from (all) the plurality of data files associated with the masson takeaway (the selected at least one data file requires a storage capacity of less than 20M) according to the storage capacity 20M of the dynamic storage unit of the quantitative storage tier allocated for the masson takeaway, and the selected at least one data file is copied from the second storage to the dynamic storage unit 501. At least one data file is selected from the (all) plurality of data files associated with the massa takeaway (the selected at least one data file requiring less than 10M of storage capacity) according to the storage capacity 10M of the dynamic storage unit of the quantitative storage tier allocated for the hundred degrees takeaway, and the selected at least one data file is copied from the second storage to the dynamic storage unit 511.
Alternatively, wherein selecting at least one data file from the plurality of data files associated with each pre-fetching user application of the quantitative storage tier based on the storage capacity of the dynamic storage unit of the quantitative storage tier allocated for each pre-fetching user application of the quantitative storage tier comprises:
the plurality of data files associated with each pre-fetching user application of the quantitative storage tier are grouped according to the storage capacity of the dynamic storage unit (501 or 511) of the quantitative storage tier allocated for each pre-fetching user application of the quantitative storage tier (US group takeout or Baidu takeout) to generate a plurality of file groups, wherein each file group includes at least one data file. Wherein the total storage capacity required for the at least one data file of each file group is smaller than the storage capacity of the dynamic storage unit of the corresponding quantitative storage tier. That is, the total storage capacity of all data files in each file group for the U.S. group takeout is less than 20M, and the total storage capacity of all data files in each group for the hundred degree takeout is less than 10M. Different priorities are set for a plurality of file groups of each pre-fetching user application of a quantitative storage level to form a priority queue. For example, the cohesive takeout includes 5 file groups, and the priorities of the 5 file groups are 1, 2, 3, 4, and 5 (where the smaller the number, the higher the priority). The file group at the head of the queue (file group with priority 1) in each priority queue is taken as the current file group and at least one data file in the current file group is copied from the second memory to a dynamic storage unit (e.g., dynamic storage unit 501) of the quantitative storage level allocated for each pre-fetching user application of the quantitative storage level. A third time period (e.g., 30 seconds, 60 seconds, or 90 seconds) is set for each dynamic memory cell (501 or 511) of the quantitative memory rank after the copying is complete. Every time the third time period expires (i.e., every time 30 seconds, 60 seconds pass), the next file group in the priority queue (e.g., file group of priority 2) is used as the current file group in order of decreasing priority until there is no next file group. That is, the file groups of priorities 1, 2, 3, 4, and 5 are copied to the dynamic storage unit 501 or 511. It can be seen that when the time is long enough (sufficiently longer than the plurality of third time periods), for example, the third time period is 90 seconds, and the 450 th second is reached (i.e., when 5 third time periods are reached), all of the 5 file groups are used as the current preamble group. In this case, the content in the dynamic storage unit (501 or 511) is not being updated, i.e., at least one data file of the file group having the priority of 5 is retained in the dynamic storage unit 501.
At least one data file in the current file group (possibly a file group with a priority of 1, 2, 3, 4 or 5) is used as the at least one data file selected from the plurality of data files associated with each pre-fetching user application of a quantitative storage tier. Wherein the size of each file group (i.e., the size of all data files in the file group) is smaller than the storage space of the dynamic storage unit of the corresponding quantitative storage tier.
Alternatively, wherein selecting at least one data file from the plurality of data files associated with each pre-fetching user application of the quantitative storage tier based on the storage capacity of the dynamic storage unit of the quantitative storage tier allocated for each pre-fetching user application of the quantitative storage tier comprises:
the plurality of data files associated with each pre-fetching user application of the quantitative storage tier are grouped according to the storage capacity of the dynamic storage unit (501 or 511) of the quantitative storage tier allocated for each pre-fetching user application of the quantitative storage tier (US-BUG takeaway or Bai-KU takeaway) to generate a plurality of file groups, wherein each file group includes at least one data file wherein the total storage capacity required for the at least one data file of each file group is less than the storage capacity of the dynamic storage unit of the corresponding quantitative storage tier. That is, the total storage capacity of all data files in each file group for the U.S. takeaway is less than 20M, and the total storage capacity of all data files in each group for the Baidu takeaway is less than 10M. For example, the American group takeaway includes 5 file groups, and the 5 file groups have sequence numbers of 1, 2, 3, 4, and 5. Randomly selecting one file group (the file group with the sequence number of 5) from the plurality of file groups as a current file group, copying at least one data file in the current file group from the second memory to a dynamic storage unit (for example, the dynamic storage unit 501) of a quantitative storage class allocated for each pre-fetching user application of the quantitative storage class, and setting a third time period (for example, 30 seconds, 60 seconds or 90 seconds) for each dynamic storage unit (501 or 511) of the quantitative storage class after the copying is completed. Every time the third time period expires (i.e., every time 30 seconds, 60 seconds elapses), a next file group (e.g., file group of sequence number 2) is randomly selected from the plurality of file groups as the current file group until there is no next file group. The file groups with sequence numbers 1, 2, 3, 4 and 5 are copied to the dynamic storage unit 501 or 511. It can be seen that when the time is long enough (sufficiently longer than the plurality of third time periods), for example, the third time period is 90 seconds, and the 450 th second is reached (i.e., when 5 third time periods are reached), all of the 5 file groups are used as current preamble groups. In this case, the content in the dynamic storage unit (501 or 511) is not being updated, i.e. at least one data file of the last file group (e.g. file group 1) selected randomly is kept in the dynamic storage unit 501.
At least one data file in the current set of files (possibly a set of files with sequence number 1, 2, 3, 4 or 5) is taken as at least one data file selected from the plurality of data files associated with each pre-fetching user application of the quantitative storage tier. Wherein the size of each file group (i.e., the size of all data files in the file group) is smaller than the storage space of the dynamic storage unit of the corresponding quantitative storage tier.
Alternatively, after copying the selected at least one data file from the second memory to the dynamic storage unit (501 or 511) of the quantitative storage tier assigned for each pre-fetched user application (mezzo takeaway or bout takeaway) of the quantitative storage tier, setting a third time period (e.g., 30 seconds, 60 seconds, or 90 seconds) and starting timing, whenever the third time period (e.g., 30 seconds, 60 seconds, or 90 seconds) expires, randomly/sequentially selecting at least one data file from a plurality of data files associated with each pre-fetched user application of the quantitative storage tier based on the storage capacity (20M or 10M) of the dynamic storage unit (501 or 511) of the quantitative storage tier assigned for each pre-fetched user application of the quantitative storage tier (mezzo takeaway or bout takeaway), copying the newly selected at least one data file from the second memory to each pre-fetched user application of the quantitative storage tier (mezzo takeaway or bout takeaway) Dynamic memory cells (20M or 10M) of the assigned fixed-amount storage rank. Wherein the data file of the at least one data file reselected by the random selection may be the same as the previously randomly selected data file. The data file of the at least one data file reselected by the sequential selection may not be identical to any data file previously selected in the sequential selection.
Alternatively, wherein selecting at least one data file from the plurality of data files associated with each pre-fetching user application of the quantitative storage tier based on the storage capacity of the dynamic storage unit of the quantitative storage tier allocated for each pre-fetching user application of the quantitative storage tier comprises:
step 1, grouping a plurality of data files associated with each pre-fetching user application of the quantitative storage tier according to a storage capacity (20M or 10M) of a dynamic storage unit (501 or 511) of the quantitative storage tier allocated for each pre-fetching user application of the quantitative storage tier (american or hectic takeaway) to generate N (e.g., N ═ 5) file groups, where N is a natural number greater than 1 and each file group includes at least one data file;
step 2, setting different sequence numbers for each file group in the N file groups, wherein the sequence numbers are from 1 to N (for example, 1, 2, 3, 4 and 5);
step 3, taking the file group with the serial number i equal to 1 as the current file group, wherein N is more than or equal to i and is more than 0;
step 4, setting a third time period (for example, 30 seconds, 60 seconds or 90 seconds) for each dynamic memory unit (501 or 511) of the quantitative memory stage;
step 5, copying at least one data file included in the current file group from the second memory to a dynamic storage unit of the quantitative storage level allocated to each pre-fetching user application of the quantitative storage level, and starting timing;
step 6, when the third time period expires, determining whether i-N (i.e. whether i-5 holds true) holds true, and if yes, ending; if the file group is not established, taking the file group with the serial number i being i +1 as the current file group, and performing step 5;
wherein the size of each file group is smaller than the storage capacity (20M or 10M) of the dynamic storage unit (501 or 511) of the quantitative storage class. That is, the total storage capacity of all data files in each file group for the U.S. takeaway is less than 20M, and the total storage capacity of all data files in each group for the Baidu takeaway is less than 10M. For example, the American group takeaway includes 5 file groups, and the 5 file groups have sequence numbers of 1, 2, 3, 4, and 5.
In step 6, if true, end, meaning: the file groups with sequence numbers 1, 2, 3, 4 and 5 are copied to the dynamic storage unit 501 or 511, and then the copying is stopped. It can be seen that when the time is long enough (sufficiently longer than the plurality of third time periods), for example, the third time period is 90 seconds, and the 450 th second is reached (i.e., when 5 third time periods are reached), all of the 5 file groups are used as current preamble groups. In this case, the content in the dynamic storage unit (501 or 511) is not updated, i.e., at least one data file of the last file group (e.g., file group 5) selected randomly is retained in the dynamic storage unit 501.
Preferably, the (all) plurality of data files associated with each pre-fetching user application of the compression storage tier are compressed to generate a plurality of compressed data files, the plurality of compressed data files of each pre-fetching user application of the compression storage tier are copied from the second memory to the dynamic storage unit of the at least one compression storage tier allocated for each pre-fetching user application of the compression storage tier.
FIG. 6 is a logic diagram of a compressed store 600 according to an embodiment of the present invention. The running probability of the super-quality aerodyne is 7 percent and the running probability of the super-quality aerodyne of three kingdoms is 6 percent, so the storage level of the royal glory and tremble short video is a compressed storage level. The (all) plurality of data files associated with each pre-fetching user application (mastership or tribune) of the compressed storage tier are compressed to generate a plurality of compressed data files, the plurality of compressed data files of each pre-fetching user application (mastership or tribune) of the compressed storage tier are copied from the second memory to the dynamic storage units 601, 602 and 603, and 611 and 612 of the at least one compressed storage tier allocated for each pre-fetching user application of the compressed storage tier.
For example, the (all) plurality of data files associated with the mastership aircraft are compressed to generate a plurality of compressed data files, which are copied from the second memory to the dynamic storage units 601, 602 and 603. For example, the (all) plurality of data files associated with the tribune pair are compressed to generate a plurality of compressed data files, and the tribune plurality of compressed data files are copied from the second memory to the dynamic storage units 611 and 612.
Preferably, before obtaining the operation statistic file associated with the target mobile terminal in the mobile internet, the method further includes:
the method comprises the steps of responding to a file prefetching request initiated by a user and used for prefetching a file aiming at a data file of a target mobile terminal in the mobile Internet and associated with a user application, and obtaining a dynamic configuration file associated with the file prefetching. The mobile internet includes a plurality of mobile terminals, base stations, content servers, and the like. The method and the device determine the mobile terminal which initiates the file prefetching request or the mobile terminal which requests to perform file prefetching as the target mobile terminal. Furthermore, the number of user applications included or installed in each mobile terminal (including the target mobile terminal) is greater than 4, e.g. 5, 10, 20 user applications. Concepts related to user applications include system applications, and system applications are typically system level applications determined by the operating system of the mobile terminal.
The dynamic profile includes a start address and an end address of a storage area in the first memory for providing a plurality of dynamic storage units. The memory area in which the plurality of dynamic memory cells are provided may be a memory area continuous in address or a memory area discontinuous in address in the first memory. The dynamic profile further includes a storage capacity of each of the plurality of dynamic storage units. In general, the storage capacity of each dynamic storage unit may be set according to the size and number of a plurality of data files applied by each user within a mobile terminal (target mobile terminal) so that the storage capacity of each dynamic storage unit can accommodate a corresponding at least one data file.
Creating a dynamic index area in a first memory of the target mobile terminal, and creating a plurality of dynamic storage units for storing data files in the first memory according to the dynamic configuration file, wherein the storage capacity of each of the plurality of dynamic storage units is determined according to the dynamic configuration file. Therefore, the present application creates a plurality of dynamic memory cells for storing data files in the first memory according to the storage capacity of each dynamic memory cell.
And generating a dynamic index table in the dynamic index area, wherein the dynamic index table comprises a plurality of index entries, and each index entry is used for recording the application identification, the starting address, the ending address, the storage capacity and the storage level of a corresponding dynamic storage unit in a plurality of dynamic storage units. The application identifier is an identifier of a user application to which the dynamic storage unit belongs, the starting address is a starting address of a storage space of the dynamic storage unit, the ending address is an ending address of the storage space of the dynamic storage unit, and the storage capacity is the storage capacity and the storage level of the storage space of the dynamic storage unit. For example, the index entry of the dynamic storage unit includes: payment treasure application, 7000H00, 8FFFH, 8Kb, decrement storage level. When any index entry in the dynamic index table relates to updated data, the corresponding index entry in the dynamic index table is updated with the updated data.
Wherein the first memory is a random access memory and the second memory is a read only memory. And updating the corresponding index entry in the dynamic index table according to the storage level set for the dynamic storage unit. Wherein the first time period is 30 seconds, the second time period is 60 seconds, and wherein the third time period is 90 seconds. Wherein the first predetermined number is 5 and the second predetermined number is 8.
It should be understood that, in the present application, when copying one or more data files from the second memory or other locations to the dynamic storage unit of any storage rank, the original data files in the dynamic storage unit of any storage rank are deleted and the new one or more data files are copied to the dynamic storage unit of any storage rank.
Further, when the file prefetching is finished, or according to the user's operation, the dynamic index area or all the dynamic storage units are deleted/reset/cleared.
Fig. 7 is a schematic structural diagram of a system 700 for prefetching a file in a mobile internet based on operation heat according to an embodiment of the present invention. As shown in fig. 7, the system 700 includes: region determining means 701, heat determining means 702, sorting means 703, setting means 704, allocating means 705, prefetching means 706 and initializing means 707.
The region determining device 701, when detecting that a user of a target mobile terminal in the mobile internet selects a selected user application from a plurality of user applications to perform foreground operation, determines the number of applications of the user application installed in the target mobile terminal, acquires the current position of the target mobile terminal, and determines a target region for performing operation heat statistics, wherein the current position is determined as the center of a circle of the target region and the radius of the target region is determined based on the number of applications.
The mobile internet comprises a plurality of mobile terminals, base stations, content servers and the like. The method and the device determine the mobile terminal which initiates the file prefetching request or the mobile terminal which requests to perform file prefetching as the target mobile terminal. Furthermore, the number of user applications included or installed in each mobile terminal (including the target mobile terminal) is greater than 5, e.g. 6, 10, 20 user applications. Concepts related to user applications include system applications, and system applications are typically system level applications determined by the operating system of the mobile terminal.
The user selects the selected user application from a plurality of user applications by performing touch operation on the touch screen of the target mobile terminal so as to prompt the selected user application to perform foreground running. For example, the user selects/clicks a selected user application, for example, a joker, from among a plurality of user applications by performing a touch operation on a touch screen of the target mobile terminal to prompt the joker to perform foreground execution. Wherein detecting, by an operating system of a target mobile terminal, whether a user of the target mobile terminal selects a selected user application from a plurality of user applications. For example, it is detected by the IOS or Andriod whether the user of the target mobile terminal selects a selected user application from a plurality of user applications, e.g. royal glory.
The current position of the target mobile terminal is obtained by utilizing a positioning component of the target mobile terminal, such as a GPS component or a Beidou component. The number of applications of the user application installed in the target mobile terminal is determined by an operating system of the target mobile terminal, for example, IOS or Andriod, and the number of applications is, for example, 10, 20, 30, and the like. The application number of the user application installed in the target mobile terminal is recorded in a registry (or an application statistics table) of an operating system (e.g., IOS or Andriod) of the target mobile terminal, for example, the application number is 10, 20, 30, etc.
The running heat statistics refers to the quantity statistics of the user applications which are run in the foreground in each mobile terminal except the target mobile terminal in the target area. For example, in addition to the target mobile terminal, 100 mobile terminals are included within the target area (i.e., a total of 101 mobile terminals). The running heat statistics refers to counting the number of user applications which run in the foreground in each of all 100 mobile terminals except the target mobile terminal in the target area.
The target area is a circular area having a current position of the target mobile terminal as a center, and determining the radius of the target area based on the number of applications includes: and taking the product of the application number and the area adjusting coefficient as the radius of the target area. For example, the radius R is the number of applications AN × the area adjustment coefficient α, where the radius R is expressed in meters, the number of applications AN ≧ 6, and the area adjustment coefficient α is 1, 5, 10, 20, 50, or 100. When the number of applications is 20 and the adjustment factor α is 100, the radius R is 20 × 100, 2000 meters, that is, 2 kilometers. The target area is a circular area centered at the current location of the target mobile terminal and having a radius of 2000 meters.
The heat determination device 702 obtains running heat statistics information associated with all mobile terminals except the target mobile terminal in the target area, and determines the running heat of each non-selected user application except the selected user application in the plurality of user applications in the target mobile terminal in the target area based on the running statistics information. And the user selects the selected user application by performing touch operation on the touch screen of the target mobile terminal so as to prompt the selected user application to perform foreground running.
Before obtaining the running heat statistical information associated with all mobile terminals except the target mobile terminal in the target area, the method further comprises the following steps: the target mobile terminal transmits a statistics request message including a center of a circle (a current position of the target mobile terminal) and a radius (2000 m) of the target area to the statistics server. The statistics server determines all mobile terminals included in the target area except for the target mobile terminal based on the center and radius of the target area, for example, 100 mobile terminals included in the target area except for the target mobile terminal (i.e., 101 mobile terminals in total). A status query message is transmitted to each of all mobile terminals (100 mobile terminals) except for the target mobile terminal. In response to receiving the status query message, each mobile terminal determines whether there is a user application that is running in the foreground. The foreground running means that the user application is directly run by a display screen, a display area or a display window of the target mobile terminal, and the display screen, the display area or the display window is an interface capable of being performed with a user of the target mobile terminal.
And the mobile terminal with the user application running in the foreground generates a running data item and sends the running data item to the statistical server. The running data item is a binary set < identifier of the mobile terminal, identifier of the foreground running user application >, < identifier of the mobile terminal, name of the foreground running user application > and the like. Examples of the identifier include an IMSI International Mobile Subscriber identity (International Mobile Subscriber identity Number), an IMEI International Mobile Equipment identity (International Mobile Equipment identity Number), an ESN Electronic Serial Number (Electronic Serial Number), an MEID Mobile Equipment identifier (Mobile Equipment ID), and the like. The identifier of the foreground-running user application may be a name of the foreground-running user application. The operational data items are for example < 355412076769210 (IMEI), paypal >, < 355412076869610, royal glory >, < 355412056862610, royal glory >. The mobile terminal, for which there is no user application running in the foreground, does not generate a running data item.
The statistical server determines running heat statistical information according to the received running data items, specifically, the statistical server creates a data table and uses the data table to count the number of user applications performing foreground applications in the target area, as shown in data table 1.
Data table 1
Name of user application Statistical number of foreground runs
Rong Yao of the king 18
Shake tone short video 16
Youku video 15
Mobile phone treasure 13
American group take-out 10
Hundred degree takeaway 9
Polar flying vehicle 7
Three kingdoms are extremely without two 6
...... ......
Da English 1
Wherein the statistical server determining the operation heat statistical information according to the received plurality of operation data items comprises: the statistical server performs heat statistics on the received multiple running data items according to the identifier of the user application running in the foreground to generate running heat statistical information, namely a data table 1. The running heat statistical information is a data table used for indicating the respective statistical number of each foreground running user application in the target area, namely the total number of the user applications in the target area selected for foreground application.
And the statistical server sends the running heat statistical information to the target mobile terminal. Determining, by the application (target mobile terminal), a running heat of each non-selected user application, except for the selected user application, in the plurality of user applications in the target mobile terminal based on the running statistical information includes:
and querying the running statistical information according to the identifier of each non-selected user application except the selected user application in the plurality of user applications in the target mobile terminal to determine the statistical quantity associated with each non-selected user application, and taking the statistical quantity associated with each non-selected user application as the running heat of each non-selected user application in the target area range. For example, the selected user application in the target mobile terminal is WeChat, and all non-selected user applications are Royal of the King, tremble short video, Youko video, Taobao, American takeaway, hundred takeaway, mastership, Sanguo, and Idle English. Identifiers (e.g., names) of each non-selected user application (Royal, shuangying short video, Youko video, Mobile Taobao, Quercus takeaway, Baidu takeaway, masterpiece runaway, Mitsubishi, so.., lazy English) of the plurality of user applications other than the selected user application within the target mobile terminal are queried in the running statistics to determine the statistics associated with each non-selected user application as Royal (18), shuangying short video (16), Youko video (15), Mobile Taobao (13), Meicuo takeaway (10), Baidu takeaway (9), masterpiece runaway (7), Mitsubishi (6), so.., lazy English (0). Since no lazy english language is running for the hotness statistics or data table (e.g., data table 1), this is because no user application is running lazy english in the foreground in the target area. For this reason, the statistical number of lazy english is 0.
It can thus be determined that taking the statistical number associated with each non-selected user application as the running heat of each non-selected user application within the target area is: the royal person glory is in the operation heat degree in the target area scope is 18, the short video of trembling is in the operation heat degree in the target area scope is 16, the you ku video is in the operation heat degree in the target area scope is 15, the mobile phone is in the treasure panning is 13, the U.S. group takeaway is 10, the Bai degree takeaway is 9, the masterwork flying vehicle is 7, the three kingdoms are extremely none, the operation heat degree in the target area scope is 6, the operation heat degree in the target area scope is 0 (or not counting the lazy English).
Alternatively, before obtaining the running heat statistical information associated with all mobile terminals except the target mobile terminal in the target area, the method further comprises the following steps: the method comprises the steps that a target mobile terminal sends an acquisition request aiming at running heat degree statistical information to a content server, and the content server sends the running heat degree statistical information to the target mobile terminal in response to receiving the acquisition request; the operation heat statistical information is a data table, and the data table is used for indicating the respective statistical quantity of each user application installed in all the mobile terminals except the target mobile terminal in the target area range.
Wherein determining the running heat of each non-selected user application except the selected user application in the target area in the plurality of user applications in the target mobile terminal based on the running statistical information comprises: and inquiring the running statistical information according to the identifier of each non-selected user application except the selected user application in the plurality of user applications in the target mobile terminal to determine the statistical quantity associated with each non-selected user application, and taking the statistical quantity associated with each non-selected user application as the running heat of each non-selected user application in the target area range.
A sorting device 703 that determines an operation probability of each non-selected user application in the target mobile terminal at the current location based on the operation heat of each non-selected user application and the total number of the mobile terminal(s) in the target area other than the target mobile terminal, and sorts the operation probabilities of the plurality of non-selected user applications in a descending order based on the operation probability of each non-selected user application at the current location to generate a sorted list.
Wherein determining an operation probability of each non-selected user application in the target mobile terminal at the current location based on the operation heat of each non-selected user application and the total number of mobile terminals except the target mobile terminal in the target area range comprises: and determining the ratio of the running heat of each non-selected user application to the total number of the mobile terminals except the target mobile terminal in the target area range as the running probability of each non-selected user application in the target mobile terminal at the current position. And determining the running probability of each non-selected user application in the target mobile terminal at the current position according to the ratio obtained by dividing the running heat of each non-selected user application by the total number of the mobile terminals except the target mobile terminal in the target area range.
For example, the running heat of the royal glory in the target area range is 18, the running heat of the judder short video in the target area range is 16, the running heat of the kukou video in the target area range is 15, the running heat of the mobile phone panning in the target area range is 13, the running heat of the beauty group takeout in the target area range is 10, the running heat of the Baidu takeout in the target area range is 9, the running heat of the pole flyer in the target area range is 7, the running heat of the three kingdoms extremely none in the target area range is 6, the running heat of the lazy english in the target area range is 0, the total number of mobile terminals other than the target mobile terminal is 100, then the running probability of the royal glory is 18/100-18%, the running probability of the judder short video is 16/100-16%, The operation probability of the Youke video is 15/100-15%, the operation probability of the mobile phone Taobao is 13/100-13%, the operation probability of the American group takeout is 10/100-10%, the operation probability of the Baidu takeout is 9/100-9%, the operation probability of the masterwork runaway is 7/100-7%, the operation probability of the three kingdoms extremely unlimited is 6/100-6%, the operation probability of the lazy English is 0/100-0%.
FIG. 2 is a logic diagram of an ordered list 200 according to an embodiment of the invention. When it is detected that a user of a target mobile terminal 203 in the mobile internet selects a selected user application (WeChat) from a plurality of user applications (WeChat, Rong of King, tremble short video, Youkou video, Tao Bao, American takeaway, Baidu takeaway, masterwork runaway, Sanguo duan, Excellent, and Idle English) to perform foreground operation, the number (20) of the user applications installed in the target mobile terminal is determined, the current position 204 of the target mobile terminal is obtained, a target area 202 for performing operation heat statistics is determined, wherein the current position 204 is determined as the center of a circle of the target area, and the radius of the target area is determined based on the number (20) of the applications.
The running heat statistics refers to the quantity statistics of the user applications which are run in the foreground in each mobile terminal except the target mobile terminal in the target area. For example, in addition to the target mobile terminal 203, 100 mobile terminals (mobile terminals 210-1, 210-2, 210-3, 210-4, 210-5, 210-6, 210-7, 210-8, 210-9, 210- & gt 100, i.e., n- & gt 100) are included within the target area (i.e., 101 mobile terminals in total). The running heat statistics refer to the quantity statistics of the user applications running in the foreground in each of all 100 mobile terminals (mobile terminals 210-1, 210-2, 210-3, 210-4, 210-5, 210-6, 210-7, 210-8, 210-9,... and 210- > 100) except the target mobile terminal 203 in the target area.
The target area is a circular area 202 centered around a current location 204 of the target mobile terminal, and determining a radius 205 of the target area based on the number of applications comprises: the product of the number of applications 20 and the area adjustment coefficient 100 is taken as the radius of the target area. For example, the radius R is 20 × 100 ═ 2000 m, that is, 2 km. The target area is a circular area 202 centered at the current location 204 of the target mobile terminal and having a radius 205 of 2000 meters.
Before obtaining the running heat statistical information associated with all mobile terminals except the target mobile terminal 203 in the target area 202, the method further comprises the following steps: the target mobile terminal transmits a statistics request message including a center 204 of the target area (current position of the target mobile terminal) and a radius (2000 m) to the statistics server. The statistics server determines all mobile terminals included in the target area except for the target mobile terminal based on the center and radius of the target area, for example, 100 mobile terminals included in the target area except for the target mobile terminal (i.e., 101 mobile terminals in total). A status query message is transmitted to each of all mobile terminals (100 mobile terminals) except for the target mobile terminal. In response to receiving the status query message, each mobile terminal determines whether there is a user application that is running in the foreground. The foreground running means that the user application is directly run by a display screen, a display area or a display window of the target mobile terminal, and the display screen, the display area or the display window is an interface capable of being performed with a user of the target mobile terminal.
For example, the selected user application in the target mobile terminal is WeChat, and all non-selected user applications are Royal, tremble short video, Youko video, Taobao, American group takeaway, Baidu takeaway, masterpiece runaway, Mitsu Shuangliang, Lu. Identifiers (e.g., names) of each non-selected user application (royal glory, trembling short video, youku video, mobile panning, beauty group takeaway, hectic takeaway, mastership flyer, tribune duality,.., lazy english) of the plurality of user applications other than the selected user application within the target mobile terminal are queried in the running statistics to determine a statistical quantity associated with each non-selected user application as royal glory (18), trembling short video (16), youku video (15), mobile panning (13), beauty group takeaway (10), hectic takeaway (9), mastership flyer (7), tribune duality (6),..., lazy english (0). Since no lazy english language is running for the hotness statistics or data table (e.g., data table 1), this is because no user application is running lazy english in the foreground in the target area. For this reason, the statistical number of lazy english is 0.
It can thus be determined that taking the statistical number associated with each non-selected user application as the running heat of each non-selected user application within the target area is: the running heat of the royal is 18 in the target area range, the running heat of the tremble short video is 16 in the target area range, the running heat of the Youkou video is 15 in the target area range, the running heat of the mobile phone is 13 in the target area range, the running heat of the American group takeout is 10 in the target area range, the running heat of the hundred-degree takeout is 9 in the target area range, the running heat of the mastership coaster is 7 in the target area range, the running heat of the three kingdoms is extremely rarely in the target area range is 6, the running heat of the idle English in the target area range is 0 (or the idle English is not counted).
For example, the running heat of the royal glory in the target area range is 18, the running heat of the judder short video in the target area range is 16, the running heat of the kukou video in the target area range is 15, the running heat of the mobile phone panning in the target area range is 13, the running heat of the beauty group takeout in the target area range is 10, the running heat of the Baidu takeout in the target area range is 9, the running heat of the pole flyer in the target area range is 7, the running heat of the three kingdoms extremely none in the target area range is 6, the running heat of the lazy english in the target area range is 0, the total number of mobile terminals other than the target mobile terminal is 100, then the running probability of the royal glory is 18/100-18%, the running probability of the judder short video is 16/100-16%, The operation probability of the Youkou video is 15/100-15%, the operation probability of the mobile phone Taobao is 13/100-13%, the operation probability of the American group takeaway is 10/100-10%, the operation probability of the Baidu takeaway is 9/100-9%, the operation probability of the masterwork flying vehicle is 7/100-7%, the operation probability of the three kingdoms extremely-innocent is 6/100-6%, and the operation probability of the lazy English is 0/100-0%.
Setting means 704 is configured to determine at least one pre-fetching user application of the plurality of user applications that can be pre-loaded from the second memory into the first memory according to the ordered list, and set a storage level for each pre-fetching user application of the at least one pre-fetching user application according to the ordered list, wherein the storage level comprises: a decrement storage stage, an increment storage stage, a quantitative storage stage and a compression storage stage; and setting the storage level of the dynamic storage unit allocated to each pre-fetching user application according to the storage level of each pre-fetching user application.
Wherein determining a plurality of pre-fetch user applications of the plurality of non-selected user applications that can be pre-loaded from a second memory into a first memory according to the ordered list comprises: when the number of the non-selected user applications in the ordered list having the operation probability greater than the pre-fetching threshold (e.g., 5%, 10%) is greater than 0 (e.g., 10), determining the non-selected user applications in the ordered list having the operation probability greater than the pre-fetching threshold as the pre-fetched user applications that can be pre-loaded from the second memory into the first memory to determine at least one pre-fetched user application; when the number of non-selected user applications in the ordered list having a probability of running greater than the pre-fetch threshold (e.g., 5%, 10%) is equal to 0, all non-selected user applications (e.g., 15) in the ordered list are determined as pre-fetched user applications that can be pre-loaded from the second memory into the first memory to determine at least one pre-fetched user application.
Wherein setting a storage level for each of at least one pre-fetch user application according to the ordered list comprises:
setting a storage level of the pre-fetched user applications in the ordered list having an operational probability greater than a high probability threshold (e.g., 15%) to a reduced storage level;
setting a storage level of the pre-fetch user application in the sorted list having a probability of operation less than or equal to a high probability threshold (e.g., 15%) and greater than a medium probability threshold (e.g., 12%) as an incremental storage level;
setting a storage level of the pre-fetched user applications in the sorted list having a probability of operation less than or equal to a medium probability threshold (e.g., 12%) and greater than a low probability threshold (e.g., 8%) as a quantitative storage level;
setting a storage level of the pre-fetched user applications in the sorted list having an operating probability less than or equal to a low probability threshold (e.g., 8%) as a compressed storage level. Wherein the pre-fetching of user applications has a running probability of more than 5%.
The allocation means 705 is adapted to allocate at least one dynamic memory location for each pre-fetch user application of the reduced memory rank, at least one dynamic memory location for each pre-fetch user application of the compressed memory rank, one dynamic memory location for each pre-fetch user application of the increased memory rank and one dynamic memory location for each pre-fetch user application of the quantitative memory rank. Wherein the storage capacity of each of the at least one dynamic storage unit allocated for each of the pre-fetch user applications of the reduced storage tier may be the same or different, and the storage capacity of each of the at least one dynamic storage unit allocated for each of the pre-fetch user applications of the compressed storage tier may be the same or different.
The total storage capacity of the at least one dynamic storage unit allocated for the pre-fetching user application of each reduced storage tier can accommodate all data files of the pre-fetching user application of the corresponding reduced storage tier. The total storage capacity of the at least one dynamic storage unit allocated for the pre-fetching user application of each compressed storage tier is capable of accommodating all compressed data files of the pre-fetching user application of the corresponding compressed storage tier. One dynamic memory unit is allocated for each pre-fetching user application of the incremental storage tier that can accommodate all data files of the pre-fetching user application of the corresponding incremental storage tier. One dynamic memory unit is allocated to each pre-fetching user application of a quantitative memory rank to be able to accommodate all data files of the pre-fetching user application of the corresponding quantitative memory rank.
The prefetching means 706 is configured to perform file prefetching for the data file associated with each prefetching user application from the second memory according to the storage level of the prefetching user application, and includes:
copying a plurality of data files associated with each pre-fetch user application of the reduced storage tier from the second memory to the dynamic storage unit of the at least one reduced storage tier allocated for each pre-fetch user application of the reduced storage tier, setting a first time period for the dynamic storage unit of each reduced storage tier upon completion of the copying and starting timing, deleting a first predetermined number of data files in the dynamic storage unit of each reduced storage tier each time the first time period expires;
selecting at least one base data file among the plurality of data files associated with each pre-fetching user application of the incremental storage tier, copying the at least one base data file of each pre-fetching user application of the incremental storage tier from the second memory to the dynamic storage unit of the incremental storage tier allocated for each pre-fetching user application of the incremental storage tier, setting a second time period for the dynamic storage unit of the incremental storage tier upon completion of the copying and starting clocking, wherein a second predetermined number of data files among the plurality of data files associated with each pre-fetching user application of the incremental storage tier are copied from the second memory to the dynamic storage unit of the incremental storage tier allocated for each pre-fetching user application of the incremental storage tier each time the second time period expires;
selecting at least one data file from the plurality of data files associated with each pre-fetch user application of the quantitative storage tier based on the storage capacity of the dynamic storage unit of the quantitative storage tier assigned for each pre-fetch user application of the quantitative storage tier and copying the selected at least one data file from the second memory to the dynamic storage unit of the quantitative storage tier assigned for each pre-fetch user application of the quantitative storage tier; and
the plurality of data files associated with each pre-fetch user application of the compressed storage tier are compressed to generate a plurality of compressed data files, the plurality of compressed data files of each pre-fetch user application of the compressed storage tier are copied from the second memory to the dynamic storage unit of the at least one compressed storage tier allocated for each pre-fetch user application of the compressed storage tier.
The initialization device 707 is configured to, in response to a file prefetching request initiated by a user for prefetching a file for a data file associated with a user application of a target mobile terminal in the mobile internet, obtain a dynamic configuration file associated with the file prefetching;
creating a dynamic index area in a first memory of the target mobile terminal, and creating a plurality of dynamic storage units for storing data files in the first memory according to the dynamic configuration file, wherein the storage capacity of each dynamic storage unit in the plurality of dynamic storage units is determined according to the dynamic configuration file; and
and generating a dynamic index table in the dynamic index area, wherein the dynamic index table comprises a plurality of index entries, and each index entry is used for recording the application identification, the starting address, the ending address, the storage capacity and the storage level of a corresponding dynamic storage unit in a plurality of dynamic storage units.

Claims (10)

1. A method for prefetching files in a mobile Internet based on operation heat, the method comprising:
when detecting that a user of a target mobile terminal in a mobile internet selects a selected user application from a plurality of user applications to perform foreground operation, determining the application number of the user applications installed in the target mobile terminal, acquiring the current position of the target mobile terminal, and determining a target area for performing operation heat statistics, wherein the current position is determined as the center of a circle of the target area and the radius of the target area is determined based on the application number;
acquiring running heat statistical information associated with all mobile terminals except a target mobile terminal in a target area, and determining the running heat of each non-selected user application except a selected user application in a plurality of user applications in the target mobile terminal in the target area based on the running statistical information;
determining an operation probability of each non-selected user application in the target mobile terminal at the current position based on the operation heat of each non-selected user application and the total number of the mobile terminals except the target mobile terminal in the target area, and sorting the plurality of non-selected user applications in a descending order of the operation probability based on the operation probability of each non-selected user application at the current position to generate a sorted list;
determining at least one of the plurality of non-selected user applications that can be preloaded from the second memory into the first memory according to the ordered list, and setting a storage level for each of the at least one pre-fetched user application according to the ordered list, wherein the storage levels comprise: a decrement storage stage, an increment storage stage, a quantitative storage stage and a compression storage stage;
allocating at least one dynamic memory unit for each pre-fetch user application of the decrement storage stage, allocating at least one dynamic memory unit for each pre-fetch user application of the compression storage stage, allocating one dynamic memory unit for each pre-fetch user application of the increment storage stage and allocating one dynamic memory unit for each pre-fetch user application of the quantitive storage stage;
setting a storage level for a dynamic storage unit distributed for each pre-fetching user application according to the storage level of each pre-fetching user application;
pre-fetching the data files associated with each pre-fetching user application from the second memory according to the storage level of the pre-fetching user application, including:
copying a plurality of data files associated with each pre-fetch user application of the reduced storage tier from the second memory to the dynamic storage unit of the at least one reduced storage tier allocated for each pre-fetch user application of the reduced storage tier, setting a first time period for the dynamic storage unit of each reduced storage tier upon completion of the copying and starting timing, deleting a first predetermined number of data files in the dynamic storage unit of each reduced storage tier each time the first time period expires;
selecting at least one base data file among the plurality of data files associated with each pre-fetching user application of the incremental storage tier, copying the at least one base data file of each pre-fetching user application of the incremental storage tier from the second memory to the dynamic storage unit of the incremental storage tier allocated for each pre-fetching user application of the incremental storage tier, setting a second time period for the dynamic storage unit of the incremental storage tier upon completion of the copying and starting clocking, wherein a second predetermined number of data files among the plurality of data files associated with each pre-fetching user application of the incremental storage tier are copied from the second memory to the dynamic storage unit of the incremental storage tier allocated for each pre-fetching user application of the incremental storage tier each time the second time period expires;
selecting at least one data file from the plurality of data files associated with each pre-fetch user application of the quantitative storage tier in accordance with the storage capacity of the dynamic storage unit of the quantitative storage tier assigned to each pre-fetch user application of the quantitative storage tier, and copying the selected at least one data file from the second memory to the dynamic storage unit of the quantitative storage tier assigned to each pre-fetch user application of the quantitative storage tier; and
compressing the plurality of data files associated with each pre-fetch user application of the compressed storage tier to generate a plurality of compressed data files, copying the plurality of compressed data files of each pre-fetch user application of the compressed storage tier from the second memory to the dynamic storage unit of the at least one compressed storage tier allocated for each pre-fetch user application of the compressed storage tier;
determining a plurality of pre-fetch user applications of the plurality of non-selected user applications that can be pre-loaded from a second memory into a first memory according to the ordered list comprises:
when the number of the non-selected user applications with the operation probability larger than the pre-fetching threshold value in the ordered list is larger than 0, determining the non-selected user applications with the operation probability larger than the pre-fetching threshold value in the ordered list as the pre-fetching user applications which can be pre-loaded into the first memory from the second memory so as to determine at least one pre-fetching user application;
when the number of non-selected user applications in the ordered list having an operating probability greater than the pre-fetch threshold is equal to 0, determining all non-selected user applications in the ordered list as pre-fetched user applications that can be pre-loaded from the second memory into the first memory to determine at least one pre-fetched user application.
2. The method according to claim 1, comprising a plurality of mobile terminals within the mobile internet and determining a mobile terminal initiating a file pre-fetch request as a target mobile terminal, wherein the number of applications of a user application is greater than 5; the user selects the selected user application from a plurality of user applications by performing touch operation on a touch screen of the target mobile terminal so as to prompt the selected user application to perform foreground running; wherein detecting, by an operating system of a target mobile terminal, whether a user of the target mobile terminal selects a selected user application from a plurality of user applications.
3. The method of any of claims 1-2, further comprising, prior to obtaining operational heat statistics associated with all but the target mobile terminal within the target area:
the target mobile terminal sends a counting request message comprising the circle center and the radius of the target area to a counting server;
the statistical server determines all mobile terminals, except the target mobile terminal, included in the target area based on the circle center and the radius of the target area;
transmitting a status query message to each of all mobile terminals except the target mobile terminal;
in response to receiving the status query message, each mobile terminal determines whether a user application currently running in the foreground exists;
the mobile terminal with the user application running in the foreground generates a running data item and sends the running data item to a statistical server;
the statistical server determines operation heat statistical information according to the received operation data items;
where the running data item is a binary < identifier of the mobile terminal, identifier of the user application running in foreground >.
4. The method of any of claims 1-3, wherein determining a running heat of each non-selected user application of the plurality of user applications other than the selected user application within the target area based on the running statistics comprises:
querying running statistical information according to identifiers of all non-selected user applications except the selected user application in the plurality of user applications in the target mobile terminal to determine a statistical quantity associated with each non-selected user application, and taking the statistical quantity associated with each non-selected user application as the running heat of each non-selected user application in the target area range;
determining an operation probability of each non-selected user application in the target mobile terminal at the current location based on the operation heat of each non-selected user application and the total number of mobile terminals except the target mobile terminal in the target area range comprises:
and determining the ratio of the running heat of each non-selected user application to the total number of the mobile terminals except the target mobile terminal in the target area range as the running probability of each non-selected user application in the target mobile terminal at the current position.
5. The method according to any one of claims 1-4, further comprising, prior to obtaining the running heat statistics associated with all mobile terminals except the target mobile terminal in the target area:
the method comprises the steps that a target mobile terminal sends an acquisition request aiming at running heat degree statistical information to a content server, and the content server sends the running heat degree statistical information to the target mobile terminal in response to receiving the acquisition request;
the operation heat statistical information is a data table used for indicating the respective statistical quantity of each user application installed in all the mobile terminals except the target mobile terminal in the target area range.
6. A system for prefetching files in a mobile internet based on a running heat, the system comprising:
the mobile terminal comprises an area determining device, a foreground operating device and a foreground operating device, wherein when the fact that a user of a target mobile terminal in the mobile internet selects a selected user application from a plurality of user applications to operate in the foreground is detected, the application number of the user applications installed in the target mobile terminal is determined, the current position of the target mobile terminal is obtained, a target area used for operating heat statistics is determined, the current position is determined as the center of a circle of the target area, and the radius of the target area is determined based on the application number;
the system comprises a heat determining device, a heat determining device and a heat determining device, wherein the heat determining device is used for acquiring running heat statistical information associated with all mobile terminals except a target mobile terminal in a target area, and determining the running heat of each non-selected user application except a selected user application in a plurality of user applications in the target mobile terminal in the target area based on the running statistical information;
a sorting device for determining the operation probability of each non-selected user application in the target mobile terminal at the current position based on the operation heat of each non-selected user application and the total number of the mobile terminals except the target mobile terminal in the target area, and sorting the operation probabilities of the plurality of non-selected user applications in a descending order based on the operation probability of each non-selected user application at the current position to generate a sorted list;
setting means for determining at least one pre-fetching user application of said plurality of non-selected user applications that can be pre-loaded from the second memory into the first memory according to said ordered list, and setting a storage level for each pre-fetching user application of said at least one pre-fetching user application according to said ordered list, wherein said storage level comprises: a decrement storage stage, an increment storage stage, a quantitative storage stage and a compression storage stage; setting a storage level for a dynamic storage unit allocated to each pre-fetching user application according to the storage level of each pre-fetching user application;
the allocation device allocates at least one dynamic storage unit for each pre-fetching user application of the decrement storage level, allocates at least one dynamic storage unit for each pre-fetching user application of the compression storage level, allocates one dynamic storage unit for each pre-fetching user application of the increment storage level and allocates one dynamic storage unit for each pre-fetching user application of the quantitative storage level;
prefetching means for file prefetching the data files associated with each prefetched user application from the second memory according to the storage level of the prefetched user application, comprising:
copying a plurality of data files associated with each pre-fetch user application of the reduced storage tier from the second memory to the dynamic storage unit of the at least one reduced storage tier allocated for each pre-fetch user application of the reduced storage tier, setting a first time period for the dynamic storage unit of each reduced storage tier upon completion of the copying and starting timing, deleting a first predetermined number of data files in the dynamic storage unit of each reduced storage tier each time the first time period expires;
selecting at least one base data file among the plurality of data files associated with each pre-fetching user application of the incremental storage tier, copying the at least one base data file of each pre-fetching user application of the incremental storage tier from the second memory to the dynamic storage unit of the incremental storage tier allocated for each pre-fetching user application of the incremental storage tier, setting a second time period for the dynamic storage unit of the incremental storage tier upon completion of the copying and starting clocking, wherein a second predetermined number of data files among the plurality of data files associated with each pre-fetching user application of the incremental storage tier are copied from the second memory to the dynamic storage unit of the incremental storage tier allocated for each pre-fetching user application of the incremental storage tier each time the second time period expires;
selecting at least one data file from the plurality of data files associated with each pre-fetch user application of the quantitative storage tier in accordance with the storage capacity of the dynamic storage unit of the quantitative storage tier assigned to each pre-fetch user application of the quantitative storage tier, and copying the selected at least one data file from the second memory to the dynamic storage unit of the quantitative storage tier assigned to each pre-fetch user application of the quantitative storage tier; and
compressing the plurality of data files associated with each pre-fetch user application of the compressed storage tier to generate a plurality of compressed data files, copying the plurality of compressed data files of each pre-fetch user application of the compressed storage tier from the second memory to a dynamic storage unit of at least one compressed storage tier allocated for each pre-fetch user application of the compressed storage tier;
determining a plurality of pre-fetch user applications of the plurality of non-selected user applications that can be pre-loaded from a second memory into a first memory according to the ordered list comprises:
when the number of the non-selected user applications with the operation probability larger than the pre-fetching threshold value in the ordered list is larger than 0, determining the non-selected user applications with the operation probability larger than the pre-fetching threshold value in the ordered list as the pre-fetching user applications which can be pre-loaded into the first memory from the second memory so as to determine at least one pre-fetching user application;
when the number of non-selected user applications in the ordered list having an operating probability greater than the pre-fetch threshold is equal to 0, determining all non-selected user applications in the ordered list as pre-fetched user applications that can be pre-loaded from the second memory into the first memory to determine at least one pre-fetched user application.
7. The system of claim 6, comprising a plurality of mobile terminals within the mobile internet and determining a mobile terminal initiating a file pre-fetch request as a target mobile terminal, wherein the number of applications of a user application is greater than 5; the user selects the selected user application from a plurality of user applications by performing touch operation on a touch screen of the target mobile terminal so as to prompt the selected user application to perform foreground running; wherein detecting, by an operating system of a target mobile terminal, whether a user of the target mobile terminal selects a selected user application from a plurality of user applications.
8. The system of any of claims 6-7, further comprising, prior to obtaining operational heat statistics associated with all but the target mobile terminal within the target area:
the target mobile terminal sends a statistical request message comprising the circle center and the radius of the target area to a statistical server;
the statistical server determines all mobile terminals, except the target mobile terminal, included in the target area based on the circle center and the radius of the target area;
transmitting a status query message to each of all mobile terminals except the target mobile terminal;
in response to receiving the status query message, each mobile terminal determines whether a user application running in the foreground exists per se;
the mobile terminal with the user application running in the foreground generates a running data item and sends the running data item to the statistical server;
the statistical server determines operation heat statistical information according to the received operation data items;
where the running data item is a binary < identifier of mobile terminal, identifier of foreground running user application >.
9. The system of any of claims 6-8, wherein determining a running heat of each non-selected user application of the plurality of user applications other than the selected user application within the target area based on the running statistics comprises:
querying running statistical information according to identifiers of all non-selected user applications except selected user applications in a plurality of user applications in the target mobile terminal to determine a statistical quantity associated with each non-selected user application, and taking the statistical quantity associated with each non-selected user application as the running heat of each non-selected user application in the target area range;
determining an operation probability of each non-selected user application in the target mobile terminal at the current position based on the operation heat of each non-selected user application and the total number of the mobile terminals except the target mobile terminal in the target area range comprises:
and determining the ratio of the running heat of each non-selected user application to the total number of the mobile terminals except the target mobile terminal in the target area range as the running probability of each non-selected user application in the target mobile terminal at the current position.
10. The system according to any one of claims 6-9, further comprising, prior to obtaining the running heat statistics associated with all mobile terminals except the target mobile terminal in the target area:
the target mobile terminal sends an acquisition request aiming at the running heat statistical information to a content server, and the content server sends the running heat statistical information to the target mobile terminal in response to receiving the acquisition request;
the operation heat statistical information is a data table, and the data table is used for indicating the respective statistical quantity of each user application installed in all the mobile terminals except the target mobile terminal in the target area range.
CN202210163558.6A 2018-08-18 2018-08-18 Method and system for prefetching files in mobile internet based on operation heat Pending CN115097996A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210163558.6A CN115097996A (en) 2018-08-18 2018-08-18 Method and system for prefetching files in mobile internet based on operation heat

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810943811.3A CN109240574B (en) 2018-08-18 2018-08-18 Method and system for prefetching files in mobile internet based on operation heat
CN202210163558.6A CN115097996A (en) 2018-08-18 2018-08-18 Method and system for prefetching files in mobile internet based on operation heat

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201810943811.3A Division CN109240574B (en) 2018-08-18 2018-08-18 Method and system for prefetching files in mobile internet based on operation heat

Publications (1)

Publication Number Publication Date
CN115097996A true CN115097996A (en) 2022-09-23

Family

ID=65071584

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201810943811.3A Active CN109240574B (en) 2018-08-18 2018-08-18 Method and system for prefetching files in mobile internet based on operation heat
CN202210163558.6A Pending CN115097996A (en) 2018-08-18 2018-08-18 Method and system for prefetching files in mobile internet based on operation heat

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN201810943811.3A Active CN109240574B (en) 2018-08-18 2018-08-18 Method and system for prefetching files in mobile internet based on operation heat

Country Status (1)

Country Link
CN (2) CN109240574B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110995866B (en) * 2019-12-20 2022-11-08 深圳市网心科技有限公司 Node scheduling method, node scheduling device, scheduling server and storage medium
CN114817174B (en) * 2022-04-02 2023-08-15 中新社(北京)国际传播集团有限公司 Method and system for prefetching data in mobile internet according to regional scope

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2960077A1 (en) * 2010-05-11 2011-11-18 Alcatel Lucent DEVICE FOR THE DYNAMIC MANAGEMENT OF DOWNLOADABLE APPLICATIONS FOR COMMUNICATION EQUIPMENT
CN103617075B (en) * 2013-12-04 2017-02-01 百度在线网络技术(北京)有限公司 application program recommending method, system and server
CN104978324B (en) * 2014-04-03 2020-06-16 腾讯科技(深圳)有限公司 Data processing method and device
JP5858305B1 (en) * 2014-10-24 2016-02-10 アクアエンタープライズ株式会社 Mobile terminal, mobile terminal program, checkpoint management system, and checkpoint management method
US9622016B2 (en) * 2015-05-02 2017-04-11 TCL Research America Inc. Invisiblemask: a tangible mechanism to enhance mobile device smartness
CN107544822A (en) * 2017-07-26 2018-01-05 北京珠穆朗玛移动通信有限公司 Application program pre-add support method, mobile terminal and the device with store function

Also Published As

Publication number Publication date
CN109240574A (en) 2019-01-18
CN109240574B (en) 2022-10-28

Similar Documents

Publication Publication Date Title
CN110109953B (en) Data query method, device and equipment
CN106657213B (en) File transmission method and device
US20070185899A1 (en) Likelihood-based storage management
CN110377527B (en) Memory management method and related equipment
CN109240574B (en) Method and system for prefetching files in mobile internet based on operation heat
CN106649633B (en) Desktop folder naming method and system
CN103136348A (en) File display method and device
US20150256571A1 (en) Content acquisition device and method
CN113055877A (en) Cloud card distribution method and device, electronic equipment and storage medium
CN111930434A (en) Starting method and device of cloud application, readable storage medium and equipment
CN111625348A (en) Task allocation method, device, server and storage medium
KR100876105B1 (en) How to download multimedia contents to wired and wireless terminals
US9558122B2 (en) Cache reclamation using prioritized record removal
CN109151196B (en) Method and system for prefetching data in mobile internet based on current position
CN110780944A (en) Application permission starting method and device and machine-readable storage medium
CN109240987B (en) Method and system for prefetching data based on time for mobile internet
US20130297742A1 (en) Data storage communication apparatus, and data transmission and management methods using the same
CN112035498B (en) Data block scheduling method and device, scheduling layer node and storage layer node
CN113905252B (en) Data storage method and device for live broadcasting room, electronic equipment and storage medium
CN109271352B (en) Method and system for prefetching files in mobile internet according to state information
CN110334073A (en) A kind of metadata forecasting method, device, terminal, server and storage medium
CN109189737B (en) Method and system for prefetching files in mobile internet according to time segments
CN109446162B (en) Method and system for determining data state of target mobile terminal in mobile internet
CN108762683B (en) Method and system for data transmission in distributed big data storage system
CN109491982B (en) Method and system for creating virtual storage unit in mobile terminal of mobile internet

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