CN107357656A - A kind of memory allocation method, mobile terminal and computer-readable recording medium - Google Patents

A kind of memory allocation method, mobile terminal and computer-readable recording medium Download PDF

Info

Publication number
CN107357656A
CN107357656A CN201710498643.7A CN201710498643A CN107357656A CN 107357656 A CN107357656 A CN 107357656A CN 201710498643 A CN201710498643 A CN 201710498643A CN 107357656 A CN107357656 A CN 107357656A
Authority
CN
China
Prior art keywords
heap memory
memory size
heap
application
size
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
CN201710498643.7A
Other languages
Chinese (zh)
Other versions
CN107357656B (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.)
Hainan Feite Tongchuang Technology Co., Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201710498643.7A priority Critical patent/CN107357656B/en
Publication of CN107357656A publication Critical patent/CN107357656A/en
Application granted granted Critical
Publication of CN107357656B publication Critical patent/CN107357656B/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

Abstract

The invention discloses a kind of memory allocation method, the heap memory of statistics application uses data, calculates heap memory size required during the application operation, is on startup that the application distributes heap memory according to the required heap memory size.The invention also discloses a kind of mobile terminal and computer-readable recording medium, solve and apply for that the operation of releasing memory more and more frequently causes the frequent of GC operations in correlation technique, the problem of causing to apply interim card in running and consuming excess CPU resources, the memory size storage allocation needed when being run according to application, reduce the frequency of GC operations, improve Consumer's Experience.

Description

A kind of memory allocation method, mobile terminal and computer-readable recording medium
Technical field
The present invention relates to mobile communication technology field, more particularly to a kind of memory allocation method, mobile terminal and calculating Machine readable storage medium storing program for executing.
Background technology
With the development of internet and the popularization of terminal, the customer group of terminal is increasing, while also software is proposed More intelligence, the demand of hommization.
In existing technology, terminal in fact, although by user as a game machine or television set, it is also possible to one Learning machine, it is also possible to as paradise of baby etc., more enjoyment are brought to our life.With communication product more New to regenerate, mobile terminal (such as mobile phone, individual digital assistant PDA etc.) has turned into the indispensable communication tool of people.Various sides The function that persons who happens to be on hand for an errand live can be realized on mobile terminals, such as mobile TV, GPS, mobile payment etc., be required for moving Terminal is linked into internet and could realized.
With the fast development of electronic industry, mobile terminal intelligence degree more and more higher.Mobile terminal researches and develops company Increasingly focus on intelligent, human oriented design.Under the fast-developing background of this mobile terminal, the operation readiness and human nature of terminal Change is designed to the very important part of mobile terminal.
In android system, the characteristics of due to android system software architecture, all Android application programs are all Operate in ART virtual machines.Android 4.4 provides a kind of and completely different Dalvik running environment ART (Android Runtime) support, ART comes from the Flexycore of google purchases company.The ART patterns difference maximum with Dalvik patterns It is, after enabling ART patterns, system can carry out a precompile when installing and applying, and bytecode is converted into machine language Speech is stored in local, would not once be compiled every time so in operation program, execution efficiency also greatly promotes.This The mode and the rough picture of c++, c language compilation's mode of kind compiling.Virtual machine when ART is run as a kind of java of embedded device, Its memory management mechanism is identical with other java virtual machines, reclaims internal memory by its distinctive GC mechanism, it is not necessary to programmer Intervene manually.Although ART is greatly improved compared to other java virtual machines in performance, rubbish receipts are greatly reduced Interim card is applied caused by collection (Garbage Collection, referred to as GC) operation, but due to GC mechanism itself, When there is heap memory deficiency in application program internal memory, it is still desirable to by all thread suspensions in virtual machine in addition to GC threads To reclaim internal memory, cause to apply interim card.In addition, when the heap memory size of application reaches the recovery threshold values of virtual machine, can also touch Send out GC operations.As android application committed memory resources are more and more, apply for the operation increasingly frequency of releasing memory resource Numerous, this also brings the frequent of GC operations, causes using interim card in running.On the other hand, frequently GC can consume CPU moneys Source, while also result in the increase of system power dissipation.
For applying for that the operation of releasing memory more and more frequently causes the frequent of GC operations in correlation technique, cause using fortune During row interim card and consumption excess CPU resources the problem of, not yet propose solution at present.
The content of the invention
It is a primary object of the present invention to propose a kind of memory allocation method, mobile terminal and computer-readable storage medium Matter, it is intended to solve to apply in correlation technique that the operation of releasing memory more and more frequently causes the frequent of GC operations, cause using fortune During row interim card and consumption excess CPU resources the problem of.
To achieve the above object, the embodiment of the present invention proposes a kind of memory allocation method, including:
The heap memory of statistics application uses data;
Calculate heap memory size required during the application operation;
It is on startup that the application distributes heap memory according to the required heap memory size.
Preferably, count the heap memory of the application is included using data:
The heap memory that the application is counted in units of process corresponding to the application uses data, wherein, when process is created Start to count when building, stop statistics at the end of process.
Preferably, required heap memory size includes when calculating the application operation:
In the application corresponds to the running of process, when having detected building component and having exited, enter described in statistics The heap memory size of journey;
At the end of process corresponding to the application, in the average value and heap that calculate the heap memory size that the process uses Deposit the maximum of size;
When determining the application operation according to the maximum of the average value of the heap memory size and the heap memory size Required heap memory size.
Preferably, calculate the process and use the average value of heap memory size and the maximum bag of the heap memory size Include:
In the application first to use, after the application is exited, data are used according to the heap memory of collection, described in calculating Heap memory uses the average value of data, and the heap memory is defined as into being averaged for the heap memory size using the average value of data Value, the heap memory are defined as the maximum of the heap memory size using the maximum in data.
Preferably, distributing heap memory according to the required heap memory size for the application on startup includes:
When the application is first in use, the default value of ART virtual machines parameter is big as heap memory when being run using Android Small initial value, other values use the default configuration of ART virtual machines.
Preferably, calculating the average value for the heap memory size that the process uses and the maximum of heap memory size includes:
Used first to be non-in the application, the application this exit after, choose maximum and this that last time uses The heap memory of collection uses the maximum of data, is defined as the maximum of the heap memory size;The average value of last time and this Average value average, be defined as the average value of the heap memory size.
Preferably, distributing heap memory according to the required heap memory size for the application on startup includes:
When it is described using non-first in use, being used as ART virtual machine heap memories using the average value of the heap memory size Initial value.
Preferably, distributing heap memory according to the required heap memory size for the application on startup includes:
When described apply in front stage operation, minimum value being averaged for the heap memory size of heap memory size is kept Value;When heap memory deficiency is wait the heap memory applied, GC operations are performed, if heap memory still deficiency heap to be applied after GC operations Internal memory, heap memory size is expanded to the maximum of the heap memory size;If the heap memory to be applied exceedes described During the maximum of heap memory size, the heap memory distribution mechanism given tacit consent to according to ART is handled;
When described apply in front stage operation, after Memory recycle, the size that heap memory has used is big less than the heap memory During small average value, the average value that heap memory size is the heap memory size is kept;If greater than the heap memory size Average value but the maximum for being less than the heap memory size, then remain the maximum of the heap memory size;If more than described During the maximum of heap memory size, handled by ART default mechanisms;
When backstage is shifted in the application onto, perform GC operations, and discharge the heap memory of the application, given tacit consent to using ART in Deposit administrative mechanism;
When the application from when switching to foreground from the background, if heap memory size is less than the average value of the heap memory size, The average value that heap memory size is the heap memory size is then set;Average value if greater than the heap memory size but it is less than The maximum of the heap memory size, then the maximum that heap memory size is the heap memory size is set;If greater than described The maximum of heap memory size, then keep constant.
Another aspect according to embodiments of the present invention, additionally provides a kind of mobile terminal, and the mobile terminal includes processing Device, memory and communication bus;
The communication bus is used to realize the connection communication between processor and memory;
The processor is used to perform the Memory Allocation program stored in memory, to realize following steps:
The heap memory of statistics application uses data;
Calculate heap memory size required during the application operation;
It is on startup that the application distributes heap memory according to the required heap memory size.
Preferably, the processor is additionally operable to perform Memory Allocation program, to realize following steps:
The heap memory that the application is counted in units of process corresponding to the application uses data, wherein, when process is created Start to count when building, stop statistics at the end of process.
Preferably, the processor is additionally operable to perform Memory Allocation program, to realize following steps:
In the application corresponds to the running of process, when having detected building component and having exited, enter described in statistics The heap memory size of journey;
At the end of process corresponding to the application, in the average value and heap that calculate the heap memory size that the process uses Deposit the maximum of size;
When determining the application operation according to the maximum of the average value of the heap memory size and the heap memory size Required heap memory size.
Preferably, the processor is additionally operable to perform Memory Allocation program, to realize following steps:
In the application first to use, after the application is exited, data are used according to the heap memory of collection, described in calculating Heap memory uses the average value of data, and the heap memory is defined as into being averaged for the heap memory size using the average value of data Value, the heap memory are defined as the maximum of the heap memory size using the maximum in data.
Preferably, the processor is additionally operable to perform Memory Allocation program, to realize following steps:
When it is described application first in use, using ART virtual machine parameters default value as heap memory size initial value, Other values use the default configuration of ART virtual machines.
Preferably, the processor is additionally operable to perform Memory Allocation program, to realize following steps:
Used first to be non-in the application, the application this exit after, choose maximum and this that last time uses The heap memory of collection uses the maximum of data, is defined as the maximum of the heap memory size;The average value of last time and this Average value average, be defined as the average value of the heap memory size.
Preferably, the processor is additionally operable to perform Memory Allocation program, to realize following steps:
When it is described using non-first in use, being used as ART virtual machine heap memories using the average value of the heap memory size Initial value.
Preferably, the processor is additionally operable to perform Memory Allocation program, to realize following steps:
When described apply in front stage operation, minimum value being averaged for the heap memory size of heap memory size is kept Value;When heap memory deficiency is wait the heap memory applied, GC operations are performed, if heap memory still deficiency heap to be applied after GC operations Internal memory, heap memory size is expanded to the maximum of the heap memory size;If the heap memory to be applied exceedes described During the maximum of heap memory size, the heap memory distribution mechanism given tacit consent to according to ART is handled;
When described apply in front stage operation, after Memory recycle, the size that heap memory has used is big less than the heap memory During small average value, the average value that heap memory size is the heap memory size is kept;If greater than the heap memory size Average value but the maximum for being less than the heap memory size, then remain the maximum of the heap memory size;If more than described During the maximum of heap memory size, handled by ART default mechanisms;
When backstage is shifted in the application onto, perform GC operations, and discharge the heap memory of the application, given tacit consent to using ART in Deposit administrative mechanism;
When the application from when switching to foreground from the background, if heap memory size is less than the average value of the heap memory size, The average value that heap memory size is the heap memory size is then set;Average value if greater than the heap memory size but it is less than The maximum of the heap memory size, then the maximum that heap memory size is the heap memory size is set;If greater than described The maximum of heap memory size, then keep constant.
Another aspect according to embodiments of the present invention, additionally provide a kind of computer-readable recording medium, the computer Readable storage medium storing program for executing is stored with one or more program, and one or more of programs can be by one or more processor Perform, the step of to realize above-mentioned memory allocation method.
By the present invention, the heap memory of statistics application uses data, calculates heap memory required during the application operation Size, it is on startup that the application distributes heap memory according to the required heap memory size, solves Shen in correlation technique Please the operation of releasing memory more and more frequently cause the frequent of GC operations, cause to apply interim card in running and consumption be excessive The problem of cpu resource, the memory size storage allocation needed when being run according to application, reduce the frequency of GC operations, improve Consumer's Experience.
Brief description of the drawings
Fig. 1 is the hardware architecture diagram for realizing each one optional mobile terminal of embodiment of the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the flow chart of memory allocation method according to embodiments of the present invention;
Fig. 4 is the block diagram of the mobile terminal of Memory Allocation according to embodiments of the present invention.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In follow-up description, the suffix using such as " module ", " part " or " unit " for representing element is only Be advantageous to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " part " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as mobile phone, flat board Computer, notebook computer, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable Media player (Portable Media Player, PMP), guider, wearable device, Intelligent bracelet, pedometer etc. move Dynamic terminal, and the fixed terminal such as digital TV, desktop computer.
It will be illustrated in subsequent descriptions by taking mobile terminal as an example, it will be appreciated by those skilled in the art that except special Outside element for moving purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, its hardware architecture diagram for a kind of mobile terminal of each embodiment of the realization present invention, the shifting Dynamic terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103rd, A/V (audio/video) input block 104, sensor 105, display unit 106, user input unit 107, interface unit 108th, the part such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1 Mobile terminal structure does not form the restriction to mobile terminal, and mobile terminal can be included than illustrating more or less parts, Either combine some parts or different parts arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base station Downlink information receive after, handled to processor 110;In addition, up data are sent to base station.Generally, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrate Frequency unit 101 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, WCDMA), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, FDD Long Term Evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex Long Term Evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102 Sub- mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, it is simultaneously not belonging to must be configured into for mobile terminal, completely can be according to need To be omitted in the essential scope for do not change invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is receiving or It is sound that the voice data stored in memory 109, which is converted into audio signal and exported,.Moreover, audio output unit 103 The audio output related to the specific function that mobile terminal 100 performs can also be provided (for example, call signal receives sound, disappeared Breath receives sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
A/V input blocks 104 are used to receive audio or video signal.A/V input blocks 104 can include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the static images or the view data of video obtained in image capture mode by image capture apparatus (such as camera) are carried out Reason.Picture frame after processing may be displayed on display unit 106.Picture frame after the processing of graphics processor 1041 can be deposited Storage is transmitted in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (voice data), and can be voice data by such acoustic processing.Audio (voice) data after processing can To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model. Microphone 1042 can implement various types of noises and eliminate (or suppression) algorithm to eliminate (or suppression) in reception and send sound Caused noise or interference during frequency signal.
Mobile terminal 100 also includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity transducer can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general For three axles) size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Display unit 106 is used for the information for showing the information inputted by user or being supplied to user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 1061.
User input unit 107 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal The key signals input that family is set and function control is relevant.Specifically, user input unit 107 may include contact panel 1071 with And other input equipments 1072.Contact panel 1071, also referred to as touch-screen, collect touch operation of the user on or near it (for example user uses any suitable objects or annex such as finger, stylus on contact panel 1071 or in contact panel 1071 Neighbouring operation), and corresponding attachment means are driven according to formula set in advance.Contact panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it Contact coordinate is converted into, then gives processor 110, and the order sent of reception processing device 110 and can be performed.In addition, can To realize contact panel 1071 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap Include but be not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc. One or more, do not limit herein specifically.
Further, contact panel 1071 can cover display panel 1061, detect thereon when contact panel 1071 or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, contact panel 1071 and display panel 1061 be the part independent as two to realize the input of mobile terminal and output function, but in certain embodiments, can Input and the output function of mobile terminal are realized so that contact panel 1071 and display panel 1061 is integrated, is not done herein specifically Limit.
Interface unit 108 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 100.For example, External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing Line FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include storing program area And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as Voice data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection Individual part, by running or performing the software program and/or module that are stored in memory 109, and call and be stored in storage Data in device 109, the various functions and processing data of mobile terminal are performed, so as to carry out whole monitoring to mobile terminal.Place Reason device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main Handle radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) to all parts power supply, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, put The function such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also will not be repeated here including bluetooth module etc..
For the ease of understanding the embodiment of the present invention, the communications network system being based on below to the mobile terminal of the present invention enters Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system Unite as the LTE system of universal mobile communications technology, the UE that the LTE system includes communicating connection successively (User Equipment, is used Family equipment) 201, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, evolved UMTS lands Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned terminal 100, and here is omitted.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connected with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide UE201 to EPC203 access.
EPC203 can include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way, Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling between EPC203, there is provided carrying and connection management.HSS2032 is all to manage for providing some registers Such as the function of attaching position register (not shown) etc, and preserve some and used about service features, data rate etc. The special information in family.All customer data can be transmitted by SGW2034, and PGW2035 can provide UE 201 IP Address is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resources Point, it selects and provided available strategy and charging control decision-making with charge execution function unit (not shown) for strategy.
IP operation 204 can include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And following new network system etc., do not limit herein.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the inventive method is proposed.
Embodiment 1
Based on above-mentioned mobile terminal, the embodiments of the invention provide a kind of memory allocation method, Fig. 3 is according to the present invention The flow chart one of the memory allocation method of embodiment, as shown in figure 3, this method comprises the following steps:
Step S301, the heap memory of statistics application use data;
Step S302, calculate heap memory size required during the application operation;
Step S303, it is on startup that the application distributes heap memory according to the required heap memory size.
By above-mentioned steps, the heap memory of statistics application uses data, calculates in heap required during the application operation Size is deposited, is on startup that the application distributes heap memory according to the required heap memory size, solves in correlation technique Apply for that the operation of releasing memory more and more frequently causes the frequent of GC operations, cause to apply interim card in running and consumption is excessive The problem of cpu resource, the memory size storage allocation needed when being run according to application, reduce the frequency of GC operations, improve Consumer's Experience.
In embodiments of the present invention and in other embodiment, GC (Garbage Collection, garbage reclamation station), be by Useless heap object is cleared up, and releasing memory, to avoid RAM leakage.
Preferably, count the heap memory of the application is included using data:United in units of process corresponding to the application The heap memory for counting the application uses data, wherein, start to count when process creation, stop statistics at the end of process.
Preferably, required heap memory size includes when calculating the application operation:Process is corresponded in the application In running, when having detected building component and having exited, the heap memory size of the process is counted;It is corresponding in the application Process at the end of, calculate the average value for the heap memory size that the process uses and the maximum of heap memory size;According to institute State the average value of heap memory size and the maximum of the heap memory size determines that heap memory required during the application operation is big It is small.
Preferably, calculate the process and use the average value of heap memory size and the maximum bag of the heap memory size Include:In the application to use first, after the application is exited, data are used according to the heap memory of collection, calculated in the heap The average value using data is deposited, the heap memory is defined as to the average value of the heap memory size using the average value of data, The heap memory is defined as the maximum of the heap memory size using the maximum in data.
Preferably, distributing heap memory according to the required heap memory size for the application on startup includes:Work as institute State using first in use, using Android run when ART virtual machine parameters default value as heap memory size initial value, its He is worth the default configuration for using ART virtual machines.
Preferably, calculating the average value for the heap memory size that the process uses and the maximum of heap memory size includes: Used first to be non-in the application, the application this exit after, choose maximum that last time uses and heap of this collection Internal memory uses the maximum of data, is defined as the maximum of the heap memory size;The average value of last time and this average value Average, be defined as the average value of the heap memory size.
Preferably, distributing heap memory according to the required heap memory size for the application on startup includes:Work as institute State using it is non-first in use, using the heap memory size average value as ART virtual machine heap memories initial value.
Preferably, distributing heap memory according to the required heap memory size for the application on startup can include:
When described apply in front stage operation, minimum value being averaged for the heap memory size of heap memory size is kept Value;When heap memory deficiency is wait the heap memory applied, GC operations are performed, if heap memory still deficiency heap to be applied after GC operations Internal memory, heap memory size is expanded to the maximum of the heap memory size;If the heap memory to be applied exceedes described During the maximum of heap memory size, the heap memory distribution mechanism given tacit consent to according to ART is handled;
When described apply in front stage operation, after Memory recycle, the size that heap memory has used is big less than the heap memory During small average value, the average value that heap memory size is the heap memory size is kept;If greater than the heap memory size Average value but the maximum for being less than the heap memory size, then remain the maximum of the heap memory size;If more than described During the maximum of heap memory size, handled by ART default mechanisms;
When backstage is shifted in the application onto, perform GC operations, and discharge the heap memory of the application, given tacit consent to using ART in Deposit administrative mechanism;
When the application from when switching to foreground from the background, if heap memory size is less than the average value of the heap memory size, The average value that heap memory size is the heap memory size is then set;Average value if greater than the heap memory size but it is less than The maximum of the heap memory size, then the maximum that heap memory size is the heap memory size is set;If greater than described The maximum of heap memory size, then keep constant.
On the basis of original ART memory managements mechanism, a kind of ART EMS memory management process of optimization is proposed.This method is borrowed Data statistics technology is helped, data are used by the internal memory for collecting each application, it is big to calculate the heap memory needed during each application operation It is small, so as to just distribute the heap memory of suitable size when application starts, avoid applying during front stage operation due to internal memory Frequent GC caused by deficiency and the operation of internal memory application release, so as to improve the speed of service of android applications, reduce power consumption.
The method of application memory Data Collection is as follows:
The internal storage data of application is collected in units of process corresponding to applying, starts to collect when process creation, process knot Stop collecting during beam;
In the running of the corresponding process of application, when having detected that Activity, Service and Provider component creates When building and exiting, the heap memory size of process is collected;
At the end of using corresponding process, average value and maximum that the process uses heap memory size are calculated;
Calculate the average value used using heap memory and maximum rule is as follows:
(1) if, the application be to use first, after exiting, according to the heap memory data of collection, calculate these data Average value, as the average value used using heap memory;Maximum therein, the maximum used as heap memory;
(2) if, use first using non-, after this application is exited, take the maximum of last time and data of this collection Maximum, the maximum as heap memory;The average of both the average value of last time and current average value, as the application heap The average value of memory size.
The method of ART virtual machines optimization is as follows:
(1), when application is first in use, the default value using ART virtual machine parameters HeapStartSize is used as heap memory Initial value, other values use ART virtual machines default configuration;
(2), when application non-first time in use, being used as ART virtual machine heap memories using the average value of heap memory using this Initial value;
(3) its minimum average value of size in front stage operation, keeping heap memory, is applied;When heap memory deficiency needs During application, GC operations are first carried out, if heap memory is still unsatisfactory for after GC operations, heap memory size is expanded into its maximum; If the heap memory of application needs to exceed its maximum, the heap memory distribution mechanism given tacit consent to according to ART is handled;
(4), apply in front stage operation, after Memory recycle, when heap memory is less than average value with size, keep heap memory Size is its average value;If greater than average value but it is less than maximum, then remains maximum;During more than maximum, write from memory by ART Recognize mechanism processing;
(5) when, using backstage is shifted onto, GC operations are performed, and discharge its heap memory, using ART default memory administrative mechanisms.
(6), using from when switching to foreground from the background, if heap memory size is less than average value, setting heap memory size is Its average value;If greater than average value but it is less than maximum, then it is its maximum to set heap memory size;If greater than maximum Value, then keep constant.
The embodiment of the present invention, on based on ART memory management manufacturing basis, by data statistics technology, being calculated should With the use size of heap memory, by improving ART EMS memory management process, different memory management plans of the connected applications in front and back Slightly, avoid applying and occur interim card caused by frequent GC in front stage operation, accelerate the speed of service of application, reduce system Power consumption.Simultaneously after using backstage is fallen back on, the internal memory of free time can be reclaimed in time again, avoid the waste of internal memory.
Next, labor Dalvik virtual machine is that how to solve low memory problem, and distribute interior Deposit and how to manage.
Dalvik virtual machine realizes a dvmAllocObject function.Whenever Dalvik virtual machine is needed for object point , will call function dvmAllocObject during with internal memory.For example, refer to when the interpreter of Dalvik virtual machine runs into a new When making, it will call function dvmAllocObject.
It is the type clazz for finding the object to be created first, then on the realization of the interpreter of Dalvik virtual machine Using it as parameter call function dvmAllocObject as the object storage allocation to be created.Another parameter ALLOC_ DONT_TRACK is the heap manager for telling Dalvik virtual machine, and the object to be distributed is a root collection object, it is not necessary to it It is tracked.Because root collection object can be tracked processing automatically in GC
The internal memory that function dvmAllocObject call functions dvmMalloc distributes one piece of specified size from Java heap is given The object newly created uses.If it is allocated successfully, then new wound is just first next initialized using grand DVM_OBJECT_INIT Build the member variable clazz to object so that the object newly created can associate with some specific class, then recall Function dvmTrackAllocation records current Memory Allocation information, to notify DDMS.
Simply one piece of memory address that function dvmMalloc is returned, this is no type.But due to each Java Object all gets off from Object Similar integrals, and therefore, function dvmAllocObject can be by acquisition without in type Counterfoil unsteady state operation is an Object object.
Object classes have two member variables:Clazz and lock.Wherein, member variable clazz type is ClassObject, it corresponds to the java.lang.Class classes of Java layers, for the class belonging to description object.Member variable Lock is a lock, exactly because there is this member variable, in Java layers, each object can use when lock.
After the definition that understanding of Object classes, before and after Java heap storage allocation, locking reconciliation is carried out to Java heap Lock, avoid multiple threads while Java heap is operated.This be respectively by function dvmLockHeap and DvmunlockHeap is realized.Really perform Memory Allocation operation be by call another function tryMalloc come Complete.If be allocated successfully, current thread is recorded into the information such as the internal memory byte number of the distribution of work and number of objects.Otherwise The information such as words, internal memory byte number and object that just record current thread is unsuccessfully distributed.After having these information, our cans The memory usage information of application program count by instruments such as DDMS.
Finally, if storage allocation is successful, and parameter flags ALLOC_DONT_TRACK positions are arranged to 0, then need The reference list that the object newly created is increased to inside Dalvik virtual machine is gone.It is stored in pair of this internal reference table As that when performing GC, root collection can be added to and gone, so as to the survival for the object that correctly judges.
On the other hand, if storage allocation fails, then just the call function throwOOME OOM that dishes out is different in time Chang Liao.
1. call function dvmHeapSourceAlloc distributes the internal memory for specifying size on Java heap.If it is distributed into Work(, then the address that distribution obtains just is directly returned to caller.Function dvmHeapSourceAlloc is not changing Memory Allocation is carried out on the premise of the current size of Java heap, this is the Memory Allocation action for belonging to lightweight.
2. if previous step Memory Allocation fails, at this time just need to perform a GC.But if GC threads In operation, i.e. gDvm.gcHeap->GcRunning value is equal to true, then just directly invokes function DvmWaitForConcurrentGcToComplete waits until that GC is performed and completed exactly.Otherwise, it is necessary to call function GcForMalloc performs a GC, and parameter false represents not reclaim the object that soft reference object is quoted.
After 3.GC is finished, call function dvmHeapSourceAlloc attempts the Memory Allocation behaviour of lightweight again Make.If it is allocated successfully, then the address that distribution obtains just is directly returned to caller.
4. if previous step Memory Allocation fails, must at this time consider first to be dimensioned to the current of Java heap The Java heap maximum that Dalvik virtual machine is specified when starting, then carry out Memory Allocation.This is to pass through call function DvmHeapSourceAllocAndGrow is realized.
5. if the success of call function dvmHeapSourceAllocAndGrow storage allocations, directly obtains distribution Address be directly returned to caller.
6. if previous step Memory Allocation still fails, at this time just draw mean method.Call function again GcForMalloc performs GC.Parameter true represents to reclaim the object that soft reference object is quoted.
7.GC is finished, and call function dvmHeapSourceAllocAndGrow carries out Memory Allocation again.This is most Once make great efforts afterwards, success or not is all so far.
The Key Functions referred here to have three, be respectively dvmHeapSourceAlloc, DvmHeapSourceAllocAndGrow and gcForMalloc.
Embodiment 2
Another aspect according to embodiments of the present invention, additionally provides a kind of mobile terminal, and Fig. 4 is according to embodiments of the present invention Memory Allocation mobile terminal block diagram, as shown in figure 4, the mobile terminal includes processor, memory and communication bus;
The communication bus is used to realize the connection communication between processor and memory;
The processor is used to perform the Memory Allocation program stored in memory, to realize following steps:
The heap memory of statistics application uses data;
Calculate heap memory size required during the application operation;
It is on startup that the application distributes heap memory according to the required heap memory size.
Preferably, the processor is additionally operable to perform Memory Allocation program, to realize following steps:
The heap memory that the application is counted in units of process corresponding to the application uses data, wherein, when process is created Start to count when building, stop statistics at the end of process.
Preferably, the processor is additionally operable to perform Memory Allocation program, to realize following steps:
In the application corresponds to the running of process, when having detected building component and having exited, enter described in statistics The heap memory size of journey;
At the end of process corresponding to the application, in the average value and heap that calculate the heap memory size that the process uses Deposit the maximum of size;
When determining the application operation according to the maximum of the average value of the heap memory size and the heap memory size Required heap memory size.
Preferably, the processor is additionally operable to perform Memory Allocation program, to realize following steps:
In the application first to use, after the application is exited, data are used according to the heap memory of collection, described in calculating Heap memory uses the average value of data, and the heap memory is defined as into being averaged for the heap memory size using the average value of data Value, the heap memory are defined as the maximum of the heap memory size using the maximum in data.
Preferably, the processor is additionally operable to perform Memory Allocation program, to realize following steps:
When it is described application first in use, using ART virtual machine parameters default value as heap memory size initial value, Other values use the default configuration of ART virtual machines.
Preferably, the processor is additionally operable to perform Memory Allocation program, to realize following steps:
Used first to be non-in the application, the application this exit after, choose maximum and this that last time uses The heap memory of collection uses the maximum of data, is defined as the maximum of the heap memory size;The average value of last time and this Average value average, be defined as the average value of the heap memory size.
Preferably, the processor is additionally operable to perform Memory Allocation program, to realize following steps:
When it is described using non-first in use, being used as ART virtual machine heap memories using the average value of the heap memory size Initial value.
Preferably, the processor is additionally operable to perform Memory Allocation program, to realize following steps:
When described apply in front stage operation, minimum value being averaged for the heap memory size of heap memory size is kept Value;When heap memory deficiency is wait the heap memory applied, GC operations are performed, if heap memory still deficiency heap to be applied after GC operations Internal memory, heap memory size is expanded to the maximum of the heap memory size;If the heap memory to be applied exceedes described During the maximum of heap memory size, the heap memory distribution mechanism given tacit consent to according to ART is handled;
When described apply in front stage operation, after Memory recycle, the size that heap memory has used is big less than the heap memory During small average value, the average value that heap memory size is the heap memory size is kept;If greater than the heap memory size Average value but the maximum for being less than the heap memory size, then remain the maximum of the heap memory size;If more than described During the maximum of heap memory size, handled by ART default mechanisms;
When backstage is shifted in the application onto, perform GC operations, and discharge the heap memory of the application, given tacit consent to using ART in Deposit administrative mechanism;
When the application from when switching to foreground from the background, if heap memory size is less than the average value of the heap memory size, The average value that heap memory size is the heap memory size is then set;Average value if greater than the heap memory size but it is less than The maximum of the heap memory size, then the maximum that heap memory size is the heap memory size is set;If greater than described The maximum of heap memory size, then keep constant.
Embodiment 3
Another aspect according to embodiments of the present invention, additionally provide a kind of computer-readable recording medium, the computer Readable storage medium storing program for executing is stored with one or more program, and one or more of programs can be by one or more processor Perform, the step of to realize above-mentioned memory allocation method.
By the present invention, the heap memory of statistics application uses data, calculates heap memory required during the application operation Size, it is on startup that the application distributes heap memory according to the required heap memory size, solves Shen in correlation technique Please the operation of releasing memory more and more frequently cause the frequent of GC operations, cause to apply interim card in running and consumption be excessive The problem of cpu resource, the memory size storage allocation needed when being run according to application, reduce the frequency of GC operations, improve Consumer's Experience.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements not only include those key elements, and And also include the other element being not expressly set out, or also include for this process, method, article or device institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Other identical element also be present in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal (can be mobile phone, computer, service Device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specific Embodiment, above-mentioned embodiment is only schematical, rather than restricted, one of ordinary skill in the art Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make a lot Form, these are belonged within the protection of the present invention.

Claims (10)

  1. A kind of 1. memory allocation method, it is characterised in that including:
    The heap memory of statistics application uses data;
    Calculate heap memory size required during the application operation;
    It is on startup that the application distributes heap memory according to the required heap memory size.
  2. 2. according to the method for claim 1, it is characterised in that count the heap memory of the application is included using data:
    The heap memory that the application is counted in units of process corresponding to the application uses data, wherein, when process creation Start to count, stop statistics at the end of process.
  3. 3. according to the method for claim 2, it is characterised in that calculate heap memory size required during the application operation Including:
    In the application corresponds to the running of process, when having detected building component and having exited, the process is counted Heap memory size;
    At the end of process corresponding to the application, average value and the heap memory for calculating the heap memory size that the process uses are big Small maximum;
    It is required when determining that the application is run according to the maximum of the average value of the heap memory size and the heap memory size Heap memory size.
  4. 4. according to the method for claim 3, it is characterised in that calculate the process using heap memory size average value and The maximum of the heap memory size includes:
    In the application to use first, after the application is exited, data are used according to the heap memory of collection, calculated in the heap The average value using data is deposited, the heap memory is defined as to the average value of the heap memory size using the average value of data, The heap memory is defined as the maximum of the heap memory size using the maximum in data.
  5. 5. according to the method for claim 4, it is characterised in that be on startup institute according to the required heap memory size State includes using distribution heap memory:
    When the application is first in use, the default value of ART virtual machines parameter is used as heap memory size when being run using Android Initial value, other values use the default configuration of ART virtual machines.
  6. 6. according to the method for claim 3, it is characterised in that calculate the average value for the heap memory size that the process uses Include with the maximum of heap memory size:
    Used first to be non-in the application, the application this exit after, choose maximum and this collection that last time uses Heap memory use the maximums of data, be defined as the maximum of the heap memory size;The average value of last time is flat with this The average of average, it is defined as the average value of the heap memory size.
  7. 7. according to the method for claim 6, it is characterised in that be on startup institute according to the required heap memory size State includes using distribution heap memory:
    When it is described using it is non-first in use, using the heap memory size average value be used as ART virtual machine heap memories just Initial value.
  8. 8. the method according to any one of claim 3 to 7, it is characterised in that on startup according to the required heap Memory size is that application distribution heap memory includes:
    When described apply in front stage operation, the minimum value for keeping heap memory size is the average value of the heap memory size;When Heap memory deficiency performs refuse collection GC operations when the heap memory applied, if heap memory still deficiency is waited to apply after GC operations Heap memory, heap memory size is expanded to the maximum of the heap memory size;If the heap memory to be applied exceedes During the maximum of the heap memory size, the heap memory distribution mechanism given tacit consent to according to ART is handled;
    When described apply in front stage operation, after Memory recycle, the size that heap memory has used is less than the heap memory size During average value, the average value that heap memory size is the heap memory size is kept;If greater than being averaged for the heap memory size Value but the maximum for being less than the heap memory size, then remain the maximum of the heap memory size;If more than in the heap When depositing the maximum of size, handled by ART default mechanisms;
    When backstage is shifted in the application onto, GC operations are performed, and discharge the heap memory of the application, using ART default memory pipes Reason mechanism;
    Apply from when switching to foreground from the background when described, if heap memory size is less than the average value of the heap memory size, set Put the average value that heap memory size is the heap memory size;Average value if greater than the heap memory size but less than described The maximum of heap memory size, then the maximum that heap memory size is the heap memory size is set;If greater than in the heap The maximum of size is deposited, then keeps constant.
  9. 9. a kind of mobile terminal, it is characterised in that the mobile terminal includes processor, memory and communication bus;
    The communication bus is used to realize the connection communication between processor and memory;
    The processor is used to perform the Memory Allocation program stored in memory, to realize following steps:
    The heap memory of statistics application uses data;
    Calculate heap memory size required during the application operation;
    It is on startup that the application distributes heap memory according to the required heap memory size.
  10. A kind of 10. computer-readable recording medium, it is characterised in that the computer-readable recording medium storage have one or Multiple programs, one or more of programs can be appointed by one or more computing device with realizing in claim 1-8 The step of one memory allocation method.
CN201710498643.7A 2017-06-27 2017-06-27 Memory allocation method, mobile terminal and computer readable storage medium Active CN107357656B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710498643.7A CN107357656B (en) 2017-06-27 2017-06-27 Memory allocation method, mobile terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710498643.7A CN107357656B (en) 2017-06-27 2017-06-27 Memory allocation method, mobile terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107357656A true CN107357656A (en) 2017-11-17
CN107357656B CN107357656B (en) 2020-10-27

Family

ID=60273665

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710498643.7A Active CN107357656B (en) 2017-06-27 2017-06-27 Memory allocation method, mobile terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107357656B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108377292A (en) * 2018-01-30 2018-08-07 努比亚技术有限公司 Solve method, terminal, server and the computer storage media of RAM leakage
CN108549573A (en) * 2018-04-09 2018-09-18 努比亚技术有限公司 A kind of computational methods of memory model, device and computer readable storage medium
CN108595261A (en) * 2018-03-23 2018-09-28 努比亚技术有限公司 EMS memory management process, terminal and computer readable storage medium
CN110297691A (en) * 2019-07-03 2019-10-01 四川长虹电器股份有限公司 A method of optimization android system ART virutal machine memory management
CN110928580A (en) * 2019-10-23 2020-03-27 北京达佳互联信息技术有限公司 Asynchronous flow control method and device
CN111723916A (en) * 2019-03-21 2020-09-29 中科寒武纪科技股份有限公司 Data processing method and device and related products
CN111984401A (en) * 2020-07-24 2020-11-24 五八有限公司 Memory overflow management method and device, electronic equipment and storage medium
CN112685371A (en) * 2020-12-30 2021-04-20 江苏达科信息科技有限公司 File storage space distribution method and device based on big data and storage medium
CN113407309A (en) * 2021-06-28 2021-09-17 北京字节跳动网络技术有限公司 Virtual machine memory application method and device, storage medium and electronic equipment
CN113434364A (en) * 2021-06-25 2021-09-24 青岛海尔科技有限公司 Screen-side equipment memory detection method and device, storage medium and electronic device
CN113485835A (en) * 2021-07-14 2021-10-08 深圳大趋智能科技有限公司 Method, system, equipment and medium for realizing memory sharing under multiple scenes
CN115292052A (en) * 2022-09-27 2022-11-04 荣耀终端有限公司 Memory recovery method, electronic device and computer-readable storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103544063A (en) * 2013-09-30 2014-01-29 三星电子(中国)研发中心 Method and device for removing processes applied to Android platform
US20140089611A1 (en) * 2012-09-25 2014-03-27 Nec Corporation Memory management control system, memory management control method, and storage medium storing memory management control program
CN104111892A (en) * 2013-04-22 2014-10-22 鸿富锦精密工业(深圳)有限公司 Internal memory dynamic distribution method and system
CN104484282A (en) * 2014-12-31 2015-04-01 广东欧珀移动通信有限公司 Internal storage recovery method and device
CN105094980A (en) * 2014-05-23 2015-11-25 北京云巢动脉科技有限公司 System for dynamically adjusting memories of virtual machines
CN105740078A (en) * 2016-01-29 2016-07-06 华为技术有限公司 Memory management method and apparatus, and terminal
CN105988823A (en) * 2015-01-27 2016-10-05 阿里巴巴集团控股有限公司 Memory allocation method and system during starting of application in terminal
CN106155911A (en) * 2015-03-30 2016-11-23 华为技术有限公司 A kind of method and apparatus asking long-distance inner
US20160378452A1 (en) * 2015-06-29 2016-12-29 Mediatek Inc. Policy-Based Compression of Machine Code Generated by a Virtual Machine

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140089611A1 (en) * 2012-09-25 2014-03-27 Nec Corporation Memory management control system, memory management control method, and storage medium storing memory management control program
CN104111892A (en) * 2013-04-22 2014-10-22 鸿富锦精密工业(深圳)有限公司 Internal memory dynamic distribution method and system
CN103544063A (en) * 2013-09-30 2014-01-29 三星电子(中国)研发中心 Method and device for removing processes applied to Android platform
CN105094980A (en) * 2014-05-23 2015-11-25 北京云巢动脉科技有限公司 System for dynamically adjusting memories of virtual machines
CN104484282A (en) * 2014-12-31 2015-04-01 广东欧珀移动通信有限公司 Internal storage recovery method and device
CN105988823A (en) * 2015-01-27 2016-10-05 阿里巴巴集团控股有限公司 Memory allocation method and system during starting of application in terminal
CN106155911A (en) * 2015-03-30 2016-11-23 华为技术有限公司 A kind of method and apparatus asking long-distance inner
US20160378452A1 (en) * 2015-06-29 2016-12-29 Mediatek Inc. Policy-Based Compression of Machine Code Generated by a Virtual Machine
CN105740078A (en) * 2016-01-29 2016-07-06 华为技术有限公司 Memory management method and apparatus, and terminal

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108377292B (en) * 2018-01-30 2020-11-10 努比亚技术有限公司 Method, terminal, server and computer storage medium for solving memory leakage
CN108377292A (en) * 2018-01-30 2018-08-07 努比亚技术有限公司 Solve method, terminal, server and the computer storage media of RAM leakage
CN108595261A (en) * 2018-03-23 2018-09-28 努比亚技术有限公司 EMS memory management process, terminal and computer readable storage medium
CN108549573A (en) * 2018-04-09 2018-09-18 努比亚技术有限公司 A kind of computational methods of memory model, device and computer readable storage medium
CN108549573B (en) * 2018-04-09 2022-10-25 广东长兴半导体科技有限公司 Memory model calculation method and device and computer readable storage medium
CN111723916A (en) * 2019-03-21 2020-09-29 中科寒武纪科技股份有限公司 Data processing method and device and related products
CN110297691A (en) * 2019-07-03 2019-10-01 四川长虹电器股份有限公司 A method of optimization android system ART virutal machine memory management
CN110928580B (en) * 2019-10-23 2022-06-24 北京达佳互联信息技术有限公司 Asynchronous flow control method and device
CN110928580A (en) * 2019-10-23 2020-03-27 北京达佳互联信息技术有限公司 Asynchronous flow control method and device
CN111984401A (en) * 2020-07-24 2020-11-24 五八有限公司 Memory overflow management method and device, electronic equipment and storage medium
CN112685371A (en) * 2020-12-30 2021-04-20 江苏达科信息科技有限公司 File storage space distribution method and device based on big data and storage medium
CN113434364A (en) * 2021-06-25 2021-09-24 青岛海尔科技有限公司 Screen-side equipment memory detection method and device, storage medium and electronic device
CN113434364B (en) * 2021-06-25 2024-03-22 青岛海尔科技有限公司 Method and device for detecting memory of screen terminal equipment, storage medium and electronic device
CN113407309A (en) * 2021-06-28 2021-09-17 北京字节跳动网络技术有限公司 Virtual machine memory application method and device, storage medium and electronic equipment
CN113485835A (en) * 2021-07-14 2021-10-08 深圳大趋智能科技有限公司 Method, system, equipment and medium for realizing memory sharing under multiple scenes
CN113485835B (en) * 2021-07-14 2022-04-22 深圳大趋智能科技有限公司 Method, system, equipment and medium for realizing memory sharing under multiple scenes
CN115292052A (en) * 2022-09-27 2022-11-04 荣耀终端有限公司 Memory recovery method, electronic device and computer-readable storage medium
CN115292052B (en) * 2022-09-27 2023-08-08 荣耀终端有限公司 Memory recycling method, electronic device and computer readable storage medium

Also Published As

Publication number Publication date
CN107357656B (en) 2020-10-27

Similar Documents

Publication Publication Date Title
CN107357656A (en) A kind of memory allocation method, mobile terminal and computer-readable recording medium
CN107249074A (en) Application program quick start method, mobile terminal and computer-readable recording medium
CN107688607A (en) The method and mobile terminal of a kind of database access, computer-readable recording medium
CN108536481A (en) A kind of application program launching method, mobile terminal and computer storage media
CN107508994A (en) Touch-screen report point rate processing method, terminal and computer-readable recording medium
CN107133092A (en) Multi-thread synchronization processing method, terminal and computer-readable recording medium
CN108052302A (en) Association display methods, terminal and the computer readable storage medium of double-sided screen
CN106446797A (en) Image clustering method and device
CN107517494A (en) A kind of display methods of terminal battery electricity quantity, terminal and computer-readable recording medium
CN107329682A (en) Edge exchange method and mobile terminal
CN107657583A (en) A kind of screenshot method, terminal and computer-readable recording medium
CN107181700A (en) Control method, mobile terminal and the storage medium of application program for mobile terminal
CN107729131A (en) A kind of event-handling method, terminal and computer-readable recording medium
CN107729125A (en) Application program resides the management method and mobile terminal on backstage
CN107656774A (en) Adaptive regulation method, device, terminal device and the storage medium of systematic parameter
CN107229390A (en) A kind of desktop icons aligning method, mobile terminal and computer-readable recording medium
CN107678698A (en) Data cached method for cleaning, server, terminal and computer-readable recording medium
CN107426304A (en) Method, system and the proxy server of interactive media resource
CN108762926A (en) A kind of system optimization method, terminal and computer readable storage medium
CN107566608A (en) A kind of system air navigation aid, equipment and computer-readable recording medium
CN107450796A (en) A kind of image processing method, mobile terminal and computer-readable recording medium
CN109445945A (en) Memory allocation method, mobile terminal, server and the storage medium of application program
CN107688497A (en) A kind of internal memory regulation and control method, equipment and computer-readable recording medium
CN108234979A (en) A kind of image pickup method, mobile terminal and computer readable storage medium
CN107423065A (en) Method, mobile terminal and the computer-readable recording medium that a kind of application is attended to anything else

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200927

Address after: Room 406, 4th floor, building 1, Kaifeng City Square, Yuanyang Road, Yangpu Economic Development Zone, Danzhou City, Hainan Province, 578101

Applicant after: Hainan Feite Tongchuang Technology Co., Ltd

Address before: 518057 Guangdong Province, Shenzhen high tech Zone of Nanshan District City, No. 9018 North Central Avenue's innovation building A, 6-8 layer, 10-11 layer, B layer, C District 6-10 District 6 floor

Applicant before: NUBIA TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant