CN109388580A - A kind of EMS memory management process, memory management device and terminal device - Google Patents

A kind of EMS memory management process, memory management device and terminal device Download PDF

Info

Publication number
CN109388580A
CN109388580A CN201811139408.1A CN201811139408A CN109388580A CN 109388580 A CN109388580 A CN 109388580A CN 201811139408 A CN201811139408 A CN 201811139408A CN 109388580 A CN109388580 A CN 109388580A
Authority
CN
China
Prior art keywords
memory
memory block
group
block
management
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
CN201811139408.1A
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 SUNELL TECHNOLOGY Corp
Original Assignee
SHENZHEN SUNELL TECHNOLOGY Corp
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 SUNELL TECHNOLOGY Corp filed Critical SHENZHEN SUNELL TECHNOLOGY Corp
Priority to CN201811139408.1A priority Critical patent/CN109388580A/en
Publication of CN109388580A publication Critical patent/CN109388580A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/0223User address space allocation, e.g. contiguous or non contiguous base addressing
    • G06F12/023Free address space management

Landscapes

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

Abstract

The present invention is suitable for technical field of information processing, provide a kind of EMS memory management process, memory management device and terminal device, the EMS memory management process includes: to carry out piecemeal to default memory, obtain at least one set of memory block, wherein, at least one memory block is respectively included in every group of memory block, the memory size for belonging to same group of memory block is identical and to belong to the memory size of different groups of memory block different;The corresponding management item of every group of memory block institute is set, and the management item indicates the service condition of corresponding one group of memory block;After memory is received using request, the memory block of distribution is determined using request and the management item according to the memory.By the invention it is possible to improve Memory Allocation speed and memory management efficiency, there is stronger practicability and ease for use.

Description

A kind of EMS memory management process, memory management device and terminal device
Technical field
The invention belongs to technical field of information processing more particularly to a kind of EMS memory management process, memory management device and end End equipment.
Background technique
It in existing EMS memory management process, generally requires internally to deposit by system and is allocated, due to needing to distribute every time Memory size it is different, therefore during releasing memory after the storage allocation of high frequency, memory use, be easy to cause in Fragment is deposited, so as to cause the reduction of Memory Allocation speed.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of EMS memory management process, memory management device and terminal device, it can To improve Memory Allocation speed.
The first aspect of the embodiment of the present invention provides a kind of EMS memory management process, comprising:
Piecemeal is carried out to default memory, obtains at least one set of memory block, wherein respectively include at least one in every group of memory block A memory block, the memory size for belonging to same group of memory block are identical and to belong to the memory size of different groups of memory block different;
The corresponding management item of every group of memory block institute is set, and the management item indicates the use of corresponding one group of memory block Situation;
After memory is received using request, the memory of distribution is determined using request and the management item according to the memory Block.
The second aspect of the embodiment of the present invention provides a kind of memory management device, comprising:
Piecemeal module obtains at least one set of memory block, wherein in every group of memory block for carrying out piecemeal to default memory At least one memory block is respectively included, the memory size for belonging to same group of memory block is identical and belong to different groups of memory block Memory size is different;
Setup module, for the corresponding management item of every group of memory block institute, the management item instruction corresponding one to be arranged The service condition of group memory block;
Determining module uses request and the management item according to the memory after receiving memory using request Determine the memory block of distribution.
The third aspect of the embodiment of the present invention provides a kind of terminal device, including memory, processor and is stored in In the memory and the computer program that can run on the processor, when the processor executes the computer program The step of realizing method as described above.
The fourth aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage Media storage has the step of computer program, the computer program realizes method as described above when being executed by processor.
Existing beneficial effect is the embodiment of the present invention compared with prior art: in the embodiment of the present invention, to default memory Piecemeal is carried out, obtains at least one set of memory block, wherein respectively include at least one memory block in every group of memory block, belong to same The memory size of the memory block of group is identical and belongs to the memory size of different groups of memory block difference;Every group of memory block is arranged to divide Not corresponding management item, the management item indicate the service condition of corresponding one group of memory block;After memory is received using request, The memory block of distribution is determined using request and the management item according to the memory.The embodiment of the present invention passes through to default memory Carry out piecemeal, can internally deposit into the regular division of row so that it is subsequent can be distributed in the form of memory block and use in It deposits, avoids memory fragmentation caused by complicated irregular memory management in existing memory management, and by every group of setting The corresponding management item of counterfoil institute, can make each management item respectively correspond one group of memory block, so as to in every group Counterfoil separate management substantially increases Memory Allocation speed and memory management efficiency, has stronger practicability and ease for use.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is the implementation process schematic diagram for the EMS memory management process that the embodiment of the present invention one provides;
Fig. 2 is the implementation process schematic diagram of EMS memory management process provided by Embodiment 2 of the present invention;
Fig. 3 is the schematic diagram provided by Embodiment 2 of the present invention that piecemeal is carried out to default memory;
Fig. 4 is the schematic diagram of memory management device provided by Embodiment 2 of the present invention;
Fig. 5 is the schematic diagram for the terminal device that the embodiment of the present invention four provides.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific The present invention also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity The detailed description of road and method, in case unnecessary details interferes description of the invention.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " instruction is described special Sign, entirety, step, operation, the presence of element and/or component, but be not precluded one or more of the other feature, entirety, step, Operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this description of the invention merely for the sake of description specific embodiment And be not intended to limit the present invention.As description of the invention and it is used in the attached claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in description of the invention and the appended claims is Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt Be construed to " when ... " or " once " or " in response to determination " or " in response to detecting ".Similarly, phrase " if it is determined that " or " if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In order to illustrate technical solutions according to the invention, the following is a description of specific embodiments.
Fig. 1 is the implementation process schematic diagram for the EMS memory management process that the embodiment of the present invention one provides, the memory as shown in Figure 1 Management method may comprise steps of:
Step S101 carries out piecemeal to default memory, obtains at least one set of memory block, wherein in every group of memory block respectively Including at least one memory block, the memory size for belonging to same group of memory block is identical and belong to the memory of different groups of memory block It is of different sizes.
In the embodiment of the present invention, memory (Memory) can be setting such as mobile phone, desktop computer, laptop, One of the terminal devices such as plate, wearable device memory can be used for temporarily storing central processing unit (Central Processing Unit, CPU) etc. operational data in information process units, and the number exchanged with external memories such as hard disks According to.The default memory can be pre-set memory, such as can be default memory size, positioned at default storage address Specified portions memory in memory, such as default memory headroom.
In the embodiment of the present invention, one group of memory block can be obtained by carrying out piecemeal to default memory, it is also possible to obtain in multiple groups Counterfoil, every group of memory block may be in continuous memory space, also may be in multiple memory spaces of separation.In described The memory size of counterfoil can be the size that can be used for storing the memory space to storage content in the memory block, furthermore It can refer to the size of the memory space of entire memory block, at this point, can also include the mark of fixed space size in the memory block Know (as in the memory block head 4 byte-sizeds and be used for identify as described in memory block memory size information Head storage organization), concrete meaning can be determined according to concrete application scene.
In addition, in the embodiment of the present invention, the memory size for belonging to same group of memory block is identical and belong to different groups interior The memory size of counterfoil is different, so that in subsequent storing process, it can be fast according to the size to stored memory Speed searches out corresponding one group of memory block and carrys out storage allocation, so as to avoid the generation of memory fragmentation.
Step S102, is arranged the corresponding management item of every group of memory block institute, and the management item indicates in corresponding one group The service condition of counterfoil.
In the embodiment of the present invention, the management item can be table, chained list, mark etc., and the service condition can wrap Include memory size, the use state (be such as in state currently in use, be in idle condition), title, address of memory block At least one of etc., the service condition may include that the use state of memory block (is such as used and in the free time The memory block message of state), memory size and address etc. information.
In addition, it should be noted that, every group of memory block can correspond to a management item, multiple management items can also be corresponded to, The set-up mode of the management item can be configured according to practical application scene.For example, if the management item is mark, institute Stating mark may include specify information, and the corresponding mark of every group of memory block can be set, at this point, the mark can be located at The head of memory space composed by this group of memory block, the information in the mark may include the memory size of this group of memory block Information, the name information of this group of memory block, address information of this group of memory block etc.;In addition it is also possible to be in every group of memory block Each memory block mark is set, described identify may be at the memory space of preset byte in memory block (such as 4 bytes be big Small memory space), the remainder bytes in each memory block in addition to 4 bytes where mark can be used for storing wait store Content.For another example, if the management item can also include chained list, the corresponding chained list of every group of memory block institute can be created at this time, It may include the information for indicating the service condition of every group of memory block in the chained list, as indicated institute by the mark of the memory block State the service condition of memory block.
Step S103 after receiving memory using request, is determined according to the memory using request and the management item The memory block of distribution.
In the embodiment of the present invention, the memory can be used for requesting the memory using the default memory using request;Institute Stating memory can be using request from terminal device, specified application, the specified remote equipment etc. where the memory Deng.
Wherein, illustratively, required memory size can be determined using request according to the memory, according to the management The information such as the memory block for being currently at idle state can be determined, so as to use request and described according to the memory Management item determines the memory block of distribution.
Optionally, described to determine that the memory block of distribution can wrap using request and the management item according to the memory It includes:
Determine that the memory uses the requested memory size of request;
According to the management item, in memory not less than requested memory size and memory and requested memory size A memory block of distribution is determined in the smallest one group of memory block of difference, to use a distributed memory block accordingly The memory is stored to use indicated by request to storage content.
In the embodiment of the present invention, uses a distributed memory block to accordingly store the memory and use request institute Indicate to storage content, can allow each memory block with a complete space quilt after assigned, use Release, each is described can also to be stored to the more matched memory block of memory size to storage content in the form of complete In, so as to avoid the generation of memory fragmentation, improve Memory Allocation speed.
Optionally, mutually indepedent between the management item of every group of memory block in the embodiment of the present application, enable each group memory block Enough parallel uses.
It is mutually indepedent between the management item of every group of memory block in the embodiment of the present invention, so as to pass through each management item Independent operation is carried out separately for every group of memory block, each group memory block is used parallel.For example, where the memory Terminal receive two memories simultaneously using request, wherein the first memory needs the memory of 64k using request, the second memory makes The memory of 1M is needed with request, if can determine, the first memory is needed using request using the memory block in first group of memory block, Second memory is needed using request using the memory block in second group of memory block, then can be right by first group of memory block institute respectively Management item corresponding to the management item answered and second group of memory block concurrently determines the memory block of distribution, and according to parallel Operation is correspondingly stored respectively using request according to two memories, at this point, the operation in first group of memory block and second group Operation in memory block is not interfere with each other.
In the embodiment of the present invention, due to can concurrently handle multiple memories using request, can significantly it improve The efficiency of memory management, to accelerate the speed of memory processing.
Optionally, the EMS memory management process further include:
After the memory block for determining distribution, the corresponding management item of one group of memory block belonging to the more newly assigned memory block;
And/or after detecting the memory use of memory block, updates memory and use belonging to the memory block terminated The corresponding management item of one group of memory block.
The more newly assigned memory block and/or memory are corresponding using one group of memory block belonging to the memory block terminated Management item may include updating chained list corresponding to every group of memory block, update the mark of every group of memory block and update in each At least one of mark of counterfoil.
Wherein, it is used one group belonging to the memory block terminated by the more newly assigned memory block and/or memory The corresponding management item of memory block can enable the management item timely and accurately indicate the use feelings of corresponding one group of memory block Condition.
The embodiment of the present invention can internally deposit into the regular division of row by carrying out piecemeal to default memory, so that It is subsequent to be distributed in the form of memory block and using memory, avoid complicated irregular memory pipe in existing memory management Memory fragmentation caused by managing, and by the corresponding management item of every group of memory block institute of setting, each management item point can be made Not Dui Ying one group of memory block, so as to substantially increase Memory Allocation speed and memory pipe to every group of memory block separate management Efficiency is managed, there is stronger practicability and ease for use.
Fig. 2 is the implementation process schematic diagram of EMS memory management process provided by Embodiment 2 of the present invention, the memory as shown in Figure 2 Management method may comprise steps of:
Step S201 carries out piecemeal to default memory, obtains at least one set of memory block, wherein in every group of memory block respectively Including at least one memory block, the memory size for belonging to same group of memory block is identical and belong to the memory of different groups of memory block It is of different sizes.
Step S202, is respectively set the mark of each memory block, and the mark indicates the memory of the corresponding memory block The address and/or use state of size and/or the memory block.
Illustratively, the mark can be deposited by the memory space of the default size positioned at the head of the memory block Specify information, such as the memory space by being located at 4 byte-sized of memory block header are stored up come information such as stored memory sizes. The use state of the memory block can be the instruction memory block and be in state currently in use or be in idle condition Deng.By the mark, it can quickly judge whether the memory block meets the memory and use the needs of request.
Optionally, which can also include:
Step S203, creates the corresponding chained list of every group of memory block institute, and the chained list is corresponded to by mark instruction One group of memory block service condition.
Illustratively, the mark of each memory block or a part of of mark can be added the chained list or from institutes It states in chained list and deletes.When the mark of each memory block or a part of mark include the use feelings of the memory block When condition, the mark can be made to be constantly in the chained list, and by updating each mark, to indicate in corresponding one group The service condition of counterfoil;In addition it is also possible to be in chained list or be not at chain by a part of the mark or mark This state change in table, to determine the service condition of memory block corresponding to the mark.
Wherein, optionally, the chained list indicates that the service condition of corresponding one group of memory block can wrap by the mark It includes:
If the mark of the memory block is present in the chained list, it is determined that the memory block is currently not used by;
Alternatively, if the mark of the memory block is present in the chained list, it is determined that the memory block is being currently used.
In the embodiment of the present invention, by judge the memory block identify whether to exist with it is described to determine in the chained list Whether memory block is currently not used by, and can come intuitively to embody the presence or absence of in the chained list by adjusting the mark described The service condition of memory block, thus provide a kind of service condition of simple and easy and ultrahigh in efficiency instruction memory block Mode greatly improves the efficiency of memory management, and practicability is higher.
Step S204 after receiving memory using request, is determined according to the memory using request and the management item The memory block of distribution.
The present embodiment step S201, S204 is identical as above-mentioned steps S101, S103, and for details, reference can be made to steps S101, S103 Associated description, details are not described herein.
Illustrate the embodiment of the present invention below by a specific example.
Illustratively, as described in Figure 3, piecemeal can be carried out to preset 600M memory, 600M memory is divided into 6 groups of memories Total memory size of block, every group of memory block is 100M, wherein include 25600 memory blocks in first group of memory block, it is each interior Counterfoil is 4k size;It include 6400 memory blocks in second group of memory block, each memory block is 16k size;Third group memory block In include 1600 memory blocks, each memory block be 64k size;It include 400 memory blocks, each memory in 4th group of memory block Block is 256k size;It include 100 memory blocks in 5th group of memory block, each memory block is 1M size;In second group of memory block Including 25 memory blocks, each memory block is 4M size.In each memory block, including 4 byte-sizeds mark and except mark Except remainder, if the memory block of 4k size may include the label and 4092 byte remainders of 4 bytes.
The mark can be indicated if including mark in the chained list by creating the corresponding chained list of every group of memory block institute Know corresponding memory block and is currently at idle state.
At this time, however, it is determined that the memory using request requested memory size (0,4092] section, then can determine Determine the memory block of distribution from first group of memory block, and the mark by including in chained list is in idle condition from first group Memory block in determination which memory block specifically distributed;If it is determined that the memory is existed using the requested memory size of request (4092,64k-4B] section, then it can determine the memory block that distribution is determined from second group of memory block, and so on.It determines and divides After the memory block matched, mark corresponding to the memory block of distribution is deleted from corresponding chained list, and in the memory block After use, the mark of the memory block is rejoined in the corresponding chained list.
In the embodiment of the present invention, the mark of each memory block is respectively set, it can be by reading the information in mark The current state of each memory block of quick obtaining, then by the corresponding chained list of every group of memory block institute of creation, institute can be passed through It states chained list and manages and distribute respectively every group of memory block, to reduce the appearance of memory fragmentation, improve the dispensing rate of memory.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit It is fixed.
Fig. 4 is the schematic diagram for the memory management device that the embodiment of the present invention three provides.For ease of description, illustrate only with The relevant part of the embodiment of the present invention.
The memory management device 400 includes:
Piecemeal module 401 obtains at least one set of memory block, wherein every group of memory block for carrying out piecemeal to default memory In respectively include at least one memory block, the memory size for belonging to same group of memory block is identical and belong to different groups of memory block Memory size it is different;
Setup module 402, for the corresponding management item of every group of memory block institute to be arranged, the management item instruction is corresponding The service condition of one group of memory block;
Determining module 403 uses request and the management according to the memory after receiving memory using request Item determines the memory block of distribution.
Optionally, mutually indepedent between the management item of every group of memory block in the memory management device 400, so that each group Memory block can use parallel.
Optionally, the setup module 402 is specifically used for:
Be respectively set the mark of each memory block, the mark indicate the corresponding memory block memory size and/or The address of the memory block and/or use state.
Optionally, the setup module 402 is specifically also used to:
The corresponding chained list of every group of memory block institute is created, the chained list indicates corresponding one group of memory by the mark The service condition of block.
Wherein, optionally, the setup module 402 is specifically used for:
If the mark of the memory block is present in the chained list, it is determined that the memory block is currently not used by;
Alternatively, if the mark of the memory block is present in the chained list, it is determined that the memory block is being currently used.
Optionally, the determining module 403 specifically includes:
First determination unit, for determining that the memory uses the requested memory size of request;
Second determination unit, for according to the management item, memory not less than requested memory size and memory with A memory block of distribution is determined in the requested the smallest one group of memory block of memory size difference, to use distributed one The memory block accordingly stores the memory and uses indicated by request to storage content.
Optionally, the memory management device 400 further include:
First update module, after determining the memory block distributed, belonging to the more newly assigned memory block in one group The corresponding management item of counterfoil;
And/or second update module, after the memory use for detecting memory block, updating memory use terminates The memory block belonging to the corresponding management item of one group of memory block.
Fig. 5 is the schematic diagram for the terminal device that the embodiment of the present invention four provides.As shown in figure 5, the terminal of the embodiment is set Standby 5 include: processor 50, memory 51 and are stored in the meter that can be run in the memory 51 and on the processor 50 Calculation machine program 52.The processor 50 is realized when executing the computer program 52 in above-mentioned each EMS memory management process embodiment The step of, such as step S101 to S103 shown in FIG. 1.Alternatively, reality when the processor 50 executes the computer program 52 The function of each module/unit in existing above-mentioned each Installation practice, such as the function of module 401 to 403 shown in Fig. 4.
Illustratively, the computer program 52 can be divided into one or more module/units, it is one or Multiple module/units are stored in the memory 51, and are executed by the processor 50, to complete the present invention.Described one A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for Implementation procedure of the computer program 52 in the terminal device 5 is described.For example, the computer program 52 can be divided It is cut into piecemeal module, setup module, determining module, each module concrete function is as follows:
Piecemeal module obtains at least one set of memory block, wherein in every group of memory block for carrying out piecemeal to default memory At least one memory block is respectively included, the memory size for belonging to same group of memory block is identical and belong to different groups of memory block Memory size is different;
Setup module, for the corresponding management item of every group of memory block institute, the management item instruction corresponding one to be arranged The service condition of group memory block;
Determining module uses request and the management item according to the memory after receiving memory using request Determine the memory block of distribution.
The terminal device 5 can be the calculating such as desktop PC, notebook, palm PC and cloud server and set It is standby.The terminal device may include, but be not limited only to, processor 50, memory 51.It will be understood by those skilled in the art that Fig. 5 The only example of terminal device 5 does not constitute the restriction to terminal device 5, may include than illustrating more or fewer portions Part perhaps combines certain components or different components, such as the terminal device can also include input-output equipment, net Network access device, bus etc..
Alleged processor 50 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng.
The memory 51 can be the internal storage unit of the terminal device 5, such as the hard disk or interior of terminal device 5 It deposits.The memory 51 is also possible to the External memory equipment of the terminal device 5, such as be equipped on the terminal device 5 Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge Deposit card (Flash Card) etc..Further, the memory 51 can also both include the storage inside list of the terminal device 5 Member also includes External memory equipment.The memory 51 is for storing needed for the computer program and the terminal device Other programs and data.The memory 51 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed device/terminal device and method, it can be with It realizes by another way.For example, device described above/terminal device embodiment is only schematical, for example, institute The division of module or unit is stated, only a kind of logical function partition, there may be another division manner in actual implementation, such as Multiple units or components can be combined or can be integrated into another system, or some features can be ignored or not executed.Separately A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be through some interfaces, device Or the INDIRECT COUPLING or communication connection of unit, it can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or In use, can store in a computer readable storage medium.Based on this understanding, the present invention realizes above-mentioned implementation All or part of the process in example method, can also instruct relevant hardware to complete, the meter by computer program Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program Code can be source code form, object identification code form, executable file or certain intermediate forms etc..Computer-readable Jie Matter may include: can carry the computer program code any entity or device, recording medium, USB flash disk, mobile hard disk, Magnetic disk, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described The content that computer-readable medium includes can carry out increasing appropriate according to the requirement made laws in jurisdiction with patent practice Subtract, such as does not include electric carrier signal and electricity according to legislation and patent practice, computer-readable medium in certain jurisdictions Believe signal.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all It is included within protection scope of the present invention.

Claims (10)

1. a kind of EMS memory management process characterized by comprising
Piecemeal is carried out to default memory, obtains at least one set of memory block, wherein respectively include at least one in every group of memory block Counterfoil, the memory size for belonging to same group of memory block are identical and to belong to the memory size of different groups of memory block different;
The corresponding management item of every group of memory block institute is set, and the management item indicates the use feelings of corresponding one group of memory block Condition;
After memory is received using request, the memory block of distribution is determined using request and the management item according to the memory.
2. EMS memory management process as described in claim 1, which is characterized in that between the management item of every group of memory block mutually solely It is vertical, each group memory block is used parallel.
3. EMS memory management process as described in claim 1, which is characterized in that every group of memory block institute of the setting is corresponding Management item includes:
It is respectively set the mark of each memory block, the mark indicates the memory size of the corresponding memory block and/or described The address of memory block and/or use state.
4. EMS memory management process as claimed in claim 3, which is characterized in that every group of memory block institute of the setting is corresponding Management item further include:
The corresponding chained list of every group of memory block institute is created, the chained list indicates corresponding one group of memory block by the mark Service condition.
5. EMS memory management process as claimed in claim 4, which is characterized in that the chained list is indicated corresponding by the mark The service condition of one group of memory block includes:
If the mark of the memory block is present in the chained list, it is determined that the memory block is currently not used by;
Alternatively, if the mark of the memory block is present in the chained list, it is determined that the memory block is being currently used.
6. EMS memory management process as described in claim 1, which is characterized in that described to use request and institute according to the memory It states management item and determines that the memory block distributed includes:
Determine that the memory uses the requested memory size of request;
According to the management item, in memory not less than requested memory size and memory and requested memory size difference A memory block of distribution is determined in the smallest one group of memory block, to use a distributed memory block to accordingly store The memory uses indicated by request to storage content.
7. the EMS memory management process as described in claim 1 to 6, which is characterized in that the EMS memory management process further include:
After the memory block for determining distribution, the corresponding management item of one group of memory block belonging to the more newly assigned memory block;
And/or after detecting the memory use of memory block, updates memory and use one group belonging to the memory block terminated The corresponding management item of memory block.
8. a kind of memory management device characterized by comprising
Piecemeal module obtains at least one set of memory block, wherein in every group of memory block respectively for carrying out piecemeal to default memory Including at least one memory block, the memory size for belonging to same group of memory block is identical and belong to the memory of different groups of memory block It is of different sizes;
Setup module, for the corresponding management item of every group of memory block institute to be arranged, the management item is indicated in corresponding one group The service condition of counterfoil;
Determining module is determined according to the memory using request and the management item after receiving memory using request The memory block of distribution.
9. a kind of terminal device, including memory, processor and storage are in the memory and can be on the processor The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 7 when executing the computer program The step of any one the method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In when the computer program is executed by processor the step of any one of such as claim 1 to 7 of realization the method.
CN201811139408.1A 2018-09-28 2018-09-28 A kind of EMS memory management process, memory management device and terminal device Pending CN109388580A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811139408.1A CN109388580A (en) 2018-09-28 2018-09-28 A kind of EMS memory management process, memory management device and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811139408.1A CN109388580A (en) 2018-09-28 2018-09-28 A kind of EMS memory management process, memory management device and terminal device

Publications (1)

Publication Number Publication Date
CN109388580A true CN109388580A (en) 2019-02-26

Family

ID=65418191

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811139408.1A Pending CN109388580A (en) 2018-09-28 2018-09-28 A kind of EMS memory management process, memory management device and terminal device

Country Status (1)

Country Link
CN (1) CN109388580A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117033002A (en) * 2023-10-09 2023-11-10 苏州元脑智能科技有限公司 Memory management method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101382916A (en) * 2007-09-06 2009-03-11 大唐移动通信设备有限公司 Method for managing embedded system memory
CN102063385A (en) * 2010-12-23 2011-05-18 深圳市金宏威实业发展有限公司 Memory management method and system
US20120303927A1 (en) * 2011-05-24 2012-11-29 Richard Goldberg Memory allocation using power-of-two block sizes
CN106844050A (en) * 2017-01-19 2017-06-13 郑州云海信息技术有限公司 A kind of memory allocation method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101382916A (en) * 2007-09-06 2009-03-11 大唐移动通信设备有限公司 Method for managing embedded system memory
CN102063385A (en) * 2010-12-23 2011-05-18 深圳市金宏威实业发展有限公司 Memory management method and system
US20120303927A1 (en) * 2011-05-24 2012-11-29 Richard Goldberg Memory allocation using power-of-two block sizes
CN106844050A (en) * 2017-01-19 2017-06-13 郑州云海信息技术有限公司 A kind of memory allocation method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117033002A (en) * 2023-10-09 2023-11-10 苏州元脑智能科技有限公司 Memory management method, device, equipment and storage medium
CN117033002B (en) * 2023-10-09 2024-02-09 苏州元脑智能科技有限公司 Memory management method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107395665A (en) A kind of block chain service handling and business common recognition method and device
CN110162388A (en) A kind of method for scheduling task, system and terminal device
CN106844041A (en) The method and internal storage management system of memory management
CN109918203A (en) Access server memory management optimization method, access server and communication system
CN108920276A (en) Linux system memory allocation method, system and equipment and storage medium
CN112416969B (en) Parallel task scheduling system in distributed database
CN109522314A (en) Data archiving method and terminal device based on block chain
CN109800067A (en) Database connection optimization method, device and relevant device based on cloud monitoring
CN108052569A (en) Data bank access method, device, computer readable storage medium and computing device
CN108255989A (en) Picture storage method, device, terminal device and computer storage media
CN108897601A (en) A kind of FPGA application method, system and relevant apparatus based on virtualization
CN109597810A (en) A kind of task cutting method, device, medium and electronic equipment
CN110149374A (en) A kind of document transmission method, terminal device and computer readable storage medium
CN113890712A (en) Data transmission method and device, electronic equipment and readable storage medium
CN111813517A (en) Task queue allocation method and device, computer equipment and medium
CN107204998A (en) The method and apparatus of processing data
CN109388580A (en) A kind of EMS memory management process, memory management device and terminal device
CN108399046A (en) File operation requests treating method and apparatus
CN109542841A (en) The method and terminal device of data snapshot are created in cluster
CN109634524A (en) A kind of data partitioned allocation method, device and the equipment of data processing finger daemon
CN109783321A (en) Monitoring data management method, device, terminal device
CN113347238A (en) Message partitioning method, system, device and storage medium based on block chain
CN109639460A (en) The method and apparatus of NFV resource management
CN106411545A (en) Service attribute counting method and device
CN109981697A (en) File unloading method, system, server 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

Application publication date: 20190226

RJ01 Rejection of invention patent application after publication