CN109062693A - A kind of EMS memory management process and relevant device - Google Patents
A kind of EMS memory management process and relevant device Download PDFInfo
- Publication number
- CN109062693A CN109062693A CN201810834927.3A CN201810834927A CN109062693A CN 109062693 A CN109062693 A CN 109062693A CN 201810834927 A CN201810834927 A CN 201810834927A CN 109062693 A CN109062693 A CN 109062693A
- Authority
- CN
- China
- Prior art keywords
- memory
- computer system
- different degree
- target
- exclusively
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5011—Allocation 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/5016—Allocation 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
Abstract
The embodiment of the invention provides a kind of EMS memory management process and relevant devices, and the response speed of critical processes can be improved, and reduce critical processes in the complexity of Memory Allocation, improve the operational efficiency of critical processes.This method comprises: the physical memory of the computer system is divided into inner core region, shared section key and exclusively enjoys memory field, the inner core region is the operation area of the computer system kernel, and the operation areas of the process in the computer system is in the shared section key and the memory field that exclusively enjoys;Obtain the process collection in the computer system;At least one process that different degree in the process collection is greater than the first preset threshold is obtained, the different degree is used to indicate the significance level of each process in the process collection, and the different degree is customized by the user setting;It is that at least one described process distributes corresponding memory in the memory field that exclusively enjoys, so that at least one described process is run in the corresponding memory.
Description
Technical field
The present invention relates to field of storage, in particular to a kind of EMS memory management process and relevant device.
Background technique
As soon as memory management is the extremely complex subsystem of modem computer systems, the related notion being directed to is allowed
Many people feel indigestion, such as segment management, page management, logical address, physical address, virtual address, process address,
Kernel address etc..Some of them address is of equal value in certain frameworks, certain operating systems, but in other framework and
But it cannot be of equal value in operating system.
By taking Linux system as an example, the process of the Memory Allocation of linux is an extremely complex process.Because physically
Location is that all processes are shared, and virtual address is that process is shared.The memory management mechanism of linux inevitably goes out
Existing certain processes in application memory be it is unsuccessful, one of them is very main reasons is that physical memory is used by other processes
, and temporarily without recuperable physical memory.
Linux memory subsystem recycles memory and an extremely complex process if necessary, needs the visit to memory
Ask that situation accounts for, such as last access time, visiting frequency etc..After having selected page, needing will be in memory
Related data brushes in external memory, such as hard disk, and then the data for needing to access at this time may need also on hard disk by the number
According to reading memory.Whole process may need frequently to interact with external memory, and external memory speed is generally relatively slow, seriously affecting property
Energy.
Summary of the invention
The embodiment of the invention provides a kind of EMS memory management process and devices, and the response speed of critical processes can be improved,
Critical processes are reduced in the complexity of Memory Allocation, improve the operational efficiency of critical processes.
First aspect of the embodiment of the present invention provides a kind of EMS memory management process, is applied to storage program area, specific to wrap
It includes:
The physical memory of the computer system is divided into inner core region, shared section key and exclusively enjoys memory field, it is described
Inner core region is the operation area of the computer system kernel, and the shared section key and the memory field that exclusively enjoys are the meter
The operation area of process in calculation machine system;
Obtain the process collection in the computer system;
At least one process that different degree in the process collection is greater than the first preset threshold is obtained, the different degree is used for
Indicate the significance level of each process in the process collection, and the different degree is customized by the user setting;
Be that at least one described process distributes corresponding memory in the memory field that exclusively enjoys so that it is described at least one into
Journey is run in the corresponding memory.
Optionally, described to distribute corresponding memory in described memory field at least one process for described in that exclusively enjoys, so that institute
At least one process is stated after the corresponding memory operation, the method also includes:
Obtain the target process of the computer system, the target process be the computer system it is currently running into
Journey;
When the target process is the process run in the shared section key, judge whether the target process is full
Sufficient preset condition;
It is run if so, converting the target process to the memory field that exclusively enjoys.
Optionally, described to judge whether the target process meets preset condition and include:
Judge whether the runing time of the target process reaches the second preset threshold;
If so, determining that the target process meets the preset condition.
Optionally, the method also includes:
Other processes in the process collection in addition at least one described process are transported in the shared drive region
Row.
The embodiment of the present application second aspect provides a kind of memory management device, is applied to computer system, comprising:
Division unit, for by the physical memory of the computer system be divided into inner core region, shared section key and solely
Enjoy memory field, the inner core region is the operation area of the computer system kernel, the shared section key and described is exclusively enjoyed
Memory field is the operation area of the process in the computer system;
First acquisition unit, for obtaining the process collection in the computer system;
Second acquisition unit, for obtain different degree in the process collection be greater than the first preset threshold at least one into
Journey, the different degree are used to indicate the significance level of each process in the process collection, and the different degree by user from
Definition setting;
Processing unit, for being the corresponding memory of at least one process distribution in the memory field that exclusively enjoys, so that
At least one described process is run in the corresponding memory.
Optionally, described device further include:
Third acquiring unit, for obtaining the target process of the computer system, the target process is the calculating
The currently running process of machine system;
Judging unit, for when the target process is the process run in the shared section key, described in judgement
Whether target process meets preset condition;
Converting unit, for when the target process meets preset condition, the target process to be converted to described only
Enjoy memory field operation.
Optionally, the judging unit is specifically used for:
Judge whether the runing time of the target process reaches the second preset threshold;
If so, determining that the target process meets the preset condition.
Optionally, the processing unit is also used to:
Other processes in the process collection in addition at least one described process are transported in the shared drive region
Row.
The third aspect of the embodiment of the present invention provides a kind of processor, and the processor is for running computer program, institute
It executes when stating computer program operation such as the step of above-mentioned various aspects the method.
Fourth aspect of the embodiment of the present invention provides a kind of computer readable storage medium, is stored thereon with computer journey
Sequence, it is characterised in that: the computer program is when being executed by processor the step of above-mentioned various aspects the method.
As can be seen from the above technical solutions, in the embodiment of the present application, the physical memory of the computer system is divided
For inner core region, shared section key and memory field is exclusively enjoyed, the inner core region is the operation area of the computer system kernel, institute
Shared section key and the memory field that exclusively enjoys are stated as the operation area of the process in the computer system;Obtain the calculating
Process collection in machine system;Obtain at least one process that different degree in the process collection is greater than the first preset threshold, institute
The significance level for each process that different degree is used to indicate in the process collection is stated, and the different degree is customized by the user and sets
It sets;It is that at least one described process distributes corresponding memory in the memory field that exclusively enjoys, so that at least one described process exists
The corresponding memory operation.It can thus be seen that Installed System Memory can be divided into inner core region, shared in the embodiment of the present application
Memory field and memory field is exclusively enjoyed, wherein exclusively enjoy memory field operation is that different degree is greater than the first preset threshold in process collection
At least one process thus can be improved since the memory run in exclusively enjoying memory field can distribute corresponding memory for it
The response speed of important process reduces important process in the complexity of Memory Allocation, improves the operational efficiency of important process.
Detailed description of the invention
Fig. 1 is the embodiment schematic diagram of EMS memory management process provided in an embodiment of the present invention;
Fig. 2 is the embodiment schematic diagram of memory management device provided in an embodiment of the present invention;
Fig. 3 is the hardware device structural schematic diagram of memory management equipment provided in an embodiment of the present invention;
Fig. 4 is the embodiment schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention;
Fig. 5 is a kind of embodiment schematic diagram of computer readable storage medium provided in an embodiment of the present invention.
Specific embodiment
The embodiment of the invention provides a kind of EMS memory management process and memory management devices, and the sound of critical processes can be improved
Speed is answered, critical processes is reduced in the complexity of Memory Allocation, improves the operational efficiency of critical processes.
Description and claims of this specification and term " first ", " second ", " third ", " in above-mentioned attached drawing
The (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should manage
The data that solution uses in this way are interchangeable under appropriate circumstances, so that the embodiments described herein can be in addition to illustrating herein
Or the sequence other than the content of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that
Cover it is non-exclusive include, for example, containing the process, method, system, product or equipment of a series of steps or units need not limit
In step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, produce
The other step or units of product or equipment inherently.
EMS memory management process is described from the angle of memory management device below, which can be clothes
Business device, or the service unit in server, specifically without limitation.
In order to make it easy to understand, the embodiment of the present application is 256TB with the physical memory of computer system configurations, system process
Location space is 4G (64 process addresses can be different, but the address actually used may map to a space of 4G), and CPU is
X86 framework, system are illustrated for linux.
Referring to Fig. 1, Fig. 1 is one embodiment schematic diagram of EMS memory management process provided in an embodiment of the present invention, the party
Method is applied to computer system, specifically includes:
101, the physical memory of computer system is divided into inner core region, shared section key and exclusively enjoys memory field.
In the present embodiment, memory management device the physical memory of computer system can be divided into inner core region, it is shared in
It deposits area and exclusively enjoys memory field.Wherein, inner core region is the operation area of computer system kernel, shared section key and in exclusively enjoying
Deposit the operation area that area is the process in computer system.
It to inner core region, shared section key and exclusively enjoys memory field below and is illustrated:
Exclusively enjoying the process in memory field is to exclusively enjoy memory process, and the process in shared section key is shared drive process, altogether
Enjoy memory process refer to multiple processes jointly share one piece of physical memory, the way to manage of these block physical memories with it is existing
Page Memory Storage in Linux system is similar, does not illustrate herein.
Exclusively enjoy memory process, refer to that these processes can individually enjoy one piece of physical memory, this block physical memory it is big
It is small in the same size with the virtual memory address of process user's space.
Shared drive process and exclusively enjoy memory process according to its operational property it and may runing time length classify.Than
The service used for a long time such as some: Samba, FTP, NFS etc process may be used for a long time, and need to exclusively enjoy physical memory.
Inner core region is the region of system kernel (such as kernel of Linux system) operation, that is, can distribute one piece individually
Physical memory to kernel, the physical memory is dedicated by kernel.
The each process exclusively enjoyed in memory field is important (such as communication program, cannot there is delay), and runing time is very
Long (such as operation duration is greater than 10 days), the process of preset value is greater than for performance requirement.Each of memory field is exclusively enjoyed to exclusively enjoy
Memory process can all divide one piece of physical memory and be used alone for the process, that is, the address space of process is mapped to this
On physical memory.It each exclusively enjoys memory process to need that how many physical address space distributed, memory process can be exclusively enjoyed according to this
User address space size carries out actual distribution, and without loss of generality, the process address space is generally 4G, wherein including about 1G
Kernel address space, can be to each therefore when division process exclusively enjoys memory so the user address space of process is 3G
The physical memory space of process division 3G.
Shared section key refers to the physical address that the user's space for the process of being allocated to uses, the use of the process and now
Linux system memory management is identical, this block physical memory is used in conjunction with by multiple processes, and the process address space passes through page memory
Be mapped to relevant physical memory, due to the presence of page Memory Storage, identical process address, mapping physics in
It deposits and is different.
102, the process collection of computer system is obtained.
In the present embodiment, the process collection of the available computer system of memory management device is not limited specifically herein and is obtained
The mode taken, as long as the process collection of the computer system can be obtained.
103, at least one process that different degree in process collection is greater than the first preset threshold is obtained.
In the present embodiment, can the different degree in advance to each process in process collection judge that the different degree is
User customized one be used to judge process significance level value, such as can be set the first preset threshold be 5, to process
The different degree of each process in set is judged, determines at least one process of different degree greater than 5 in process collection.Its
In, the value of the different degree can be set to 1-10, wherein 1 different degree is minimum, 10 different degree highest, the different degree is sentenced
Disconnected method for example can be, and determine that its different degree, such as A process need longtime running according to the runing time length of process,
So can both determine the A process different degree be 10, as long as such as B process to run 5 minutes, then the B can be determined
The different degree of process is 1 (different degree and runing time have a corresponding relationship), and so on, it can will be in process collection
The different degree of all processes judges, it is hereby achieved that different degree is greater than at least the one of the first preset threshold in process collection
A process.
It should be noted that the judgement about different degree, can also be by user in advance to the different degree of each process into
Line identifier, either, the demand according to each process to performance, such as C process are communication program, in order to improve the body of user
Test, then require C process that cannot have delay, then the different degree of the C process can with for 8, such as D process be commonly into
Journey, it is not high to performance requirement, then the different degree that the D process can be set is 2.Likewise, the different degree and each process pair
The requirement of performance has corresponding relationship.
It should be noted that can have certain conversion relation between different degree and each process, it is herein above-mentioned for into
Row explanation, does not represent the restriction to different degree.
It 104, is that at least one process distributes corresponding memory exclusively enjoying memory field, so that at least one process is in correspondence
Memory operation.
In the present embodiment, memory management device, can be by least one process after getting at least one process
Corresponding memory is distributed for it exclusively enjoying memory field, which can run in its corresponding memory.
In conclusion Installed System Memory can be divided into inner core region, shared section key and exclusively enjoyed interior in the embodiment of the present application
Area is deposited, wherein exclusively enjoy memory field operation is at least one process that different degree is greater than the first preset threshold in process collection, by
Corresponding memory can be distributed for it in the memory run in exclusively enjoying memory field, the response speed of important process thus can be improved
Degree, reduces important process in the complexity of Memory Allocation, improves the operational efficiency of important process.
Optionally, on the basis of above-mentioned Fig. 2 corresponding embodiment, the management method of memory provided in an embodiment of the present invention
Alternative embodiment in, be that at least one described process distributes corresponding memory exclusively enjoying memory field, so that described at least one
A process is after the corresponding memory operation, the management method of the memory further include:
Obtain the target process of the computer system, the target process be the computer system it is currently running into
Journey;
When the target process is the process run in the shared section key, judge whether the target process is full
Sufficient preset condition;
It is run if so, converting the target process to the memory field that exclusively enjoys.
In the present embodiment, the currently running target process of the available computer system of memory management device, and judging should
Target process be in shared section key the shared drive process that runs still exclusively enjoy run in memory field exclusively enjoy memory process, when
When determining that the target process is the process run in shared section key, it can be determined that whether the target process meets default item
Part, if so, by target process convert to exclusively enjoy memory field run.That is, according to shared drive process run time, such as
The time of fruit operation is more than certain numerical value, so that it may be converted into and exclusively enjoy memory process.
It should be noted that for the CPU of x86 framework, when process switching, register CR3 for provide into
The page directory address of journey realizes system by virtual address by page directory, page table and page offset for Linux system jointly
To the addressing of physical address.For the process of shared drive, wherein having many process addresses all is not carry out physical mappings,
Or it has mapped still relevant Physical Page and has been paged out.It is reflected because the process address space is stored with the incomplete of physical address
It penetrates and Page swap-out, so that multi-process may be implemented is shared for the physical memory in the region.Opposite with shared drive process exclusively enjoys
Memory process, according to the page directory that CR3 is provided, and then the page table for thering is page directory to obtain, and in the page be Complete Mappings,
It is exactly that its process address has implicitly arrived on physical address completely.Physical page therein will not be paged out, according to exclusively enjoying memory field
The characteristics of, Linear Mapping may be implemented in process user's space address and physical address map.In this way when process data accesses, directly
Connect the physical address offset by process address plus a mapping.
It should also be noted that, be the process for exclusively enjoying memory for originally, if the process of certain inefficiencies, if it should
There is dry running in process, when exclusively enjoying region of memory physical memory appearance anxiety, it can convert shared drive for the process
The process in area.For example FTP service is started in a manner of memory to exclusively enjoy, but the but not access of FTP for a long time, and exclusively enjoy
At this moment the physical memory of memory field needs to convert shared section key for the FTP service process using certain threshold value has been reached
Process, discharge that the FTP is corresponding to exclusively enjoy memory physical space.
In conclusion to shared drive process and exclusively enjoying the conversion between memory process and being illustrated, scheme is improved
Realizability.
Optionally, on the basis of above-mentioned Fig. 2 corresponding embodiment, the management method of memory provided in an embodiment of the present invention
Alternative embodiment in, by other processes in process collection in addition at least one process shared drive region run.
In the present embodiment, memory management device can exist other processes in process collection in addition at least one process
The operation of shared drive region.Also process unessential in process collection is run in shared drive region.
Optionally, on the basis of above-mentioned Fig. 2 corresponding embodiment, the management method of memory provided in an embodiment of the present invention
Alternative embodiment in, it is described to judge whether the target process meets preset condition and include:
Judge whether the runing time of the target process reaches the second preset threshold;
If so, determining that the target process meets the preset condition.
In the present embodiment, judge whether target process meets preset condition, it can be from the runing time for judging target process
Whether reach the second preset threshold (such as 10 days), when the runing time of target process reaches the second preset threshold, determines target
Process meets preset condition.
It should be noted that the preset condition can also there are many situations, such as it can also be that the operation for receiving user refers to
It enables, which is used to indicate process conversion, specifically without limitation.
The embodiment of the present invention is illustrated from the angle of EMS memory management process above, below from the angle of memory management device
Degree is illustrated the embodiment of the present invention.
Referring to Fig. 2, Fig. 2 is the embodiment schematic diagram of memory management device provided in an embodiment of the present invention, the memory pipe
It manages device and is applied to computer system, specifically include:
Division unit 201, for by the physical memory of the computer system be divided into inner core region, shared section key and
Exclusively enjoy memory field, the inner core region is the operation area of the computer system kernel, the shared section key and it is described solely
Enjoy the operation area that memory field is the process in the computer system;
First acquisition unit 202, for obtaining the process collection in the computer system;
Second acquisition unit 203 is greater than at least the one of the first preset threshold for obtaining different degree in the process collection
A process, the different degree are used to indicate the significance level of each process in the process collection, and the different degree by with
The customized setting in family;
Processing unit 204, for being the corresponding memory of at least one process distribution in the memory field that exclusively enjoys, so that
At least one described process is obtained to run in the corresponding memory.
Optionally, described device further include:
Third acquiring unit 205, for obtaining the target process of the computer system, the target process is the meter
The currently running process of calculation machine system;
Judging unit 206, for judging institute when the target process is the process run in the shared section key
State whether target process meets preset condition;
Converting unit 207, for when the target process meets preset condition, the target process to be converted to described
Exclusively enjoy memory field operation.
Optionally, the judging unit 206 is specifically used for:
Judge whether the runing time of the target process reaches the second preset threshold;
If so, determining that the target process meets the preset condition.
Optionally, the processing unit 204 is also used to:
Other processes in the process collection in addition at least one described process are transported in the shared drive region
Row.
Interactive mode between each unit of memory management device in the present embodiment is as illustrated in the foregoing fig. 1 in embodiment
Description, specific details are not described herein again.
In conclusion Installed System Memory can be divided into inner core region, shared section key and exclusively enjoyed interior in the embodiment of the present application
Area is deposited, wherein exclusively enjoy memory field operation is at least one process that different degree is greater than the first preset threshold in process collection, by
Corresponding memory can be distributed for it in the memory run in exclusively enjoying memory field, the response speed of important process thus can be improved
Degree, reduces important process in the complexity of Memory Allocation, improves the operational efficiency of important process.
The memory management device in the embodiment of the present invention is described from the angle of modular functionality entity above, under
The memory management device in the embodiment of the present invention is described in the angle that face is handled from hardware device.
Referring to Fig. 3,300 one embodiment of memory management equipment in the embodiment of the present invention, comprising:
(wherein the quantity of processor 303 can be with for input unit 301, output device 302, processor 303 and memory 304
One or more, in Fig. 3 by taking a processor 303 as an example).In some embodiments of the invention, input unit 301, output
Device 302, processor 303 and memory 304 can be connected by bus or other means, wherein to be connected by bus in Fig. 3
For.
Wherein, the operational order stored by calling memory 304, processor 303, for executing following steps:
The physical memory of the computer system is divided into inner core region, shared section key and exclusively enjoys memory field, it is described
Inner core region is the operation area of the computer system kernel, and the shared section key and the memory field that exclusively enjoys are the meter
The operation area of process in calculation machine system;
Obtain the process collection in the computer system;
At least one process that different degree in the process collection is greater than the first preset threshold is obtained, the different degree is used for
Indicate the significance level of each process in the process collection, and the different degree is customized by the user setting;
Be that at least one described process distributes corresponding memory in the memory field that exclusively enjoys so that it is described at least one into
Journey is run in the corresponding memory.
In the specific implementation process, the operational order for calling memory 304 to store, it is corresponding that Fig. 1 may be implemented in processor 303
Embodiment in any embodiment.
Referring to Fig. 4, Fig. 4 is the embodiment schematic diagram of electronic equipment provided in an embodiment of the present invention.
As shown in figure 4, the embodiment of the invention provides a kind of electronic equipment 400, including memory 410, processor 420 and
It is stored in the computer program 411 that can be run on memory 410 and on processor 420, processor 420 executes computer program
It is performed the steps of when 411
The physical memory of the computer system is divided into inner core region, shared section key and exclusively enjoys memory field, it is described
Inner core region is the operation area of the computer system kernel, and the shared section key and the memory field that exclusively enjoys are the meter
The operation area of process in calculation machine system;
Obtain the process collection in the computer system;
At least one process that different degree in the process collection is greater than the first preset threshold is obtained, the different degree is used for
Indicate the significance level of each process in the process collection, and the different degree is customized by the user setting;
Be that at least one described process distributes corresponding memory in the memory field that exclusively enjoys so that it is described at least one into
Journey is run in the corresponding memory.
In the specific implementation process, when processor 420 executes computer program 411, the corresponding embodiment of Fig. 1 may be implemented
Middle any embodiment.
Since the electronic equipment that the present embodiment is introduced is to implement in the embodiment of the present invention used by EMS memory management process
Equipment, so based on method described in the embodiment of the present invention, those skilled in the art can understand the present embodiment
The specific embodiment of electronic equipment and its various change form, so how to realize the present invention for the electronic equipment herein
Method in embodiment is no longer discussed in detail, as long as the method that those skilled in the art implement in the embodiment of the present invention is adopted
Equipment belongs to the range of the invention to be protected.
Referring to Fig. 5, Fig. 5 is a kind of embodiment signal of computer readable storage medium provided in an embodiment of the present invention
Figure.
As shown in figure 5, present embodiments providing a kind of computer readable storage medium 500, it is stored thereon with computer journey
Sequence 511, the computer program 511 realize following steps when being executed by processor:
The physical memory of the computer system is divided into inner core region, shared section key and exclusively enjoys memory field, it is described
Inner core region is the operation area of the computer system kernel, and the shared section key and the memory field that exclusively enjoys are the meter
The operation area of process in calculation machine system;
Obtain the process collection in the computer system;
At least one process that different degree in the process collection is greater than the first preset threshold is obtained, the different degree is used for
Indicate the significance level of each process in the process collection, and the different degree is customized by the user setting;
Be that at least one described process distributes corresponding memory in the memory field that exclusively enjoys so that it is described at least one into
Journey is run in the corresponding memory.
In the specific implementation process, Fig. 1 corresponding embodiment may be implemented when which is executed by processor
Middle any embodiment.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, reference can be made to the related descriptions of other embodiments.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program
Product.Therefore, the present invention can be used complete hardware apparatus embodiments, complete software embodiment or combine software and hardware equipment
The form of the embodiment of aspect.Moreover, it wherein includes computer usable program code that the present invention, which can be used in one or more,
Computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) on the calculating implemented
The form of machine program product.
The present invention be referring to the method for the embodiment of the present invention, equipment (system) and computer program product flow chart and/
Or block diagram describes.It should be understood that each process that can be realized by computer program instructions in flowchart and/or the block diagram and/
Or the combination of the process and/or box in box and flowchart and/or the block diagram.It can provide these computer program instructions
To general purpose computer, special purpose computer, Embedded Processor or other programmable internal memory management equipments processor to generate one
A machine so that by the instruction that the processor of computer or other programmable internal memory management equipments executes generate for realizing
The device for the function of being specified in one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable internal memory management equipments with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions can also be loaded into computer or other programmable internal memory management equipments, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/
Or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable Jie
The example of matter.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), block dodge memory body or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or
Any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, computer
Readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including element
There is also the other elements that matches in process, method, commodity or equipment.
It will be understood by those skilled in the art that the embodiment of the present invention can provide as method, system or computer program product.
Therefore, the present invention can be used complete hardware apparatus embodiments, complete software embodiment or combine software and hardware equipment aspect
The form of embodiment.Moreover, it wherein includes the calculating of computer usable program code that the present invention, which can be used in one or more,
The computer program implemented in machine usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
The above is only the embodiment of the present invention, are not intended to restrict the invention.To those skilled in the art,
The invention may be variously modified and varied.It is all within the spirit and principles of the present invention made by any modification, equivalent replacement,
Improve etc., it should be included within scope of the presently claimed invention.
Claims (10)
1. a kind of EMS memory management process is applied to computer system characterized by comprising
The physical memory of the computer system is divided into inner core region, shared section key and exclusively enjoys memory field, the kernel
Area is the operation area of the computer system kernel, and the shared section key and the memory field that exclusively enjoys are the computer
The operation area of process in system;
Obtain the process collection in the computer system;
At least one process that different degree in the process collection is greater than the first preset threshold is obtained, the different degree is used to indicate
The significance level of each process in the process collection, and the different degree is customized by the user setting;
It is that at least one described process distributes corresponding memory in the memory field that exclusively enjoys, so that at least one described process exists
The corresponding memory operation.
2. the method according to claim 1, wherein it is described it is described exclusively enjoy memory field be it is described at least one into
Journey distributes corresponding memory, so that at least one described process is after the corresponding memory operation, the method is also wrapped
It includes:
The target process of the computer system is obtained, the target process is the currently running process of the computer system;
When the target process is the process run in the shared section key, it is pre- to judge whether the target process meets
If condition;
It is run if so, converting the target process to the memory field that exclusively enjoys.
3. according to the method described in claim 2, it is characterized in that, described judge whether the target process meets preset condition
Include:
Judge whether the runing time of the target process reaches the second preset threshold;
If so, determining that the target process meets the preset condition.
4. according to right want any one of 1 to 3 described in method, which is characterized in that the method also includes:
Other processes in the process collection in addition at least one described process are run in the shared drive region.
5. a kind of memory management device is applied to computer system characterized by comprising
Division unit, in the physical memory of the computer system is divided into inner core region, shared section key and is exclusively enjoyed
Deposit area, the inner core region is the operation area of the computer system kernel, the shared section key and described exclusively enjoys memory
Area is the operation area of the process in the computer system;
First acquisition unit, for obtaining the process collection in the computer system;
Second acquisition unit, at least one process for being greater than the first preset threshold for obtaining different degree in the process collection,
The different degree is used to indicate the significance level of each process in the process collection, and the different degree is customized by the user
Setting;
Processing unit, for being that at least one described process distributes corresponding memory in the memory field that exclusively enjoys, so that described
At least one process is run in the corresponding memory.
6. device according to claim 5, which is characterized in that described device further include:
Third acquiring unit, for obtaining the target process of the computer system, the target process is the department of computer science
It unites currently running process;
Judging unit, for judging the target when the target process is the process run in the shared section key
Whether process meets preset condition;
Converting unit, for when the target process meets preset condition, the target process to be converted to described exclusively enjoy
Deposit area's operation.
7. device according to claim 6, which is characterized in that the judging unit is specifically used for:
Judge whether the runing time of the target process reaches the second preset threshold;
If so, determining that the target process meets the preset condition.
8. according to right want any one of 5 to 7 described in device, which is characterized in that the processing unit is also used to:
Other processes in the process collection in addition at least one described process are run in the shared drive region.
9. a kind of processor, which is characterized in that the processor is for running computer program, when the computer program is run
It executes such as the step of any one of Claims 1-4 the method.
10. a kind of computer readable storage medium, is stored thereon with computer program, it is characterised in that: the computer program
It is realized when being executed by processor such as the step of any one of Claims 1-4 the method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810834927.3A CN109062693A (en) | 2018-07-26 | 2018-07-26 | A kind of EMS memory management process and relevant device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810834927.3A CN109062693A (en) | 2018-07-26 | 2018-07-26 | A kind of EMS memory management process and relevant device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109062693A true CN109062693A (en) | 2018-12-21 |
Family
ID=64835657
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810834927.3A Pending CN109062693A (en) | 2018-07-26 | 2018-07-26 | A kind of EMS memory management process and relevant device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109062693A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109951639A (en) * | 2019-03-26 | 2019-06-28 | Oppo广东移动通信有限公司 | Camera stabilization system, method, electronic equipment and computer readable storage medium |
CN111400029A (en) * | 2020-02-10 | 2020-07-10 | 北京物资学院 | Web search service method and device with storage and editing functions |
CN111984197A (en) * | 2020-08-24 | 2020-11-24 | 许昌学院 | Computer buffer memory allocation method |
CN115934364A (en) * | 2023-03-09 | 2023-04-07 | 摩尔线程智能科技(北京)有限责任公司 | Memory management method and device and electronic equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060282638A1 (en) * | 2005-06-10 | 2006-12-14 | Fujitsu Limited | Storage device, configuration information management method and program |
CN102819497A (en) * | 2012-05-31 | 2012-12-12 | 华为技术有限公司 | Method, device and system for memory allocation |
CN104881330A (en) * | 2015-05-22 | 2015-09-02 | 大唐移动通信设备有限公司 | Multi-process data sharing method and device |
CN105224469A (en) * | 2014-06-16 | 2016-01-06 | 陈宏达 | Active Memory Storage |
CN106557427A (en) * | 2015-09-25 | 2017-04-05 | 中兴通讯股份有限公司 | The EMS memory management process and device of shared drive data base |
CN107333282A (en) * | 2017-06-05 | 2017-11-07 | 惠州Tcl移动通信有限公司 | A kind of 5G terminal general-purpose platform optimization methods and system based on GPP |
-
2018
- 2018-07-26 CN CN201810834927.3A patent/CN109062693A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060282638A1 (en) * | 2005-06-10 | 2006-12-14 | Fujitsu Limited | Storage device, configuration information management method and program |
CN102819497A (en) * | 2012-05-31 | 2012-12-12 | 华为技术有限公司 | Method, device and system for memory allocation |
CN105224469A (en) * | 2014-06-16 | 2016-01-06 | 陈宏达 | Active Memory Storage |
CN104881330A (en) * | 2015-05-22 | 2015-09-02 | 大唐移动通信设备有限公司 | Multi-process data sharing method and device |
CN106557427A (en) * | 2015-09-25 | 2017-04-05 | 中兴通讯股份有限公司 | The EMS memory management process and device of shared drive data base |
CN107333282A (en) * | 2017-06-05 | 2017-11-07 | 惠州Tcl移动通信有限公司 | A kind of 5G terminal general-purpose platform optimization methods and system based on GPP |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109951639A (en) * | 2019-03-26 | 2019-06-28 | Oppo广东移动通信有限公司 | Camera stabilization system, method, electronic equipment and computer readable storage medium |
CN111400029A (en) * | 2020-02-10 | 2020-07-10 | 北京物资学院 | Web search service method and device with storage and editing functions |
CN111984197A (en) * | 2020-08-24 | 2020-11-24 | 许昌学院 | Computer buffer memory allocation method |
CN111984197B (en) * | 2020-08-24 | 2023-12-15 | 许昌学院 | Computer cache allocation method |
CN115934364A (en) * | 2023-03-09 | 2023-04-07 | 摩尔线程智能科技(北京)有限责任公司 | Memory management method and device and electronic equipment |
CN115934364B (en) * | 2023-03-09 | 2023-10-31 | 摩尔线程智能科技(北京)有限责任公司 | Memory management method and device and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109062693A (en) | A kind of EMS memory management process and relevant device | |
CN107368259B (en) | Method and device for writing service data into block chain system | |
EP2645259B1 (en) | Method, device and system for caching data in multi-node system | |
US8381230B2 (en) | Message passing with queues and channels | |
US11354230B2 (en) | Allocation of distributed data structures | |
US11119942B2 (en) | Facilitating access to memory locality domain information | |
US10552309B2 (en) | Locality domain-based memory pools for virtualized computing environment | |
CN106407207B (en) | Real-time newly-added data updating method and device | |
CN104182508B (en) | A kind of data processing method and data processing equipment | |
CN103488588A (en) | Memory protection method and system and network interface controller | |
CN108334551A (en) | Date storage method and system, data query method and system | |
EP3662380A1 (en) | Memory control for electronic data processing system | |
CN109918382A (en) | Data processing method, device, terminal and storage medium | |
CN104169891A (en) | Method and device for accessing memory | |
CN106844676A (en) | Date storage method and device | |
US10691590B2 (en) | Affinity domain-based garbage collection | |
CN109033365A (en) | A kind of data processing method and relevant device | |
CN109739433A (en) | The method and terminal device of data processing | |
US8543722B2 (en) | Message passing with queues and channels | |
CN108154024A (en) | A kind of data retrieval method, device and electronic equipment | |
CN108399175A (en) | A kind of storage of data, querying method and its device | |
CN110222064A (en) | Data processing method, device, electronic equipment and readable storage medium storing program for executing | |
CN109726219A (en) | The method and terminal device of data query | |
US5450595A (en) | Multiple hash tables based on access frequency | |
CN115525793A (en) | Computer-implemented method, system, 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: 20181221 |