CN103888492A - Memory management system and method - Google Patents
Memory management system and method Download PDFInfo
- Publication number
- CN103888492A CN103888492A CN201210558377.XA CN201210558377A CN103888492A CN 103888492 A CN103888492 A CN 103888492A CN 201210558377 A CN201210558377 A CN 201210558377A CN 103888492 A CN103888492 A CN 103888492A
- Authority
- CN
- China
- Prior art keywords
- memory
- cloud
- capacity
- address space
- cloud server
- 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
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Memory System Of A Hierarchy Structure (AREA)
Abstract
Description
技术领域technical field
本发明涉及一种提供云服务的系统,尤其是关于一种管理云服务器的内存的系统及方法。The invention relates to a system for providing cloud services, in particular to a system and method for managing the memory of a cloud server.
背景技术Background technique
随着云端技术的发展,越来越多的网络服务都向云端服务转移。对客户来说云服务可以被分为三种:公有云,私有云和混合云。其中私有云服务器可以允许小客户共同租用同一台云服务器,不同云客户端共享私有云服务器提供的服务,例如物理内存。当不同云客户端请求私有云服务器分配内存运行应用程序时,私有云服务器为每个云客户端提供相应容量的虚拟内存地址空间,这些虚拟内存空间映射到到物理内存的地址空间。然而,这种映射关系是动态的,不同云客户端的应用程序可能会交叉使用物理内存的相同地址空间,不仅可能会造成应用程序运行速度缓慢,还可能埋下数据安全隐患。With the development of cloud technology, more and more network services are transferred to cloud services. For customers, cloud services can be divided into three types: public cloud, private cloud and hybrid cloud. Among them, the private cloud server can allow small customers to jointly rent the same cloud server, and different cloud clients can share the services provided by the private cloud server, such as physical memory. When different cloud clients request the private cloud server to allocate memory to run applications, the private cloud server provides each cloud client with a virtual memory address space of corresponding capacity, and these virtual memory spaces are mapped to the address space of the physical memory. However, this mapping relationship is dynamic, and applications of different cloud clients may cross-use the same address space of physical memory, which may not only cause the application to run slowly, but may also bury data security risks.
发明内容Contents of the invention
鉴于以上内容,有必要提供一种内存管理系统及方法,可以为私有云的客户端分配固定地址空间的物理内存,避免不同客户端应用程序访问相同地址空间的物理内存,提高客户端应用程序的运行速度及数据安全性。In view of the above, it is necessary to provide a memory management system and method, which can allocate physical memory with a fixed address space for the client of the private cloud, prevent different client applications from accessing the physical memory of the same address space, and improve the performance of the client application. Speed of operation and data security.
一种内存管理系统,应用于云服务器。该系统包括:第一接收模块,用于接收云客户端请求云服务器指定第一容量物理内存空间的请求;内存分配模块,用于在云服务器的物理内存中为该云客户端指定满足第一容量的固定地址空间;第二接收模块,用于接收该云客户端运行应用程序时请求云服务器分配第二容量内存的请求;及地址转换模块,用于为该云客户端的应用程序分配所述第二容量的虚拟内存,并将虚拟内存的地址空间转换为该物理内存的所述固定地址空间。A memory management system applied to cloud servers. The system includes: a first receiving module, configured to receive a request from a cloud client to request a cloud server to specify a first-capacity physical memory space; The fixed address space of the capacity; The second receiving module is used for receiving the request that the cloud server allocates the memory of the second capacity when the cloud client runs the application program; and the address translation module is used for the application program allocation of the cloud client. virtual memory of the second capacity, and convert the address space of the virtual memory into the fixed address space of the physical memory.
一种内存管理方法,该方法包括:(A)接收云客户端请求云服务器指定第一容量物理内存空间的请求;(B)在云服务器的物理内存中为该云客户端指定满足第一容量的固定地址空间;(C)接收该云客户端运行应用程序时请求云服务器分配第二容量内存的请求;及(D)为该云客户端的应用程序分配所述第二容量的虚拟内存,将虚拟内存的地址空间转换为该物理内存的所述固定地址空间。A memory management method, the method comprising: (A) receiving a request from a cloud client requesting a cloud server to specify a first-capacity physical memory space; (B) specifying that the cloud client satisfies the first capacity in the physical memory of the cloud server (C) receiving a request from the cloud server to allocate memory of a second capacity when the cloud client runs an application; and (D) allocating virtual memory of the second capacity to the application program of the cloud client, and The address space of the virtual memory is translated into said fixed address space of the physical memory.
相较于现有技术,本发明提供的内存管理系统及方法,可以为云客户端分配固定地址空间的物理内存,避免不同客户端应用程序访问云服务器的物理内存中的相同地址空间,提高客户端应用程序的运行速度及数据安全性。Compared with the prior art, the memory management system and method provided by the present invention can allocate physical memory with a fixed address space for the cloud client, prevent different client applications from accessing the same address space in the physical memory of the cloud server, and improve customer The running speed and data security of terminal applications.
附图说明Description of drawings
图1是本发明内存管理系统较佳实施例的应用环境图。FIG. 1 is an application environment diagram of a preferred embodiment of the memory management system of the present invention.
图2是本发明内存管理系统较佳实施例的功能模块图。Fig. 2 is a functional block diagram of a preferred embodiment of the memory management system of the present invention.
图3是本发明内存管理方法较佳实施例的流程图。FIG. 3 is a flowchart of a preferred embodiment of the memory management method of the present invention.
主要元件符号说明Description of main component symbols
如下具体实施方式将结合上述附图进一步说明本发明。The following specific embodiments will further illustrate the present invention in conjunction with the above-mentioned drawings.
具体实施方式Detailed ways
参阅图1所示,是本发明内存管理系统10较佳实施例的应用环境图。该内存管理系统10应用于私有云服务器1,多个云客户端3通过网络2连接至该私有云服务器1,共享私有云服务器提供的服务。该内存管理系统10为每个云客户端3分配物理内存20中的固定地址空间的,避免不同云客户端3的应用程序访问物理内存20中的相同地址空间。Referring to FIG. 1 , it is an application environment diagram of a preferred embodiment of the
参阅图2所示,是本发明内存管理系统10较佳实施例的功能模块图。该内存管理系统10第一接收模块11、内存分配模块12、第二接收模块13及地址转换模块14。模块11-14包括计算机程序化指令,这些计算机程序化指令存储在私有云服务器1的存储器30的预设地址空间,私有云服务器1的处理器40执行这些计算机程序化指令,提供内存管理系统10的上述功能。以下结合图3说明模块11-14的具体功能。Referring to FIG. 2 , it is a functional block diagram of a preferred embodiment of the
参阅图3所示,是本发明内存管理方法较佳实施例的流程图。Referring to FIG. 3 , it is a flowchart of a preferred embodiment of the memory management method of the present invention.
步骤S10,第一接收模块11接收云客户端3请求私有云服务器1指定第一容量物理内存空间的请求。例如,第一接收模块11接收第一台云客户端3请求私有云服务器1指定500MB物理内存空间的请求,接收第二台云客户端3请求私有云服务器1指定400MB物理内存空间的请求。Step S10, the
步骤S20,内存分配模块12为该云客户端3在物理内存20中指定满足第一容量的固定地址空间。例如,内存分配模块12为第一台云客户端3在物理内存20中从物理地址0x00001000处开始分配500MB的地址空间0x00001000~0x*******,为第二台云客户端3在物理内存20中从物理地址0x******开始分配400MB的地址空间。Step S20 , the memory allocation module 12 assigns a fixed address space satisfying the first capacity in the
步骤S30,第二接收模块13接收该云客户端3运行应用程序时请求分配第二容量内存的请求。In step S30, the second receiving
步骤S40,地址转换模块14为该云客户端3的应用程序分配所述第二容量的虚拟内存,将虚拟内存的地址空间转换为物理内存20的所述固定地址空间。例如,假设第一台云客户端3运行应用程序A请求分配480MB的内存空间,第二台云客户端3运行应用程序B请求分配450MB的内存空间,则地址转换模块14为应用程序A分配480MB的虚拟内存空间,将该480MB的虚拟内存空间转换为物理内存20的固定地址空间0x00001000~0x*******。地址转换模块14为应用程序B分配450MB的虚拟内存空间,并将该450MB的虚拟内存空间转换为物理内存20中从物理地址0x******开始分配的400MB的地址空间。Step S40 , the address conversion module 14 allocates the virtual memory of the second capacity to the application program of the
步骤S50,地址转换模块14判断物理内存20的所述固定地址空间是否能够满足虚拟内存的需求。若能够满足虚拟内存的需求,则运行该云客户端3的应用程序,之后流程进入步骤S70。例如,第一台云客户端3的应用程序A需要480MB的内存空间,而第一台云客户端3在物理内存20中指定有500MB的固定地址空间,能够满足若应用程序A的需求。若物理内存20的所述固定地址空间不能够满足虚拟内存的需求,则执行步骤S60。例如,第二台云客户端3运行应用程序B需要450MB的内存空间,而第二台云客户端3在物理内存20中指定的固定地址空间只有400MB,还差50MB。In step S50, the address conversion module 14 judges whether the fixed address space of the
步骤S60,地址转换模块14从存储器30中划分部分地址空间补充虚拟内存。例如,地址转换模块14从存储器30中划分50MB的地址空间补充虚拟内存。该存储器30可以包括硬盘,闪盘等。In step S60, the address translation module 14 divides part of the address space from the
步骤S70,该云客户端3的应用程序运行结束后释放内存。例如,应用程序A运行结束后释放其在物理内存20中占用的480MB的内存空间;应用程序B运行结束后释放其在物理内存20中占用的400MB的内存空间,并释放其在存储器30中占用的50MB的地址空间。在其他实施例中,该内存管理方法也可以不包括步骤S70。In step S70, the memory is released after the application program of the
需要说明的,本发明提供的内存管理方法也可以应用于公有云及混合云。It should be noted that the memory management method provided by the present invention can also be applied to public cloud and hybrid cloud.
最后所应说明的是,以上实施例仅用以说明本发明的技术方案而非限制,尽管参照以上较佳实施例对本发明进行了详细说明,本领域的普通技术人员应当理解,可以对本发明的技术方案进行修改或等同替换,而不脱离本发明技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention without limitation, although the present invention has been described in detail with reference to the above preferred embodiments, those of ordinary skill in the art should understand that the present invention can be The technical solution shall be modified or equivalently replaced without departing from the spirit and scope of the technical solution of the present invention.
Claims (6)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201210558377.XA CN103888492A (en) | 2012-12-20 | 2012-12-20 | Memory management system and method |
| TW101149855A TW201428507A (en) | 2012-12-20 | 2012-12-25 | Memory management system and method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201210558377.XA CN103888492A (en) | 2012-12-20 | 2012-12-20 | Memory management system and method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN103888492A true CN103888492A (en) | 2014-06-25 |
Family
ID=50957210
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201210558377.XA Pending CN103888492A (en) | 2012-12-20 | 2012-12-20 | Memory management system and method |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN103888492A (en) |
| TW (1) | TW201428507A (en) |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104571955A (en) * | 2014-12-27 | 2015-04-29 | 华为技术有限公司 | Method and device for expanding storage capacity |
| CN104836798A (en) * | 2015-04-15 | 2015-08-12 | 国家计算机网络与信息安全管理中心 | Method and device for maintaining client connection information |
| CN106484529A (en) * | 2016-09-12 | 2017-03-08 | 广东欧珀移动通信有限公司 | Terminal memory adjustment method and terminal |
| CN107092206A (en) * | 2016-02-17 | 2017-08-25 | 霍尼韦尔国际公司 | With automatic International Electrotechnical Commission(IEC)The input/output of address generation(I/O)Binding |
| WO2017162015A1 (en) * | 2016-03-24 | 2017-09-28 | 中兴通讯股份有限公司 | Data processing method and apparatus, and storage medium |
| US10082955B2 (en) | 2015-12-03 | 2018-09-25 | International Business Machines Corporation | Automated home memory cloud with key authenticator |
| CN109445945A (en) * | 2018-10-29 | 2019-03-08 | 努比亚技术有限公司 | Memory allocation method, mobile terminal, server and the storage medium of application program |
-
2012
- 2012-12-20 CN CN201210558377.XA patent/CN103888492A/en active Pending
- 2012-12-25 TW TW101149855A patent/TW201428507A/en unknown
Cited By (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104571955A (en) * | 2014-12-27 | 2015-04-29 | 华为技术有限公司 | Method and device for expanding storage capacity |
| CN104836798A (en) * | 2015-04-15 | 2015-08-12 | 国家计算机网络与信息安全管理中心 | Method and device for maintaining client connection information |
| US10082955B2 (en) | 2015-12-03 | 2018-09-25 | International Business Machines Corporation | Automated home memory cloud with key authenticator |
| US10101912B2 (en) | 2015-12-03 | 2018-10-16 | International Business Machines Corporation | Automated home memory cloud with key authenticator |
| CN107092206A (en) * | 2016-02-17 | 2017-08-25 | 霍尼韦尔国际公司 | With automatic International Electrotechnical Commission(IEC)The input/output of address generation(I/O)Binding |
| CN107092206B (en) * | 2016-02-17 | 2022-01-04 | 霍尼韦尔国际公司 | Input/output (I/O) binding with automatic International Electrotechnical Commission (IEC) address generation |
| WO2017162015A1 (en) * | 2016-03-24 | 2017-09-28 | 中兴通讯股份有限公司 | Data processing method and apparatus, and storage medium |
| CN106484529A (en) * | 2016-09-12 | 2017-03-08 | 广东欧珀移动通信有限公司 | Terminal memory adjustment method and terminal |
| CN109445945A (en) * | 2018-10-29 | 2019-03-08 | 努比亚技术有限公司 | Memory allocation method, mobile terminal, server and the storage medium of application program |
| CN109445945B (en) * | 2018-10-29 | 2023-09-19 | 努比亚技术有限公司 | Memory allocation method of application program, mobile terminal, server and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| TW201428507A (en) | 2014-07-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10834047B2 (en) | Address management in an overlay network environment | |
| CN103888492A (en) | Memory management system and method | |
| KR102589155B1 (en) | Method and apparatus for memory management | |
| US9304828B2 (en) | Hierarchy memory management | |
| CN105446813B (en) | A kind of method and device of resource allocation | |
| US7600093B2 (en) | Device, method and computer program product for multi-level address translation | |
| US10235047B2 (en) | Memory management method, apparatus, and system | |
| CN103744719B (en) | Lock management method and system, the collocation method and device of lock administration system | |
| CN104506635B (en) | A kind of establishment of cloud host and matching process and system rapidly and efficiently | |
| CN110098946B (en) | Method and device for deploying virtualized network element equipment | |
| US20140304299A1 (en) | Data management in a multi-tenant distributive environment | |
| CN103180830A (en) | CPU resource allocation method and computing nodes | |
| CN103942087A (en) | Virtual machine thermal migration method, related device and cluster computing system | |
| CN104142853A (en) | Virtual machine storage resource deployment method and device | |
| CN107766153A (en) | A kind of EMS memory management process and device | |
| CN111104219A (en) | Binding method, device, equipment and storage medium of virtual core and physical core | |
| CN106844050A (en) | A kind of memory allocation method and device | |
| CN110990114A (en) | Virtual machine resource allocation method, device, equipment and readable storage medium | |
| US9697047B2 (en) | Cooperation of hoarding memory allocators in a multi-process system | |
| CN102523267A (en) | Cloud backup system and method | |
| US20210157652A1 (en) | Customized partitioning of compute instances | |
| CN108270858A (en) | A kind of private cloud framework and its data processing method based on API gateway | |
| US9547590B2 (en) | Managing memory | |
| US9686100B2 (en) | Packet encapsulation with redirected DMA for software defined networks | |
| TW201712563A (en) | Public cloud system and public resource allocation method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
| WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20140625 |