The present disclosure relates generally to systems management and more particularly to a method and apparatus for dynamic memory resource management.
Systems management involves the supervision and management of information technology resources in an enterprise (or other organization). For example, many systems management software include tools for monitoring and collecting information regarding resource usage, such as memory activity.
As enterprises grow, their needs for information technology resources can change rapidly, as demands for performance and reliability tend to increase. The typical approach for addressing the growing demands is to consolidate the servers in order to maximize resources available to a user. For example, applications and infrastructure services running on diverse operating systems can be consolidated on a reduced number of high performance servers, or even a single high performance server, running multiple virtual machines.
A virtual machine is typically a software based concept or logical entity that is implemented over a hardware platform and operating system and can use multiple devices (such as memory, processors, other hardware resources, network systems, etc.) to create multiple virtual systems, each of which can run independently as a copy of the operating system. In other words, a virtual machine can be thought of as a computer that operates inside, for example, a server, as an entity separate from other virtual machines. A virtual machine can allow for flexibility across platforms and can provide performance optimization by allowing time-expensive hardware to be shared.
Virtual machine software, such as VMware ESX Server (“ESX”), can be used to consolidate systems in advanced environments. System(s) as herein referred to may include(s) individual computers, servers, computing resources, and/or networks, etc. For example, ESX can provide a virtualization software tool that deploys multiple, secure isolated virtual machines, with respective allocated memory shares, on a single server system where system resources can be allocated to any virtual machine based on need. However, these system resource allocations can only take place statically or manually, and can prove to be problematic. For example, if a network administrator over-provisions resources based on a worst case scenario, under-utilization of system resources most likely results. On the other hand, under-provisioning of resources can be equally problematic.
It is desirable for users, such as network administrators, to have reliable and effective tools for dynamically managing (in addition to monitoring) system resources based on real time requirements of, for example, virtual machines in virtual environments, in order to meet growing business demands.
This application describes methods and apparatuses for dynamic memory resource management. A method for dynamic memory resource management, according to an embodiment of the present disclosure, includes collecting memory activity information for a virtual machine, and dynamically changing memory shares (for example, as a proportional resource unit used to determine how much memory the virtual machine should use compared with other running virtual machines). The memory shares of the virtual machine are dynamically changed, as needed, based on the memory activity information for the virtual machine and based on a specified priority of the virtual machine. The method may further include analyzing the collected memory activity information for the virtual machine, to determine memory usage of the virtual machine, and increasing the memory shares of the virtual machine, if it is determined that the memory usage of the virtual machine is equal to or higher than the allocated memory share of the virtual machine. On the other hand, the memory shares of the virtual machine may also be decreased, if it is determined that the memory usage of the virtual machine is substantially lower than the amount currently allocated to the virtual machine, thereby freeing resources for use by other virtual machines.
According to another embodiment, a method for dynamic memory resource management, includes collecting memory related information and user defined criteria for one or more virtual machines, determining the memory state for each of the virtual machines, computing a dynamic priority for each of the virtual machines, and determining whether to increase, decrease, or leave as is memory shares for each of the virtual machines.
An apparatus for dynamic memory resource management, according to one embodiment, includes means for collecting memory activity information for a virtual machine, and means for dynamically changing memory shares of the virtual machine, as needed, based on the memory activity information for the virtual machine and based on a specified priority of the virtual machine.
According to another embodiment, an apparatus for dynamic memory resource management includes means for collecting memory related information and user defined criteria for one or more virtual machines, means for determining the memory state for each of the virtual machines, means for computing a dynamic priority for each of the virtual machines, and means for determining whether to increase, decrease, or leave as is memory shares for each of the virtual machines.
The methods and apparatuses of this disclosure may be embodied in one or more computer programs stored on a computer readable medium or program storage device and/or transmitted via a computer network or other transmission medium. For example, a computer storage medium including computer executable code for dynamic memory resource management, according to one embodiment of the present disclosure, includes code for collecting memory related information and user defined criteria for one or more virtual machines, code for determining the memory state for each of the virtual machines, code for computing a dynamic priority for each of the virtual machines, and code for determining whether to increase, decrease, or leave as is memory shares for each of the virtual machines.
The features of the present application can be more readily understood from the following detailed description with reference to the accompanying drawings wherein:
The present disclosure provides tools (in the form of methodologies, apparatuses, and systems) for dynamic memory resource management (also referred to herein as “DMRM”). DMRM according to this disclosure can be utilized to dynamically manage memory utilization and allocation in virtual machines located in virtual environments. Based on certain predefined or specified criteria and priorities, DMRM can continuously adjust and balance the memory utilization across a virtual environment, to meet the resource needs of each virtual machine in the environment, while simultaneously following the user-defined priorities in real time. DMRM may employ dynamic programming techniques and demand-based usage balancing of memory in order to detect possible peak scenarios of memory resource utilizations based on given criteria. The criteria can be established by users (for example, network administrators) and/or dynamically determined as time progresses in order to satisfy real time requirements.
The following exemplary embodiments are set forth to aid in an understanding of the subject matter of this disclosure, but are not intended, and should not be construed, to limit in any way the claims which follow thereafter. Therefore, while specific terminology is employed for the sake of clarity in describing some exemplary embodiments, the present disclosure is not intended to be limited to the specific terminology so selected, and it is to be understood that each specific element includes all technical equivalents which operate in a similar manner.
The computer system 100 can include a central processing unit (CPU) 102, program and data storage devices 104, a printer interface 106, a display unit 108, a (LAN) local area network data transmission controller 110, a LAN interface 112, a network controller 114, an internal bus 116, and one or more input devices 118 (for example, a keyboard, mouse etc.). As shown, the system 100 may be connected to a database 120, via a link 122.
Methods for dynamic memory resource management are discussed below.
According to an exemplary embodiment (
A method for dynamic memory resource management, according to another exemplary embodiment (
A method according to another embodiment for dynamic memory resource management is illustrated in
The dynamic priority for a virtual machine can be computed using the user defined criteria. The user defined criteria can comprise one or more management criteria, memory criteria, a virtual machine priority, and a memory coefficient for each of the virtual machines. The user defined criteria can also comprise a poll interval and an analysis interval for each server. The management criteria can comprise information indicating the virtual machines to be managed, not managed or monitored. The memory criteria can comprise information indicating memory needs of the virtual machines to be managed, not managed or monitored. The analysis interval can be the period of time during which the memory related information is collected. The poll interval can be the period of time between collections of memory related information. The memory related information is preferably analyzed in real time.
The virtual machines can reside, according to one exemplary embodiment, in a client-server system with one or more management stations. Memory activity in the system, and in particular for each virtual machine, is monitored, and then can be reported using a reporting tool. The server can be supplemented with additional instrumentation providing the management stations with a comprehensive, real time view of the server and each virtual machine. The management stations can pinpoint status at various levels, such as at the server level or at the virtual machine level. The status of the server and virtual machines can be shown through the reporting tool. Events can be automatically forwarded to event management components, which can further propagate the events to a central management station.
A user, such as a network administrator, can specify whether he/she wants to monitor, manage or not manage memory related information for individual virtual machines. The user can also define a virtual machine priority, and a memory coefficient, for each of the virtual machines located on a server. The user can also define a poll interval and an analysis interval for each server. Memory related information can also be provided, for each of the virtual machines, to allow an analytical engine to dynamically determine memory status of a virtual machine, and whether to allocate additional physical memory to a particular virtual machine.
A front end graphical user interface (for example, implemented in Java) can be provided to configure the user-defined criteria. The parameters entered by the user can be stored in the reporting tool. The analytical engine can then read those stored values from the reporting tool and use them when it is dynamically reconfiguring memory allocations.
An analysis interval may include the period of time, for example, in seconds, during which memory related information can be collected for analysis of virtual machine memory status. A poll interval may include the amount of time, for example, in seconds, between collections of memory related information. The analysis interval preferably is not less than the poll interval. For example, the default value of the analysis interval can be set to twice the amount of the poll interval. If the poll interval is, for example, 60 seconds, the analysis interval can be 120 seconds.
An analytical engine can perform dynamic memory reconfiguration based on memory related information and user-defined criteria. An engine service can also be provided to assist the analytical engine in managing the virtual machines. The engine service can be, for example, a service on a Windows platform or a daemon on a Linux platform, and can spawn the analytical engine responsible for managing a server. For example, the engine service can read the discovered server objects, such as the virtual machines running on the server, and then spawn the analytical engine to take care of dynamic memory reconfiguration.
The specific embodiments described herein are illustrative, and many additional modifications and variations can be introduced on these embodiments without departing from the spirit of the disclosure or from the scope of the appended claims. Elements and/or features of different illustrative embodiments may be combined with each other and/or substituted for each other within the scope of this disclosure and appended claims.
Additional variations may be apparent to one of ordinary skill in the art from reading U.S. provisional application Ser. No. 60/573,578, filed May 21, 2004 and entitled “METHOD AND APPARATUS FOR DYNAMIC MEMORY RESOURCE MANAGEMENT”, the entire contents of which are incorporated herein by reference.
This application claims the benefit of U.S. provisional application Ser. No. 60/573,578, filed May 21, 2004 and entitled “METHOD AND APPARATUS FOR DYNAMIC MEMORY RESOURCE MANAGEMENT”.
Number | Date | Country | |
---|---|---|---|
60573578 | May 2004 | US |