CN110231989A - A kind of embedded intelligent terminal dynamic memory optimization method - Google Patents

A kind of embedded intelligent terminal dynamic memory optimization method Download PDF

Info

Publication number
CN110231989A
CN110231989A CN201910396039.2A CN201910396039A CN110231989A CN 110231989 A CN110231989 A CN 110231989A CN 201910396039 A CN201910396039 A CN 201910396039A CN 110231989 A CN110231989 A CN 110231989A
Authority
CN
China
Prior art keywords
module
memory
dynamic
intelligent terminal
region
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910396039.2A
Other languages
Chinese (zh)
Inventor
游万俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Elink Smart Co Ltd
Original Assignee
Shenzhen Elink Smart 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 Shenzhen Elink Smart Co Ltd filed Critical Shenzhen Elink Smart Co Ltd
Priority to CN201910396039.2A priority Critical patent/CN110231989A/en
Publication of CN110231989A publication Critical patent/CN110231989A/en
Pending legal-status Critical Current

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

Landscapes

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

Abstract

The present invention provides a kind of embedded intelligent terminal dynamic memory optimization method, includes the following steps, S1: setting decompresses load, the dlm (dynamic loading module) of unloading and dynamic offloading module for carrying out dynamic, S2: creation m_module_1 and m_module_2;It determines two and two or more will not use the function or application program of (mutual exclusion) with the time, its respective .a (.o) is configured in the m_module_1 and m_module_2 re-created, and use identical vma region, cooperate dynamically load and Unload module, it is released lesser vma size in m_module_1 and m_module_2 from memory, the application passes through reasonably matching and dynamically load and unloading, accomplish the Optimum utilization to memory, dlm (dynamic loading module) is after reading each submodule part of main program, decompression is loaded into the specified Region of memory, and two will not simultaneous submodule share specified memory Region, the final ultimate attainment utilization realized to memory.

Description

A kind of embedded intelligent terminal dynamic memory optimization method
[technical field]
The present invention relates to Memory Optimize Method technical fields, more particularly to a kind of embedded intelligence that can be obviously improved cost performance It can terminal dynamic memory optimization method.
[background technique]
The development advanced by leaps and bounds with the Internet infrastructure, while China promotes the strength of industry internet, intelligence End product and its APP application are maked rapid progress, and in the market in the competition of similar intelligent terminal, how ultimate attainment Optimum utilization is well existing Some intelligent terminal memories promote cost performance, are that those skilled in the art often consider the problems of.
Current situation is, in the case where hardware finite, memory is unable to get ultimate attainment utilization, causes the wave of resource Take.
Based on this, those skilled in the art have carried out a large amount of research and development and experiment, and achieve preferable achievement.
[summary of the invention]
To overcome the problems of prior art, the present invention provides a kind of embedded intelligence that can be obviously improved cost performance Terminal dynamic memory optimization method.
The scheme that the present invention solves technical problem is to provide a kind of embedded intelligent terminal dynamic memory optimization method, including Following steps,
S1: setting decompresses load, the dlm (dynamic loading module) of unloading and dynamic offloading module for carrying out dynamic;
S2: creation m_module_1 and m_module_2;It determines two and two or more will not use (mutual exclusion) with the time Function or application program, its respective .a (.o) is configured in the m_module_1 and m_module_2 re-created, and Using identical vma region, cooperates dynamically load and Unload module, make lesser in m_module_1 and m_module_2 Vma size is released from memory;
S3: the optimization of intelligent terminal dynamic memory is completed.
Preferably, after the dlm (dynamic loading module) reads each submodule part of main program, decompression is loaded into interior The specified Region deposited;And two will not the shared specified memory Region of simultaneous submodule.
Preferably, when cooperating dlm (dynamic loading module) and Unload module in the step S2, when two module mutually cut are provided Source must assure that when loading a module, shared module resource exits completely together.
Compared with prior art, a kind of embedded intelligent terminal dynamic memory optimization method of the present invention stresses to analyze intelligent end The memory behaviour in service at end, the application program bigger to demand or function, by reasonably match with dynamically load and unloading, Accomplish that the Optimum utilization to memory, dlm (dynamic loading module) are decompression loads after reading each submodule part of main program To the specified Region of memory, and two will not simultaneous submodule share specified memory Region, it is final realize it is internal The ultimate attainment utilization deposited.
[Detailed description of the invention]
Fig. 1 is a kind of flow diagram of embedded intelligent terminal dynamic memory optimization method of the present invention.
[specific embodiment]
To make the purpose of the present invention, technical solution and advantage are more clearly understood, with reference to the accompanying drawings and embodiments, to this Invention is further elaborated.It should be appreciated that specific embodiment described herein is used only for explaining the present invention, not For limiting the invention.
Referring to Fig. 1, a kind of embedded intelligent terminal dynamic memory optimization method 1 of the present invention includes the following steps,
S1: setting decompresses load, the dlm (dynamic loading module) of unloading and dynamic offloading module for carrying out dynamic;
S2: creation m_module_1 and m_module_2;It determines two and two or more will not use (mutual exclusion) with the time Function or application program, its respective .a (.o) is configured in the m_module_1 and m_module_2 re-created, and Using identical vma region, cooperates dynamically load and Unload module, make lesser in m_module_1 and m_module_2 Vma size is released from memory;
S3: the optimization of intelligent terminal dynamic memory is completed.
The application stresses to analyze the memory behaviour in service of intelligent terminal, the application program bigger to demand or function, leads to Reasonable matching and dynamically load and unloading are crossed, accomplishes that the Optimum utilization to memory, dlm (dynamic loading module) are by each of main program After a sub- module section is read, decompression is loaded into the specified Region of memory, and two will not simultaneous submodule it is total Specified memory Region is enjoyed, the final ultimate attainment utilization realized to memory.
Preferably, after the dlm (dynamic loading module) reads each submodule part of main program, decompression is loaded into interior The specified Region deposited;And two will not the shared specified memory Region of simultaneous submodule.
Preferably, when cooperating dlm (dynamic loading module) and Unload module in the step S2, when two module mutually cut are provided Source must assure that when loading a module, shared module resource exits completely together.
The present invention is configured, maximum elevator by pure software mode after combing to the functional module of intelligent terminal The internal memory optimization of device uses.
The advantages of doing so:
1. accomplishing the ultimate attainment utilization to memory under limited hardware configuration, improving cost performance.
2. this method will not cause fragment to storehouse.Especially some intelligent terminals use embedded system, do not have interior Deposit arrangement mechanism.When storehouse fragment, without biggish contiguous memory, lead to not load operating.
3. ensure that big program using independent reasonable memory headroom, starts and runs speed and is guaranteed.
Compared with prior art, a kind of embedded intelligent terminal dynamic memory optimization method 1 of the present invention stresses analysis intelligence The memory behaviour in service of terminal, the application program bigger to demand or function, by reasonably matching and dynamically load and unloading It carries, accomplishes that the Optimum utilization to memory, dlm (dynamic loading module) are after reading each submodule part of main program, decompression adds Be downloaded to the specified Region of memory, and two will not simultaneous submodule share specified memory Region, it is final to realize pair The ultimate attainment utilization of memory.
The embodiments of the present invention described above are not intended to limit the scope of the present invention.It is any in the present invention Spirit and principle within made modifications, equivalent substitutions and improvements etc., should be included in claim protection model of the invention Within enclosing.

Claims (3)

1. a kind of embedded intelligent terminal dynamic memory optimization method, it is characterised in that: include the following steps,
S1: setting decompresses load, the dlm (dynamic loading module) of unloading and dynamic offloading module for carrying out dynamic;
S2: creation m_module_1 and m_module_2;It determines two and two or more will not use the function of (mutual exclusion) with the time Energy or application program, its respective .a (.o) is configured in the m_module_1 and m_module_2 re-created, and uses Identical vma region cooperates dynamically load and Unload module, makes lesser vma in m_module_1 and m_module_2 Size is released from memory;
S3: the optimization of intelligent terminal dynamic memory is completed.
2. a kind of embedded intelligent terminal dynamic memory optimization method as described in claim 1, it is characterised in that: the dynamic After loading module reads each submodule part of main program, decompression is loaded into the specified Region of memory;And two not It can the shared specified memory Region of simultaneous submodule.
3. a kind of embedded intelligent terminal dynamic memory optimization method as described in claim 1, it is characterised in that: the step When cooperating dlm (dynamic loading module) and Unload module in S2, the module resource mutually cut when two be must assure that in load one When module, shared module resource exits completely together.
CN201910396039.2A 2019-05-14 2019-05-14 A kind of embedded intelligent terminal dynamic memory optimization method Pending CN110231989A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910396039.2A CN110231989A (en) 2019-05-14 2019-05-14 A kind of embedded intelligent terminal dynamic memory optimization method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910396039.2A CN110231989A (en) 2019-05-14 2019-05-14 A kind of embedded intelligent terminal dynamic memory optimization method

Publications (1)

Publication Number Publication Date
CN110231989A true CN110231989A (en) 2019-09-13

Family

ID=67860581

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910396039.2A Pending CN110231989A (en) 2019-05-14 2019-05-14 A kind of embedded intelligent terminal dynamic memory optimization method

Country Status (1)

Country Link
CN (1) CN110231989A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101187899A (en) * 2006-11-17 2008-05-28 中兴通讯股份有限公司 Embedded type system storage space optimization method
CN103425592A (en) * 2013-08-05 2013-12-04 大唐移动通信设备有限公司 Memory management method and device for multiprocess system
CN104978233A (en) * 2014-04-11 2015-10-14 郑建锋 Method and device for dynamically using memory
CN105975407A (en) * 2016-03-22 2016-09-28 华为技术有限公司 Mapping method of memory address, and equipment
CN107402814A (en) * 2017-07-07 2017-11-28 上海斐讯数据通信技术有限公司 A kind of method and system for saving internal memory in embedded systems

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101187899A (en) * 2006-11-17 2008-05-28 中兴通讯股份有限公司 Embedded type system storage space optimization method
CN103425592A (en) * 2013-08-05 2013-12-04 大唐移动通信设备有限公司 Memory management method and device for multiprocess system
CN104978233A (en) * 2014-04-11 2015-10-14 郑建锋 Method and device for dynamically using memory
CN105975407A (en) * 2016-03-22 2016-09-28 华为技术有限公司 Mapping method of memory address, and equipment
CN107402814A (en) * 2017-07-07 2017-11-28 上海斐讯数据通信技术有限公司 A kind of method and system for saving internal memory in embedded systems

Similar Documents

Publication Publication Date Title
CN108845816B (en) Application program updating method, system, computer device and storage medium
RU2623720C2 (en) Method, device and system for file downloading
CN101770373B (en) Self-starting serial boot program loading and reading system and method thereof
CN107506284B (en) Log processing method and device
EP4250781A1 (en) System switching method and apparatus, electronic device, and readable storage medium
CN108804232B (en) Method, host server and system for supporting cloud FPGA deployment
EP3779690A1 (en) Processor core scheduling method and apparatus, terminal, and storage medium
US9032115B2 (en) Method and device for passing parameters between processors
CN108446300B (en) Data information scanning method and device
CN107680144A (en) A kind of method and device of WebP files conversion
US20240015627A1 (en) Control method for sharing mode of base station, shared base station, and communication system
CN110231989A (en) A kind of embedded intelligent terminal dynamic memory optimization method
CN109213737A (en) A kind of data compression method and apparatus
CN111338780A (en) Transmission method and device for concurrent files
CN112631968B (en) Dynamic evolvable intelligent processing chip structure
CN109753321B (en) Application starting method, device, terminal and storage medium based on protocol registration
CN102752312B (en) Method for decompressing swf files in batches
CN102999363A (en) Method for starting field programmable gate array (FPGA)/digital signal processor (DSP) embedded system
CN201359723Y (en) Self-starting serial bootstrap program loading and reading system
CN105354081A (en) Synchronous service binding method and apparatus
US9860175B2 (en) Methods, systems, and computer program products for processing a packet
CN105302557A (en) Thread establishing and processing method and apparatus
CN105843631A (en) Method for improving programming speed of system firmware
CN103577270A (en) Use method for controlling split type mobile terminal and split type mobile terminal
CN114356507A (en) Method, device and equipment for processing document based on browser and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190913