CN105005534B - A kind of method, apparatus and terminal for clearing up internal memory - Google Patents

A kind of method, apparatus and terminal for clearing up internal memory Download PDF

Info

Publication number
CN105005534B
CN105005534B CN201410165102.9A CN201410165102A CN105005534B CN 105005534 B CN105005534 B CN 105005534B CN 201410165102 A CN201410165102 A CN 201410165102A CN 105005534 B CN105005534 B CN 105005534B
Authority
CN
China
Prior art keywords
value
internal memory
virtual memory
instruction
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.)
Expired - Fee Related
Application number
CN201410165102.9A
Other languages
Chinese (zh)
Other versions
CN105005534A (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.)
Motorola Mobile Communication Technology Ltd
Original Assignee
Lenovo Mobile Communication Technology 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 Lenovo Mobile Communication Technology Ltd filed Critical Lenovo Mobile Communication Technology Ltd
Priority to CN201410165102.9A priority Critical patent/CN105005534B/en
Publication of CN105005534A publication Critical patent/CN105005534A/en
Application granted granted Critical
Publication of CN105005534B publication Critical patent/CN105005534B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)
  • Storage Device Security (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The invention provides a kind of method, apparatus and terminal for clearing up internal memory, wherein, method includes:Obtain the initial virtual memory value that operation program takes on startup;When producing the instruction of cleaning internal memory, the current virtual memory value that current background operation program takes is obtained;According to the current virtual memory value and the initial virtual memory value, operation virtual memory value is obtained;If the operation virtual memory value is more than a predetermined threshold value, the current background operation program corresponding with the operation virtual memory value is closed.Scheme provided by the invention is worth to operation virtual memory value by obtaining the initial virtual memory value that operation program takes on startup and the current virtual internal memory that acquisition backstage current operation program takes before internal memory is cleared up, then operation virtual memory value is closed more than running background program corresponding to predetermined threshold value, thoroughly release internal memory, no longer with restarting smart machine, clearance time is saved, while does not influence the use of user.

Description

A kind of method, apparatus and terminal for clearing up internal memory
Technical field
The present invention relates to technical field of intelligent equipment, particularly relates to a kind of method, apparatus and terminal for clearing up internal memory.
Background technology
On current smart machine, because installation third party software is numerous and standby for a long time, cause consumption internal memory more next More, free memory is fewer and fewer, and typically clear up internal memory can only cleaning part, it is impossible to release major part internal memory more thoroughly, Especially some third-party application RAM leakages, can not all be removed, and can only be solved by restarting.
The content of the invention
The technical problem to be solved in the present invention is to provide a kind of method, apparatus and terminal for clearing up internal memory, solves existing skill The problem of instrument of internal memory is cleared up in art can not thoroughly remove smart machine occupied internal memory.
In order to solve the above-mentioned technical problem, the embodiment of the present invention provides a kind of method for clearing up internal memory, comprises the following steps:
Obtain the initial virtual memory value that operation program takes on startup;
When producing the instruction of cleaning internal memory, the current virtual memory value that current background operation program takes is obtained;
According to the current virtual memory value and the initial virtual memory value, operation virtual memory value is obtained;
If the operation virtual memory value is more than a predetermined threshold value, close corresponding with the operation virtual memory value described Current background operation program.
Above-mentioned method, wherein, close after the current background operation program corresponding with the operation virtual memory value also Comprise the following steps:
When producing the instruction of the cleaning internal memory again, the running background program that start starts is closed.
Above-mentioned method, wherein, also comprise the following steps:
If the operation virtual memory value is less than or equal to the predetermined threshold value, the backstage that start starts is closed Operation program.
Above-mentioned method, wherein, produce cleaning internal memory instruction the step of be specially:
When detecting that terminal internal memory surplus is currently intended to amount of ram needed for the startup of operation sequence less than user, institute is produced State the instruction of cleaning internal memory.
Above-mentioned method, wherein, produce cleaning internal memory instruction the step of be specially:
When detecting the cleaning memory request of user, the instruction of the cleaning internal memory is produced.
Present invention also offers a kind of device for removing internal memory, including:
First acquisition module, the initial virtual memory value taken on startup for obtaining operation program;
Second acquisition module, for when producing the instruction of cleaning internal memory, obtaining working as current background operation program occupancy Preceding virtual memory value;
Module is obtained, for according to the current virtual memory value and the initial virtual memory value, it is empty to obtain operation Intend memory value;
First closedown module, if for when the operation virtual memory value is more than a predetermined threshold value, closing and the fortune The current background operation program corresponding to row virtual memory value.
Above-mentioned device, wherein, in addition to:
Second closedown module, it is more than described preset for closing the operation virtual memory value in first closedown module After the current background operation program corresponding to threshold value, when producing the instruction of the cleaning internal memory again, close start and start Running background program.
Above-mentioned device, wherein, in addition to:
3rd closedown module, if for it is described operation virtual memory value be less than or equal to the predetermined threshold value when, Close the running background program that start starts.
Above-mentioned device, wherein, the operation for producing the instruction of the cleaning internal memory is specially:
When detecting that terminal internal memory surplus is currently intended to amount of ram needed for the startup of operation sequence less than user, institute is produced State the instruction of cleaning internal memory.
Above-mentioned device, wherein, the operation for producing the instruction of the cleaning internal memory is specially:
When detecting the cleaning memory request of user, the instruction of the cleaning internal memory is produced.
Present invention also offers a kind of terminal, including:The device of above-mentioned cleaning internal memory.
The above-mentioned technical proposal of the present invention has the beneficial effect that:
In such scheme, in the initial virtual that the method for clearing up internal memory is taken on startup by obtaining operation program Deposit value and the current virtual internal memory that backstage current operation program takes obtained before internal memory is cleared up and be worth to operation virtual memory value, Then operation virtual memory value is closed more than running background program corresponding to predetermined threshold value, thoroughly releases internal memory, no Again with smart machine is restarted, clearance time is saved, while does not influence the use of user.
Brief description of the drawings
Fig. 1 is the method and step schematic diagram one of the embodiment of the present invention;
Fig. 2 is the method and step schematic diagram two of the embodiment of the present invention;
Fig. 3 is the method and step schematic diagram three of the embodiment of the present invention;
Fig. 4 is the apparatus structure schematic diagram one of the embodiment of the present invention;
Fig. 5 is the apparatus structure schematic diagram two of the embodiment of the present invention;
Fig. 6 is the apparatus structure schematic diagram three of the embodiment of the present invention.
Embodiment
To make the technical problem to be solved in the present invention, technical scheme and advantage clearer, below in conjunction with accompanying drawing and tool Body embodiment is described in detail.
The instrument that the present invention is directed to cleaning internal memory in existing technology can not thoroughly remove the occupied internal memory of smart machine The problem of, there is provided a kind of method for clearing up internal memory, as shown in figure 1, comprising the following steps:
Step 11:Obtain the initial virtual memory value that operation program takes on startup;
Step 12:When producing the instruction of cleaning internal memory, the current virtual internal memory that current background operation program takes is obtained Value;
Step 13:According to the current virtual memory value and the initial virtual memory value, operation virtual memory is obtained Value;
Step 14:If the operation virtual memory value is more than a predetermined threshold value, close and the operation virtual memory value pair The current background operation program answered.
Method provided in an embodiment of the present invention by obtain initial virtual memory value that operation program takes on startup and The current virtual internal memory that backstage current operation program takes is obtained before internal memory is cleared up and is worth to operation virtual memory value, then will Operation virtual memory value is closed more than running background program corresponding to predetermined threshold value, thoroughly releases internal memory, no longer with weight Smart machine is opened, saves clearance time, while does not influence the use of user.
In order to solve the internal memory of the terminal after running background program of the operation virtual memory value more than predetermined threshold value is closed still The problem of so insufficient, as shown in Fig. 2 being closed in methods described provided in an embodiment of the present invention corresponding with the operation virtual memory value The current background operation program after also comprise the following steps:
Step 15:When producing the instruction of the cleaning internal memory again, the running background program that start starts is closed.
As shown in figure 3, methods described provided in an embodiment of the present invention also comprises the following steps:
Step 16:If the operation virtual memory value is less than or equal to the predetermined threshold value, closes start and open Dynamic running background program.
In view of actually using situation, the step of the instruction of cleaning internal memory is produced in methods described provided in an embodiment of the present invention Suddenly two kinds of situations are included, the first is specially:Detecting that terminal internal memory surplus is currently intended to opening for operation sequence less than user Needed for dynamic during amount of ram, when producing the low memory of the instruction, i.e. smart machine for clearing up internal memory;It is specially for second: When detecting the cleaning memory request of user, the instruction of the cleaning internal memory is produced, i.e., when user clears up manually.
The initial virtual memory value that operation program takes on startup is obtained in methods described provided in an embodiment of the present invention The step of including obtain start be startup optimization program initial virtual value and user startup operation program initial virtual value, Start new operation program in user(Including applying, servicing and process etc.)When, first judge the initial virtual value of the operation program Whether it has been described, has not been recorded again if being described, has been recorded if not being described.
The method of cleaning internal memory provided in an embodiment of the present invention preferentially closes the operation program more than predetermined threshold value, especially The process of RAM leakage, the instrument for solving cleaning internal memory in the prior art can not thoroughly remove the occupied internal memory of smart machine The problem of.
In order to solve the above-mentioned technical problem, the embodiment of the present invention additionally provides a kind of device for removing internal memory, such as Fig. 4 institutes Show, including:
First acquisition module, the initial virtual memory value taken on startup for obtaining operation program;
Second acquisition module, for when producing the instruction of cleaning internal memory, obtaining working as current background operation program occupancy Preceding virtual memory value;
Module is obtained, for according to the current virtual memory value and the initial virtual memory value, it is empty to obtain operation Intend memory value;
First closedown module, if for when the operation virtual memory value is more than a predetermined threshold value, closing and the fortune The current background operation program corresponding to row virtual memory value.
In order to solve the internal memory of the terminal after running background program of the operation virtual memory value more than predetermined threshold value is closed still The problem of so insufficient, as shown in figure 5, described device provided in an embodiment of the present invention also includes:
Second closedown module, it is more than described preset for closing the operation virtual memory value in first closedown module After the current background operation program corresponding to threshold value, when producing the instruction of the cleaning internal memory again, close start and start Running background program.
As shown in fig. 6, described device provided in an embodiment of the present invention also includes:
3rd closedown module, if for it is described operation virtual memory value be less than or equal to the predetermined threshold value when, Close the running background program that start starts.
In view of actually using situation, the operation of the instruction of the cleaning internal memory is produced in the embodiment of the present invention includes two kinds Situation, the first is specially:Detecting that terminal internal memory surplus is currently intended to internal memory needed for the startup of operation sequence less than user During amount, when producing the low memory of the instruction, i.e. smart machine for clearing up internal memory;It is specially for second:Detecting user Cleaning memory request when, produce it is described cleaning internal memory instruction, i.e., when user clears up manually.
The present invention be embodiment provide cleaning internal memory device by obtain operation program take on startup it is initial It is virtual that virtual memory value and the current virtual internal memory that acquisition backstage current operation program takes before internal memory is cleared up are worth to operation Memory value, then operation virtual memory value is closed more than running background program corresponding to predetermined threshold value, thoroughly released Internal memory, no longer with smart machine is restarted, clearance time is saved, while do not influence the use of user.
It should be noted that the embodiment realized embodiment and be applied to the device of the method for above-mentioned cleaning internal memory In, it can also reach identical technique effect.
In order to solve the above-mentioned technical problem, the present invention is that embodiment additionally provides a kind of terminal, including:In above-mentioned cleaning The device deposited.
Wherein, the described of the device of above-mentioned cleaning internal memory realizes that embodiment suitable for the embodiment of the terminal, also can Reach identical technique effect.
Above-described is the preferred embodiment of the present invention, it should be pointed out that is come for the ordinary person of the art Say, under the premise of principle of the present invention is not departed from, some improvements and modifications can also be made, these improvements and modifications should also regard For protection scope of the present invention.

Claims (11)

  1. A kind of 1. method for clearing up internal memory, it is characterised in that comprise the following steps:
    Obtain the initial virtual memory value that operation program takes on startup;
    When producing the instruction of cleaning internal memory, the current virtual memory value that current background operation program takes is obtained;
    According to the current virtual memory value and the initial virtual memory value, operation virtual memory value is obtained;
    If the operation virtual memory value is more than a predetermined threshold value, close virtually interior more than the operation of the predetermined threshold value Deposit current background operation program corresponding to value.
  2. 2. the method as described in claim 1, it is characterised in that close the operation virtual memory more than the predetermined threshold value Also comprise the following steps after current background operation program corresponding to value:
    When producing the instruction of the cleaning internal memory again, the running background program that start starts is closed.
  3. 3. the method as described in claim 1, it is characterised in that also comprise the following steps:
    If the operation virtual memory value is less than or equal to the predetermined threshold value, the running background that start starts is closed Program.
  4. 4. the method as described in claim 1, it is characterised in that produce cleaning internal memory instruction the step of be specially:
    When detecting that terminal internal memory surplus is currently intended to amount of ram needed for the startup of operation sequence less than user, produce described clear Manage the instruction of internal memory.
  5. 5. the method as described in claim 1, it is characterised in that produce cleaning internal memory instruction the step of be specially:
    When detecting the cleaning memory request of user, the instruction of the cleaning internal memory is produced.
  6. A kind of 6. device for removing internal memory, it is characterised in that including:
    First acquisition module, the initial virtual memory value taken on startup for obtaining operation program;
    Second acquisition module, for when producing the instruction of cleaning internal memory, obtaining the current void that current background operation program takes Intend memory value;
    Module is obtained, for according to the current virtual memory value and the initial virtual memory value, it is virtual interior to obtain operation Deposit value;
    First closedown module, if for when the operation virtual memory value is more than a predetermined threshold value, closing more than described pre- If current background operation program corresponding to the operation virtual memory value of threshold value.
  7. 7. device as claimed in claim 6, it is characterised in that also include:
    Second closedown module, for closing the operation virtual memory more than the predetermined threshold value in first closedown module After current background operation program corresponding to value, when producing the instruction of the cleaning internal memory again, the backstage that start starts is closed Operation program.
  8. 8. device as claimed in claim 6, it is characterised in that also include:
    3rd closedown module, if for when the operation virtual memory value is less than or equal to the predetermined threshold value, closing The running background program that start starts.
  9. 9. device as claimed in claim 6, it is characterised in that the operation of instruction for producing the cleaning internal memory is specially:
    When detecting that terminal internal memory surplus is currently intended to amount of ram needed for the startup of operation sequence less than user, produce described clear Manage the instruction of internal memory.
  10. 10. device as claimed in claim 6, it is characterised in that the operation of instruction for producing the cleaning internal memory is specially:
    When detecting the cleaning memory request of user, the instruction of the cleaning internal memory is produced.
  11. A kind of 11. terminal, it is characterised in that including:The device of cleaning internal memory as described in any one of claim 6 to 10.
CN201410165102.9A 2014-04-23 2014-04-23 A kind of method, apparatus and terminal for clearing up internal memory Expired - Fee Related CN105005534B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410165102.9A CN105005534B (en) 2014-04-23 2014-04-23 A kind of method, apparatus and terminal for clearing up internal memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410165102.9A CN105005534B (en) 2014-04-23 2014-04-23 A kind of method, apparatus and terminal for clearing up internal memory

Publications (2)

Publication Number Publication Date
CN105005534A CN105005534A (en) 2015-10-28
CN105005534B true CN105005534B (en) 2018-01-26

Family

ID=54378213

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410165102.9A Expired - Fee Related CN105005534B (en) 2014-04-23 2014-04-23 A kind of method, apparatus and terminal for clearing up internal memory

Country Status (1)

Country Link
CN (1) CN105005534B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105700922A (en) * 2016-01-07 2016-06-22 广东欧珀移动通信有限公司 Method and device for automatically cleaning memory when charging is carried out and mobile terminal
CN105760229A (en) * 2016-02-15 2016-07-13 广东欧珀移动通信有限公司 Method and device for cleaning backstage running programs and mobile terminal
CN115809139A (en) * 2021-06-16 2023-03-17 荣耀终端有限公司 Memory management method and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101908022A (en) * 2010-08-13 2010-12-08 优视科技有限公司 Method and device for managing internal memory of mobile communication equipment terminal
CN102866908A (en) * 2012-07-25 2013-01-09 广东欧珀移动通信有限公司 Method for cleaning Android background applications and services
CN102946486A (en) * 2012-11-20 2013-02-27 惠州Tcl移动通信有限公司 Background application automatic clearing method based on mobile phone and mobile phone
CN103092700A (en) * 2013-02-01 2013-05-08 华为终端有限公司 Internal memory cleaning method and cleaning device and terminal device
CN103324575A (en) * 2012-03-23 2013-09-25 腾讯科技(深圳)有限公司 Memory clearing method and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101908022A (en) * 2010-08-13 2010-12-08 优视科技有限公司 Method and device for managing internal memory of mobile communication equipment terminal
CN103324575A (en) * 2012-03-23 2013-09-25 腾讯科技(深圳)有限公司 Memory clearing method and mobile terminal
CN102866908A (en) * 2012-07-25 2013-01-09 广东欧珀移动通信有限公司 Method for cleaning Android background applications and services
CN102946486A (en) * 2012-11-20 2013-02-27 惠州Tcl移动通信有限公司 Background application automatic clearing method based on mobile phone and mobile phone
CN103092700A (en) * 2013-02-01 2013-05-08 华为终端有限公司 Internal memory cleaning method and cleaning device and terminal device

Also Published As

Publication number Publication date
CN105005534A (en) 2015-10-28

Similar Documents

Publication Publication Date Title
CN105005534B (en) A kind of method, apparatus and terminal for clearing up internal memory
CN104244033B (en) Video broadcasting method and device, intelligent terminal
ATE533674T1 (en) SLIDING DOOR DEVICE FOR A BATTERY EXCHANGE STATION
CN105224335B (en) A kind of control method, system and the terminal device of automatic cleaning terminal device
CN104375898B (en) A kind of mobile terminal CPU usage optimization method
NO20082349L (en) Resource allocation during voting
CN103825785B (en) Monitoring method and device of service node
CN104009887A (en) Automatic speed testing method applied to network resource optimization
CN104317702A (en) Method and device for automatic testing of memory of intelligent mobile terminal
CN107678923A (en) A kind of optimization method of distributed file system Message Processing
CN106406747A (en) Hard disk storage management method and apparatus for mobile terminal
CN106997309A (en) A kind of management method of core cpu, device and terminal
CN101931174A (en) Method for realizing changing accessories of large transformer without discharging oil by utilizing oil conservator to conserve oil
CN106648646A (en) Method and device for managing threads
WO2006037635A3 (en) Determining sizes of memory frames for dynamic memory allocation limiting internal fragmentation
CN106095478A (en) Mode control method and system
CN102566727A (en) Starting control device and method
CN202290590U (en) Automatic plug pulling device of semiconductor classifier material tubes
CN108121570A (en) The method and apparatus of onboard system dormancy
CN204236835U (en) A kind of bag clamping device
CN104182552B (en) Self-adaptive sensor data grasping method and device
CN107649438A (en) The wiper mechanism and its control method of etching machine air knife
EP4138173A4 (en) Remaining capacity estimation device, model generation device, remaining capacity estimation method, model generation method, and program
CN203581698U (en) Elevated barrel for storing aluminiumpaste
CN208196414U (en) Waxing device is used in a kind of winding of rolling copper wire

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180126

Termination date: 20210423

CF01 Termination of patent right due to non-payment of annual fee