CN109992522A - Application processing method and device, electronic equipment, computer readable storage medium - Google Patents

Application processing method and device, electronic equipment, computer readable storage medium Download PDF

Info

Publication number
CN109992522A
CN109992522A CN201711484431.XA CN201711484431A CN109992522A CN 109992522 A CN109992522 A CN 109992522A CN 201711484431 A CN201711484431 A CN 201711484431A CN 109992522 A CN109992522 A CN 109992522A
Authority
CN
China
Prior art keywords
application
page
processed
data
memory
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
CN201711484431.XA
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201711484431.XA priority Critical patent/CN109992522A/en
Priority to PCT/CN2018/116507 priority patent/WO2019128542A1/en
Publication of CN109992522A publication Critical patent/CN109992522A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/0223User address space allocation, e.g. contiguous or non contiguous base addressing
    • G06F12/023Free address space management
    • G06F12/0253Garbage collection, i.e. reclamation of unreferenced memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44594Unloading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2212/00Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
    • G06F2212/10Providing a specific technical effect
    • G06F2212/1016Performance improvement
    • G06F2212/1024Latency reduction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2212/00Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
    • G06F2212/70Details relating to dynamic memory management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Memory System (AREA)

Abstract

This application involves a kind of application processing methods and device, electronic equipment, computer readable storage medium.This method comprises: obtaining the occupied page of application to be processed;By the Data Migration stored in the page to being used to temporarily recycle in the temporary memory space of the data;The application to be processed is run in preset load interface;By run during the application to be processed in the temporary memory space using to data read back in page again, unused data are recycled.By the above method, the accuracy to internal storage data recycling can be improved.

Description

Application processing method and device, electronic equipment, computer readable storage medium
Technical field
This application involves data processing fields, more particularly to a kind of application processing method and device, electronic equipment, calculating Machine readable storage medium storing program for executing.
Background technique
The application installed on electronic equipment at runtime, needs to occupy certain memory.Memory is one and applies and running The primary storage medium of data in the process.Since the memory size on electronic equipment is limited, when the memory mistake that background application occupies When more, the operational efficiency of foreground application will affect.Thus need internally to deposit into capable recycling, to improve the operation effect of foreground application Rate.
Tradition is that will all recycle in the memory that the single application of running background occupies to application processing method.However, By individually using memory recycle completely after will lead in application starting next time and implementation procedure that need will be nearly all The speed of service that the memory being recovered reloads the application for leading to be recovered memory back significantly reduces.
Summary of the invention
The embodiment of the present application provides a kind of application processing method and device, electronic equipment, computer readable storage medium, can To reduce the influence of the operation to the application for being recovered memory while improving the operational efficiency of foreground application.
A kind of application processing method, comprising: obtain the occupied page of application to be processed;It will be stored in the page Data Migration to being used to temporarily recycle in the temporary memory space of the data;Run in preset load interface it is described to Processing application;By run during the application to be processed in the temporary memory space using to data read back again Into page, unused data are recycled.
A kind of to apply processing unit, described device includes: that page obtains module, for obtaining occupied by application to be processed Page;Storing data processing module, for by the Data Migration stored in the page to be used for temporarily recycle described in In the temporary memory space of data;Application processing module, for not receiving focus, the invisible preset load interface of screen The middle operation application to be processed;The storing data processing module be also used to run during the application to be processed In the temporary memory space using to data read back in page again, unused data are recycled.
A kind of electronic equipment, including memory and processor store computer program, the calculating in the memory When machine program is executed by the processor, so that the processor executes each application processing method as described in the examples of the application The step of.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor The step of each application processing method as described in the examples of the application is realized when row.
Application processing method and device provided by the embodiments of the present application, electronic equipment, computer readable storage medium, pass through By it is to be processed using the Data Migration stored in occupied page to being used in the temporary memory space of interim data collection, Then application to be processed is run in preset load interface, so as to accurately detect to use needed for the application to be processed Data, so by temporary memory space using to data read back in page again, by unused data into Row recycling, realize to it is to be processed application without using internal storage data precisely recycled, both improved depositing for free memory The decline of speed of service when storing up space, and preventing application recovery to be processed from running.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is the schematic diagram of internal structure of electronic equipment in one embodiment;
Fig. 2 is the part frame schematic diagram of the system in one embodiment in electronic equipment;
Fig. 3 is the flow chart of application processing method in one embodiment;
Fig. 4 is the flow chart of application processing method in another embodiment;
Fig. 5 is in one embodiment comprising not receiving focus, the sightless interface of screen schematic diagram;
Fig. 6 is the structural block diagram that processing unit is applied in one embodiment;
Fig. 7 is the structural block diagram that processing unit is applied in another embodiment;
Fig. 8 is the structural block diagram that processing unit is applied in another embodiment;
Fig. 9 is the block diagram of the part-structure of mobile phone in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, and It is not used in restriction the application.
In one embodiment, as shown in Figure 1, providing the schematic diagram of internal structure of a kind of electronic equipment.The electronics is set Standby includes processor, memory and the display screen connected by system bus.Wherein, which calculates and controls for providing Ability supports the operation of entire electronic equipment.Memory for storing data, program, and/or instruction code etc., on memory At least one computer program is stored, which can be executed by processor, and provide in the embodiment of the present application to realize Application processing method suitable for electronic equipment.Memory may include magnetic disk, CD, read-only memory (Read-Only Memory, ROM) etc. non-volatile memory mediums or random access memory (Random-Access-Memory, RAM) etc..Example Such as, in one embodiment, memory includes non-volatile memory medium and built-in storage.Non-volatile memory medium is stored with Operating system, database and computer program.It is stored in the database for realizing one provided by above each embodiment The relevant data of kind application processing method, for example the title of each application and the page for each application distribution can be stored with Etc. information.The computer program can be performed by processor, to answer for realizing one kind provided by each embodiment of the application Use processing method.Built-in storage provides high speed for operating system, database and the computer program in non-volatile memory medium The running environment of caching.Display screen can be touch screen, for example be capacitance plate or electrical screen, the interface for display foreground application It shows information, may be utilized for the touch operation that detection acts on the display screen, generate corresponding instruction, for example carry out front and back The switching command etc. of platform application.
It will be understood by those skilled in the art that structure shown in Fig. 1, only part relevant to application scheme is tied The block diagram of structure, does not constitute the restriction for the electronic equipment being applied thereon to application scheme, and specific electronic equipment can be with Including than more or fewer components as shown in the figure, perhaps combining certain components or with different component layouts.Such as electricity Sub- equipment further includes the network interface connected by system bus, and network interface can be Ethernet card or wireless network card etc., is used It is communicated in external electronic equipment, for example can be used for same server and communicated.
In one embodiment, as shown in Fig. 2, providing the part architecture diagram of a kind of electronic equipment.Wherein, which sets It include JAVA space layer 210, local ccf layer 220 and kernel (Kernel) space layer 230 in standby architecture system.JAVA is empty It may include that freezing pipe ought to use 212 on interbed 210, electronic equipment can ought to be realized with 212 by the freezing pipe and be answered each Freeze strategy, the operation such as freeze and thaw is done to the related application of backstage power consumption.It is excellent comprising resource in local ccf layer 220 First grade and limitation management module 222 and platform freezing pipe manage module 224.Electronic equipment can pass through resource prioritization and limitation management The different application of 222 real-time servicing of module in the tissue of different priorities and different resource, and according to the demand on upper layer come The resource group of application program is adjusted to reach optimization performance, saves the effect of power consumption.Electronic equipment can be freezed by platform The task that management module 224 can freeze on backstage is assigned to corresponding preset different layers according to the length for entering freeze-off time Secondary frozen crust, optionally, the frozen crust may include three, be respectively: CPU limits sleep pattern, CPU freezes sleep pattern, Process deep freezing mode.Wherein, CPU limitation sleep pattern, which refers to, limits the occupied cpu resource of associated process, makes Associated process occupies less cpu resource, and vacant cpu resource is tilted to other not frozen processes, is limited to CPU The occupancy of resource also accordingly limits process to the occupancy of Internet resources and I/O interface resource;CPU freezes sleep pattern Finger forbids associated process using CPU, and retains the occupancy to memory, when being forbidden to use cpu resource, corresponding Internet resources with And I/O interface resource is also prohibited from using;Process deep freezing mode refers in addition to being forbidden to use cpu resource, further right The occupied memory source of associated process is recycled, and the memory of recycling uses for other processes.It is wrapped in kernel spacing layer 230 It includes UID management module 231, Cgroup module 232, Binder control module 233, proceeding internal memory recycling module 234 and freezes Time-out exits module 235.Wherein, UID management module 231 is for realizing the User Identity (User based on application Identifier, UID) Lai Guanli third-party application resource or freezed.It is compared to and is identified based on process identity The control of (Process Identifier, PID) Lai Jinhang process is more convenient for being managed collectively the application of a user by UID Resource.Cgroup module 232 for provide a set of perfect central processing unit (Central Processing Unit, CPU), CPUSET, memory (memory), input/output (input/output, I/O) and the relevant resource constraint mechanism of Net.Binder Module 233 is managed for realizing the control of the backstage binder priority communicated.Wherein, the interface module of local ccf layer 220 Comprising developing to the binder interface on upper layer, binder interface of the frame or application on upper layer by offer limits to send resource The instruction made or freezed manages module 224 to resource prioritization and limitation management module 222 and platform freezing pipe.Proceeding internal memory returns Receipts module 234, in this way can be when some third-party application be chronically at frozen state for realizing process deep freezing mode It waits, can mainly discharge the file area of process, to reach the module for saving memory, also accelerate this and apply in starting next time Speed.Freeze time-out and exits exception of the module 235 for solving to occur freezing overtime scene generation.It, can by above-mentioned framework Realize the application processing method in each embodiment of the application.
In one embodiment, as shown in figure 3, providing a kind of application processing method, the present embodiment is applied in this way It is illustrated for electronic equipment as shown in Figure 1.This method comprises:
Step 302, the occupied page of application to be processed is obtained.
Application to be processed indicates the application for needing recycle committed memory.The memory (also known as deposit by arbitrary access Reservoir, random access memory, RAM) indicate the memory (i.e. running memory) used when operation program, it can only temporarily deposit Store up data, for CPU switching cache data, but memory itself cannot be used for store data long term, can be such as Fig. 1 institute The built-in storage shown.Common, application to be processed is background application.Background application is the application in running background;Accordingly, Application in front stage operation is foreground application.The operation of one application (Application, abbreviation APP) is usually by phase Close multiple processes operation and embody.Process (process) is program in computer about one on certain data acquisition system Secondary operation activity is the basic unit that system carries out Resource Distribution and Schedule, is the basis of operating system configuration.Foreground application fortune The process being related to when row is foreground process, and the process that background application is related to when running is background process.
It applies and needs committed memory space in the state of operation to store the data in operational process.Different applies The memory headroom that different operating statuses occupies is not of uniform size fixed identical.Page is that operating system internally deposits the list being managed Position, the unit memory size that the page of different electronic equipment settings occupies are not necessarily identical.Such as it is interior in electronic equipment It deposits space and is divided into 100000 pages, the page that application to be processed occupies is page 100 to page 200, and Page 130 therein to page 200 is recyclable memory page.
Electronic equipment can record all pages used in application at runtime to be processed, as recorded its institute at runtime Using to data be stored to the page of page and the information such as need.
Step 304, by the Data Migration stored in page to being used in the temporary memory space of interim data collection.
The data stored in page are data that respective application uses in the process of running or generation, the number According to by temporal cache in memory.Temporary memory space is pre-set for carrying out interim recycling storage to internal storage data Memory space.The temporary memory space can for block cache (block cache), caching of page (page cache), virtual memory, Memory space in any one or a few storage medium therein such as flash memory or external storage medium.Electronic equipment can By the Data Migration stored in part or all of page into temporary memory space.Temporary memory space is used for in page The data of storage are temporarily recycled and are stored, and are under certain condition moved back or migrated the data of storage to other and deposited It in storage space or carries out the operation such as deleting, by setting temporary memory space, it can be achieved that interior occupied by the application to be processed The all or part of interim recycling and storage deposited.
Step 306, application to be processed is run in preset load interface.
Preset load interface is the pre-set load bearing interface for being run to application to be processed.Load circle The size in face and position can be preset any appropriate size and position.In one embodiment, which can be electricity Preset a kind of split screen interface in sub- equipment, so that application to be processed can be run on the surface.
In one embodiment, which can be not receive focus, the sightless interface of screen.Wherein, focus Indicate receive user click or keyboard input ability, do not receive focus interface indicate carry out on the surface click, The operations such as input are not received or are responded.The invisible interface that indicates user's vision and can't see of screen, and be directed to for system, It is an existing interface.Its showing interface effect can be similar to the bandwagon effect at fully transparent interface, so that user can not View the information shown on the interface.Focus, the sightless interface of screen are not received by setting, so that on the surface The operation of generation will not have an impact the operation of user.
Electronic equipment according to the data migrated into temporary memory space it is preset do not receive focus, screen it is invisible Interface run the application to be processed, the required data used when running the application with detection.Wherein, the number used According to including migrating the data not migrated in data and/or free memory page into temporary memory space.Wherein, it runs to be processed The mode of application may include the mode started to application to be processed, i.e., by this do not receive focus, screen it is invisible Interface in start application to be processed, with the data that use needed for detecting during startup.By do not receive focus, The application to be processed is run in the sightless interface of screen, can reduce and user's operation and system are impacted,
Step 308, by run during application to be processed in temporary memory space using to data read back again Into page, unused data are recycled.
The data used are detected for during running the application, can be determined as when running the application The data for needing to use can read back to the partial data in page, again so that user from the temporary memory space Needing to run this in application, can prevent the operation of application to be processed from imitating rapidly using the data read back in page again Rate reduces.And for the data being not used by, then it can be recycled, such as the data record that this can be not used by Into flash memory, reduce to the occupancy of memory headroom so that during run application to be processed, need using to this It is read back in page again again when data.Optionally, new page can be distributed for application to be processed again, and will be In temporary memory space using to the corresponding memory address of page redistributed of data write-in in.
Above-mentioned application processing method, it is interim to being used for by the Data Migration in the page that occupies application to be processed In the temporary memory space of data collection, then rerun application to be processed, with detect migrated data in page it Afterwards, it is preset load run application to be processed on interface during required data being migrated used, by again After running the application to be processed, the required data used that will test out are read back in page again again, prevent from causing to miss Recycling is then recycled and for unused data, thus realize to application to be processed without using data Speed of service when precisely being recycled, not only improved the memory space of free memory, but also preventing application recovery to be processed from running Decline.
In one embodiment, step 302 includes: inquiry all pages to be processed using occupied memory;From Recyclable memory page is obtained in all pages.
Electronic equipment can pre-recorded to be processed apply running occupied all pages, and from all pages It is middle to obtain recoverable page.Recyclable memory page table, which is shown, may be recovered, and to application to be processed and other answer after recycling Operation do not impact or caused by influence lesser page.Electronic equipment can record in all pages, which A little pages are recyclable memory page, which page is that page not can be recycled, and obtain wait locate according to the record information The recyclable memory page occupied ought to be used.
In one embodiment, electronic equipment can record the different pages using occupied memory in real time, and be directed to Each occupied page, further records whether it can be recovered in real time.For example, when there are the numbers in a certain page According to by other application or application to be processed institute in use, then determine that the page is expendable page, when The data being recorded in occupied page are in nothing and continue using state, or in the nothing using state When duration is more than preset duration, then determine the page for recyclable memory page.
For application to be processed, all pages occupied by it can be inquired from pre-recorded information, and according to institute The use state of each page of record, determines whether it is recyclable memory page, then obtains all recyclable memories Page.
In one embodiment, all pages to be processed using occupied memory are inquired, comprising: traversal is to be processed The Memory Mapping File of application;All pages that application to be processed occupies are inquired by Memory Mapping File.
Memory Mapping File (Memory-Mapped Files) is by the mapping of a file to one piece of memory.Electronics is set It is standby to establish corresponding Memory Mapping File for the application to be processed, it is provided in the Memory Mapping File corresponding using institute The page of occupancy, by traversing the corresponding Memory Mapping File of application to be processed, and from each memory mapping traversed The page that the application to be processed occupies is read in file, it is to be processed using occupied all memories so as to get this Page, improve to application to be processed occupy page search efficiency and inquiry it is comprehensive.
In one embodiment, recyclable memory page is obtained from all pages, comprising: reject from all pages Carry the page for occupying label;Recyclable memory page is obtained from the page after rejecting.
Wherein, for inquiring by be processed using occupied all pages, electronic equipment is detectable each Whether whether the page inquired carries occupancy label, or occupied by multiple applications.Wherein, label expression pair is occupied The data stored in the page answered, which are in, uses or data therein are to be processed apply application to be processed It keeps during operating normally, indispensable data, it is to be processed to apply or normally transport after the data are deleted Row, or need to occupy new page repeatedly to store corresponding data, for this kind of data detected, electronic equipment can The page for storing such data is arranged occupancy label, to indicate that corresponding page cannot recycle.
In the page occupied by application to be processed, wherein the data stored are also possible to be used by other application, that is, have Multiple applications can also be arranged occupancy label, set electronics using the data in the page for such page It is standby equally to be rejected, to indicate not recycled from such page.
For the page after rejecting, the page remained is recyclable memory page, and electronic equipment can be interior from this It deposits and carries out Memory recycle in page.
In one embodiment, electronic equipment can call resource prioritization and limitation management module 222 as shown in Figure 2 To traverse the Memory Mapping File of application to be processed;All memories that application to be processed occupies are inquired by Memory Mapping File Page, and detect whether each page is recyclable memory page by the resource prioritization and limitation management module 222, for not Corresponding occupancy label is arranged in recyclable memory page, while recording occupied by the whether also multiple applications of each page, from inquiry The page for carrying and occupying label and/or being occupied by multiple applications is rejected in all pages out;From the page after rejecting Middle acquisition recyclable memory page.
Since the object temporarily recycled is the data stored in recyclable memory page, then for occupied page And temporarily recycled, can further decrease it is to be processed application or other application caused by influence, and can also reduce to Carry out the Data Migration amount during temporarily recycling.
In one embodiment, before step 304, further includes: obtain application to be processed to the free time of each page Duration;Duration threshold value is determined according to the free time length of each page;It is more than duration threshold value that step 304, which includes: by free time length, Page in the Data Migration that stores into temporary memory space.
It is not applied always and is used by the data stored in page, system is indicated to the free time length of page After the application storage allocation page to be processed, the data stored in the page after the last time is by use, in not by The duration of use state.Electronic equipment carrys out each page of real-time update according to the data service condition of each page Free time length, when be ready for application to be processed occupy page recycle when, each of state-of-the-art record can be obtained The free time length of page.
In one embodiment, it initiates when the last time to situations such as the distribution, recycling, release of page, or to place The case where service condition cached in reason device is inquired determines to make the data for the page being accordingly related to With, and the data to page the most the last of the system time under corresponding situation will be generated and use the time, current time and The difference of the nearest time is the free time length to correspondence memory page.
In one embodiment, electronic equipment can create corresponding timestamp, timestamp record pair to each page The data in page are answered to use the time in the last.In an operating system, whenever active initiates to the distribution of memory, returns It receives, release waiting time, the liveness of correspondence memory page can be updated, and the renewal time is recorded in the timestamp. Or the service condition in timing check processor caching, can determine that the data in current cache all is currently used number According to, and the timestamp of involved page is updated, which is recorded in the timestamp.It optionally, can will most New record to renewal time replace last renewal time, to reduce the resource occupation of renewal time.
Duration threshold value indicates the critical numerical value for deciding whether to recycle page.Duration threshold value can be fixed Numerical value, or can also according to the free time length of each page, the duration threshold value of determination, free time length are different, when identified Long threshold value is also not necessarily identical.
In one embodiment, duration threshold value can be the weighted average of the free time length of all pages, or may be used also To choose a free time length from the free time length of all pages, using the free time length of selection as duration threshold value.Than It can such as choose in the free time length for all pages that the application to be processed occupies in being close with median, or Free time length in sequence on a certain position, using the free time length of selection as duration threshold value.
Electronic equipment from the page that the application to be processed occupies, can be chosen idle according to identified duration threshold value Duration is more than that the page of the duration threshold value is temporarily recycled, and interim storage is written in the data stored in the page of selection In space.Optionally, electronic equipment can be by above-mentioned proceeding internal memory recycling module 234, according to the duration threshold value from page The middle recycling for carrying out page, the data stored in the page of recycling are written in temporary memory space.
For example, page has page 100, and corresponding free time length is respectively between 5 seconds to 15 minutes, when basis should , can be from the page of page 100 when the duration threshold value of free time length and determination is 5 minutes, recycling free time length is more than 5 minutes Page.
In one embodiment, the page for temporarily being recycled storing data is recyclable memory page.
In the above method, by the way that according to the free time length with each page, choosing free time length is more than corresponding duration The page of threshold value is recycled, and further reduced the influence on system operation to application to be processed, and can improve interim data collection Accuracy, reduce the data volume in the subsequent page that needs to read back again, it is minimum to the negative effect of each application, and mention High memory service efficiency, maintains the balance between the recycling and operation to application memory to be processed.
In one embodiment, application to be processed is obtained to the free time length of each page, comprising: obtains each memory The renewal time of the timestamp record of page, the free time length of corresponding page is calculated according to renewal time.
Electronic equipment can create one by above-mentioned resource prioritization and limitation management module 222 for each page Timestamp, the timestamp indicate the time that corresponding page is used recently for recording corresponding renewal time, renewal time. When detect memory in each page by use, the renewal time that the timestamp can be recorded be updated.
Wherein, it initiates whenever the last time to situations such as the distribution, recycling, release of page, or delays in processor The case where service condition deposited is inquired determines to use the data for the page being accordingly related to, and will produce System time under raw corresponding situation is as the renewal time.It, can be according to the timestamp when starting to execute Memory recycle mechanism The renewal time of record and present system time can calculate the free time length of corresponding page.Current time is nearest with this The difference of time is the free time length to correspondence memory page.
Renewal time recording each page in the way of software creation time stamp, according to the renewal time It determines free time length, can effectively be compatible with different processors, improve the versatility to Memory recycle.
In one embodiment, application to be processed is obtained to the free time length of each page, comprising: is obtained by nearest The renewal time of each page of LRU management unit records is not used at most, corresponding page is calculated according to renewal time Free time length.
In memory management in the processor or cache unit, setting is corresponding to be not used (Least at most recently Recently Used, LRU) administrative unit, for being counted to the memory used recently.LRU administrative unit is recordable every The renewal time of a memory address and the memory address, when the memory of a certain address is used to, processor will be corresponding Memory address and renewal time are put into LRU administrative unit and save.It, can be according to the memory when starting to execute Memory recycle mechanism Corresponding relationship between address and page would know that the corresponding page of each memory address, and then can be from LRU administrative unit The middle renewal time for reading corresponding page.Wherein, it initiates whenever the last time to feelings such as the distribution, recycling, release of page Shape, or the case where inquire the service condition cached in processor, determine the number to the page being accordingly related to According to being used, and the system time under corresponding situation will be generated as the renewal time.
After LRU administrative unit is used completely, it can produce interrupting information and notify operating system, operating system is reading LRU pipe Data therein can be emptied after managing the data of unit, so that LRU administrative unit can restart work, store each memory address And its information such as corresponding renewal time.
In the present embodiment, by creating LRU administrative unit, the service condition of each memory can be accurately tracked, is mentioned The accuracy of the high renewal time detection to page, also improves the convenience of Memory recycle.
In one embodiment, duration threshold value is determined according to the free time length of each page, comprising: according to each memory The free time length of page calculates application to be processed to the average free duration of page, using average free duration as duration threshold Value.
Wherein, average free duration can be applied in occupied page to be to be processed, the occupancy duration of each page Average value.Electronic equipment can call corresponding computing unit to be counted according to the occupancy duration of each page counted on It calculates, to calculate the average free duration, using the average free duration as duration threshold value.By using average free duration as Duration threshold value can be improved the computational efficiency to duration threshold value, and calculate simply, to also correspondingly increase the effect to Memory recycle Rate.
In one embodiment, as shown in figure 4, providing another application processing method, this method comprises:
Step 402, the occupied recyclable memory page of application to be processed is obtained.
Optionally, electronic equipment can traverse the Memory Mapping File of application to be processed;By Memory Mapping File inquiry to All pages that processing application occupies;The page for carrying and occupying label is rejected from all pages;In after rejecting Deposit acquisition recyclable memory page in page.
Step 404, application to be processed is obtained to the free time length of each recyclable memory page.
In one embodiment, it the renewal time that the timestamp record of each page can be obtained, is counted according to renewal time Calculate the free time length of corresponding page;Or obtain each page for passing through and LRU management unit records being not used at most recently Renewal time, the free time length of corresponding page is calculated according to renewal time.
Step 406, application to be processed is calculated according to the free time length of each recyclable memory page to be averaged to page Free time length, using average free duration as duration threshold value.
Average free duration be averaged according to the free time length of each recyclable memory page and it is calculated when It is long.By can further improve the standard temporarily recycled to recyclable memory page using average free duration as duration threshold value True property.
Step 408, by free time length more than the Data Migration stored in the recyclable memory page of duration threshold value to caching of page In memory space in.
Caching of page can be the storage medium of the data for storing in interim stored memory page marked off in advance.Passing through will The transport efficiency to the data can be improved into caching of page in Data Migration in recyclable memory page.
Step 410, do not receive focus, screen run application to be processed in sightless interface.
In one embodiment, focus, the size at the sightless interface of screen and the ruler of system display interface are not received It is very little identical.For example, as shown in figure 5, for contain in one embodiment do not receive it is focus, the sightless interface of screen Schematic diagram.Wherein, interface 502 is that this does not receive focus, the sightless interface of screen, and interface 504 is aobvious for normal system Show interface.The interface can be mobile phone operation interface, this do not receive focus, the sightless interface of screen can be and mobile phone screen ruler Very little identical interface.User is sightless and can recognize in system, runs application to be processed on interface that do not receive focus, To will not influence foregrounding, the operation of application to be processed will not be interfered, so that not receiving focus, screen at this Curtain runs to be processed in application, the required data used are also to run on the normal display interface of system on sightless interface The required data used when application to be processed, so that the accurate inspection to running needed for application to be processed using data can be realized It surveys.Wherein, running application to be processed can be starting application to be processed.
Step 412, the data weight used in memory space during application to be processed in caching of page will be run It newly reads back in page, unused data is recycled.
The data used are detected for during running the application, can be determined as when running the application The data for needing to use, can will test out use to data from being read back in page again in caching of page, the memory Page can attach most importance to newly assigned page, or be the page of the data of corresponding storage migration storage.For detecting to be not used The data arrived can be recycled among flash memory, so that subsequent needs from the flash memory in use, can be loaded back into Come.
Above-mentioned application processing method, by extremely being used to be processed using the Data Migration stored in occupied page In the temporary memory space of interim data collection, then do not receive focus, screen runs in sightless interface wait locate It ought to use, so as to accurately detect the data used needed for the application to be processed, and then will make in temporary memory space The data used are read back in page again, and unused data are recycled, and are realized and are not necessarily to application to be processed The internal storage data used is precisely recycled, and the memory space of free memory has not only been improved, but also prevents application recovery to be processed from transporting The decline of speed of service when row.
In one embodiment, before obtaining the occupied page of application to be processed, further includes: detection is to be processed to answer With whether being relied on by foreground application;Match if so, adjusting the priority of application to be processed to foreground application;Otherwise, It executes and obtains the occupied page of application to be processed.
In one embodiment, it when foreground application terminates the dependence to application to be processed, executes and obtains application to be processed Occupied page.
Relying on indicates that an application needs to be used in another or the data of multiple applications and could smoothly realize to this The relationship of the normal operation of application.There are two applications of dependence, the application of the application and dependence that are respectively relied on, electricity What sub- equipment will test out is determined as the application to be processed of the running background relied on by foreground application by foreground application dependence Background application.Electronic equipment corresponding to the background application setting relied on by foreground application detected can be relied on label, And obtain from background application pond with the background application for being relied on label, which is judged to being relied on by foreground application Background application.Foreground application is the application of front stage operation.
For the application to be processed, if being relied on by foreground application, application to be processed will can be determined as by foreground application The application of dependence adjusts the priority of the application to be processed relied on by foreground application to the priority phase with foreground application Match.
Optionally, for the application to be processed relied on by foreground application inquired, electronic equipment can be preferential grading to it Row adjustment, so that the priority of priority adjusted and the foreground application matches.Electronic equipment is settable different preceding The priority for the application to be processed that platform application relies on and the matching relationship of foreground priority.According to the matching relationship, obtains and correspond to Suitable for the priority of the application to be processed relied on by foreground application, and by the excellent of the application to be processed relied on by foreground application First grade is adjusted to the priority, the resource constraint degree to the application to be processed relied on by foreground application is reduced, so as to preceding The limited degree of resource and the limited degree of foreground application that the application to be processed that platform application relies on can use match.
In one embodiment, the priority to match with the priority of the foreground application, can be and the foreground application The identical priority of priority.I.e. electronic equipment can by this by foreground application rely on application to be processed priority adjust to The identical priority of the priority of the foreground application, so that the resource that can be used the application to be processed relied on by foreground application Limited degree it is identical as the limited degree of foreground application.
By carrying out dependence detection to application to be processed, by the preferential of the application to be processed relied on by foreground application Grade is adjusted to the priority to match with foreground application.Due to the highest priority of usual foreground application, corresponding workable resource Limited degree it is minimum, and the priority of background process is lower, to prevent background process from occupying excessive resource, to foreground application It impacts.However there is being relied on by foreground application in background process, the background process execution efficiency that is relied on When, foreground application can also be impacted.The embodiment of the present application adjusts by adjusting the priority for the application to be processed being relied on To the priority to match with foreground priority, so as to reduce the limitation for the resource that the application to be processed being relied on can use Degree, to improve the treatment effeciency for the application to be processed being relied on.Since the processing of the application to be processed being relied on is imitated Rate improves, to also improve the treatment effeciency of the foreground application dependent on the application to be processed being relied on.
In one embodiment, when it is to be processed application with there are socket communicate between foreground application, binder communicate, it is interior When depositing shared or lock waiting, determine that there are communication mechanisms between background process and foreground application.
It can detect whether there is the backstage that there is communication mechanism with foreground application by any one or a few following mode Process:
(1) detect whether there is the background process that with foreground application there is socket and/or binder to communicate;
(2) detect whether there is the background process that memory sharing is carried out between foreground application;
(3) background process stayed in lock resource there are foreground application etc. is detected whether.
Electronic equipment can lead to between foreground application and background process with the presence or absence of Binder in setting in Binder driving The testing mechanism of letter, and it is invoked at the testing mechanism being arranged in Binder driving, to detect that there are Binder with foreground application The background process of communication, the background process that will test out are determined as the background process relied on by foreground application.
In one embodiment, electronic equipment can detect each lock resource, and lock resource includes thread lock, file handle, letter Number etc..For each lock resource, it can detect whether that lock, which occurs, to be waited, i.e. lock resource waits.It, can when detecting that generating lock waits Further detect whether the behavior waited occurs in foreground application.If so, traversal etc. stays in above the lock resource All background process, will test etc. after the background process that stays in the lock resource is judged to being relied on by foreground application Platform process.
In one embodiment, lock monitoring resource module and excellent can be arranged in electronic equipment in the kernel spacing of operating system First grade adjusts module, and lock monitoring resource module is embedded into the primary waiting interface of kernel.Pass through the lock monitoring resource mould Block, detects thread lock, file handle, and signal etc. locks various lock resources, if waits, whether the behavior waited is hair Life is on foreground application, and if it is generation on foreground task, then the message that will test is sent to priority adjustment mould Block.The lock resource all of the above background thread is stayed in by priority adjustment traversal etc., these background process are determined as The background process relied on by foreground application.And module is adjusted by the priority and adjusts the priority of corresponding application to be processed To the priority to match.
In one embodiment, when, there are when synchronization mechanism, judgement has synchronous machine between background process and foreground application The application to be processed of system is the background process relied on by foreground application.
Electronic equipment can also be by calling futex system to call in detection background process set, if exists and answers with foreground With the background process with synchronization mechanism, backstage that the background process with synchronization mechanism is judged to being relied on by foreground application into Journey.
In concurrent program design, each process must restrict the access of public variable, and this restriction is known as synchronizing.? In operating system, the synchronization mechanism of User space (user mode) can be realized by calling futex system to call.Wherein, User space Refer to unprivileged.Synchronization mechanism includes semaphore, mutual exclusion lock etc..It is detected and foreground application when by futex system calling There are when the background process of any one synchronization mechanism, the background process that can be will test is determined as by after foreground application dependence Platform process.
By the detection to communication mechanism and/or synchronization mechanism between foreground application and background process, will test out The background process that with foreground application there is the background process of communication mechanism and/or synchronization mechanism to be judged to being relied on by foreground application, The efficiency of the detection to the application to be processed relied on by foreground application can be improved.
It should be understood that although each step in the flow chart of Fig. 3 and Fig. 4 is successively shown according to the instruction of arrow, But these steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly state otherwise herein, these There is no stringent sequences to limit for the execution of step, these steps can execute in other order.Moreover, in Fig. 3 and Fig. 4 At least part step may include that perhaps these sub-steps of multiple stages or stage are not necessarily same to multiple sub-steps One moment executed completion, but can execute at different times, and the execution in these sub-steps or stage sequence is also not necessarily Be successively carry out, but can at least part of the sub-step or stage of other steps or other steps in turn or Alternately execute.
In one embodiment, as shown in fig. 6, providing a kind of using processing unit, which includes: that page obtains Module 602, storing data processing module 604 and application processing module 606.Wherein, page obtains module 602 for obtaining The occupied page of application to be processed;The Data Migration that storing data processing module 604 is used to store in page is extremely used In the temporary memory space of interim data collection;Application processing module 606 in preset load interface for running wait locate It ought to use;Storing data processing module 604 is also used to use in temporary memory space during running application to be processed To data read back in page again, unused data are recycled.
In one embodiment, page obtains the Memory Mapping File that module 602 is also used to traverse application to be processed;It is logical It crosses Memory Mapping File and inquires all pages that application to be processed occupies;It rejects to carry from all pages and occupies label Page;Recyclable memory page is obtained from the page after rejecting.
In one embodiment, as shown in fig. 7, providing another memory processing unit, the device further include:
Duration determining module 608, for obtaining application to be processed to the free time length of each page;According to each memory The free time length of page determines duration threshold value.
Storing data processing module 604 is also used to move free time length more than the data stored in the page of duration threshold value It moves in temporary memory space.
In one embodiment, duration determining module 608 is also used to obtain the update of the timestamp record of each page Time calculates the free time length of corresponding page according to renewal time;Or it obtains single by the way that LRU management is not used at most recently The renewal time of each page of member record, the free time length of corresponding page is calculated according to renewal time.
In one embodiment, duration determining module 608 be also used to be calculated according to the free time length of each page to Processing is using the average free duration to page, using average free duration as duration threshold value.
In one embodiment, temporary memory space includes the memory space in caching of page;Load interface is not receive coke Point, the sightless interface of screen, the size at the load interface and the size of system display interface are identical.
In one embodiment, as shown in figure 8, providing another using processing unit, the device further include:
Detection module 610 is relied on, for detecting whether application to be processed is relied on by foreground application.
Priority adjust module 612, for when it is to be processed application relied on by foreground application when, by the preferential of application to be processed Grade, which is adjusted to foreground application, to match.
The above-mentioned division using modules in processing unit is only used for for example, in other embodiments, can will answer It is divided into different modules, as required with processing unit to complete above-mentioned all or part of function using processing unit.It closes Specific in application processing unit limits the restriction that may refer to above for application processing method, and details are not described herein.On Stating can realize using the modules in processing unit fully or partially through software, hardware and combinations thereof.Above-mentioned each module It can be embedded in the form of hardware or independently of in the processor in electronic equipment, electronic equipment can also be stored in a software form In memory in, execute the corresponding operation of above modules in order to which processor calls.
There is provided in the embodiment of the present application can be the shape of computer program using realizing for the modules in processing unit Formula.The computer program can be run on the electronic equipments such as terminal or server.The program module that the computer program is constituted can It is stored on the memory of electronic equipment.When the computer program is executed by processor, realize described in the embodiment of the present application Application processing method the step of.
In one embodiment, a kind of electronic equipment is provided, including memory, processor and storage are on a memory simultaneously The computer program that can be run on a processor is realized when processor executes computer program and is answered provided by the various embodiments described above The step of with processing method.
In one embodiment, a kind of computer readable storage medium is additionally provided, on the computer readable storage medium It is stored with computer program, when which executes processor, realizes application described in each embodiment of the application The step of processing method.
In one embodiment, a kind of computer program product comprising instruction is provided, when it runs on computers When, so that computer executes application processing method described in each embodiment of the application.
The embodiment of the present application also provides a kind of computer equipments.As shown in figure 9, for ease of description, illustrate only with The relevant part of the embodiment of the present application, it is disclosed by specific technical details, please refer to the embodiment of the present application method part.The calculating Machine equipment can be include mobile phone, tablet computer, PDA (Personal Digital Assistant, personal digital assistant), Any terminal devices such as POS (Point of Sales, point-of-sale terminal), vehicle-mounted computer, wearable device are with computer equipment For mobile phone:
Fig. 9 is the block diagram of the part-structure of mobile phone relevant to computer equipment provided by the embodiments of the present application.With reference to figure 9, mobile phone include: radio frequency (Radio Frequency, RF) circuit 910, memory 920, input unit 930, display unit 940, Sensor 950, voicefrequency circuit 960, Wireless Fidelity (wireless fidelity, WiFi) module 970, processor 980 and The components such as power supply 990.It will be understood by those skilled in the art that handset structure shown in Fig. 9 does not constitute the restriction to mobile phone, it can To include perhaps combining certain components or different component layouts than illustrating more or fewer components.
Wherein, RF circuit 910 can be used for receiving and sending messages or communication process in, signal sends and receivees, can be by base station After downlink information receives, handled to processor 980;The data of uplink can also be sent to base station.In general, RF circuit include but Be not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..In addition, RF circuit 910 can also be communicated with network and other equipment by wireless communication.Above-mentioned channel radio Any communication standard or agreement, including but not limited to global system for mobile communications (Global System of can be used in letter Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), CDMA (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), long term evolution (Long Term Evolution, LTE)), Email, Short message service (Short Messaging Service, SMS) etc..
Memory 920 can be used for storing software program and module, and processor 980 is stored in memory 920 by operation Software program and module, thereby executing the various function application and data processing of mobile phone.Memory 920 can mainly include Program storage area and data storage area, wherein program storage area can application journey needed for storage program area, at least one function Sequence (such as application program, application program of image player function of sound-playing function etc.) etc.;Data storage area can store root Created data (such as audio data, address list etc.) etc. are used according to mobile phone.In addition, memory 920 may include high speed Random access memory, can also include nonvolatile memory, a for example, at least disk memory, flush memory device or Other volatile solid-state parts.
Input unit 930 can be used for receiving the number or character information of input, and generate the user setting with mobile phone 900 And the related key signals input of function control.Specifically, input unit 930 may include touch panel 931 and other inputs Equipment 932.Touch panel 931, alternatively referred to as touch screen collect touch operation (such as the user of user on it or nearby Use the operation of any suitable object or attachment such as finger, stylus on touch panel 931 or near touch panel 931), And corresponding attachment device is driven according to preset formula.In one embodiment, touch panel 931 may include touching inspection Survey two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation Bring signal, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and will It is converted into contact coordinate, then gives processor 980, and can receive order that processor 980 is sent and be executed.In addition, Touch panel 931 can be realized using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch surface Plate 931, input unit 930 can also include other input equipments 932.Specifically, other input equipments 932 may include but not It is limited to one of physical keyboard, function key (such as volume control button, switch key etc.) etc. or a variety of.
Display unit 940 can be used for showing information input by user or be supplied to user information and mobile phone it is various Menu.Display unit 940 may include display panel 941.In one embodiment, liquid crystal display (Liquid can be used Crystal Display, LCD), the forms such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) To configure display panel 941.In one embodiment, touch panel 931 can cover display panel 941, when touch panel 931 is examined After measuring touch operation on it or nearby, processor 980 is sent to determine the type of touch event, is followed by subsequent processing device 980 provide corresponding visual output according to the type of touch event on display panel 941.Although in Fig. 9, touch panel 931 and display panel 941 are the input and input function for realizing mobile phone as two independent components, but in certain implementations In example, can be integrated by touch panel 931 and display panel 941 and that realizes mobile phone output and input function.
Mobile phone 900 may also include at least one sensor 950, such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 941, and proximity sensor can close display panel when mobile phone is moved in one's ear 941 and/or backlight.Motion sensor may include acceleration transducer, can detect by acceleration transducer and adds in all directions The size of speed can detect that size and the direction of gravity when static, can be used to identify application (such as the horizontal/vertical screen of mobile phone posture Switching), Vibration identification correlation function (such as pedometer, tap) etc.;In addition, mobile phone can also configure gyroscope, barometer, humidity Other sensors such as meter, thermometer, infrared sensor etc..
Voicefrequency circuit 960, loudspeaker 961 and microphone 962 can provide the audio interface between user and mobile phone.Audio-frequency electric Electric signal after the audio data received conversion can be transferred to loudspeaker 961, be converted to sound by loudspeaker 961 by road 960 Signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 962, is turned after being received by voicefrequency circuit 960 It is changed to audio data, then by after the processing of audio data output processor 980, another mobile phone can be sent to through RF circuit 910, or Person exports audio data to memory 920 so as to subsequent processing.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronics postal by WiFi module 970 Part, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 9 is shown WiFi module 970, but it is understood that, and it is not belonging to must be configured into for mobile phone 900, it can according to need and omit.
Processor 980 is the control centre of mobile phone, using the various pieces of various interfaces and connection whole mobile phone, is led to It crosses operation or executes the software program and/or module being stored in memory 920, and call and be stored in memory 920 Data execute the various functions and processing data of mobile phone, to carry out integral monitoring to mobile phone.In one embodiment, it handles Device 980 may include one or more processing units.In one embodiment, processor 980 can integrate application processor and modulation Demodulator, wherein the main processing operation system of application processor, user interface and application program etc.;Modem is mainly located Reason wireless communication.It is understood that above-mentioned modem can not also be integrated into processor 980.For example, the processor 980 can integrate application processor and baseband processor, baseband processor with and the composable modem such as other peripheral chips. Mobile phone 900 further includes the power supply 990 (such as battery) powered to all parts, it is preferred that power supply can pass through power management system It unites logically contiguous with processor 980, to realize the function such as management charging, electric discharge and power managed by power-supply management system Energy.
In one embodiment, mobile phone 900 can also include camera, bluetooth module etc..
In the embodiment of the present application, when processor included by the mobile phone executes the computer program of storage on a memory Realize above-mentioned described application processing method.
Any reference to memory, storage, database or other media used in this application may include non-volatile And/or volatile memory.Suitable nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), Electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include arbitrary access Memory (RAM), it is used as external cache.By way of illustration and not limitation, RAM is available in many forms, such as It is static RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM).
Above embodiments only express the several embodiments of the application, and the description thereof is more specific and detailed, but can not Therefore it is interpreted as the limitation to the application the scope of the patents.It should be pointed out that for those of ordinary skill in the art, Without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection model of the application It encloses.Therefore, the scope of protection shall be subject to the appended claims for the application patent.

Claims (10)

1. a kind of application processing method characterized by comprising
Obtain the occupied page of application to be processed;
By the Data Migration stored in the page to being used to temporarily recycle in the temporary memory space of the data;
The application to be processed is run in preset load interface;
By run during the application to be processed in the temporary memory space using to data read back to again in It deposits in page, unused data is recycled.
2. the method according to claim 1, wherein described obtain the occupied page of application to be processed, packet It includes:
Traverse the Memory Mapping File of application to be processed;
All pages that the application to be processed occupies are inquired by the Memory Mapping File;
The page for carrying and occupying label is rejected from all pages;
Recyclable memory page is obtained from the page after rejecting.
3. the method according to claim 1, wherein it is described by the Data Migration stored in the page extremely Before in temporary memory space for temporarily recycling the data, further includes:
The application to be processed is obtained to the free time length of each page;
Duration threshold value is determined according to the free time length of each page;
It is described by the Data Migration stored in the page to being used to temporarily recycle in the temporary memory space of the data, wrap It includes:
By free time length more than the Data Migration stored in the page of the duration threshold value into temporary memory space.
4. according to the method described in claim 3, it is characterized in that, described obtain the application to be processed to each memory The free time length of page, comprising:
The renewal time for obtaining the timestamp record of each page, the sky of corresponding page is calculated according to the renewal time Idle is long;Or
The renewal time for obtaining each page by the way that LRU management unit records are not used at most recently, according to the update Time calculates the free time length of corresponding page.
5. according to the method described in claim 3, it is characterized in that, the free time length according to each page Determine duration threshold value, comprising:
When calculating average free of the application to be processed to page according to the free time length of each page It is long, using the average free duration as duration threshold value.
6. the method according to claim 1, wherein the temporary memory space includes the storage sky in caching of page Between;The load interface is not receive focus, the sightless interface of screen;The size and system at the load interface show boundary The size in face is identical.
7. method according to any one of claim 1 to 6, which is characterized in that obtained shared by application to be processed described Before page, further includes:
Detect whether application to be processed is relied on by foreground application;
Match if so, adjusting the priority of the application to be processed to foreground application;
Otherwise, the acquisition occupied page of application to be processed is executed.
8. a kind of apply processing unit, which is characterized in that described device includes:
Page obtains module, for obtaining the occupied page of application to be processed;
Storing data processing module, for by the Data Migration stored in the page to being used to temporarily recycle the data In temporary memory space;
Application processing module, for running the application to be processed in preset load interface;
The storing data processing module is also used to run during the application to be processed in the temporary memory space Middle use to data read back in page again, unused data are recycled.
9. a kind of electronic equipment, including memory and processor, computer program is stored in the memory, feature exists In when the computer program is executed by the processor, so that the processor executes such as any one of claims 1 to 7 The step of the method.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program It realizes when being executed by processor such as the step of any one of claims 1 to 7 the method.
CN201711484431.XA 2017-12-29 2017-12-29 Application processing method and device, electronic equipment, computer readable storage medium Pending CN109992522A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201711484431.XA CN109992522A (en) 2017-12-29 2017-12-29 Application processing method and device, electronic equipment, computer readable storage medium
PCT/CN2018/116507 WO2019128542A1 (en) 2017-12-29 2018-11-20 Application processing method, electronic device, computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711484431.XA CN109992522A (en) 2017-12-29 2017-12-29 Application processing method and device, electronic equipment, computer readable storage medium

Publications (1)

Publication Number Publication Date
CN109992522A true CN109992522A (en) 2019-07-09

Family

ID=67065077

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711484431.XA Pending CN109992522A (en) 2017-12-29 2017-12-29 Application processing method and device, electronic equipment, computer readable storage medium

Country Status (2)

Country Link
CN (1) CN109992522A (en)
WO (1) WO2019128542A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111258965A (en) * 2020-01-10 2020-06-09 北京猎豹移动科技有限公司 Data acquisition method and device, electronic equipment and storage medium
CN114168225A (en) * 2021-12-08 2022-03-11 深圳忆联信息系统有限公司 Method and device for delaying updating of solid state disk mapping table, computer equipment and storage medium
CN114861209A (en) * 2022-05-24 2022-08-05 Oppo广东移动通信有限公司 Method and device for acquiring occupation information of memory space and terminal
CN114942800A (en) * 2021-02-09 2022-08-26 荣耀终端有限公司 Method and device for accelerating running of application program

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101231619A (en) * 2008-02-22 2008-07-30 浙江大学 Method for managing dynamic internal memory base on discontinuous page
US20090259806A1 (en) * 2008-04-15 2009-10-15 Adtron, Inc. Flash management using bad page tracking and high defect flash memory
CN102831073A (en) * 2012-08-17 2012-12-19 广东威创视讯科技股份有限公司 Internal memory data processing method and system
CN106484472A (en) * 2016-09-29 2017-03-08 华为技术有限公司 A kind of method for recovering internal storage and terminal
CN107066335A (en) * 2017-03-23 2017-08-18 华南师范大学 A kind of optimization method of cloud platform internal memory and optimization system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101231619A (en) * 2008-02-22 2008-07-30 浙江大学 Method for managing dynamic internal memory base on discontinuous page
US20090259806A1 (en) * 2008-04-15 2009-10-15 Adtron, Inc. Flash management using bad page tracking and high defect flash memory
CN102831073A (en) * 2012-08-17 2012-12-19 广东威创视讯科技股份有限公司 Internal memory data processing method and system
CN106484472A (en) * 2016-09-29 2017-03-08 华为技术有限公司 A kind of method for recovering internal storage and terminal
CN107066335A (en) * 2017-03-23 2017-08-18 华南师范大学 A kind of optimization method of cloud platform internal memory and optimization system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111258965A (en) * 2020-01-10 2020-06-09 北京猎豹移动科技有限公司 Data acquisition method and device, electronic equipment and storage medium
CN111258965B (en) * 2020-01-10 2024-03-08 北京聚云立方科技有限公司 Data acquisition method and device, electronic equipment and storage medium
CN114942800A (en) * 2021-02-09 2022-08-26 荣耀终端有限公司 Method and device for accelerating running of application program
CN114168225A (en) * 2021-12-08 2022-03-11 深圳忆联信息系统有限公司 Method and device for delaying updating of solid state disk mapping table, computer equipment and storage medium
CN114168225B (en) * 2021-12-08 2024-05-14 深圳忆联信息系统有限公司 Method, device, computer equipment and storage medium for updating solid state disk mapping table in delayed mode
CN114861209A (en) * 2022-05-24 2022-08-05 Oppo广东移动通信有限公司 Method and device for acquiring occupation information of memory space and terminal
CN114861209B (en) * 2022-05-24 2024-06-04 Oppo广东移动通信有限公司 Method, device and terminal for acquiring occupied information of memory space

Also Published As

Publication number Publication date
WO2019128542A1 (en) 2019-07-04

Similar Documents

Publication Publication Date Title
CN109992523A (en) Internal memory processing method and device, electronic equipment, computer readable storage medium
CN110018900A (en) Internal memory processing method and device, electronic equipment, computer readable storage medium
CN109992402A (en) Internal memory processing method and device, electronic equipment, computer readable storage medium
CN109992393A (en) Application processing method and device, electronic equipment, computer readable storage medium
CN110018902A (en) Internal memory processing method and device, electronic equipment, computer readable storage medium
CN109992522A (en) Application processing method and device, electronic equipment, computer readable storage medium
CN110008008A (en) Applied program processing method and device, electronic equipment, computer readable storage medium
CN109992398A (en) Method for managing resource, device, mobile terminal and computer readable storage medium
CN109992397A (en) Process handling method and device, electronic equipment, computer readable storage medium
CN110032266B (en) Information processing method, information processing device, computer equipment and computer readable storage medium
CN109992367A (en) Application processing method and device, electronic equipment, computer readable storage medium
CN104424211A (en) Microblog-based service data release method, device and system
CN110046032A (en) Applied program processing method and device, electronic equipment, computer readable storage medium
CN109992399A (en) Method for managing resource, device, mobile terminal and computer readable storage medium
CN110018903A (en) Method for managing resource, device, mobile terminal and computer readable storage medium
CN110032439A (en) Method for managing resource, device, mobile terminal and computer readable storage medium
CN109992360A (en) Process handling method and device, electronic equipment, computer readable storage medium
CN110032397A (en) Application processing method and device, electronic equipment, computer readable storage medium
CN109992309A (en) Applied program processing method and device, electronic equipment, computer readable storage medium
CN109992363A (en) Applied program processing method and device, electronic equipment, computer readable storage medium
CN109375995A (en) Using freezing method and device, storage medium, electronic equipment
CN110045811A (en) Applied program processing method and device, electronic equipment, computer readable storage medium
CN109992371A (en) Applied program processing method, device, electronic equipment, computer readable storage medium
CN109992369A (en) Applied program processing method and device, electronic equipment, computer readable storage medium
CN109992322A (en) Application program unloading method and device, storage medium and terminal

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190709