[go: up one dir, main page]

CN103888492A - Memory management system and method - Google Patents

Memory management system and method Download PDF

Info

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
Application number
CN201210558377.XA
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.)
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
Original Assignee
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hongfujin Precision Industry Shenzhen Co Ltd, Hon Hai Precision Industry Co Ltd filed Critical Hongfujin Precision Industry Shenzhen Co Ltd
Priority to CN201210558377.XA priority Critical patent/CN103888492A/en
Priority to TW101149855A priority patent/TW201428507A/en
Publication of CN103888492A publication Critical patent/CN103888492A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

The invention provides a memory management system applied to a cloud server. The memory management system comprises a first receiving module used for receiving a request of a cloud client for requesting the cloud server to designate a physical memory space of the first capacity, a memory distribution module used for designating a fixed address space in the physical memory of the cloud server for the client end for satisfying the first capacity, a second receiving module used for receiving a request of the cloud client for requesting the cloud server to distribute the memory of the second capacity when the cloud client operates an application program, and an address conversion module used for distributing the virtual memory of the second capacity for the application program of the cloud client and converting the address space of the virtual memory into the fixed address space of the physical memory. The invention further provides a memory management method.

Description

内存管理系统及方法Memory management system and method

技术领域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

私有云服务器private cloud server 11 网络network 22 云客户端cloud client 33 内存管理系统memory management system 1010 第一接收模块first receiving module 1111 内存分配模块memory allocation module 1212 第二接收模块Second receiving module 1313 地址转换模块address translation module 1414 物理内存physical memory 2020 存储器memory 3030

处理器processor 4040

如下具体实施方式将结合上述附图进一步说明本发明。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 memory management system 10 of the present invention. The memory management system 10 is applied to a private cloud server 1, and multiple cloud clients 3 are connected to the private cloud server 1 through a network 2 to share services provided by the private cloud server. The memory management system 10 allocates a fixed address space in the physical memory 20 to each cloud client 3 , preventing applications of different cloud clients 3 from accessing the same address space in the physical memory 20 .

参阅图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 memory management system 10 of the present invention. The memory management system 10 has a first receiving module 11 , a memory allocation module 12 , a second receiving module 13 and an address translation module 14 . The modules 11-14 include computer programming instructions, which are stored in the preset address space of the memory 30 of the private cloud server 1, and the processor 40 of the private cloud server 1 executes these computer programming instructions to provide the memory management system 10 of the above functions. The specific functions of the modules 11-14 will be described below in conjunction with FIG. 3 .

参阅图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 first receiving module 11 receives a request from the cloud client 3 requesting the private cloud server 1 to specify a physical memory space of the first capacity. For example, the first receiving module 11 receives the request from the first cloud client 3 requesting the private cloud server 1 to specify 500MB of physical memory space, and receives the request from the second cloud client 3 requesting the private cloud server 1 to specify 400MB of physical memory space.

步骤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 physical memory 20 for the cloud client 3 . For example, the memory allocation module 12 allocates the address space 0x00001000~0x******** of 500MB from the physical address 0x00001000 in the physical memory 20 for the first cloud client 3, and allocates the address space 0x00001000~0x******** for the second cloud client 3 in the physical memory 20. The address space of 400MB is allocated from the physical address 0x****** in the physical memory 20 .

步骤S30,第二接收模块13接收该云客户端3运行应用程序时请求分配第二容量内存的请求。In step S30, the second receiving module 13 receives a request from the cloud client 3 to allocate memory of the second capacity when running the application program.

步骤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 cloud client 3 , and converts the address space of the virtual memory into the fixed address space of the physical memory 20 . For example, assuming that the first cloud client 3 runs application A and requests to allocate 480MB of memory space, and the second cloud client 3 runs application B and requests to allocate 450MB of memory space, then the address translation module 14 allocates 480MB for application A The virtual memory space of 480MB is converted into the fixed address space 0x00001000~0x******** of physical memory 20. The address translation module 14 allocates 450MB of virtual memory space for the application program B, and converts the 450MB of virtual memory space into the address space of 400MB allocated from the physical address 0x****** in the physical memory 20 .

步骤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 physical memory 20 can meet the requirement of the virtual memory. If the requirement of the virtual memory can be met, the application program of the cloud client 3 is run, and then the process enters step S70. For example, the application A of the first cloud client 3 needs 480MB of memory space, while the first cloud client 3 specifies a fixed address space of 500MB in the physical memory 20, which can meet the requirements of the application A. If the fixed address space of the physical memory 20 cannot meet the requirements of the virtual memory, step S60 is executed. For example, the second cloud client 3 requires 450MB of memory space to run the application program B, while the fixed address space specified in the physical memory 20 of the second cloud client 3 is only 400MB, which is still 50MB short.

步骤S60,地址转换模块14从存储器30中划分部分地址空间补充虚拟内存。例如,地址转换模块14从存储器30中划分50MB的地址空间补充虚拟内存。该存储器30可以包括硬盘,闪盘等。In step S60, the address translation module 14 divides part of the address space from the memory 30 to supplement the virtual memory. For example, the address translation module 14 divides an address space of 50MB from the memory 30 to supplement the virtual memory. The memory 30 may include a hard disk, a flash disk, and the like.

步骤S70,该云客户端3的应用程序运行结束后释放内存。例如,应用程序A运行结束后释放其在物理内存20中占用的480MB的内存空间;应用程序B运行结束后释放其在物理内存20中占用的400MB的内存空间,并释放其在存储器30中占用的50MB的地址空间。在其他实施例中,该内存管理方法也可以不包括步骤S70。In step S70, the memory is released after the application program of the cloud client 3 finishes running. For example, after application A finishes running, it releases the 480MB memory space it occupies in physical memory 20; 50MB of address space. In other embodiments, the memory management method may not include step S70.

需要说明的,本发明提供的内存管理方法也可以应用于公有云及混合云。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)

1.一种内存管理方法,其特征在于,该方法包括:1. A memory management method, characterized in that the method comprises: 第一接收步骤:接收云客户端请求云服务器指定第一容量物理内存空间的请求;The first receiving step: receiving a request from the cloud client to request the cloud server to specify the physical memory space of the first capacity; 内存分配步骤:在云服务器的物理内存中为该云客户端指定满足第一容量的固定地址空间;Memory allocation step: specifying a fixed address space satisfying the first capacity for the cloud client in the physical memory of the cloud server; 第二接收步骤:接收该云客户端运行应用程序时请求云服务器分配第二容量内存的请求;及The second receiving step: receiving a request from the cloud client to request the cloud server to allocate a second capacity memory when running the application program; and 地址转换步骤:为该云客户端的应用程序分配所述第二容量的虚拟内存,将虚拟内存的地址空间转换为该物理内存的所述固定地址空间。Address translation step: Allocating virtual memory of the second capacity to the application program of the cloud client, and converting the address space of the virtual memory into the fixed address space of the physical memory. 2.如权利要求1所述的内存管理方法,其特征在于,所述地址转换步骤还包括:当该物理内存的所述固定地址空间不能够满足所述第二容量的虚拟内存的需求时,从云服务器的存储器中划分部分地址空间补充虚拟内存。2. The memory management method according to claim 1, wherein the address translation step further comprises: when the fixed address space of the physical memory cannot meet the requirements of the virtual memory of the second capacity, Part of the address space is divided from the storage of the cloud server to supplement the virtual memory. 3.如权利要求2所述的内存管理方法,其特征在于,所述存储器包括硬盘及闪盘。3. The memory management method according to claim 2, wherein the memory comprises a hard disk and a flash disk. 4.一种内存管理系统,其特征在于,该系统包括:4. A memory management system, characterized in that the system comprises: 第一接收模块,用于接收云客户端请求云服务器指定第一容量物理内存空间的请求;The first receiving module is configured to receive a request from a cloud client to request a cloud server to specify a first-capacity physical memory space; 内存分配模块,用于在云服务器的物理内存中为该云客户端指定满足第一容量的固定地址空间;A memory allocation module, configured to specify a fixed address space satisfying the first capacity for the cloud client in the physical memory of the cloud server; 第二接收模块,用于接收该云客户端运行应用程序时请求云服务器分配第二容量内存的请求;及The second receiving module is used to receive a request for the cloud server to allocate a second capacity of memory when the cloud client runs the application program; and 地址转换模块,用于为该云客户端的应用程序分配所述第二容量的虚拟内存,并将虚拟内存的地址空间转换为该物理内存的所述固定地址空间。The address conversion module is configured to allocate the virtual memory of the second capacity to the application program of the cloud client, and convert the address space of the virtual memory into the fixed address space of the physical memory. 5.如权利要求4所述的内存管理系统,其特征在于,所述地址转换模块还用于:当该物理内存的所述固定地址空间不能够满足所述第二容量的虚拟内存的需求时,从云服务器的存储器中划分部分地址空间补充虚拟内存。5. The memory management system according to claim 4, wherein the address translation module is further configured to: when the fixed address space of the physical memory cannot meet the requirements of the virtual memory of the second capacity , divide part of the address space from the storage of the cloud server to supplement the virtual memory. 6.如权利要求5所述的内存管理系统,其特征在于,所述存储器包括硬盘及闪盘。6. The memory management system according to claim 5, wherein the memory comprises a hard disk and a flash disk.
CN201210558377.XA 2012-12-20 2012-12-20 Memory management system and method Pending CN103888492A (en)

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)

* Cited by examiner, † Cited by third party
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

Cited By (10)

* Cited by examiner, † Cited by third party
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