KR102469927B1 - Apparatus for managing disaggregated memory and method for the same - Google Patents
Apparatus for managing disaggregated memory and method for the same Download PDFInfo
- Publication number
- KR102469927B1 KR102469927B1 KR1020180122434A KR20180122434A KR102469927B1 KR 102469927 B1 KR102469927 B1 KR 102469927B1 KR 1020180122434 A KR1020180122434 A KR 1020180122434A KR 20180122434 A KR20180122434 A KR 20180122434A KR 102469927 B1 KR102469927 B1 KR 102469927B1
- Authority
- KR
- South Korea
- Prior art keywords
- memory
- size
- remote
- local
- accesses
- Prior art date
Links
Images
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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- 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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/4557—Distribution of virtual machine instances; Migration and load balancing
Abstract
분할 메모리 관리방법이 개시된다. 본 개시에 따른 분할 메모리 관리방법은, 메모리 관리방법에 있어서, 적어도 하나의 메모리 페이지를 로컬 메모리 및 원격 메모리에 할당하는 과정과, 상기 메모리 페이지의 접근 요청을 확인하는 과정과, 접근 요청된 상기 메모리 페이지가 원격 메모리에 할당되어 있음에 따라, 서비스에서 요구하는 목표 성능 비율을 만족하는지 여부를 확인하는 과정과, 상기 목표 성능 비율을 만족하지 않음에 대응하여, LRU 거리 기반의 히스토그램에 기초한 상기 로컬 메모리의 크기를 예측하는 과정과, 예측된 상기 로컬 메모리의 크기를 고려하여, 접근 요청된 상기 메모리 페이지를 재할당하는 과정을 포함할 수 있다. A divided memory management method is disclosed. A divided memory management method according to the present disclosure includes allocating at least one memory page to a local memory and a remote memory, checking a request for access to the memory page, and the memory that is requested to be accessed. A process of checking whether a target performance ratio required by a service is satisfied as the page is allocated to the remote memory; It may include a process of estimating the size of , and a process of reallocating the memory page requested for access in consideration of the predicted size of the local memory.
Description
본 개시는 컴퓨팅 시스템에 관한 것이며, 보다 구체적으로는 가상머신에 할당하는 메모리의 크기를 제어하는 방법 및 장치에 대한 것이다.The present disclosure relates to a computing system, and more particularly, to a method and apparatus for controlling the size of memory allocated to a virtual machine.
네트워킹 기술의 발전에 따라, 컴퓨팅 자원을 공유하는 클라우드 시스템이 제공되고 있다. 클라우드 시스템은 다양한 물리적인 인프라스트럭처를 다수의 사용자가 공유할 수 있도록 구성될 수 있는데, 물리적인 인프라스트럭처는 프로세서, 메모리, 스토리지, 네트워킹 등을 구비한 하나 이상의 컴퓨팅 시스템을 포함할 수 있다. With the development of networking technology, a cloud system for sharing computing resources is being provided. A cloud system may be configured so that multiple users can share various physical infrastructures. The physical infrastructures may include one or more computing systems having processors, memory, storage, networking, and the like.
응용 프로그램에서 요구하는 작업 부하를 구현 또는 실행하기 위해서는 물리적인 인프라스트럭처를 사용해야 한다. 그런데, 물리적인 인프라스트럭처는 클라우드 시스템 내에서 공유되어야 하므로, 클라우드 시스템은 논리 서버 또는 가상 머신(virtual machine, VM)을 통해 응용 프로그램에서 요구하는 작업 부하를 구현 또는 실행하기 위한 물리적인 인프라스트럭처를 관리하고 있다.Physical infrastructure must be used to implement or run the workloads required by the application. However, since the physical infrastructure must be shared within the cloud system, the cloud system manages the physical infrastructure to implement or execute the workload required by the application through a logical server or virtual machine (VM). are doing
나아가, 인메모리 데이터베이스(In-memory database), 데이터 캐싱(data caching), 생물 정보학(bioinformatics) 및 그래프 처리(graph processing)와 같은 데이터 집약적(data intensive)인 작업량의 급증으로 인해 클라우드 시스템에서 요구되는 메모리 용량이 증가하고 있다. Furthermore, due to the rapid increase in data-intensive workloads such as in-memory databases, data caching, bioinformatics, and graph processing, the demand for cloud systems Memory capacity is increasing.
이러한 추세에 맞추어, 단일 가상머신(Virtual Machine, VM)에 1TB 이상의 메모리를 사용할 수 있는 대용량 유형의 클라우드 시스템이 제공되고 있다. In line with this trend, a large-capacity cloud system capable of using 1 TB or more of memory in a single virtual machine (VM) is being provided.
전술한 바와 같이, 대용량 유형의 클라우드 시스템을 제공하기 위해서는 대용량 물리 서버 인프라스트럭처가 요구되지만, 이러한 인프라스트럭처를 구축하기 위해서는 많은 비용이 소모되는 문제가 있다.As described above, a large-capacity physical server infrastructure is required to provide a large-capacity type cloud system, but there is a problem in that a lot of cost is consumed to build such an infrastructure.
대용량 물리 서버 대신 다수의 소용량 볼륨 범용 서버를 사용하여 대용량 메모리를 지원하기 위해, 서로 다른 물리적 컴퓨팅 장치(예, 서버)에 분산된 메모리를 단일 메모리로써 운영하는 분할메모리(disaggregated memory) 구조 기술이 사용될 수 있다.In order to support large amounts of memory by using multiple small-volume general-purpose servers instead of large-capacity physical servers, a disaggregated memory structure technology that operates memory distributed in different physical computing devices (e.g., servers) as a single memory will be used. can
본 개시의 기술적 과제는 분할 메모리 구조에서, 메모리를 효율적으로 관리할 수 있는 장치 및 방법을 제공하는 것이다. An object of the present disclosure is to provide an apparatus and method capable of efficiently managing a memory in a divided memory structure.
본 개시의 다른 기술적 과제는 분할 메모리 구조로 구성된 클라우드 시스템에서 요구하는 계약 성능을 보장하면서 메모리를 관리할 수 있는 장치 및 방법을 제공하는 것이다. Another technical problem of the present disclosure is to provide an apparatus and method capable of managing memory while guaranteeing contract performance required in a cloud system configured with a divided memory structure.
본 개시의 또 다른 기술적 과제는 LRU 거리 기반의 성능 예측을 통해 요구되는 계약 성능을 보장할 수 있는 메모리를 제공하는 장치 및 방법을 제공하는 것이다. Another technical problem of the present disclosure is to provide an apparatus and method for providing a memory that can guarantee required contract performance through LRU distance-based performance prediction.
본 개시에서 이루고자 하는 기술적 과제들은 이상에서 언급한 기술적 과제들로 제한되지 않으며, 언급하지 않은 또 다른 기술적 과제들은 아래의 기재로부터 본 개시가 속하는 기술분야에서 통상의 지식을 가진 자에게 명확하게 이해될 수 있을 것이다.The technical problems to be achieved in the present disclosure are not limited to the technical problems mentioned above, and other technical problems not mentioned will be clearly understood by those skilled in the art from the description below. You will be able to.
본 개시의 일 양상에 따르면 분할 메모리 관리방법이 제공될 수 있다. 상기 방법은, 메모리 관리방법에 있어서, 적어도 하나의 메모리 페이지를 로컬 메모리 및 원격 메모리에 할당하는 과정과, 상기 메모리 페이지의 접근 요청을 확인하는 과정과, 접근 요청된 상기 메모리 페이지가 원격 메모리에 할당되어 있음에 따라, 서비스에서 요구하는 목표 성능 비율을 만족하는지 여부를 확인하는 과정과, 상기 목표 성능 비율을 만족하지 않음에 대응하여, LRU 거리 기반의 히스토그램에 기초한 상기 로컬 메모리의 크기를 예측하는 과정과, 예측된 상기 로컬 메모리의 크기를 고려하여, 접근 요청된 상기 메모리 페이지를 재할당하는 과정을 포함할 수 있다. According to one aspect of the present disclosure, a divided memory management method may be provided. In the memory management method, the method includes allocating at least one memory page to a local memory and a remote memory, confirming a request for access to the memory page, and allocating the requested memory page to a remote memory. process of checking whether the target performance ratio required by the service is satisfied, and predicting the size of the local memory based on the histogram based on the LRU distance in response to not satisfying the target performance ratio and reallocating the memory page requested for access in consideration of the predicted size of the local memory.
본 개시의 다른 양상에 따르면 분할 메모리 관리장치가 제공될 수 있다. 상기 장치는 로컬 영역의 컴퓨팅 장치에 구비된 로컬 메모리 및 원격지의 컴퓨팅 장치에 구비된 원격 메모리를 포함하는 분할 메모리부와, 응용 프로그램의 구축 또는 실행을 위해 요구되는 적어도 하나의 메모리 페이지를 관리하는 메모리 가상머신부와, 상기 분할 메모리부와 메모리 가상머신부 사이에 구비되며, 상기 적어도 하나의 메모리 페이지를 로컬 메모리 및 원격 메모리에 할당하는 메모리 하이퍼바이저부와, 상기 메모리 페이지의 접근 요청을 확인하고, 접근 요청된 상기 메모리 페이지가 원격 메모리에 할당되어 있음에 따라, 서비스에서 요구하는 목표 성능 비율을 만족하는지 여부를 확인하고, 상기 목표 성능 비율을 만족하지 않음에 대응하여, LRU 거리 기반의 히스토그램에 기초한 상기 로컬 메모리의 크기를 예측하는 성능 예측부를 포함할 수 있다. According to another aspect of the present disclosure, a partitioned memory management device may be provided. The device includes a divided memory unit including a local memory provided in a computing device in a local area and a remote memory provided in a computing device in a remote area, and a memory managing at least one memory page required for building or executing an application program. A virtual machine unit, a memory hypervisor unit provided between the divided memory unit and the memory virtual machine unit, and allocating the at least one memory page to a local memory and a remote memory, and confirming a request for access to the memory page; As the memory page requested for access is allocated to the remote memory, it is checked whether the target performance ratio required by the service is satisfied, and in response to the target performance ratio not being satisfied, based on the histogram based on the LRU distance A performance predictor for estimating the size of the local memory may be included.
본 개시의 또 다른 양상에 따르면 분할 메모리 관리장치가 제공될 수 있다. 상기 장치는 로컬 영역의 컴퓨팅 장치에 구비된 로컬 메모리 및 원격지의 컴퓨팅 장치에 구비된 원격 메모리를 포함하는 분할 메모리부와, 응용 프로그램의 구축 또는 실행을 위해 요구되는 적어도 하나의 메모리 페이지를 관리하는 메모리 가상머신부와, 상기 분할 메모리부와 메모리 가상머신부 사이에 구비되며, 상기 적어도 하나의 메모리 페이지를 로컬 메모리 및 원격 메모리에 할당하고, 상기 메모리 페이지의 접근 요청을 확인하고, 접근 요청된 상기 메모리 페이지가 원격 메모리에 할당되어 있음에 따라, 서비스에서 요구하는 목표 성능 비율을 만족하는지 여부를 확인하고, 상기 목표 성능 비율을 만족하지 않음에 대응하여, LRU 거리 기반의 히스토그램에 기초한 상기 로컬 메모리의 크기를 예측하고, 예측된 상기 로컬 메모리의 크기를 고려하여, 접근 요청된 상기 메모리 페이지를 재할당하는 메모리 하이퍼바이저부를 포함할 수 있다.According to another aspect of the present disclosure, a partitioned memory management device may be provided. The device includes a divided memory unit including a local memory provided in a computing device in a local area and a remote memory provided in a computing device in a remote area, and a memory managing at least one memory page required for building or executing an application program. A virtual machine unit, provided between the divided memory unit and the memory virtual machine unit, allocates the at least one memory page to a local memory and a remote memory, checks a request for access to the memory page, and requests access to the memory As the page is allocated to the remote memory, it is checked whether the target performance ratio required by the service is satisfied, and in response to the target performance ratio not being satisfied, the size of the local memory based on the histogram based on the LRU distance. and a memory hypervisor unit for reallocating the memory page requested for access in consideration of the predicted size of the local memory.
본 개시에 대하여 위에서 간략하게 요약된 특징들은 후술하는 본 개시의 상세한 설명의 예시적인 양상일 뿐이며, 본 개시의 범위를 제한하는 것은 아니다.The features briefly summarized above with respect to the disclosure are merely exemplary aspects of the detailed description of the disclosure that follows, and do not limit the scope of the disclosure.
본 개시에 따르면, 분할 메모리 구조에서, 메모리를 효율적으로 관리할 수 있는 장치 및 방법이 제공될 수 있다. According to the present disclosure, an apparatus and method capable of efficiently managing a memory in a divided memory structure may be provided.
또한, 본 개시에 따르면, 분할 메모리 구조로 구성된 클라우드 시스템에서 요구하는 계약 성능을 보장하면서 메모리를 관리할 수 있다. In addition, according to the present disclosure, it is possible to manage memory while guaranteeing contract performance required by a cloud system configured with a divided memory structure.
또한, 본 개시에 따르면, LRU 거리 기반의 성능 예측을 통해 요구되는 계약 성능을 보장할 수 있는 메모리를 제공할 수 있다. In addition, according to the present disclosure, it is possible to provide a memory capable of guaranteeing a required contract performance through performance prediction based on an LRU distance.
본 개시에서 얻을 수 있는 효과는 이상에서 언급한 효과들로 제한되지 않으며, 언급하지 않은 또 다른 효과들은 아래의 기재로부터 본 개시가 속하는 기술분야에서 통상의 지식을 가진 자에게 명확하게 이해될 수 있을 것이다.Effects obtainable in the present disclosure are not limited to the effects mentioned above, and other effects not mentioned may be clearly understood by those skilled in the art from the description below. will be.
도 1은 본 개시의 일 실시예에 따른 분할 메모리 관리장치가 적용되는 시스템을 예시하는 도면이다.
도 2는 본 개시의 일 실시예에 따른 분할 메모리 관리장치의 구조를 예시하는 블록도이다.
도 3은 본 개시의 일 실시예에 따른 분할 메모리 관리장치에서 생성되는 LRU 거리 히스토그램을 예시하는 도면이다.
도 4는 본 개시의 일 실시예에 따른 분할 메모리 관리방법의 순서를 예시하는 흐름도이다.
도 5는 본 개시의 일 실시예에 따른 분할 메모리 관리방법에 구비된 LRU 거리 기반의 메모리 성능 예측과정의 상세 순서를 예시하는 흐름도이다. 1 is a diagram illustrating a system to which a partitioned memory management device according to an embodiment of the present disclosure is applied.
2 is a block diagram illustrating the structure of a partitioned memory management device according to an embodiment of the present disclosure.
3 is a diagram illustrating an LRU distance histogram generated in a partitioned memory management device according to an embodiment of the present disclosure.
4 is a flowchart illustrating a sequence of a divided memory management method according to an embodiment of the present disclosure.
5 is a flowchart illustrating a detailed sequence of a process of estimating memory performance based on an LRU distance included in a partitioned memory management method according to an embodiment of the present disclosure.
이하에서는 첨부한 도면을 참고로 하여 본 개시의 실시 예에 대하여 본 개시가 속하는 기술 분야에서 통상의 지식을 가진 자가 용이하게 실시할 수 있도록 상세히 설명한다. 그러나, 본 개시는 여러 가지 상이한 형태로 구현될 수 있으며 여기에서 설명하는 실시 예에 한정되지 않는다. Hereinafter, with reference to the accompanying drawings, embodiments of the present disclosure will be described in detail so that those skilled in the art can easily carry out the present disclosure. However, the present disclosure may be implemented in many different forms and is not limited to the embodiments described herein.
본 개시의 실시 예를 설명함에 있어서 공지 구성 또는 기능에 대한 구체적인 설명이 본 개시의 요지를 흐릴 수 있다고 판단되는 경우에는 그에 대한 상세한 설명은 생략한다. 그리고, 도면에서 본 개시에 대한 설명과 관계없는 부분은 생략하였으며, 유사한 부분에 대해서는 유사한 도면 부호를 붙였다.In describing the embodiments of the present disclosure, if it is determined that a detailed description of a known configuration or function may obscure the gist of the present disclosure, a detailed description thereof will be omitted. And, in the drawings, parts irrelevant to the description of the present disclosure are omitted, and similar reference numerals are attached to similar parts.
본 개시에 있어서, 어떤 구성요소가 다른 구성요소와 "연결", "결합" 또는 "접속"되어 있다고 할 때, 이는 직접적인 연결관계뿐만 아니라, 그 중간에 또 다른 구성요소가 존재하는 간접적인 연결관계도 포함할 수 있다. 또한 어떤 구성요소가 다른 구성요소를 "포함한다" 또는 "가진다"고 할 때, 이는 특별히 반대되는 기재가 없는 한 다른 구성요소를 배제하는 것이 아니라 또 다른 구성요소를 더 포함할 수 있는 것을 의미한다.In the present disclosure, when a component is said to be "connected", "coupled" or "connected" to another component, this is not only a direct connection relationship, but also an indirect connection relationship between which another component exists. may also be included. In addition, when a component "includes" or "has" another component, this means that it may further include another component without excluding other components unless otherwise stated. .
본 개시에 있어서, 음성 파라미터, 제2 등의 용어는 하나의 구성요소를 다른 구성요소로부터 구별하는 목적으로만 사용되며, 특별히 언급되지 않는 한 구성요소들간의 순서 또는 중요도 등을 한정하지 않는다. 따라서, 본 개시의 범위 내에서 일 실시 예에서의 음성 파라미터 구성요소는 다른 실시 예에서 제2 구성요소라고 칭할 수도 있고, 마찬가지로 일 실시 예에서의 제2 구성요소를 다른 실시 예에서 음성 파라미터 구성요소라고 칭할 수도 있다. In the present disclosure, terms such as voice parameter and second are used only for the purpose of distinguishing one component from another, and do not limit the order or importance of components unless otherwise specified. Accordingly, within the scope of the present disclosure, a voice parameter component in one embodiment may be referred to as a second component in another embodiment, and similarly, a second component in one embodiment may be referred to as a voice parameter component in another embodiment. can also be called
본 개시에 있어서, 서로 구별되는 구성요소들은 각각의 특징을 명확하게 설명하기 위함이며, 구성요소들이 반드시 분리되는 것을 의미하지는 않는다. 즉, 복수의 구성요소가 통합되어 하나의 하드웨어 또는 소프트웨어 단위로 이루어질 수도 있고, 하나의 구성요소가 분산되어 복수의 하드웨어 또는 소프트웨어 단위로 이루어질 수도 있다. 따라서, 별도로 언급하지 않더라도 이와 같이 통합된 또는 분산된 실시 예도 본 개시의 범위에 포함된다. In the present disclosure, components that are distinguished from each other are intended to clearly explain each characteristic, and do not necessarily mean that the components are separated. That is, a plurality of components may be integrated to form a single hardware or software unit, or a single component may be distributed to form a plurality of hardware or software units. Accordingly, even such integrated or distributed embodiments are included in the scope of the present disclosure, even if not mentioned separately.
본 개시에 있어서, 다양한 실시 예에서 설명하는 구성요소들이 반드시 필수적인 구성요소들은 의미하는 것은 아니며, 일부는 선택적인 구성요소일 수 있다. 따라서, 일 실시 예에서 설명하는 구성요소들의 부분집합으로 구성되는 실시 예도 본 개시의 범위에 포함된다. 또한, 다양한 실시 예에서 설명하는 구성요소들에 추가적으로 다른 구성요소를 포함하는 실시 예도 본 개시의 범위에 포함된다. In the present disclosure, components described in various embodiments do not necessarily mean essential components, and some may be optional components. Therefore, an embodiment composed of a subset of components described in one embodiment is also included in the scope of the present disclosure. In addition, embodiments including other components in addition to the components described in various embodiments are also included in the scope of the present disclosure.
이하, 첨부한 도면을 참조하여 본 개시의 실시 예들에 대해서 설명한다.Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings.
도 1은 본 개시의 일 실시예에 따른 분할 메모리 관리장치가 적용되는 시스템을 예시하는 도면이다. 1 is a diagram illustrating a system to which a partitioned memory management device according to an embodiment of the present disclosure is applied.
도 1을 참조하면, 분할 메모리 관리장치가 적용되는 시스템(100)은 리소스(110), 하이퍼바이저(120) 및 가상머신(130)을 포함한다. Referring to FIG. 1 , a system 100 to which a partitioned memory management apparatus is applied includes a
리소스(110)는 복수 개의 랙(112-1, 112-2 , ≤. 112-n)을 포함할 수 있다. 각각의 랙(112-1, 112-2 , ≤. 112-n)은 다양한 컴퓨팅 자원을 포함할 수 있다. 이러한 컴퓨팅 자원은 여러 유형의 물리적 자원을 포함할 수 있다. 예컨대, 물리적 자원은 CPU, 메모리(예를 들면, 랜덤 액세스 메모리(Random Access Memory, RAM), 스토리지(예를 들면, 하드 디스크 또는 솔리드 스테이트 드라이브), NW I/O 장치(예를 들면, 네트워크 인터페이스 카드), 전력 장치(예를 들면, 파워 브릭(power brick), 냉각 장치(예를 들면, 팬 또는 냉각제), 또는 기타 유형의 자원(예를 들면, 네트워크 스위치 장치)을 포함할 수 있다. The
이러한 컴퓨팅 자원은 하이퍼바이저(120)(예를 들면, 자원 관리자 또는 컨트 롤러에게)를 통해 이용될 수 있다. 하이퍼바이저(120)는 시스템(100)의 자원 관리자, 컨트롤러 또는 스케줄러 등에 의해 가상머신(130)에 할당될 수 있다. 특히, 하이퍼바이저(120)는 복수 개의 컴퓨팅 자원에 대한 점수를 산출하고, 각각의 컴퓨팅 자원에 대한 순위를 평가할 수 있다. 컴퓨팅 자원에 대한 순위 평가는 전력, 성능, 비용, 가용성, 또는 유지관리 요건을 충족할 수 있는 요소에 대해 수행될 수 있다.These computing resources are available through the hypervisor 120 (eg, to a resource manager or controller). The
하이퍼바이저(120)는 가상머신(130)이 작업부하를 구현, 구동 또는 실행하는 동안 가상머신(130)을 구성하거나 배치하기 위해 각각의 컴퓨팅 자원에 대한 복수의 동작 속성을 모니터링할 수 있다. The
또한, 하이퍼바이저(120)는 컴퓨팅 자원의 점수를 기반으로 컴퓨팅 자원을 가상머신(130)에 할당할 수 있다. 예컨대, 하이퍼바이저(120)는 이전의 작업에서 요구되는 부하를 실현거나, 컴퓨팅 자원의 하나 이상의 다른 부분에 대해 결정된 과거 동작 점수와 비교된 그 동작 점수의 순위를 평가할 수 있다. 구체적으로, 제1컴퓨팅 자원의 순위가 다른 컴퓨팅 자원의 과거 동작 점수보다 낮은 순위로 평가되면, 하이퍼바이저(120)는 제1컴퓨팅 자원을 새로운 컴퓨팅 자원으로 대체할 수 있다. In addition, the
한편, 가상머신(130)는 복수 개의 논리 서버 또는 가상머신(132-1, 132-2, ≤. 132-m)을 포함할 수 있다. 예를 들면, 논리 서버 또는 가상머신(132-1, 132-2, ≤. 132-m)은 작업 부하를 구현하거나 실행하기 위해 구성될 수 있다. 가상머신(130)에 요구되는 각각의 논리 서버는 하나 이상의 가상머신을 포함할 수 있다. 그리고, 각각의 가상머신에는 컴퓨팅 자원의 일부분이 할당될 수 있다. 다른 예로서, 컴퓨팅 자원은 특정 가상머신에 직접 할당될 수도 있다.Meanwhile, the
나아가, 컴퓨팅 자원에 구비된 메모리는 분할 메모리(disaggregated memory) 구조로 구비될 수 있다. 여기서, 분할 메모리(disaggregated memory) 구조는 물리적으로 서로 다른 장치(예, 서버 장치)에 분산된 복수의 메모리를 포함할 수 있다. 그리고, 복수의 메모리는 메모리가 구비된 위치에 기초하여, 컴퓨팅이 수행되는 장치와 동일한 장치에 위치한 로컬 메모리와, 컴퓨팅이 수행되는 장치와 다른 원격지의 장치에 위치한 원격 메모리로 구분할 수 있다.Furthermore, the memory included in the computing resource may be provided in a disaggregated memory structure. Here, the disaggregated memory structure may include a plurality of memories physically distributed in different devices (eg, server devices). Also, the plurality of memories can be divided into a local memory located in the same device as the computing device and a remote memory located in a device remote from the computing device based on the location where the memory is located.
이러한 분할 메모리 구조는 장치에서 사용하지 않는 메모리를 다른 장치에 동적으로 제공하여 메모리 사용량 불균형 문제를 해결할 수 있으며, 동시에 메모리 사용률을 높일 수 있다. 나아가, 이와 같이 복수의 장치가 메모리를 공유하여 사용함으로써, 복수의 장치가 로컬에서 사용할 수 있는 대용량의 메모리를 구비하지 않더라도, 대용량의 메모리를 사용할 수 있다.Such a divided memory structure can solve the problem of memory usage imbalance by dynamically providing memory that is not used by a device to other devices, and at the same time, it is possible to increase a memory usage rate. Furthermore, since a plurality of devices share and use the memory, a large amount of memory can be used even if the plurality of devices do not have a large amount of memory that can be used locally.
도 2는 본 개시의 일 실시예에 따른 분할 메모리 관리장치의 구조를 예시하는 블록도이다. 2 is a block diagram illustrating the structure of a partitioned memory management device according to an embodiment of the present disclosure.
본 개시의 일 실시예에 따른 분할 메모리 관리장치는 전술한 도 1의 시스템(100)에 기초하여 구성될 수 있다. An apparatus for managing partitioned memory according to an embodiment of the present disclosure may be configured based on the system 100 of FIG. 1 described above.
전술한 바와 같이 물리적 자원은 CPU, 메모리(예를 들면, 랜덤 액세스 메모리(Random Access Memory, RAM), 스토리지(예를 들면, 하드 디스크 또는 솔리드 스테이트 드라이브), NW I/O 장치(예를 들면, 네트워크 인터페이스 카드), 전력 장치(예를 들면, 파워 브릭(power brick), 냉각 장치(예를 들면, 팬 또는 냉각제), 또는 기타 유형의 자원(예를 들면, 네트워크 스위치 장치) 등을 포함할 수 있으나, 분할 메모리 관리장치는 다양한 물리적 자원 중, 메모리를 관리하기 위해 마련되는 장치로서, 메모리 관리에 필요한 구성을 포함할 수 있다. As described above, physical resources include CPU, memory (eg, random access memory (RAM)), storage (eg, hard disk or solid state drive), and NW I/O devices (eg, network interface cards), power devices (e.g. power bricks), cooling devices (e.g. fans or coolants), or other types of resources (e.g. network switch devices), etc. However, the divided memory management device is a device provided to manage memory among various physical resources, and may include configurations required for memory management.
도 2를 참조하면, 분할 메모리 관리장치(200)는 분할 메모리부(210), 메모리 하이퍼바이저부(220), 및 메모리 가상머신부(230)를 포함할 수 있다. Referring to FIG. 2 , the partitioned
분할 메모리부(210)는 컴퓨팅이 수행되는 장치와 동일한 장치(200)에 위치한 로컬 메모리(211)와, 컴퓨팅이 수행되는 장치와 다른 원격지의 장치(200')에 위치한 원격 메모리(215)를 포함할 수 있다.The divided
메모리 하이퍼바이저부(220)는 메모리 가상머신부(230)가 분할 메모리부(210)에 구비된 로컬 메모리(211) 및 원격 메모리(215)를 단일의 메모리로서 인식할 수 있도록 메모리 관리를 수행할 수 있다.The
메모리 하이퍼바이저부(220)는 페이지 단위의 원격 메모리 액세스를 통해 원격 원격 메모리(215)에 액세스하는 복잡성을 제거할 수 있다. 구체적으로, 메모리 하이퍼바이저부(220)는 메모리 가상머신부(230)에서 접근 요청된 메모리 페이지가 로컬 메모리(211)에 존재하지 않으면, 페이지 폴트(page fault)를 발생시키고, 페이지 폴트 처리를 통해 원격 메모리(215)를 로컬 페이지로 가져(fetch)올 수 있다. 그리고, 메모리 하이퍼바이저부(220)는 페치된 로컬 페이지를 페이지 폴트(page fault)가 발생된 메모리 가상머신부(230)에 할당하여 관리할 수 있다. 이에 따라, 메모리 가상머신부(230)는 해당 메모리로의 접근이 요구될 경우, 페치된 로컬 페이지에 접근하여 처리할 수 있다. The
다른 예로서, 로컬 메모리(211)에서 사용할 수 있는 페이지가 존재하지 않을 경우, 메모리 하이퍼바이저부(220)는 로컬 메모리 페이지를 원격 메모리(215)로 내보낼(evict) 수 있으며, 이러한 동작을 통해 로컬 메모리 페이지를 확보할 수 있다. As another example, when a page available in the
나아가, 메모리 하이퍼바이저부(220)는 메모리 가상머신부(230)에서 요구하는 용량의 메모리를 원할하게 제공하기 위하여, 메모리 가상머신부(230)에서 사용되는 메모리의 크기를 모니터링하고, 메모리 가상머신부(230)에서 요구되는 메모리의 크기를 예측할 필요가 있다.Furthermore, the
이하, 메모리 하이퍼바이저부(220)가 메모리의 크기를 예측하는 동작에 대하여 상세하게 설명한다.Hereinafter, an operation of predicting the memory size by the
메모리 가상머신부(230)를 통해 운영체제나 응용 프로그램이 수행될 수 있는데, 응용 프로그램의 실행시, 원격 메모리(215) 접근 횟수(n)에 비례하여 응용 프로그램의 실행 시간이 늘어날 수 있다. An operating system or an application program may be executed through the memory
이에 기초하여, 원격 메모리(215) 접근 횟수(n)에 대한 응용 프로그램 실행시간(T(n))을 하기의 수학식 1과 같이 나타낼 수 있다. Based on this, the application program execution time (T(n)) for the
여기서, L은 로컬 메모리(211)가 충분한 경우 메모리 가상머신부(230)에서의 응용 프로그램 실행 시간, A는 원격 메모리(215)에 접근하는데 소요되는 평균시간, n은 원격 메모리(215)에 접근한 횟수를 나타낸다. Here, L is the execution time of an application in the memory
응용 프로그램 실행 시간(L)은 n과 관계없는 고정된 값으로서, 응용 프로그램을 실행한 후, 그 값을 확인할 수 있다. 이러한, 응용 프로그램 실행 시간(L)은 메모리 모니터링 시간주기(P), 원격 메모리(215) 접근 횟수(N), 원격 메모리(215) 접근 평균 시간(A) 등을 사용하여 하기의 수학식 2와 같이 나타낼 수 있다.The application program execution time (L) is a fixed value independent of n, and the value can be checked after the application program is executed. The application execution time (L) is determined by
한편, 성능 저하 비율은 하기의 수학식 3으로 나타낼 수 있다. Meanwhile, the performance degradation rate can be expressed by
전술한 수학식 2를 사용하여 응용 프로그램 실행 시간(L)을 알 수 있으므로, 이를 수학식 1에 대입하여 n에 따른 응용프로그램 실행 시간을 하기의 수학식 4와 같이 계산할 수 있다. Since the application program execution time (L) can be known using
한편, 서비스(예, 클라우드 서비스)의 제공시, 서비스(예, 클라우드 서비스)에서 요구하는 성능 비율(이하, '목표 성능 비율' 이라 함.)을 보장할 필요가 있으므로, 메모리 하이퍼바이저부(220)는 메모리의 크기 예측시 목표 성능 비율을 고려할 필요가 있다. Meanwhile, when providing a service (eg, cloud service), it is necessary to guarantee a performance ratio (hereinafter referred to as 'target performance ratio') required by the service (eg, cloud service), so the memory hypervisor unit (220 ) needs to consider the target performance ratio when estimating the size of the memory.
목표 성능 비율(α)은 서비스에서 보장하는 성능 비율을 나타내는 것으로서, 0 내지 1 사이의 값으로 설정될 수 있다. 예컨대, 목표 성능 비율(α)의 값이 0.9일 경우, 서비스에서 계약된 메모리 전체를 메모리 가상머신부(230)에 할당했을 때와 비교하여, 메모리 가상머신부(230)에서 실행하는 응용 프로그램의 성능을 최소 90%이상 보장한다는 의미를 나타낸다. The target performance ratio α represents a performance ratio guaranteed by the service and may be set to a value between 0 and 1. For example, when the value of the target performance ratio (α) is 0.9, compared to the case where the entire contracted memory in the service is allocated to the memory
이에 기초하여, 메모리 하이퍼바이저부(220)는 이러한 서비스의 계약 성능을 보장하기 위해서 응용 프로그램의 성능을 측정하고, 부족한 성능을 보완하기 위해서 추가 투입할 메모리 크기를 예측할 필요가 있다.Based on this, the
목표 성능 비율(α)을 보장하려면 응용 프로그램의 실행시간이 L/α 보다 상대적으로 작거나 같아야 한다. 응용 프로그램의 실행시간을 P-L/α만큼 줄이려면 하기의 수학식 5가 나타내는 관계에 따라 원격 메모리 접근 횟수를 적어도 N-nt만큼 줄여야 한다. To guarantee the target performance ratio (α), the execution time of the application program must be relatively less than or equal to L/α. In order to reduce the execution time of the application program by PL/α, the number of remote memory accesses must be reduced by at least Nn t according to the relationship represented by
그리고, 전술한 수학식 4 및 5를 참조하여, 줄여야 할 원격 메모리 접근 횟수(N-nt)는 하기의 수학식 6과 같이 나타낼 수 있다. And, referring to
한편, 메모리 하이퍼바이저부(220)는 N-nt 만큼의 원격 메모리 접근 횟수를 줄이기 위해서 추가로 필요한 로컬 메모리(211)의 크기를 계산할 수 있다. Meanwhile, the
이때, 메모리 하이퍼바이저부(220)는 원격 메모리(215)에 대한 페이지 LRU 거리 히스토그램(page LRU distance histogram)을 활용하여, 추가로 필요한 로컬 메모리(211)의 크기를 계산할 수 있다.At this time, the
구체적으로, 메모리 하이퍼바이저부(220)는 메모리 가상머신부(230)에 할당된 메모리 페이지 중 자주 사용되는 메모리 페이지는 로컬 메모리(211)에 할당할 수 있으며, 자주 사용되지 않는 메모리 페이지는 원격 메모리(215)에 할당할 수 있다. Specifically, the
또한, 메모리 하이퍼바이저부(220)는 로컬 메모리(211)를 메모리 캐쉬(cache)로서 사용할 수 있다. 그리고, 메모리 하이퍼바이저부(220)는 원격 메모리(215)로 내보내는 페이지(evicted page)의 LRU 거리를 산출할 수 있으며, 산출된 LRU 거리에 기초한 LRU 거리 히스토그램을 생성할 수 있다. Also, the
예컨대, 메모리 가상머신부(230)에 할당된 메모리 페이지가 8개임을 예시하면, 메모리 하이퍼바이저부(220)는 원격 메모리(215)에 4개의 페이지를 할당하고, 로컬 메모리(211)에 4개의 페이지를 할당할 수 있다. For example, if the number of memory pages allocated to the memory
구체적으로, 할당된 메모리 페이지가 A, B, C, D, E, F, G, H 페이지 일 경우, 메모리 하이퍼바이저부(220)는 로컬 메모리(211)에 A, B, C, D 페이지를 할당하고, 원격 메모리(215)에 E, F, G, H 페이지를 할당할 수 있다. Specifically, when the allocated memory pages are A, B, C, D, E, F, G, and H pages, the
표 1과 같이, 메모리 가상머신부(230)의 페이지 접근 순서가 E, A, D, F, C, H인 경우, 원격 메모리(215)에 대한 LRU 거리는 하기의 표 1과 같이 산출할 수 있다. 표 1에서, 페이지를 나타내는 문자열의 왼쪽이 LRU 리스트에서 MRU 페이지를 나타내고, 문자열의 오른쪽이 LRU 페이지를 나타낸다. LRU 거리 값은 원격 메모리(211) 페이지의 각 위치에 접근한 회수를 나타낸다. As shown in Table 1, when the page access order of the memory
메모리 하이퍼바이저부(220)는 전술한 표 1의 LRU 거리 값을 누적 계산하여 도 3에 도시되는 LRU 거리 히스토그램을 생성할 수 있는데, 이러한 LRU 거리 히스토그램을 함수 형태로 나타낼 수 있다. The
나아가, LRU 거리 히스토그램 함수(H(c))는 LRU 거리에 기초한 원격 메모리(215) 접근 횟수에 대응될 수 있다. Furthermore, the LRU distance histogram function H(c) may correspond to the number of accesses to the
원격 메모리(215)의 접근은 로컬 메모리(211)의 부족에 의해 발생될 수 있으므로, 원격 메모리(215) 접근 횟수는 로컬 메모리(211)의 부족량에 대응될 수 있다. 다시 말하면, LRU 거리에 기초한 원격 메모리(215) 접근 횟수 만큼의 메모리 크기(c)가 로컬 메모리(211)에 할당될 경우, 원격 메모리(215) 접근이 발생되지 않을 수 있다. 따라서, LRU 거리 히스토그램 함수(H(c))와 전술한 줄여야 할 원격 메모리 접근 횟수(N-nt)를 동일하게 설정하고, 이로부터 로컬 메모리(211)의 부족량, 즉, 추가할 로컬 메모리(211)의 크기(c)로 설정할 수 있다. 이에 기초하여, 메모리 하이퍼바이저부(220)는 추가할 로컬 메모리(211)의 크기(c)를 하기의 수학식 7의 연산을 통해 산출할 수 있다. Since access to the
LRU 거리 히스토그램 함수(H(c)), 원격 메모리(215)에 접근하는데 소요되는 평균시간(A), 원격 메모리(215) 접근 횟수(N) 등은 응용 프로그램의 실행을 프로파일링하여 획득할 수 있으므로, 메모리 하이퍼바이저부(220)는 성능 예측을 위해서 미리 정해진 시간 주기 내에서 성능 저하 모니터링을 지속적으로 수행하고, 이에 기초하여 로컬 메모리(211)의 부족량, 즉, 추가할 로컬 메모리(211)의 크기(c)를 예측할 수 있다. The LRU distance histogram function (H(c)), the average time required to access the remote memory 215 (A), and the number of accesses to the remote memory 215 (N) can be obtained by profiling the execution of the application. Therefore, the
전술한 바와 같이, 메모리 하이퍼바이저부(220)는 전술한 수학식 1 내지 7에 기초하여, 추가할 로컬 메모리(211)의 크기(c)를 예측하는 동작을 수행하는 것을 예시하였으나, 본 개시가 이를 한정하는 것은 아니다. 다른 예로서, 분할 메모리 관리장치(200)는 메모리 하이퍼바이저부(220)와 별도록 구성된 성능 예측기(250)를 구비할 수 있으며, 성능 예측기(250)가 전술한 수학식 1 내지 7에 기초하여, 추가할 로컬 메모리(211)의 크기(c)를 예측하는 동작을 수행할 수도 있다.As described above, the
한편, 메모리 하이퍼바이저부(220)는 추가할 로컬 메모리(211)의 크기(c)를 확인하고, 로컬 메모리(211)의 잔여 메모리가 추가할 로컬 메모리(211)의 크기(c)와 같거나 상대적으로 큰 값을 가질 경우, 메모리 페이지를 로컬 메모리(211)에 할당할 수 있다. 반면, 로컬 메모리(211)의 잔여 메모리가 추가할 로컬 메모리(211)보다 상대적으로 작은 값을 가질 경우, 메모리 하이퍼바이저부(220)는 로컬 메모리가 충분한 다른 노드로 가상머신을 이동(migrate)시킬 수 있다.Meanwhile, the
한편, 메모리 가상머신부(230)은 부족한 로컬 메모리의 크기를 메모리 하이퍼바이저부(220)로 전달하므로, 메모리 가상머신부(230)에 할당된 로컬 메모리 페이지의 크기가 응용 프로그램의 작업집합 크기(working set size)보다 크더라도, 분할 메모리 관리장치는 인식하지 못할 수 있다. 이러한 경우, 실제 메모리 가상머신부(230)가 사용하는 메모리 페이지는 메모리 가상머신부(230)에 할당된 메모리 페이지보다 상대적으로 적을 수 있으므로 로컬 메모리 사용 효율이 낮아질 수 있다. Meanwhile, since the memory
본 개시의 일 실시예에서, 메모리 하이퍼바이저부(220)는 메모리 가상머신부(230)가 일정시간 동안 원격 메모리에 접근하지 않거나, 가상머신의 vcpu 사용률이 낮을 때 미리 정해진 크기(γ, 0 <γ≤ 1)만큼 로컬 메모리에 할당된 페이지의 크기를 줄일 수 있다. In one embodiment of the present disclosure, the
이와 같이, 미리 정해진 크기(γ)만큼 로컬 메모리에 할당된 페이지의 크기를 줄이더라도, 미리 정해진 시간단위 마다, 주기적으로 로컬 메모리의 크기를 확인하여 메모리 페이지가 재할당되므로, 메모리 가상머신부(230)에서 요구되는 만큼의 로컬 메모리를 확보할 수 있다. In this way, even if the size of the page allocated to the local memory is reduced by a predetermined size (γ), the memory page is reallocated by periodically checking the size of the local memory every predetermined time unit, so the memory virtual machine unit 230 ) can secure as much local memory as required.
따라서, 분할 메모리 관리장치는 리소스의 사용 상태에 맞게 적응적으로 메모리 페이지를 할당하여 메모리 사용 효율을 높일 수 있으며, 로컬 메모리의 크기 예측을 통해 안정적으로 메모리 페이지를 할당할 수 있다. Accordingly, the apparatus for managing partitioned memory can increase memory usage efficiency by adaptively allocating memory pages according to the use state of resources, and can stably allocate memory pages by estimating the size of a local memory.
도 4는 본 개시의 일 실시예에 따른 분할 메모리 관리방법의 순서를 예시하는 흐름도이다. 4 is a flowchart illustrating a sequence of a divided memory management method according to an embodiment of the present disclosure.
분할 메모리 관리방법은 전술한 분할 메모리 관리장치에 의해 수행될 수 있다. The divided memory management method may be performed by the above-described divided memory management device.
우선, 분할 메모리 관리장치는 가상머신에 의해 메모리 페이지의 접근이 요청될 수 있다(S401). First, the partitioned memory management device may request access to a memory page by a virtual machine (S401).
분할 메모리 관리장치에 구비된 메모리는 분할 메모리(disaggregated memory) 구조로 구비될 수 있다. 여기서, 분할 메모리(disaggregated memory) 구조는 물리적으로 서로 다른 장치(예, 서버 장치)에 분산된 복수의 메모리를 포함할 수 있다. 그리고, 복수의 메모리는 메모리가 구비된 위치에 기초하여, 컴퓨팅이 수행되는 장치와 동일한 장치에 위치한 로컬 메모리와, 컴퓨팅이 수행되는 장치와 다른 원격지의 장치에 위치한 원격 메모리로 구분할 수 있다.The memory included in the divided memory management apparatus may be provided in a disaggregated memory structure. Here, the disaggregated memory structure may include a plurality of memories physically distributed in different devices (eg, server devices). Also, the plurality of memories can be divided into a local memory located in the same device as the computing device and a remote memory located in a device remote from the computing device based on the location where the memory is located.
이에 기초하여, 접근이 요청되는 메모리 페이지가 원격 메모리일 경우(S402-예), 분할 메모리 관리장치는 원격 메모리 페이지를 로컬 메모리 페이지로 가져올 수 있다(S403). 그리고, 분할 메모리 관리장치는 원격 메모리의 접근이 발생하였음을 통지하는 원격 메모리 접근 정보를 생성 및 관리할 수 있다(S404). 여기서, 원격 메모리 접근 정보는 원격 메모리 식별자, 원격 메모리 페이지를 가져올 때의 시간, 원격 메모리 접근 횟수 등을 포함할 수 있다. Based on this, if the memory page to which access is requested is a remote memory (S402-Yes), the divided memory management device may bring the remote memory page to the local memory page (S403). And, the partitioned memory management apparatus may create and manage remote memory access information notifying that remote memory access has occurred (S404). Here, the remote memory access information may include a remote memory identifier, a time when a remote memory page is fetched, and the number of remote memory accesses.
다음으로, 분할 메모리 관리장치는 LRU 거리 기반의 메모리 성능 예측을 수행할 수 있다(S405).Next, the partitioned memory management apparatus may perform memory performance prediction based on the LRU distance (S405).
LRU 거리 기반의 메모리 성능 예측은, 전술한 수학식 1 내지 7에 기초하여 추가할 로컬 메모리(211)의 크기(c)를 예측하는 동작으로서, 분할 메모리 관리장치에 구비되는 메모리 하이퍼바이저에 의해 수행될 수 있다. 다른 예로서, LRU 거리 기반의 메모리 성능 예측은 메모리 하이퍼바이저와 분리되어 구비되는 성능 예측기에 의해 수행될 수도 있다.Memory performance prediction based on the LRU distance is an operation of estimating the size (c) of the
LRU 거리 기반의 메모리 성능 예측은 후술되는 도 5와 관련된 동작에서 자세하게 설명한다.Memory performance estimation based on the LRU distance will be described in detail in an operation related to FIG. 5 to be described later.
한편, 접근이 요청되는 메모리 페이지가 로컬 메모리일 경우(S402-아니오), 분할 메모리 관리장치는 S406 단계를 진행할 수 있다. Meanwhile, when the memory page to which access is requested is a local memory (S402-No), the divided memory management apparatus may proceed to step S406.
S406 단계에서, 분할 메모리 관리장치는 로컬 메모리(211)의 상태를 확인하여 로컬 메모리(211)의 잔여 메모리가 접근이 요청되는 메모리의 크기만큼 충분하게 확보되어 있는지 확인할 수 있다. 예컨대, 분할 메모리 관리장치는 로컬 메모리(211)의 잔여 메모리 크기가 접근이 요청되는 메모리의 크기와 동일하거나 상대적으로 큰 값을 구비하는지 확인할 수 있다. In step S406, the partitioned memory management apparatus may check the state of the
로컬 메모리(211)의 잔여 메모리 크기가 접근이 요청되는 메모리의 크기와 동일하거나 상대적으로 큰 값을 나타낼 경우(S407-예), 분할 메모리 관리장치는 접근이 요청되는 메모리 페이지를 로컬 메모리에 할당할 수 있다(S408). 반면, 로컬 메모리(211)의 잔여 메모리의 크기가 접근이 요청되는 메모리 크기보다 상대적으로 작은 값을 나타낼 경우(S407-아니오), 로컬 메모리가 충분한 다른 노드로 가상머신을 이동(migrate)시킬 수 있다(S409).If the remaining memory size of the
도 5는 본 개시의 일 실시예에 따른 분할 메모리 관리방법에 구비된 LRU 거리 기반의 메모리 성능 예측과정의 상세 순서를 예시하는 흐름도이다. 5 is a flowchart illustrating a detailed sequence of a process of estimating memory performance based on an LRU distance included in a partitioned memory management method according to an embodiment of the present disclosure.
우선, 서비스(예, 클라우드 서비스)의 제공시, 서비스(예, 클라우드 서비스)에서 요구하는 성능 비율(이하, '목표 성능 비율' 이라 함.)을 보장할 필요가 있으므로, 분할 메모리 관리장치는 메모리의 크기 예측시 목표 성능 비율을 고려할 필요가 있다. 이에 기초하여, S501 단계에서, 분할 메모리 관리장치는 목표 성능 비율(α)을 설정할 수 있다. 분할 메모리 관리장치는 목표 성능 비율(α)을 입력할 수 있는 환경(예, 사용자 인터페이스)을 제공할 수 있으며, 이러한 환경을 이용하여 목표 성능 비율(α)을 입력받고, 목표 성능 비율(α)을 설정할 수 있다. First of all, when providing a service (eg, cloud service), it is necessary to guarantee the performance ratio (hereinafter referred to as 'target performance ratio') required by the service (eg, cloud service). When estimating the size of , it is necessary to consider the target performance ratio. Based on this, in step S501, the divided memory management device may set a target performance ratio α. The partitioned memory management device may provide an environment (e.g., a user interface) for inputting the target performance ratio (α), receive the target performance ratio (α) using this environment, and determine the target performance ratio (α). can be set.
다음으로, S502 단계에서, 분할 메모리 관리장치는 LRU 거리 기반의 메모리 성능 예측에 사용될 파리미터 값들(시작 시간(S), 메모리 모니터링 시간주기(P), LRU 거리 히스토그램 함수(H), 원격 메모리(215)에 접근하는데 소요되는 평균시간(A), 원격 메모리(215) 접근 횟수(N) 등)의 초기화를 수행할 수 있다.Next, in step S502, the partitioned memory management device sets parameter values (start time (S), memory monitoring time period (P), LRU distance histogram function (H),
이후, 가상머신에 의해 로컬 메모리 또는 원격 메모리의 접근이 요청될 수 있는데, 원격 메모리 접근 요청이 발생될 경우(S503-예), 원격 메모리의 접근이 발생하였음을 통지하는 원격 메모리 접근 정보가 생성 및 제공될 수 있다. 이에 따라, 분할 메모리 관리장치는 원격 메모리 접근 정보를 확인할 수 있다(S504). 여기서, 원격 메모리 접근 정보는 원격 메모리 식별자, 원격 메모리 페이지를 가져올 때의 시간, 원격 메모리 접근 횟수 등을 포함할 수 있다. Thereafter, access to the local memory or remote memory may be requested by the virtual machine. When the remote memory access request occurs (S503-Yes), remote memory access information notifying that the remote memory access has occurred is generated and can be provided. Accordingly, the partitioned memory management device can check the remote memory access information (S504). Here, the remote memory access information may include a remote memory identifier, a time when a remote memory page is fetched, and the number of remote memory accesses.
이후, 분할 메모리 관리장치는 원격 메모리 접근 횟수에 1을 증가시켜 업데이트할 수 있다(S505). 그리고, 분할 메모리 관리장치는 접근 요청되는 원격 메모리 페이지를 확인하고, 접근 요청되는 원격 메모리 페이지의 LRU 거리를 확인할 수 있다(S506).Thereafter, the divided memory management device may update the remote memory access count by increasing 1 (S505). Then, the partitioned memory management apparatus may check the remote memory page to which access is requested and the LRU distance of the remote memory page to which access is requested (S506).
다음으로, 분할 메모리 관리장치는 원격 메모리의 LRU 리스트에서 접근 페이지를 제거하고(S507), 로컬 메모리에서 원격 메모리로 내보내는 페이지(evicted page)가 존재할 경우 원격 메모리의 LRU 리스트의 MRU 위치에 추가할 수 있다(S508). Next, the partitioned memory management device removes the access page from the LRU list of the remote memory (S507), and if there is an ejected page from the local memory to the remote memory, it can be added to the MRU location of the LRU list of the remote memory. Yes (S508).
이후, 분할 메모리 관리장치는 전술한 수학식 2에서 설명한 응용 프로그램 실행 시간(L), 모니터링 시간주기(P), 원격 메모리 접근 횟수(N), 원격 메모리 접근 평균 시간(A) 등의 관계를 고려하여, 원격 메모리 접근 평균 시간(A)을 산출할 수 있다(S509).Then, the divided memory management device considers the relationship between the application execution time (L), the monitoring time period (P), the number of remote memory accesses (N), and the average remote memory access time (A) described in
이후, 분할 메모리 관리장치는 현재 시각을 시작 시간(S) 및 모니터링 시간주기(P)와 비교할 수 있다. 현재 시각이 시작 시간(S) 및 모니터링 시간주기(P)의 합과 같거나 상대적으로 큰 값을 나타낼 경우(S510-예), 분할 메모리 관리장치는 S511 단계를 진행하고, 현재 시각이 시작 시간(S) 및 모니터링 시간주기(P)의 합보다 상대적으로 작은 값을 나타낼 경우(S510-아니오) S503 단계를 진행할 수 있다.Then, the divided memory management device may compare the current time with the start time (S) and the monitoring time period (P). If the current time represents a value equal to or relatively greater than the sum of the start time (S) and the monitoring time period (P) (S510-Yes), the divided memory management device proceeds to step S511, and the current time is the start time ( S) and the monitoring time period (P) when the value is relatively smaller than the sum (S510-No), step S503 may be performed.
S511 단계에서, 분할 메모리 관리장치는 응용 프로그램 실행 시간(L)을 확인하고, 전술한 수학식 4에서 설명에 기초하여 n에 따른 응용프로그램 실행 시간(T(n))을 산출할 수 있다.In step S511, the divided memory management device may check the application program execution time L, and calculate the application program execution time T(n) according to n based on the description in
S512 단계에서, 분할 메모리 관리장치는 목표 성능 비율(α)을 반영한 응용 프로그램 실행 시간(L)(즉, 응용 프로그램 실행 시간(L)/목표 성능 비율(α))이 모니터링 시간주기(P)와 동일하거나 상대적으로 큰 값을 나타내는지를 확인할 수 있다. In step S512, the divided memory management device determines that the application execution time (L) reflecting the target performance ratio (α) (ie, the application execution time (L)/target performance ratio (α)) corresponds to the monitoring time period (P). You can check whether they represent the same or relatively large values.
목표 성능 비율(α)을 반영한 응용 프로그램 실행 시간(L)이 모니터링 시간주기(P)와 동일하거나 상대적으로 큰 값을 가질 경우 목표 성능을 만족한다는 의미이므로 분할 메모리 관리장치는 성능 예측에 사용될 파리미터 값들의 초기화를 수행하는 S502 단계를 진행할 수 있다.If the application execution time (L) reflecting the target performance ratio (α) has the same or relatively large value as the monitoring time period (P), it means that the target performance is satisfied, so the partitioned memory management device is a parameter value to be used for performance prediction. A step S502 of performing initialization of s may be performed.
반면, 목표 성능 비율(α)을 반영한 응용 프로그램 실행 시간(L)이 모니터링 시간주기(P)보다 상대적으로 작은 값을 나타낼 경우, 목표 성능을 만족하지 못한다는 의미이므로 분할 메모리 관리장치는 S513 단계를 진행할 수 있다. On the other hand, if the application execution time (L) reflecting the target performance ratio (α) is relatively smaller than the monitoring time period (P), it means that the target performance is not satisfied, so the divided memory management device performs step S513. can proceed
S513 단계에서, 분할 메모리 관리장치는 전술한 S506 단계에서 확인된 LRU 거리 값을 기반으로 히스토그램 함수(H(c))을 생성할 수 있다. 그리고, S514 단계에서, 분할 메모리 관리장치는 전술한 LRU 거리 히스토그램 함수(H(c))와 줄여야 할 원격 메모리 접근 횟수(N-nt)의 관계에 기초하여 추가할 로컬 메모리의 크기(c)를 산출 및 제공할 수 있다. In step S513, the divided memory management device may generate a histogram function H(c) based on the LRU distance value checked in step S506. And, in step S514, the divided memory management device calculates the size (c) of the local memory to be added based on the relationship between the above-described LRU distance histogram function (H(c)) and the number of remote memory accesses (Nn t ) to be reduced and can provide.
한편, 분할 메모리 관리장치는 가상머신이 부족한 로컬 메모리의 크기를 하이퍼바이저로 전달하므로, 가상머신에 할당된 로컬 메모리 페이지의 크기가 응용 프로그램의 작업집합 크기(working set size)보다 크더라도, 분할 메모리 관리장치는 인식하지 못할 수 있다. 이러한 경우, 실제 가상머신이 사용하는 메모리 페이지는 가상머신에 할당된 메모리 페이지보다 상대적으로 적을 수 있으므로 로컬 메모리 사용 효율이 낮아질 수 있다. On the other hand, since the partitioned memory management device transmits the size of the local memory lacking in the virtual machine to the hypervisor, even if the size of the local memory page allocated to the virtual machine is larger than the working set size of the application, the partitioned memory The management device may not be aware of it. In this case, since the memory pages actually used by the virtual machine may be relatively smaller than the memory pages allocated to the virtual machine, the local memory usage efficiency may be lowered.
본 개시의 일 실시예에서, 분할 메모리 관리장치는는 가상머신이 일정시간 동안 원격 메모리에 접근하지 않거나, 가상머신의 vcpu 사용률이 낮을 때 미리 정해진 크기(γ, 0 <γ≤ 1)만큼 로컬 메모리에 할당된 페이지의 크기를 줄일 수 있다. In one embodiment of the present disclosure, the partitioned memory management device is configured to store data in local memory by a predetermined size (γ, 0 <γ≤ 1) when a virtual machine does not access a remote memory for a certain period of time or when the vcpu usage rate of the virtual machine is low. You can reduce the size of allocated pages.
이와 같이, 미리 정해진 크기(γ)만큼 로컬 메모리에 할당된 페이지의 크기를 줄이더라도, 미리 정해진 시간단위 마다, 주기적으로 로컬 메모리의 크기를 확인하여 메모리 페이지가 재할당되므로, 가상머신에서 요구되는 만큼의 로컬 메모리를 확보할 수 있다. In this way, even if the size of the page allocated to the local memory is reduced by a predetermined size (γ), the size of the local memory is periodically checked every predetermined time unit and the memory page is reallocated. of local memory can be secured.
따라서, 분할 메모리 관리방법은 리소스의 사용 상태에 맞게 적응적으로 메모리 페이지를 할당하여 메모리 사용 효율을 높일 수 있으며, 로컬 메모리의 크기 예측을 통해 안정적으로 메모리 페이지를 할당할 수 있다. Accordingly, the divided memory management method can increase memory usage efficiency by adaptively allocating memory pages according to the use state of resources, and can stably allocate memory pages by estimating the size of a local memory.
본 개시의 예시적인 방법들은 설명의 명확성을 위해서 동작의 시리즈로 표현되어 있지만, 이는 단계가 수행되는 순서를 제한하기 위한 것은 아니며, 필요한 경우에는 각각의 단계가 동시에 또는 상이한 순서로 수행될 수도 있다. 본 개시에 따른 방법을 구현하기 위해서, 예시하는 단계에 추가적으로 다른 단계를 포함하거나, 일부의 단계를 제외하고 나머지 단계를 포함하거나, 또는 일부의 단계를 제외하고 추가적인 다른 단계를 포함할 수도 있다.Exemplary methods of this disclosure are presented as a series of operations for clarity of explanation, but this is not intended to limit the order in which steps are performed, and each step may be performed concurrently or in a different order, if desired. In order to implement the method according to the present disclosure, other steps may be included in addition to the exemplified steps, other steps may be included except for some steps, or additional other steps may be included except for some steps.
본 개시의 다양한 실시 예는 모든 가능한 조합을 나열한 것이 아니고 본 개시의 대표적인 양상을 설명하기 위한 것이며, 다양한 실시 예에서 설명하는 사항들은 독립적으로 적용되거나 또는 둘 이상의 조합으로 적용될 수도 있다.Various embodiments of the present disclosure are intended to explain representative aspects of the present disclosure, rather than listing all possible combinations, and matters described in various embodiments may be applied independently or in combination of two or more.
또한, 본 개시의 다양한 실시 예는 하드웨어, 펌웨어(firmware), 소프트웨어, 또는 그들의 결합 등에 의해 구현될 수 있다. 하드웨어에 의한 구현의 경우, 하나 또는 그 이상의 ASICs(Application Specific Integrated Circuits), DSPs(Digital Signal Processors), DSPDs(Digital Signal Processing Devices), PLDs(Programmable Logic Devices), FPGAs(Field Programmable Gate Arrays), 범용 프로세서(general processor), 컨트롤러, 마이크로 컨트롤러, 마이크로 프로세서 등에 의해 구현될 수 있다. In addition, various embodiments of the present disclosure may be implemented by hardware, firmware, software, or a combination thereof. For hardware implementation, one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), It may be implemented by a processor (general processor), controller, microcontroller, microprocessor, or the like.
본 개시의 범위는 다양한 실시 예의 방법에 따른 동작이 장치 또는 컴퓨터 상에서 실행되도록 하는 소프트웨어 또는 머신-실행가능한 명령들(예를 들어, 운영체제, 애플리케이션, 펌웨어(firmware), 프로그램 등), 및 이러한 소프트웨어 또는 명령 등이 저장되어 장치 또는 컴퓨터 상에서 실행 가능한 비-일시적 컴퓨터-판독가능 매체(non-transitory computer-readable medium)를 포함한다. The scope of the present disclosure is software or machine-executable instructions (eg, operating systems, applications, firmware, programs, etc.) that cause operations according to methods of various embodiments to be executed on a device or computer, and such software or It includes a non-transitory computer-readable medium in which instructions and the like are stored and executable on a device or computer.
Claims (16)
적어도 하나의 메모리 페이지를 로컬 메모리 및 원격 메모리에 할당하는 과정과,
서비스에서 요구하는 목표 성능 비율(α)을 만족하는지 여부를 확인하는 과정과,
상기 목표 성능 비율을 만족하지 않음에 대응하여, 상기 로컬 메모리의 추가 할당 크기를 예측하는 과정과,
예측된 상기 추가 할당 크기를 고려하여, 상기 로컬 메모리를 추가 할당하는 과정을 포함하고,
상기 추가 할당 크기는,
상기 목표 성능 비율을 만족시키기 위하여 줄여야 할 원격 메모리 접근 횟수를 산출하고, 상기 원격 메모리에 대한 접근이 상기 줄여야 할 원격 메모리 접근 횟수만큼 줄어들도록 설정되고,
상기 목표 성능 비율을 만족하는지 여부는,
메모리 모니터링 시간 주기(P)와, 로컬 메모리가 충분한 경우 응용 프로그램 실행 시간(L)을 상기 목표 성능 비율로 나눈 값(L/ α)을 비교한 결과에 기반하여 결정되고,
상기 추가 할당 크기는,
상기 원격 메모리에 대한 접근 횟수(n)와 응용 프로그램 실행 시간 사이의 관계에 상응하는 함수(T(n))에 기반하여 산출되는 것을 특징으로 하는 분할 메모리 관리방법.In the memory management method, performed by a memory management device,
allocating at least one memory page to a local memory and a remote memory;
A process of checking whether a target performance ratio (α) required by the service is satisfied;
predicting an additional allocation size of the local memory in response to not satisfying the target performance ratio;
additionally allocating the local memory in consideration of the predicted additional allocation size;
The additional allocation size is,
calculating the number of remote memory accesses to be reduced in order to satisfy the target performance ratio, and setting the number of accesses to the remote memory to be reduced by the number of remote memory accesses to be reduced;
Whether or not the target performance ratio is satisfied,
It is determined based on a result of comparing the memory monitoring time period (P) and the value (L / α) divided by the application execution time (L) by the target performance ratio when the local memory is sufficient,
The additional allocation size is,
Divided memory management method, characterized in that calculated based on the function (T (n)) corresponding to the relationship between the number of accesses to the remote memory (n) and the application program execution time.
상기 추가 할당 크기는,
하기의 수학식 1에 기반하여 예측되는 것을 특징으로 하는 분할 메모리 관리방법.
[수학식 1]
수학식 1에서, C는 상기 추가 할당 크기, H(c)는 LRU 거리 히스토그램 함수, N-nt는 줄여야 할 원격 메모리 접근 횟수임.According to claim 1,
The additional allocation size is,
A divided memory management method characterized in that it is predicted based on Equation 1 below.
[Equation 1]
In Equation 1, C is the additional allocation size, H(c) is the LRU distance histogram function, and Nn t is the number of remote memory accesses to be reduced.
상기 로컬 메모리를 추가 할당하는 과정은,
상기 로컬 메모리에 구비된 잔여 메모리의 크기를 확인하는 과정과,
상기 추가 할당 크기와 상기 잔여 메모리 크기를 비교하는 과정과,
상기 추가 할당 크기와 상기 잔여 메모리 크기의 비교 결과를 고려하여, 상기 로컬 메모리를 추가 할당하는 과정을 포함하는 것을 특징으로 하는 분할 메모리 관리방법.According to claim 1,
The process of additionally allocating the local memory,
Checking the size of the remaining memory provided in the local memory;
Comparing the additional allocation size with the remaining memory size;
and additionally allocating the local memory in consideration of a comparison result between the additional allocation size and the remaining memory size.
상기 원격 메모리에 접근이 발생된 후부터 접근재개시간을 카운팅하는 과정과,
상기 접근재개시간이 미리 정해진 시간을 초과함에 대응하여, 상기 로컬 메모리의 크기를 미리 정해진 크기만큼 줄이는 과정을 포함하는 것을 특징으로 하는 분할 메모리 관리방법.
According to claim 1,
counting an access resumption time after access to the remote memory occurs; and
and reducing the size of the local memory by a predetermined size in response to the access resume time exceeding a predetermined time.
가상 프로세서의 사용률을 모니터링하는 과정과,
상기 가상 프로세서의 사용률을 고려하여, 상기 로컬 메모리에 할당된 메모리 페이지의 크기를 미리 정해진 크기만큼 줄이는 과정을 포함하는 것을 특징으로 하는 분할 메모리 관리방법.
According to claim 1,
monitoring the utilization rate of the virtual processor;
and reducing the size of a memory page allocated to the local memory by a predetermined size in consideration of the utilization rate of the virtual processor.
로컬 영역의 컴퓨팅 장치에 구비된 로컬 메모리 및 원격지의 컴퓨팅 장치에 구비된 원격 메모리를 포함하는 분할 메모리부와,
응용 프로그램의 구축 또는 실행을 위해 요구되는 적어도 하나의 메모리 페이지를 관리하는 메모리 가상머신부와,
상기 분할 메모리부와 메모리 가상머신부 사이에 구비되며, 상기 적어도 하나의 메모리 페이지를 로컬 메모리 및 원격 메모리에 할당하는 메모리 하이퍼바이저부와,
서비스에서 요구하는 목표 성능 비율(α)을 만족하는지 여부를 확인하고, 상기 목표 성능 비율을 만족하지 않음에 대응하여, 상기 로컬 메모리의 추가 할당 크기를 예측하는 성능 예측부를 포함하고,
상기 추가 할당 크기는,
상기 목표 성능 비율을 만족시키기 위하여 줄여야 할 원격 메모리 접근 횟수를 산출하고, 상기 원격 메모리에 대한 접근이 상기 줄여야 할 원격 메모리 접근 횟수만큼 줄어들도록 설정되고,
상기 목표 성능 비율을 만족하는지 여부는,
메모리 모니터링 시간 주기(P)와, 로컬 메모리가 충분한 경우 응용 프로그램 실행 시간(L)을 상기 목표 성능 비율로 나눈 값(L/ α)을 비교한 결과에 기반하여 결정되고,
상기 추가 할당 크기는,
상기 원격 메모리에 대한 접근 횟수(n)와 응용 프로그램 실행 시간 사이의 관계에 상응하는 함수(T(n))에 기반하여 산출되는 것을 특징으로 하는 분할 메모리 관리장치.In the memory management device,
a partitioned memory unit including a local memory included in a local area computing device and a remote memory included in a remote computing device;
a memory virtual machine unit that manages at least one memory page required for construction or execution of an application program;
a memory hypervisor unit provided between the divided memory unit and the memory virtual machine unit and allocating the at least one memory page to a local memory and a remote memory;
A performance predictor for determining whether a target performance ratio (α) required by the service is satisfied, and predicting an additional allocation size of the local memory in response to the target performance ratio not being satisfied;
The additional allocation size is,
calculating the number of remote memory accesses to be reduced in order to satisfy the target performance ratio, and setting the number of accesses to the remote memory to be reduced by the number of remote memory accesses to be reduced;
Whether or not the target performance ratio is satisfied,
It is determined based on a result of comparing the memory monitoring time period (P) and the value (L / α) divided by the application execution time (L) by the target performance ratio when the local memory is sufficient,
The additional allocation size is,
Divided memory management apparatus, characterized in that calculated based on the function (T (n)) corresponding to the relationship between the number of accesses to the remote memory (n) and the application program execution time.
상기 성능 예측부는,
하기의 수학식 2에 기반하여 상기 추가 할당 크기를 예측하는 것을 특징으로 하는 분할 메모리 관리장치.
[수학식 2]
수학식 2에서, C는 상기 추가 할당 크기, H(c)는 LRU 거리 히스토그램 함수, N-nt는 줄여야 할 원격 메모리 접근 횟수임.According to claim 8,
The performance prediction unit,
Partitioned memory management apparatus, characterized in that for estimating the additional allocation size based on the following equation (2).
[Equation 2]
In Equation 2, C is the additional allocation size, H(c) is the LRU distance histogram function, and Nn t is the number of remote memory accesses to be reduced.
상기 메모리 하이퍼바이저부는,
상기 추가 할당 크기를 고려하여, 상기 로컬 메모리를 추가 할당하는 것을 특징으로 하는 분할 메모리 관리장치.According to claim 8,
The memory hypervisor unit,
The partitioned memory management apparatus of claim 1 , further allocating the local memory in consideration of the additional allocation size.
상기 메모리 하이퍼바이저부는,
상기 로컬 메모리에 구비된 잔여 메모리의 크기를 확인하고,
상기 추가 할당 크기와 상기 잔여 메모리 크기를 비교하고,
상기 추가 할당 크기와 상기 잔여 메모리 크기의 비교 결과를 고려하여, 상기 로컬 메모리를 추가 할당하는 것을 특징으로 하는 분할 메모리 관리장치.According to claim 12,
The memory hypervisor unit,
Check the size of the remaining memory provided in the local memory,
Compare the additional allocation size with the remaining memory size;
The partitioned memory management apparatus of claim 1 , further allocating the local memory in consideration of a comparison result between the additional allocation size and the remaining memory size.
상기 메모리 하이퍼바이저부는,
상기 원격 메모리에 접근이 발생된 후부터 접근재개시간을 카운팅하고, 상기 접근재개시간이 미리 정해진 시간을 초과함에 대응하여, 상기 로컬 메모리의 크기를 미리 정해진 크기만큼 줄이는 것을 특징으로 하는 분할 메모리 관리장치.
According to claim 8,
The memory hypervisor unit,
and counting an access resume time after access to the remote memory occurs, and reducing the size of the local memory by a predetermined size in response to the access resume time exceeding a predetermined time.
상기 메모리 하이퍼바이저부는,
가상 프로세서의 사용률을 모니터링하고, 상기 가상 프로세서의 사용률을 고려하여, 상기 로컬 메모리에 할당된 메모리 페이지의 크기를 미리 정해진 크기만큼 줄이는 것을 특징으로 하는 분할 메모리 관리장치.
According to claim 8,
The memory hypervisor unit,
The divided memory management apparatus, characterized in that for monitoring the use rate of the virtual processor, and reducing the size of a memory page allocated to the local memory by a predetermined size in consideration of the use rate of the virtual processor.
로컬 영역의 컴퓨팅 장치에 구비된 로컬 메모리 및 원격지의 컴퓨팅 장치에 구비된 원격 메모리를 포함하는 분할 메모리부와,
응용 프로그램의 구축 또는 실행을 위해 요구되는 적어도 하나의 메모리 페이지를 관리하는 메모리 가상머신부와,
상기 분할 메모리부와 메모리 가상머신부 사이에 구비되며, 상기 적어도 하나의 메모리 페이지를 로컬 메모리 및 원격 메모리에 할당하고, 서비스에서 요구하는 목표 성능 비율(α)을 만족하는지 여부를 확인하고, 상기 목표 성능 비율을 만족하지 않음에 대응하여, 상기 로컬 메모리의 추가 할당 크기를 예측하고, 예측된 상기 로컬 메모리의 크기를 고려하여, 상기 로컬 메모리를 추가 할당하는 메모리 하이퍼바이저부를 포함하고,
상기 추가 할당 크기는,
상기 목표 성능 비율을 만족시키기 위하여 줄여야 할 원격 메모리 접근 횟수를 산출하고, 상기 원격 메모리에 대한 접근이 상기 줄여야 할 원격 메모리 접근 횟수만큼 줄어들도록 설정되고,
상기 목표 성능 비율을 만족하는지 여부는,
메모리 모니터링 시간 주기(P)와, 로컬 메모리가 충분한 경우 응용 프로그램 실행 시간(L)을 상기 목표 성능 비율로 나눈 값(L/ α)을 비교한 결과에 기반하여 결정되고,
상기 추가 할당 크기는,
상기 원격 메모리에 대한 접근 횟수(n)와 응용 프로그램 실행 시간 사이의 관계에 상응하는 함수(T(n))에 기반하여 산출되는 것을 특징으로 하는 분할 메모리 관리장치.In the memory management device,
a partitioned memory unit including a local memory included in a local area computing device and a remote memory included in a remote computing device;
a memory virtual machine unit that manages at least one memory page required for construction or execution of an application program;
It is provided between the divided memory unit and the memory virtual machine unit, allocates the at least one memory page to a local memory and a remote memory, checks whether a target performance ratio (α) required by a service is satisfied, and In response to not satisfying the performance ratio, a memory hypervisor unit predicting an additional allocation size of the local memory and additionally allocating the local memory in consideration of the predicted size of the local memory;
The additional allocation size is,
calculating the number of remote memory accesses to be reduced in order to satisfy the target performance ratio, and setting the number of accesses to the remote memory to be reduced by the number of remote memory accesses to be reduced;
Whether or not the target performance ratio is satisfied,
It is determined based on a result of comparing the memory monitoring time period (P) and the value (L / α) divided by the application execution time (L) by the target performance ratio when the local memory is sufficient,
The additional allocation size is,
Divided memory management apparatus, characterized in that calculated based on the function (T (n)) corresponding to the relationship between the number of accesses to the remote memory (n) and the application program execution time.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US16/162,107 US10754547B2 (en) | 2017-10-16 | 2018-10-16 | Apparatus for managing disaggregated memory and method thereof |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR20170133929 | 2017-10-16 | ||
KR1020170133929 | 2017-10-16 |
Publications (2)
Publication Number | Publication Date |
---|---|
KR20190042465A KR20190042465A (en) | 2019-04-24 |
KR102469927B1 true KR102469927B1 (en) | 2022-11-23 |
Family
ID=66282069
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020180122434A KR102469927B1 (en) | 2017-10-16 | 2018-10-15 | Apparatus for managing disaggregated memory and method for the same |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR102469927B1 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR102565873B1 (en) * | 2019-11-13 | 2023-08-11 | 서강대학교 산학협력단 | Method for allocating memory bus connected storage in numa system |
KR102392121B1 (en) | 2020-06-15 | 2022-04-29 | 한국전자통신연구원 | Method and apparatus for managing memory in memory disaggregation system |
KR102591315B1 (en) * | 2021-03-22 | 2023-10-20 | 한국전자통신연구원 | Method and apparatus for managing memory integration of cluster system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100725412B1 (en) | 2006-02-07 | 2007-06-07 | 삼성전자주식회사 | Apparatus and method for managing storage space through estimation |
US20120030406A1 (en) * | 2009-06-29 | 2012-02-02 | Jichuan Chang | Hypervisor-based management of local and remote virtual memory pages |
KR101740490B1 (en) | 2015-12-29 | 2017-05-26 | 경희대학교 산학협력단 | Proactive auto scaling system and method in cloud computing environment |
-
2018
- 2018-10-15 KR KR1020180122434A patent/KR102469927B1/en active IP Right Grant
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100725412B1 (en) | 2006-02-07 | 2007-06-07 | 삼성전자주식회사 | Apparatus and method for managing storage space through estimation |
US20120030406A1 (en) * | 2009-06-29 | 2012-02-02 | Jichuan Chang | Hypervisor-based management of local and remote virtual memory pages |
KR101740490B1 (en) | 2015-12-29 | 2017-05-26 | 경희대학교 산학협력단 | Proactive auto scaling system and method in cloud computing environment |
Non-Patent Citations (1)
Title |
---|
W. Zhao, et. al."Dynamic memory balancing for virtual machines.",In VEE ’09. ACM.,2009.03.11.(제37면 내지 제47면)* |
Also Published As
Publication number | Publication date |
---|---|
KR20190042465A (en) | 2019-04-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10191771B2 (en) | System and method for resource management | |
JP5370946B2 (en) | Resource management method and computer system | |
US9262199B2 (en) | Virtualization and dynamic resource allocation aware storage level reordering | |
Koller et al. | Centaur: Host-side ssd caching for storage performance control | |
CN108182105B (en) | Local dynamic migration method and control system based on Docker container technology | |
US10241836B2 (en) | Resource management in a virtualized computing environment | |
EP2071458A1 (en) | Power control method for virtual machine and virtual computer system | |
US7698529B2 (en) | Method for trading resources between partitions of a data processing system | |
KR102469927B1 (en) | Apparatus for managing disaggregated memory and method for the same | |
US9858120B2 (en) | Modifying memory space allocation for inactive tasks | |
KR20130101693A (en) | Method and apparatus for power management in virtualization system using different operation system | |
JP2011258119A (en) | Cluster configuration management method, management device and program | |
US8914582B1 (en) | Systems and methods for pinning content in cache | |
US20120290789A1 (en) | Preferentially accelerating applications in a multi-tenant storage system via utility driven data caching | |
Min et al. | Vmmb: Virtual machine memory balancing for unmodified operating systems | |
US10754547B2 (en) | Apparatus for managing disaggregated memory and method thereof | |
Wu et al. | Live migration improvements by related dirty memory prediction in cloud computing | |
JP6653710B2 (en) | Computer and computer control method | |
Babu et al. | Interference aware prediction mechanism for auto scaling in cloud | |
KR20150007698A (en) | Load distribution system for virtual desktop service | |
US9015418B2 (en) | Self-sizing dynamic cache for virtualized environments | |
US9367439B2 (en) | Physical memory usage prediction | |
JP2010026828A (en) | Method for controlling virtual computer | |
KR20230063015A (en) | Apparatus and method for managing virtual machine cpu resource in virtualization server | |
Tai et al. | SLA-aware data migration in a shared hybrid storage cluster |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
E902 | Notification of reason for refusal | ||
E701 | Decision to grant or registration of patent right |