CN107450985A - EMS memory management process, mobile terminal and storage medium - Google Patents

EMS memory management process, mobile terminal and storage medium Download PDF

Info

Publication number
CN107450985A
CN107450985A CN201710622838.8A CN201710622838A CN107450985A CN 107450985 A CN107450985 A CN 107450985A CN 201710622838 A CN201710622838 A CN 201710622838A CN 107450985 A CN107450985 A CN 107450985A
Authority
CN
China
Prior art keywords
value
application
memory
information
cleaning
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710622838.8A
Other languages
Chinese (zh)
Other versions
CN107450985B (en
Inventor
唐敏
朱少杰
周佳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Everest Mobile Communication Co Ltd
Original Assignee
Beijing Everest Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Everest Mobile Communication Co Ltd filed Critical Beijing Everest Mobile Communication Co Ltd
Priority to CN201710622838.8A priority Critical patent/CN107450985B/en
Publication of CN107450985A publication Critical patent/CN107450985A/en
Application granted granted Critical
Publication of CN107450985B publication Critical patent/CN107450985B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5022Mechanisms to release resources
    • 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Storage Device Security (AREA)

Abstract

The invention discloses a kind of EMS memory management process, mobile terminal and storage medium, this method includes:After the startup of intended application, current workable internal memory margin value is obtained;Judge whether internal memory margin value is less than the first default memory value;When internal memory margin value is less than the first default memory value, current CPU usage is obtained;Judge whether CPU usage is less than predetermined threshold value;When CPU usage is less than predetermined threshold value, background application is cleared up, until internal memory margin value is more than or equal to the first default memory value.The invention also discloses a kind of mobile terminal and storage medium.The present invention is when interior surplus value is less than the first default memory value and CPU usage is less than predetermined threshold value, carry out internal memory cleaning operation, avoid the occurrence of after starting intended application, low memory when other application or associated application start, and CPU usage it is too high when, internal memory cleaning operation is performed, causes mobile terminal interim card or the situation of deadlock, improves Consumer's Experience.

Description

EMS memory management process, mobile terminal and storage medium
Technical field
The present invention relates to mobile communication technology field, more particularly to a kind of EMS memory management process, mobile terminal and storage to be situated between Matter.
Background technology
Internal memory is an important composition part of electronic equipment, and the operation of all programs is all in internal memory in electronic equipment Carry out, the performance of internal memory is most important for the overall performance of electronic equipment.
Because the memory source of electronic apparatus system is limited, when the application run in electronic apparatus system is more, The situation of memory source deficiency then occurs.When memory source deficiency, by randomly choosing the application a being currently running institute Corresponding process is simultaneously killed, with releasing memory resource.But after process corresponding to the application in being elected to is killed, still not When can solve the problems, such as memory source deficiency, then need to repeat aforesaid operations, so that it is slow memory source rate of release occur And user experience it is not high the problem of, and existing mobile terminal does not consider CPU service condition when clearing up internal memory, Cleaning operation is still performed when CPU is in busy state, causes electronic equipment interim card or the situation of deadlock occur.
The content of the invention
The technical problems to be solved by the invention are to provide a kind of EMS memory management process, mobile terminal and storage medium, with It is slow to solve existing electronic equipment memory source rate of release, and does not consider CPU service condition, busy shape is in CPU Cleaning operation is still performed during state, causes electronic equipment the problem of interim card or deadlock occur.
In order to solve the above problems, the invention provides a kind of EMS memory management process, and it includes:
After the startup of intended application, current workable internal memory margin value is obtained;
Judge whether internal memory margin value is less than the first default memory value;
When internal memory margin value is less than the first default memory value, current CPU usage is obtained;
Judge whether CPU usage is less than predetermined threshold value;
When CPU usage is less than predetermined threshold value, background application is cleared up, until internal memory margin value is pre- more than or equal to first If memory value.
As a further improvement on the present invention, after judging the step of whether CPU usage is less than predetermined threshold value, also wrap Include:
When CPU usage is more than or equal to predetermined threshold value, current background application is not cleared up.
As a further improvement on the present invention, background application is cleared up, is preset until internal memory margin value is more than or equal to first The step of memory value, including:
Obtain the cleaning rank order of background application;
According to cleaning rank order cleaning background application, until internal memory margin value is more than or equal to the first default memory value.
As a further improvement on the present invention, the step of obtaining the cleaning rank order of background application, including:
The application message of each background application is obtained, application message includes type information and parameter information;
Background application is carried out according to type information to be filtrated to get list of application, list of application includes multiple clear up should With;
Cleared up according to parameter information using being ranked up multiple, obtain clearing up rank order.
As a further improvement on the present invention, background application is carried out according to type information being filtrated to get list of application, should Include multiple the step of clearing up application with list, including:
Judge whether the type information of each background application matches with the first preset kind checking information;
If type information and the first preset kind checking information mismatch, background application corresponding with type information is added Add in list of application.
As a further improvement on the present invention, judge each background application type information whether with the first preset kind After the step of checking information matches, in addition to:
If type information and the first preset kind checking information mismatch, judge type information whether with the second preset kind Checking information matches;
If type information matches with the second preset kind checking information, when background application corresponding with type information, pre- If do not receive instruction in the period, then background application corresponding with type information is added in list of application.
As a further improvement on the present invention, multiple in list of application are cleared up according to parameter information using arranging Sequence, the step of obtaining clearing up rank order, including:
By EMS memory occupation value clearing up using added to the cleaning list of the first priority more than the second default memory value, join Number information includes EMS memory occupation value, access time information and application process priority;
Clearing up for the forward predetermined number of access time information clears up list using added to the second priority;
It is remaining to clear up using being added to third priority list;
Clearing up in the first priority cleaning list, the second priority cleaning list, third priority cleaning list should It is ranked up with by application process priority, obtains clearing up rank order.
As a further improvement on the present invention, cleared up using being ranked up multiple, cleared up according to parameter information The step of rank order, including:
Cleared up according to the maximum progress information of committed memory using scoring each, obtain the first score value, parameter Information includes maximum progress information, total memory occupation information and the application opening sequence information of committed memory;
Cleared up according to total memory occupation information using scoring each, obtain the second score value;
Cleared up according to application opening sequence information using scoring each, obtain the 3rd score value;
Add up the first score value, the second score value and the 3rd score value corresponding to can each clearing up application, and obtaining each clear up should Total score;
Cleared up according to total score using being ranked up multiple, obtain clearing up rank order.
As a further improvement on the present invention, platform application after the cleaning, until internal memory margin value is pre- more than or equal to first If after the step of memory value, in addition to:
Judge whether the internal memory margin value after cleaning is less than the 3rd default memory value, it is pre- that the 3rd default memory value is more than first If memory value;
When the internal memory margin value after cleaning is less than the 3rd default memory value, then continue to clear up background application, until internal memory Margin value is more than or equal to the 3rd default memory value.
In order to solve the above problems, present invention also offers a kind of mobile terminal, and it includes processor, is coupled with processor Memory;
Processor and memory can realize the step in the EMS memory management process of any of the above-described at work.
In order to solve the above problems, present invention also offers a kind of storage medium, is stored thereon with routine data, program number According to the step in the EMS memory management process that any of the above-described is realized when being executed by processor.
Compared to prior art, the present invention after intended application is started by clearing up background application, so that internal memory surplus More than or equal to the first default memory value, avoid after starting intended application, other application or associated application occur when starting Low memory, cleaning operation is repeated, so as to both improve cleaning efficiency, also, the present invention is less than the when internal memory margin value One default memory value and when CPU usage be less than predetermined threshold value, then progress internal memory cleaning operation, it is too high to avoid CPU usage In the case of, internal memory cleaning operation is performed, so that interim card or deadlock phenomenon occurs in mobile phone, so as to improve user experience.
Brief description of the drawings
Fig. 1 is the flow chart of the first embodiment of EMS memory management process of the present invention.
Fig. 2 is the flow chart of second of embodiment of EMS memory management process of the present invention.
Fig. 3 is the flow chart of the third embodiment of EMS memory management process of the present invention.
Fig. 4 is the flow chart of 4th kind of embodiment of EMS memory management process of the present invention.
Fig. 5 is the flow chart of 5th kind of embodiment of EMS memory management process of the present invention.
Fig. 6 is the flow chart of 6th kind of embodiment of EMS memory management process of the present invention.
Fig. 7 is the flow chart of 7th kind of embodiment of EMS memory management process of the present invention.
Fig. 8 is the flow chart of 8th kind of embodiment of EMS memory management process of the present invention.
Fig. 9 is the flow chart of 9th kind of embodiment of EMS memory management process of the present invention.
Figure 10 is the functional block diagram of the first embodiment of memory management device of the present invention.
Figure 11 is the functional block diagram of second of embodiment of memory management device of the present invention.
Figure 12 is the functional block diagram of the third embodiment of memory management device of the present invention.
Figure 13 is the functional block diagram of the 4th kind of embodiment of memory management device of the present invention.
Figure 14 is the functional block diagram of the 5th kind of embodiment of memory management device of the present invention.
Figure 15 is the functional block diagram of the 6th kind of embodiment of memory management device of the present invention.
Figure 16 is the functional block diagram of the 7th kind of embodiment of memory management device of the present invention.
Figure 17 is the functional block diagram of the 8th kind of embodiment of memory management device of the present invention.
Figure 18 is the functional block diagram of the 9th kind of embodiment of memory management device of the present invention.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used to limit the present invention.
Fig. 1 illustrates a kind of embodiment of EMS memory management process of the present invention.In the present embodiment, the EMS memory management process should For memory management device, the memory management device is located in mobile terminal.Specifically, as shown in figure 1, the EMS memory management process Including:
Step S1, after the startup of intended application, obtain current workable internal memory margin value.
Specifically, after internal memory margin value refers to that current goal application starts, the numerical value of workable internal memory.
Step S2, judges whether internal memory margin value is less than the first default memory value.It is default that if internal memory margin value is less than first Memory value, then perform step S3.
It should be noted that when if internal memory margin value is more than or equal to the first default memory value, background application is not cleared up.
Specifically, the first default memory value is numerical value set in advance, and the first default memory value should be greater than mobile whole Any application needs the memory value taken on end after starting.
Step S3, obtain current CPU usage.
Step S4, judges whether CPU usage is less than predetermined threshold value.If CPU usage is less than predetermined threshold value, step is performed Rapid S5.
Specifically, the current CPU usage of mobile terminal is obtained, is CPU when judging that CPU usage is less than predetermined threshold value During in idle condition, step S5 is performed.The current vacant rates of CPU are obtained it should be appreciated that can also be herein, when When the vacant rates of CPU are more than default value, i.e. CPU is in idle condition, has reached identical technique effect with such scheme, Belong within protection scope of the present invention.
Step S5, background application is cleared up, until internal memory margin value is more than or equal to the first default memory value.
Specifically, background application is cleared up, to provide internal memory, until internal memory margin value is more than or equal to the first default memory value Afterwards, cleaning background application is stopped.
In the present embodiment, by clearing up background application after intended application is started, so that internal memory surplus is more than or equal to First default memory value, is avoided after starting intended application, and other application or associated application low memory occur when starting, weight Cleaning operation is performed again, and so as to both improve cleaning efficiency, also, the present invention presets memory value when internal memory margin value is less than first And CPU usage then carries out internal memory cleaning operation when being less than predetermined threshold value, avoid CPU usage it is too high in the case of, perform Internal memory cleaning operation, so that interim card or deadlock phenomenon occurs in mobile phone, so as to improve user experience.
The EMS memory management process of the present invention is applied to during the use of memory management device, idle shape is in CPU Background application is cleared up during state, avoids mobile terminal interim card or deadlock.Therefore, on the basis of above-described embodiment, in other embodiment, Referring to Fig. 2, after step S4, when CPU usage is more than or equal to predetermined threshold value, step S10 is performed:
Step S10, current background application is not cleared up.
In the present embodiment, CPU usage is that CPU is in busy state more than or equal to predetermined threshold value, now, if continuing to hold The operation of row cleaning background application, then also need to take CPU, promotes CPU usage supersaturated, so as to cause mobile terminal to occur Interim card or the phenomenon of deadlock.Therefore, when CPU is in busy state, current background application is not cleared up, avoids the occurrence of shifting Dynamic terminal interim card or the phenomenon of deadlock, reduce Consumer's Experience.
The EMS memory management process of the present invention is applied to during the use of memory management device, cleared up according to rank order Background application, avoid cleaning out the application that user needs to use or is used.Therefore, on the basis of above-described embodiment, other In embodiment, as shown in figure 3, step S5 includes:
Step S20, obtain the cleaning rank order of background application.
Step S21, according to cleaning rank order cleaning background application, preset until internal memory margin value is more than or equal to first Memory value.
In the present embodiment, by obtaining the cleaning rank order of background application, after being cleared up further according to the cleaning rank order Platform application, avoid and clean out the background application that user is currently needed for using or will used, also, the cleaning rank order Can be also ranked up according to situations such as EMS memory occupation value of background application, the more background application of EMS memory occupation is come before, When carrying out cleaning operation, these contents are preferentially cleaned out, so as to quick obtaining to enough workable memory values so that interior Surplus value is more than or equal to the first default memory value, further improves internal memory rate of release.
The EMS memory management process of the present invention is applied to during the use of memory management device, according to answering for background application With the cleaning rank order of acquisition of information background application.Therefore, on the basis of above-described embodiment, in other embodiment, such as Fig. 4 institutes Show, step S20 includes:
Step S30, obtains the application message of each background application, and application message includes type information and parameter information.
Step S31, to background application be filtrated to get list of application according to type information, list of application include it is multiple can Cleaning application.
Specifically, filtered according to the type information of background application, the backstage that will be currently needed for using or will use Using filtering out, it is not cleared up, other background applications can be cleared up using then adding into list of application, as can To clear up object.
Step S32, cleared up according to parameter information using being ranked up multiple, obtain clearing up rank order.
Specifically, by clearing up using being ranked up according to parameter information, so as to obtain clearing up ranking in list of application Sequentially.
In the present embodiment, background application, which is filtrated to get, by the type information of background application can clear up application, from And filter out the application needed to use, avoid being cleaned out, reduce Consumer's Experience.
The EMS memory management process of the present invention is applied to during the use of memory management device, by background application Type information is matched, and judges whether background application needs to clear up.Therefore, on the basis of above-described embodiment, other embodiment In, as shown in figure 5, step S31 includes:
Step S40, judges whether the type information of each background application matches with the first preset kind checking information.If Type information and the first preset kind checking information mismatch, then perform step S41.
, will not be with the type information it should be noted that if type information matches with the first preset kind checking information Corresponding background application is added in list of application.
Specifically, the first preset kind checking information is default kind of authentication information, and first preset kind is verified Background application corresponding to information includes preset white list application, intelligent scene application (such as navigation, music, download, meter step application Deng), there is the application etc. of visual interface, such is commonly used using needs or persistently used, so needs filter out, prevents It is cleaned out.
Step S41, background application corresponding with type information is added in list of application.
, will be with the first preset kind checking information by setting the first preset kind checking information in the present embodiment Background application corresponding to the type information matched somebody with somebody filters out, and avoids cleaning out the background application that user is commonly used or persistently used, Cause Consumer's Experience bad.
The EMS memory management process of the present invention is applied to during the use of mobile terminal, certain applications need one section of operation Cleared up again after time.Therefore, on the basis of above-described embodiment, in other embodiment, as shown in fig. 6, after step S40, if class Type information mismatches with the first preset kind checking information, then performs step 50:
Step S50, judges whether type information matches with the second preset kind checking information.If type information is pre- with second If kind of authentication information matches, then step S51 is performed.
, directly will be with the type it should be noted that if type information and the second preset kind checking information mismatch Background application corresponding to information is added in list of application.
Step S51, when background application corresponding with type information, when not receiving instruction in preset time period, then will Background application corresponding with type information is added in list of application.
Specifically, the application that type information matches with the second preset kind checking information is that need to run answering for a period of time With such as class application of making a breakthrough of playing, user does not start next pass after certain pass is completed, and after temporarily going busy other business, the game is rushed Close class application to be cleaned out, bad experience is caused to user.Therefore, when the type information and the first preset kind of background application When checking information mismatches, judge whether the type information matches with the second preset kind checking information, if type information and the Two preset kind checking informations match, and in preset time period, background application corresponding to the type application does not receive instruction When, the background application is added in list of application, the instruction is built-in command or external command, for example, in 1 hour, trip Play is made a breakthrough using not receiving any instruction, then the game is made a breakthrough using being added in list of application, as can clear up application.
In the present embodiment, in order to prevent manslaughtering to some background applications for needing to run a period of time, second is set to preset Kind of authentication information, when the type information of background application and the first preset kind checking information mismatch and with the second preset kind When checking information matches, when the background application does not receive instruction in preset time period, then the background application is added to and answered With in list, so as to avoid the occurrence of the problem of manslaughtering background application process, Consumer's Experience is lifted.
The EMS memory management process of the present invention is applied to during the use of memory management device, can according to parameter information pair Cleaning application sequence.Therefore, on the basis of above-described embodiment, in other embodiment, as shown in fig. 7, step S32 includes:
Step S60, by EMS memory occupation value clearing up using clear added to the first priority more than the second default memory value List is managed, parameter information includes EMS memory occupation value, access time information and application process priority.
Specifically, in general, an application includes one or more processes, applies sequence main in the embodiment of the present invention It can be determined respectively according to three parameters:1st, application process priority;2nd, using committed memory;3rd, the access time letter of application Breath.The parameter information of i.e. each background application includes:EMS memory occupation value, access time information and application process priority, visit Ask that temporal information can be arranged from short to long by nearest opening interval time.And EMS memory occupation value is one most closely bound up with internal memory Individual parameter, therefore, EMS memory occupation value is arranged more than clearing up for the second default memory value using added to the cleaning of the first priority Table, as the background application of override processing, with releasing memory.Wherein, the second default memory value is preset, and can such as be set It is set to 150M.
Step S61, clearing up for the forward predetermined number of access time information arrange using added to the cleaning of the second priority Table.
Specifically, according to access time information, the application of clearing up of forward predetermined number is added to the second priority Cleaning list, the predetermined number default settings, such as 3.The cleaning priority of second priority cleaning list is excellent less than first First level clears up list.
Step S62, it is remaining to clear up using being added to third priority list.
Specifically, the cleaning priority of third priority list is less than the cleaning list of the second priority.
Step S63, in the first priority cleaning list, the second priority cleaning list, third priority cleaning list It can clear up using being ranked up by application process priority, obtain clearing up rank order.
Specifically, same priority is cleared up in list and clears up application, entered according to each application for clearing up application Journey priority is ranked up, and finally gives cleaning rank order.
, should by that can be cleared up according to EMS memory occupation value, access time information and application process priority pair in the present embodiment With being ranked up, so as to obtain clearing up rank order, background application is cleared up further according to the cleaning rank order, realizes fast quick-release Put the purpose of internal memory.
The EMS memory management process of the present invention is applied to during the use of memory management device, in another embodiment, As shown in figure 8, step S32 includes:
Step S70, cleared up according to the maximum progress information of committed memory using scoring each, obtain first point Value, parameter information include maximum progress information, total memory occupation information and the application opening sequence information of committed memory.
Step S71, cleared up according to total memory occupation information using scoring each, obtain the second score value.
Step S72, cleared up according to application opening sequence information using scoring each, obtain the 3rd score value.
Step S73, add up the first score value, the second score value and the 3rd score value corresponding to can each clearing up application, obtains each The total score of application can be cleared up.
Step S74, cleared up according to total score using being ranked up multiple, obtain clearing up rank order.
Specifically, parameter information includes that the maximum progress information of the committed memory of application, total memory occupation information can be cleared up With using opening sequence information, this can be cleared up using scoring according to three information respectively, obtains the first score value, second Score value and the 3rd score value, obtain three score values are cumulative this and can clear up total score corresponding to application, then all are cleared up It is ranked up using by total score, so as to obtain clearing up rank order.
In the present embodiment, pass through the maximum progress information according to the committed memory that can clear up application, total memory occupation information It can be cleared up using being ranked up, so as to obtain clearing up rank order, further according to the cleaning ranking with using opening sequence information pair Order cleaning background application, realize the purpose of quick release internal memory.
The EMS memory management process of the present invention is applied to during the use of memory management device, in order to reduce cleaning time Number.Therefore, on the basis of above-described embodiment, in other embodiment, as shown in figure 9, after step S5, in addition to:
Step S80, judges whether the internal memory margin value after cleaning is less than the 3rd default memory value, and the 3rd default memory value is big In the first default memory value.If the internal memory margin value after cleaning is less than the 3rd default memory value, step S81 is performed.
It should be noted that if the internal memory margin value after cleaning is more than or equal to the 3rd default memory value, after not clearing up Platform application.
Step S81, continue to clear up background application, until internal memory margin value is more than or equal to the 3rd default memory value.
In the present embodiment, such as current internal memory margin value is 32%, and the first default memory value is 35%, then only needs to clear up Background application until internal memory margin value be more than or equal to 35% when stop, but in order to avoid have next time using application internal memory when, it is necessary to again It is secondary to clear up again, the 3rd default memory value is preferably provided with, the 3rd default memory value is 40%, so, when internal memory margin value is small When the 3rd default memory value 40%, continue to clear up background application, until internal memory margin value is more than or equal to the 3rd default internal memory Value 40% is up to so as to reduce the number of cleaning background application.
Figure 10 illustrates one embodiment of memory management device of the present invention.In the present embodiment, the memory management device Including the first acquisition module 10, the first judge module 11, the second acquisition module 12, the second judge module 13 and the first cleaning modul 14。
Wherein, the first acquisition module 10, for after the startup of intended application, obtaining current workable internal memory surplus Value;First judge module 11, for judging whether internal memory margin value is less than the first default memory value;Second acquisition module 12, use In when internal memory margin value is less than the first default memory value, current CPU usage is obtained;Second judge module 13, for sentencing Whether disconnected CPU usage is less than predetermined threshold value;First cleaning modul 14, for when CPU usage is less than predetermined threshold value, clearing up Background application, until internal memory margin value is more than or equal to the first default memory value.
On the basis of above-described embodiment, in other embodiment, referring to Figure 11, the memory management device also includes stopping clearly Manage module 20.Wherein, cleaning modul 20 is stopped, for when CPU usage is more than or equal to predetermined threshold value, not to current background Using being cleared up.
On the basis of above-described embodiment, in other embodiment, referring to Figure 12, the first cleaning modul 14 includes obtaining submodule Block 141 and cleaning submodule 142.
Wherein, acquisition submodule 141, for obtaining the cleaning rank order of background application;Submodule 142 is cleared up, is used for According to cleaning rank order cleaning background application, until internal memory margin value is more than or equal to the first default memory value.
On the basis of above-described embodiment, in other embodiment, referring to Figure 13, acquisition submodule 141 includes application message Acquisition submodule 1411, filter submodule 1412 and sorting sub-module 1413.
Wherein, application message acquisition submodule 1411, for obtaining the application message of each background application, application message bag Include type information and parameter information;Filter submodule 1412, answered for background application be filtrated to get according to type information With list, list of application clears up application including multiple;Sorting sub-module 1413, for being cleared up according to parameter information multiple Using being ranked up, obtain clearing up rank order.
On the basis of above-described embodiment, in other embodiment, referring to Figure 14, filter submodule 1412 includes first and judged The adding device 14122 of unit 14121 and first.
Wherein, the first judging unit 14121, for judge each background application type information whether with it is first default Kind of authentication information matches;First adding device 14122, if for type information and the first preset kind checking information not Match somebody with somebody, then background application corresponding with type information is added in list of application.
In another embodiment, also add referring to Figure 15, filter submodule 1412 including the second judging unit 14123 and second Add unit 14124.
Wherein, the second judging unit 14123, if being mismatched for type information and the first preset kind checking information, sentence Whether disconnected type information matches with the second preset kind checking information;Second adding device 14124, if for type information and Two preset kind checking informations match, and when background application corresponding with type information, do not receive instruction in preset time period When, then background application corresponding with type information is added in list of application.
On the basis of above-described embodiment, in other embodiment, referring to Figure 16, it is preferential that sorting sub-module 1413 includes first Level setting unit 14131, the second priority setting unit 14132, third priority setting unit 14133 and application process are preferential Level sequencing unit 14134.
Wherein, the first priority setting unit 14131, for by EMS memory occupation value more than the second default memory value can be clear Ought to use added to the cleaning list of the first priority, parameter information includes EMS memory occupation value, access time information and application process Priority;Second priority setting unit 14132, the predetermined number forward for access time information are cleared up using addition List is cleared up to the second priority;Third priority setting unit 14133, for remaining clear up to be applied added to the 3rd Priority list;Application process priority ranking unit 14134, for the first priority cleaning list, the second priority is clear Clearing up using being ranked up by application process priority in reason list, third priority cleaning list, obtains clearing up ranking Sequentially.
In another embodiment, referring to Figure 17, sorting sub-module 1413 includes the first scoring unit 14135, second and scored The scoring of unit the 14136, the 3rd unit 14137, summing elements 14138 and score value sequencing unit 14139.
Wherein, the first scoring unit 14135, application is cleared up for the maximum progress information according to committed memory to each Scored, obtain the first score value, parameter information includes maximum progress information, total memory occupation information and the application of committed memory Opening sequence information;Second scoring unit 14136, for being cleared up according to total memory occupation information using commenting each Point, obtain the second score value;3rd scoring unit 14137, for applying to each clear up according to application opening sequence information Row scoring, obtains the 3rd score value;Summing elements 14138, for it is cumulative can each clear up the first score value corresponding to application, second point Value and the 3rd score value, obtain each total score for clearing up application;Score value sequencing unit 14139, for according to total score to more It is individual to clear up using being ranked up, obtain clearing up rank order.
On the basis of above-described embodiment, in other embodiment, referring to Figure 18, the memory management device is also sentenced including the 3rd The disconnected cleaning modul 31 of module 30 and second.
Wherein, the 3rd judge module 30, for judging whether the internal memory margin value after cleaning is less than the 3rd default memory value, 3rd default memory value is more than the first default memory value;Second cleaning modul 31, it is less than for internal memory margin value after cleaning During the 3rd default memory value, then continue to clear up background application, until internal memory margin value is more than or equal to the 3rd default memory value.
The other details of technical scheme are realized on each module in above-mentioned nine embodiments memory management device, reference can be made on The description in the EMS memory management process in embodiment is stated, here is omitted.
It should be noted that each embodiment in this specification is described by the way of progressive, each embodiment weight Point explanation is all difference with other embodiment, between each embodiment identical similar part mutually referring to. For device class embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, related part is joined See the part explanation of embodiment of the method.
The present embodiment additionally provides a kind of mobile terminal, and the mobile terminal includes processor, the storage with processor coupling Device.The memory storage has the functional module that above-described embodiment describes.The above-mentioned implementation that the processor passes through the memory storage The functional module of example description, it is possible to achieve the EMS memory management process that the application provides.
The present embodiment additionally provides a kind of storage medium, and for storage program data, it, which is included, is used to perform the application State the routine data designed by EMS memory management process embodiment., can be with by performing the routine data stored in the storage medium Realize the EMS memory management process that the application provides.
The embodiment of invention is described in detail above, but it is only used as example, and the present invention is not intended to limit In specific embodiments described above.For a person skilled in the art, any equivalent modifications carried out to the invention Or substitute also all among scope of the invention, therefore, the equalization made in the case where not departing from the spirit and principles in the present invention scope Conversion and modification, improvement etc., all should be contained within the scope of the invention.

Claims (11)

1. a kind of EMS memory management process, it is characterised in that it includes:
After the startup of intended application, current workable internal memory margin value is obtained;
Judge whether the internal memory margin value is less than the first default memory value;
When the internal memory margin value is less than the described first default memory value, current CPU usage is obtained;
Judge whether the CPU usage is less than predetermined threshold value;
When the CPU usage is less than the predetermined threshold value, background application is cleared up, until the internal memory margin value is more than or waited In the described first default memory value.
2. EMS memory management process according to claim 1, it is characterised in that described to judge whether the CPU usage is small After the step of predetermined threshold value, in addition to:
When the CPU usage is more than or equal to the predetermined threshold value, current background application is not cleared up.
3. EMS memory management process according to claim 1, it is characterised in that the cleaning background application, until in described Surplus value is more than or equal to the step of the described first default memory value, including:
Obtain the cleaning rank order of the background application;
The background application is cleared up according to the cleaning rank order, until the internal memory margin value is more than or equal to described first Default memory value.
4. EMS memory management process according to claim 3, it is characterised in that the cleaning ranking of the acquisition background application is suitable The step of sequence, including:
The application message of each background application is obtained, the application message includes type information and parameter information;
To the background application be filtrated to get list of application according to the type information, the list of application include it is multiple can Cleaning application;
Cleared up according to the parameter information using being ranked up the multiple, obtain the cleaning rank order.
5. EMS memory management process according to claim 4, it is characterised in that it is described according to the type information to after described Platform application carries out being filtrated to get list of application, and the list of application includes multiple the step of clearing up application, including:
Judge whether the type information of each background application matches with the first preset kind checking information;
If the type information and the first preset kind checking information mismatch, will it is corresponding with the type information after Platform, which is applied, to be added in the list of application.
6. EMS memory management process according to claim 5, it is characterised in that the type for judging each background application After the step of whether information matches with the first preset kind checking information, in addition to:
If the type information and the first preset kind checking information mismatch, judge whether the type information is preset with second Kind of authentication information matches;
If the type information matches with the second preset kind checking information, from the background should when corresponding with the type information With, when not receiving instruction in preset time period, then by background application corresponding with the type information added to it is described should With in list.
7. EMS memory management process according to claim 4, it is characterised in that described to be answered according to the parameter information described Cleared up with multiple in list using being ranked up, the step of obtaining the cleaning rank order, including:
EMS memory occupation value is cleared up into list, the ginseng more than the second clearing up for default memory value using added to the first priority Number information includes EMS memory occupation value, access time information and application process priority;
Clearing up for the forward predetermined number of the access time information clears up list using added to second priority;
It is remaining to clear up using being added to the third priority list;
In the first priority cleaning list, second priority cleaning list, third priority cleaning list It can clear up using being ranked up by the application process priority, obtain the cleaning rank order.
8. EMS memory management process according to claim 4, it is characterised in that it is described according to the parameter information to described more It is individual to clear up using being ranked up, described the step of clearing up rank order is obtained, including:
According to the maximum progress information of committed memory to it is each it is described clear up using scoring, obtain the first score value, it is described Parameter information includes maximum progress information, total memory occupation information and the application opening sequence information of committed memory;
According to total memory occupation information to it is each it is described clear up using scoring, obtain the second score value;
According to application opening sequence information to it is each it is described clear up using scoring, obtain the 3rd score value;
It is cumulative each described can clear up application corresponding to first score value, second score value and the 3rd score value, obtain Each total score that can clear up application;
Cleared up according to the total score using being ranked up the multiple, obtain the cleaning rank order.
9. EMS memory management process according to claim 1, it is characterised in that platform application after the cleaning, until the internal memory Margin value was more than or equal to after the step of the described first default memory value, in addition to:
Judge whether the internal memory margin value after cleaning is less than the 3rd default memory value, the described 3rd default memory value is more than described the One default memory value;
When the internal memory margin value after the cleaning is less than the described 3rd default memory value, then continue to clear up the background application, Until the internal memory margin value is more than or equal to the described 3rd default memory value.
10. a kind of mobile terminal, it is characterised in that it includes processor, the memory with processor coupling;
The processor and the memory can realize the EMS memory management process described in claim any one of 1-9 at work In step.
11. a kind of storage medium, is stored thereon with routine data, it is characterised in that when described program data are executed by processor Realize the step in the EMS memory management process described in claim any one of 1-9.
CN201710622838.8A 2017-07-27 2017-07-27 Memory management method, mobile terminal and storage medium Active CN107450985B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710622838.8A CN107450985B (en) 2017-07-27 2017-07-27 Memory management method, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710622838.8A CN107450985B (en) 2017-07-27 2017-07-27 Memory management method, mobile terminal and storage medium

Publications (2)

Publication Number Publication Date
CN107450985A true CN107450985A (en) 2017-12-08
CN107450985B CN107450985B (en) 2021-05-18

Family

ID=60489143

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710622838.8A Active CN107450985B (en) 2017-07-27 2017-07-27 Memory management method, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN107450985B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108459879A (en) * 2018-01-17 2018-08-28 宇龙计算机通信科技(深圳)有限公司 A kind of method preventing terminal crash, terminal
CN108710539A (en) * 2018-05-18 2018-10-26 珠海格力电器股份有限公司 A kind of information processing method, terminal and readable storage medium storing program for executing
CN109299600A (en) * 2018-08-02 2019-02-01 珠海格力电器股份有限公司 A kind of application locking unlocking method, device, terminal and readable storage medium storing program for executing
CN109558297A (en) * 2018-11-27 2019-04-02 苏州思必驰信息科技有限公司 EMS memory management process and device
CN109582442A (en) * 2018-11-30 2019-04-05 北京微播视界科技有限公司 Processing method, electronic equipment and the computer storage medium of memory spilling OOM
CN110543431A (en) * 2019-08-27 2019-12-06 Oppo(重庆)智能科技有限公司 Memory optimization method and device, electronic equipment and storage medium
WO2020206690A1 (en) * 2019-04-12 2020-10-15 深圳市欢太科技有限公司 Application cleaning method and apparatus, storage medium and electronic device

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101408861A (en) * 2007-10-11 2009-04-15 鸿富锦精密工业(深圳)有限公司 Real time monitoring system and method of application program
CN101729285A (en) * 2008-10-13 2010-06-09 大唐移动通信设备有限公司 Method for improving equipment reliability and communication equipment
CN102880516A (en) * 2012-09-13 2013-01-16 广东欧珀移动通信有限公司 Method and system for adjusting response speed of input instruction by using mobile terminal
CN102946486A (en) * 2012-11-20 2013-02-27 惠州Tcl移动通信有限公司 Background application automatic clearing method based on mobile phone and mobile phone
CN103024538A (en) * 2012-11-12 2013-04-03 北京奇虎科技有限公司 Memory management method and system
CN104298612A (en) * 2014-09-30 2015-01-21 北京金山安全软件有限公司 Method and device for cleaning memory in mobile terminal and mobile terminal
CN105094936A (en) * 2015-09-24 2015-11-25 广东小天才科技有限公司 Background application program cleaning method and device applied to mobile terminal
WO2016101686A1 (en) * 2014-12-24 2016-06-30 深圳Tcl数字技术有限公司 File scanning method and terminal
CN105893153A (en) * 2016-03-31 2016-08-24 北京百纳威尔无线通信设备有限公司 Memory cleaning method and device for mobile terminal
CN106095363A (en) * 2016-06-03 2016-11-09 广东欧珀移动通信有限公司 Ameliorative way, device and the terminal that a kind of terminal card pauses
CN106095063A (en) * 2016-06-15 2016-11-09 乐视控股(北京)有限公司 The power consumption management method of mobile terminal and power consumption management system
CN106354659A (en) * 2016-08-29 2017-01-25 许继集团有限公司 Method on FLASH resource recovery of embedded device
CN106407010A (en) * 2016-09-06 2017-02-15 北京珠穆朗玛移动通信有限公司 Internal memory management method and mobile terminal

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101408861A (en) * 2007-10-11 2009-04-15 鸿富锦精密工业(深圳)有限公司 Real time monitoring system and method of application program
CN101729285A (en) * 2008-10-13 2010-06-09 大唐移动通信设备有限公司 Method for improving equipment reliability and communication equipment
CN102880516A (en) * 2012-09-13 2013-01-16 广东欧珀移动通信有限公司 Method and system for adjusting response speed of input instruction by using mobile terminal
CN103024538A (en) * 2012-11-12 2013-04-03 北京奇虎科技有限公司 Memory management method and system
CN102946486A (en) * 2012-11-20 2013-02-27 惠州Tcl移动通信有限公司 Background application automatic clearing method based on mobile phone and mobile phone
CN104298612A (en) * 2014-09-30 2015-01-21 北京金山安全软件有限公司 Method and device for cleaning memory in mobile terminal and mobile terminal
WO2016101686A1 (en) * 2014-12-24 2016-06-30 深圳Tcl数字技术有限公司 File scanning method and terminal
CN105094936A (en) * 2015-09-24 2015-11-25 广东小天才科技有限公司 Background application program cleaning method and device applied to mobile terminal
CN105893153A (en) * 2016-03-31 2016-08-24 北京百纳威尔无线通信设备有限公司 Memory cleaning method and device for mobile terminal
CN106095363A (en) * 2016-06-03 2016-11-09 广东欧珀移动通信有限公司 Ameliorative way, device and the terminal that a kind of terminal card pauses
CN106095063A (en) * 2016-06-15 2016-11-09 乐视控股(北京)有限公司 The power consumption management method of mobile terminal and power consumption management system
CN106354659A (en) * 2016-08-29 2017-01-25 许继集团有限公司 Method on FLASH resource recovery of embedded device
CN106407010A (en) * 2016-09-06 2017-02-15 北京珠穆朗玛移动通信有限公司 Internal memory management method and mobile terminal

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108459879A (en) * 2018-01-17 2018-08-28 宇龙计算机通信科技(深圳)有限公司 A kind of method preventing terminal crash, terminal
CN108459879B (en) * 2018-01-17 2021-08-17 宇龙计算机通信科技(深圳)有限公司 Method for preventing terminal from crashing and terminal
CN108710539A (en) * 2018-05-18 2018-10-26 珠海格力电器股份有限公司 A kind of information processing method, terminal and readable storage medium storing program for executing
CN109299600A (en) * 2018-08-02 2019-02-01 珠海格力电器股份有限公司 A kind of application locking unlocking method, device, terminal and readable storage medium storing program for executing
CN109299600B (en) * 2018-08-02 2021-07-13 珠海格力电器股份有限公司 Application locking and unlocking method and device, terminal and readable storage medium
CN109558297A (en) * 2018-11-27 2019-04-02 苏州思必驰信息科技有限公司 EMS memory management process and device
CN109582442A (en) * 2018-11-30 2019-04-05 北京微播视界科技有限公司 Processing method, electronic equipment and the computer storage medium of memory spilling OOM
WO2020206690A1 (en) * 2019-04-12 2020-10-15 深圳市欢太科技有限公司 Application cleaning method and apparatus, storage medium and electronic device
CN113439263A (en) * 2019-04-12 2021-09-24 深圳市欢太科技有限公司 Application cleaning method and device, storage medium and electronic equipment
CN110543431A (en) * 2019-08-27 2019-12-06 Oppo(重庆)智能科技有限公司 Memory optimization method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN107450985B (en) 2021-05-18

Similar Documents

Publication Publication Date Title
CN107450985A (en) EMS memory management process, mobile terminal and storage medium
DE60304923T2 (en) Temporal task distribution in a mobile communication device
CN102369647B (en) Power supply managment method and device of mobile terminal
CN105893153A (en) Memory cleaning method and device for mobile terminal
CN101127713B (en) General traffic control device and traffic control method
CN107770758A (en) The bluetooth of Baffle Box of Bluetooth returns even method, Baffle Box of Bluetooth and storage medium
US20160094982A1 (en) Call Management Method and Apparatus for Multi-SIM Multi-Active Terminal
CN103513748A (en) Method for processing information, information processor and electronic device
CN107801222A (en) Bluetooth and WiFi switching method and system, client and wireless access point equipment
CN105379363A (en) System and method for managing electrical current in a portable computing device
CN104281489B (en) Multithreading requesting method and system under SOA framework
CN102595556B (en) Method and device for transmission control on session management request message
CN109413624A (en) Multimedia messages playback method, bluetooth management method, terminal and server
CN105550105B (en) The selection method and system of the identical application program of function in a kind of mobile terminal
CN107590144A (en) A kind of file memory method and terminal
CN108391022A (en) A kind of call processing method, electronic device and computer readable storage medium
CN109729519A (en) The method and relevant apparatus of data downloading
CN103428373A (en) Achieving method and device of user-defined package
CN106131134B (en) A kind of message content merges De-weight method and system
CN105955695A (en) Method for setting volume of intelligent terminal, and intelligent terminal
CN106060252B (en) A kind of management-control method of application program, device and mobile terminal
CN103828294B (en) Fiduciary power management
CN103179285A (en) Ticket file collecting method and device
CN111343683A (en) Network switching method, device, storage medium and terminal
CN106961695A (en) The management method of timer is forbidden in a kind of user equipment and connection

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
GR01 Patent grant
GR01 Patent grant