[go: up one dir, main page]

CN101430670B - I/O equipment reconstruction method and system in virtualization surroundings - Google Patents

I/O equipment reconstruction method and system in virtualization surroundings Download PDF

Info

Publication number
CN101430670B
CN101430670B CN2008102397392A CN200810239739A CN101430670B CN 101430670 B CN101430670 B CN 101430670B CN 2008102397392 A CN2008102397392 A CN 2008102397392A CN 200810239739 A CN200810239739 A CN 200810239739A CN 101430670 B CN101430670 B CN 101430670B
Authority
CN
China
Prior art keywords
virtual machine
storage resources
user
idle
virtualized environment
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.)
Active
Application number
CN2008102397392A
Other languages
Chinese (zh)
Other versions
CN101430670A (en
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.)
Huawei Technologies Co Ltd
Original Assignee
Institute of Computing Technology of CAS
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 Institute of Computing Technology of CAS filed Critical Institute of Computing Technology of CAS
Priority to CN2008102397392A priority Critical patent/CN101430670B/en
Publication of CN101430670A publication Critical patent/CN101430670A/en
Application granted granted Critical
Publication of CN101430670B publication Critical patent/CN101430670B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

本发明涉及一种在虚拟化环境中I/O设备重构的方法及系统,所述虚拟化环境为Xen虚拟化环境。该方法包括:步骤1,用户虚拟机检测到用户的I/O空闲存储资源小于临界值,则向特权虚拟机发出申请I/O存储资源请求,其中包含申请I/O存储资源的数量;步骤2,特权虚拟机从空闲的I/O存储资源中取出用户虚拟机申请的相应数量的I/O存储资源分配给用户虚拟机;步骤3,用户虚拟机对相应数量的I/O存储资源进行初始化,部署文件系统,然后安装到用户虚拟机的根文件系统中供用户使用。本发明使得在对用户透明的情况下,达到存储资源的分配随着用户的需求而变化,既能满足用户的需求,又不会造成存储资源的浪费情况的出现。

Figure 200810239739

The invention relates to a method and system for reconfiguring I/O equipment in a virtualized environment, and the virtualized environment is a Xen virtualized environment. The method includes: step 1, the user virtual machine detects that the user's I/O idle storage resource is less than a critical value, and then sends a request to the privileged virtual machine to apply for an I/O storage resource, which includes the quantity of the applied I/O storage resource; step 2. The privileged virtual machine takes out the corresponding amount of I/O storage resources requested by the user virtual machine from the idle I/O storage resources and distributes them to the user virtual machine; step 3, the user virtual machine performs the corresponding amount of I/O storage resources Initialize, deploy the file system, and then install it into the root file system of the user virtual machine for use by the user. The invention realizes that the allocation of storage resources changes with the needs of users under the condition of being transparent to users, which can meet the needs of users without causing waste of storage resources.

Figure 200810239739

Description

一种在虚拟化环境中I/O设备重构的方法及系统 A method and system for reconfiguring I/O devices in a virtualized environment

技术领域technical field

本发明涉及虚拟化环境,尤其涉及一种在虚拟化环境中I/O设备重构的方法及系统。The invention relates to a virtualization environment, in particular to a method and system for reconfiguring I/O equipment in a virtualization environment.

背景技术Background technique

虚拟化技术产生于上世纪六十年代,IBM提出了虚拟化的概念,并把此技术应用于IBM的System/370系统。到目前为止,虚拟化技术已经被应用于很多行业和领域,并且在未来将有更广泛的使用。通过虚拟化技术,可以提高服务器的利用率,提高服务的稳定性和健壮性以及软件的可移植性。Virtualization technology was born in the 1960s. IBM proposed the concept of virtualization and applied this technology to IBM's System/370 system. So far, virtualization technology has been applied in many industries and fields, and will be used more widely in the future. Through virtualization technology, the utilization rate of servers can be improved, the stability and robustness of services and the portability of software can be improved.

计算机I/O(输入/输出)技术在计算机技术的发展中始终是一个十分重要的关键技术。其技术特性决定了计算机I/O的处理能力,进而决定了计算机的整体性能以及应用环境。从根本上讲,无论现在还是将来,I/O技术都将制约着计算机技术的应用与发展,尤其在高端计算领域。Computer I/O (input/output) technology is always a very important key technology in the development of computer technology. Its technical characteristics determine the processing capability of computer I/O, and then determine the overall performance and application environment of the computer. Fundamentally speaking, no matter now or in the future, I/O technology will restrict the application and development of computer technology, especially in the field of high-end computing.

要对I/O设备进行虚拟化,就需要监视用户虚拟机的行为,截获用户虚拟机的I/O操作,对其加以分析解释,然后发送给设备驱动程序,由设备驱动程序来完成对设备的操作。其中,根据是否修改Guest OS(客户操作系统),可以把本地设备的虚拟化分为两大类:全虚拟化中的I/O设备虚拟化和半虚拟中的I/O设备虚拟化。To virtualize the I/O device, it is necessary to monitor the behavior of the user virtual machine, intercept the I/O operation of the user virtual machine, analyze and explain it, and then send it to the device driver, and the device driver completes the device operation. Among them, according to whether to modify the Guest OS (guest operating system), the virtualization of local devices can be divided into two categories: I/O device virtualization in full virtualization and I/O device virtualization in paravirtualization.

半虚拟化是剑桥大学提出的概念,与之相伴的是Xen项目的研究与开发。与VmWare一样,Xen也是系统级虚拟软件。自Xen诞生以来,它就迅速以优异的性能表现得到了广泛的关注和应用,半虚拟化的概念也深入人心。它的出现,是如何改进全虚拟化带来的较大的性能损失的研究结果。Paravirtualization is a concept proposed by Cambridge University, accompanied by the research and development of the Xen project. Like VmWare, Xen is also system-level virtualization software. Since the birth of Xen, it has quickly gained widespread attention and application with its excellent performance, and the concept of paravirtualization has also been deeply rooted in the hearts of the people. Its appearance is the result of research on how to improve the large performance loss caused by full virtualization.

图1为Xen中I/O虚拟化的体系结构。图中最底层为硬件资源,Xen VMM运行于硬件资源之上,对硬件资源进行管理,并虚拟化出若干个虚拟硬件环境。在Xen VMM(Virtual Machine Monitor),虚拟机监控器上面运行多个Guest OS(以XenLinux系统为例)。无修改的用户应用程序运行于Guest OS的应用层。在Guest OS的内核层运行有前端设备驱动程序(Front-End),用户应用程序通过前端设备驱动程序对设备进行操作。而前端设备驱动程序并不真正对设备进行操作,它通过后端设备驱动程序(Back-End)实现对真正的设备操作。前端设备驱动程序(Front-End)分别位于VMI、VM2、VM3中,VM1、VM2、VM3分别为用户虚拟机。后端设备驱动程序(Back-End)位于VM0中,VM0为特权虚拟机。VM0(这里的VM0是指xen虚拟化环境中的一个特殊的虚拟机,其是必定存在的,而管理员通过此虚拟机提供的接口界面对虚拟机进行管理)是一个特殊的Guest OS,也称之为有特权的Guest OS。之所以称之为有特权的Guest OS,是因为:Figure 1 shows the architecture of I/O virtualization in Xen. The bottom layer in the figure is the hardware resource. Xen VMM runs on the hardware resource, manages the hardware resource, and virtualizes several virtual hardware environments. In Xen VMM (Virtual Machine Monitor), multiple Guest OSs run on the virtual machine monitor (take XenLinux system as an example). Unmodified user applications run on the application layer of the Guest OS. There is a front-end device driver (Front-End) running in the kernel layer of the Guest OS, and the user application operates the device through the front-end device driver. The front-end device driver does not really operate the device, it realizes the real device operation through the back-end device driver (Back-End). The front-end device drivers (Front-End) are respectively located in VMI, VM2, and VM3, and VM1, VM2, and VM3 are respectively user virtual machines. The back-end device driver (Back-End) is located in VM0, and VM0 is a privileged virtual machine. VM0 (VM0 here refers to a special virtual machine in the xen virtualization environment, which must exist, and the administrator manages the virtual machine through the interface provided by the virtual machine) is a special Guest OS, also Call it a privileged Guest OS. It is called a privileged Guest OS because:

1.VMM管理程序接口界面程序、部分资源管理程序、Guest OS管理控制程序均在VM0的应用层运行,也即VM0是拥有管理权限的Guest OS;1. The VMM management program interface program, some resource management programs, and Guest OS management control programs all run on the application layer of VM0, that is, VM0 is the Guest OS with management authority;

2.VM0可以对外围设备直接进行访问,也即它拥有管理和操作所有外围设备的权限。2. VM0 can directly access peripheral devices, that is, it has the authority to manage and operate all peripheral devices.

在VM0的内核中,运行了一个后端设备驱动程序的服务。它的职责就是接受从其它Guest OS发出的I/O操作请求,转交给VM0中的真实设备驱动程序,由真实设备驱动程序完成对设备的操作,并把从真实设备驱动程序返回的操作结果返回给前端设备驱动程序。In the kernel of VM0, a backend device driver service is running. Its responsibility is to accept the I/O operation request sent from other Guest OS, transfer it to the real device driver in VM0, and the real device driver will complete the operation on the device, and return the operation result returned from the real device driver to the front-end device driver.

在虚拟化的使用中,有一个显著的特点:用户申请的I/O存储资源很多时候大部分是被浪费的。这是因为,用户在使用虚拟机的过程中,其对I/O存储资源的需求是变化的。比如,用户在某段时间内发现了一个很好的电影下载站点,想要下载很多电影,这时,就需要多达十几G甚至几十上百G的存储空间用来存放电影。而用户在看完这些电影后,把它们都删除掉了,这时,这些数量众多的I/O存储资源就没有用了。而用户为了能保证自己下载电影的时候有足够的空间存放,申请I/O存储资源时必须按照自己的最大可能使用的空间量进行申请。而这些空间除了在某些时候被使用以外,大部分时候都是被闲置浪费的。In the use of virtualization, there is a notable feature: most of the I/O storage resources requested by users are wasted in many cases. This is because, during the process of using the virtual machine, the user's demand for I/O storage resources changes. For example, a user finds a good movie download site within a certain period of time and wants to download a lot of movies. At this time, a storage space of more than ten gigabytes or even hundreds of gigabytes is needed to store movies. After the user has watched these movies, they are all deleted. At this time, these large I/O storage resources are just useless. In order to ensure that users have enough space for downloading movies, users must apply for I/O storage resources according to their maximum possible space. Except for being used at certain times, these spaces are idle and wasted most of the time.

为了解决这个问题,Xen虚拟化平台提供了虚拟I/O设备热插拔的机制。其核心思想就是当用户觉得自己的存储空间不足,需要更多的存储空间时,向系统管理员提出申请;系统管理员接到用户的申请后,查看是否还有足够的空闲存储空间,如果有,则手动运行热插拔指令,向用户虚拟机中添加新的I/O存储资源,然后通知用户;用户在虚拟机中对新的I/O存储资源进行初始化,部署文件系统,然后把新的存储空间安装到虚拟机的根文件系统中。这样,用户就可以使用新的存储空间了。在用户不需要这些新添加的存储空间后,就从自己虚拟机的根文件系统中卸载新的I/O设备,然后通知系统管理员;系统管理员在接到通知后,把分配给用户虚拟机的新虚拟I/O设备卸载,然后把其空间信息加入到空心存储空间中。In order to solve this problem, the Xen virtualization platform provides a hot-swap mechanism for virtual I/O devices. Its core idea is that when the user feels that his storage space is insufficient and needs more storage space, he applies to the system administrator; after receiving the user's application, the system administrator checks whether there is enough free storage space, and if there is , then manually run the hot swap command to add new I/O storage resources to the user virtual machine, and then notify the user; the user initializes the new I/O storage resource in the virtual machine, deploys the file system, and then puts the new The storage space of the virtual machine is installed in the root file system of the virtual machine. In this way, the user can use the new storage space. After the user does not need these newly added storage spaces, he will uninstall the new I/O device from the root file system of his own virtual machine, and then notify the system administrator; The new virtual I/O device of the machine is unloaded, and then its space information is added to the hollow storage space.

以上方法虽然提供了按需为用户分配存储空间的机制,但存在以下问题:Although the above method provides a mechanism for allocating storage space to users on demand, there are the following problems:

(1)不对用户透明。用户需要手动通知系统管理员,并且还要对新加入的虚拟I/O设备进行初始化和安装工作。(1) Not transparent to users. The user needs to manually notify the system administrator, and also initialize and install the newly added virtual I/O device.

(2)对用户有很高的要求。在新的虚拟I/O设备添加进用户虚拟机后,用户需要能够对新的I/O设备进行初始化,部署文件系统,并把它安装到用户虚拟机的根文件系统中。而当用户不再需要新的存储空间时,需要把新加入的存储空间从用户虚拟机的根文件系统中卸载,然后把此新的I/O设备从用户虚拟机中卸载掉。这些都对用户有很高的要求,需要用户对操作系统和I/O设备的管理和使用技术有很深入的了解。而大多数用户往往都达不到这么高的要求,从而严重限制了这种方法的大规模使用。(2) There are high requirements for users. After a new virtual I/O device is added to the user virtual machine, the user needs to be able to initialize the new I/O device, deploy the file system, and install it into the root file system of the user virtual machine. And when the user no longer needs new storage space, it is necessary to unload the newly added storage space from the root file system of the user virtual machine, and then unload the new I/O device from the user virtual machine. All of these have high requirements on users, requiring users to have a deep understanding of operating systems and I/O device management and usage technologies. However, most users often cannot meet such high requirements, which severely limits the large-scale use of this method.

(3)使得系统管理员增加了很大的工作负担。在虚拟I/O设备的添加和卸载过程中,都需要系统管理员的参与,为系统管理员增加了很大的工作量。如果系统规模比较庞大,用户数量众多,由此而增加的工作负担是系统管理员很难忍受的。如果大幅度增加系统管理员的数量,联系到日益增加的人力资源成本,系统维护的成本将会有较大幅度的增加。(3) Make the system administrator increase a lot of workload. In the process of adding and uninstalling virtual I/O devices, the participation of the system administrator is required, which adds a lot of workload to the system administrator. If the scale of the system is relatively large and the number of users is large, the resulting increased workload is unbearable for the system administrator. If the number of system administrators is greatly increased, the cost of system maintenance will increase significantly in connection with the increasing cost of human resources.

(4)因为系统管理员的工作负担的增加,系统管理员可能会对用户提出的请求不能进行即时的相应,从而使得用户对新的存储空间的需求不能得到较快的服务。这会降低系统对用户的服务质量,从而使用户产生不满。同时,用户也会因为服务不能迅速满足而减少对此服务的请求,从而也限制了此种方法的使用。(4) Due to the increased workload of the system administrator, the system administrator may not be able to respond immediately to the user's request, so that the user's demand for new storage space cannot be quickly served. This will reduce the system's service quality to users, which will make users dissatisfied. At the same time, users will also reduce their requests for this service because the service cannot be satisfied quickly, thus limiting the use of this method.

发明内容Contents of the invention

为了解决上述的技术问题,提供了一种在虚拟化环境中I/O设备重构的方法及系统,其目的在于,克服以上提出的Xen虚拟化平台现有的I/O设备热插拔机制的缺点。In order to solve the above-mentioned technical problems, a method and system for reconfiguring I/O devices in a virtualized environment are provided, the purpose of which is to overcome the existing I/O device hot-plug mechanism of the Xen virtualization platform proposed above Shortcomings.

本发明提供了一种在虚拟化环境中I/O设备重构的方法,所述虚拟化环境为Xen虚拟化环境,包括:The present invention provides a method for I/O device reconstruction in a virtualized environment, the virtualized environment is a Xen virtualized environment, comprising:

步骤1,用户虚拟机检测到用户的I/O空闲存储资源小于临界值,则向特权虚拟机发出申请I/O存储资源请求,其中包含申请I/O存储资源的数量;Step 1, the user virtual machine detects that the user's I/O idle storage resource is less than a critical value, and then sends a request to the privileged virtual machine to apply for an I/O storage resource, which includes the amount of the requested I/O storage resource;

步骤2,特权虚拟机从空闲的I/O存储资源中取出用户虚拟机申请的相应数量的I/O存储资源分配给用户虚拟机;Step 2, the privileged virtual machine takes out the corresponding amount of I/O storage resources requested by the user virtual machine from the idle I/O storage resources and distributes them to the user virtual machine;

步骤3,用户虚拟机对相应数量的I/O存储资源进行初始化,部署文件系统,然后安装到用户虚拟机的根文件系统中供用户使用。In step 3, the user virtual machine initializes a corresponding amount of I/O storage resources, deploys a file system, and then installs it into the root file system of the user virtual machine for use by the user.

步骤1中,用户虚拟机根据其空闲I/O存储资源的消耗速度决定向特权虚拟机申请I/O存储资源的数量。In step 1, the user virtual machine determines the amount of I/O storage resources to apply to the privileged virtual machine according to the consumption speed of its idle I/O storage resources.

步骤1中,在用户虚拟机中安装存储资源使用状况监测服务程序,用于检测到用户的I/O空闲存储资源的数量,并在检测到用户的I/O空闲存储资源小于临界值时向特权虚拟机发出申请I/O存储资源请求;In step 1, a storage resource usage monitoring service program is installed in the user virtual machine, which is used to detect the amount of the user's I/O idle storage resources, and when it is detected that the user's I/O idle storage resources are less than a critical value, send The privileged virtual machine sends a request to apply for I/O storage resources;

步骤3中,存储资源使用状况监测服务程序,还用于对相应数量的I/O存储资源进行初始化,部署文件系统,然后安装到用户虚拟机的根文件系统中供用户使用。In step 3, the storage resource usage monitoring service program is also used to initialize a corresponding number of I/O storage resources, deploy the file system, and then install it into the root file system of the user virtual machine for use by the user.

步骤2中,特权虚拟机将相应数量的I/O存储资源热插入用户虚拟机中,并通知用户虚拟机。In step 2, the privileged virtual machine hot-inserts a corresponding amount of I/O storage resources into the user virtual machine, and notifies the user virtual machine.

步骤2中,在特权虚拟机中安装存储资源管理服务程序,用于从空闲的I/O存储资源中取出用户虚拟机申请的相应数量的I/O存储资源分配给用户虚拟机。In step 2, a storage resource management service program is installed in the privileged virtual machine, which is used to take out a corresponding amount of I/O storage resources requested by the user virtual machine from idle I/O storage resources and distribute them to the user virtual machine.

步骤2中,存储资源管理服务程序,还用于将该资源热插拔至用户虚拟机中,并通知用户虚拟机。In step 2, the storage resource management service program is also used to hot-swap the resource into the user virtual machine and notify the user virtual machine.

本发明提供了一种在Xen虚拟化环境中I/O设备重构的方法,包括:The invention provides a method for I/O device reconstruction in a Xen virtualization environment, comprising:

步骤1,用户虚拟机检测到用户的I/O空闲存储资源大于临界值,则用户虚拟机卸载特定数量的I/O空闲存储资源,并向特权虚拟机发出卸载I/O存储资源请求,其中包含需要卸载的I/O存储资源的特定数量;Step 1, the user virtual machine detects that the user's I/O idle storage resources are greater than the critical value, then the user virtual machine unloads a certain amount of I/O idle storage resources, and sends a request to the privileged virtual machine to unload I/O storage resources, where Contains a specific amount of I/O storage resources that need to be offloaded;

步骤2,特权虚拟机将特定数量的I/O空闲存储资源回收。In step 2, the privileged virtual machine reclaims a specific amount of I/O idle storage resources.

步骤1中,用户虚拟机在卸载特定数量的I/O空闲存储资源后,修改用户虚拟机的根文件系统和I/O设备的相应信息。In step 1, the user virtual machine modifies the root file system of the user virtual machine and the corresponding information of the I/O device after offloading a certain amount of idle I/O storage resources.

步骤2中,特权虚拟机从用户虚拟机中热拔出特定数量的I/O空闲存储资源,并将其重新添加入空闲的I/O存储资源中。In step 2, the privileged virtual machine hot-plugs a certain amount of I/O idle storage resources from the user virtual machine, and re-adds them to the idle I/O storage resources.

步骤1中,在用户虚拟机中安装存储资源使用状况监测服务程序,用于检测到用户的I/O空闲存储资源的数量,并在检测到用户的I/O空闲存储资源大于临界值时,卸载特定数量的I/O空闲存储资源并向特权虚拟机发出卸载I/O存储资源请求。In step 1, a storage resource usage monitoring service program is installed in the user virtual machine, which is used to detect the number of user's I/O idle storage resources, and when it is detected that the user's I/O idle storage resources are greater than a critical value, Offload a specific amount of I/O idle storage resources and send a request for offloading I/O storage resources to the privileged virtual machine.

步骤1中,存储资源使用状况监测服务程序,还用于在卸载特定数量的I/O空闲存储资源后,修改用户虚拟机的根文件系统和I/O设备的相应信息。In step 1, the storage resource usage monitoring service program is also used to modify the root file system of the user virtual machine and the corresponding information of the I/O device after unloading a certain amount of idle I/O storage resources.

步骤2中,在特权虚拟机中安装存储资源管理服务程序,用于将特定数量的I/O空闲存储资源回收。In step 2, a storage resource management service program is installed in the privileged virtual machine to reclaim a specific amount of I/O idle storage resources.

步骤2中,存储资源管理服务程序,还用于从用户虚拟机中热拔出特定数量的I/O空闲存储资源,并将其重新添加入空闲的I/O存储资源中。In step 2, the storage resource management service program is also used to hot-plug a certain amount of I/O idle storage resources from the user virtual machine, and re-add them to the idle I/O storage resources.

本发明提供了一种在Xen虚拟化环境中I/O设备重构的系统,包括用户虚拟机和特权虚拟机,The invention provides a system for I/O device reconstruction in a Xen virtualization environment, including a user virtual machine and a privileged virtual machine,

用户虚拟机,用于检测到用户的I/O空闲存储资源小于临界值时,向特权虚拟机发出申请I/O存储资源请求,其中包含申请I/O存储资源的数量;The user virtual machine is used to send a request for applying for I/O storage resources to the privileged virtual machine when it detects that the user's idle I/O storage resource is less than a critical value, including the number of applied I/O storage resources;

特权虚拟机,用于从空闲的I/O存储资源中取出用户虚拟机申请的相应数量的I/O存储资源分配给用户虚拟机;The privileged virtual machine is used to take out the corresponding amount of I/O storage resources requested by the user virtual machine from idle I/O storage resources and assign them to the user virtual machine;

用户虚拟机,还用于对相应数量的I/O存储资源进行初始化,部署文件系统,然后安装到用户虚拟机的根文件系统中供用户使用。The user virtual machine is also used to initialize a corresponding amount of I/O storage resources, deploy a file system, and then install it into the root file system of the user virtual machine for use by the user.

用户虚拟机,还用于根据其空闲I/O存储资源的消耗速度决定向特权虚拟机申请I/O存储资源的数量。The user virtual machine is also used to determine the amount of I/O storage resources to apply to the privileged virtual machine according to the consumption speed of its idle I/O storage resources.

用户虚拟机中包含存储资源使用状况监测服务程序;The user virtual machine contains a storage resource usage monitoring service program;

存储资源使用状况监测服务程序,用于检测到用户的I/O空闲存储资源的数量,并在检测到用户的I/O空闲存储资源小于临界值时向特权虚拟机发出申请I/O存储资源请求;The storage resource usage monitoring service program is used to detect the number of user's I/O idle storage resources, and send an application for I/O storage resources to the privileged virtual machine when it detects that the user's I/O idle storage resources are less than the critical value ask;

存储资源使用状况监测服务程序,还用于对相应数量的I/O存储资源进行初始化,部署文件系统,然后安装到用户虚拟机的根文件系统中供用户使用。The storage resource usage monitoring service program is also used to initialize a corresponding amount of I/O storage resources, deploy the file system, and then install it into the root file system of the user virtual machine for use by the user.

特权虚拟机,还用于将相应数量的I/O存储资源热插入用户虚拟机中,并通知用户虚拟机。The privileged virtual machine is also used to hot insert a corresponding amount of I/O storage resources into the user virtual machine, and notify the user virtual machine.

特权虚拟机中包含存储资源管理服务程序;The privileged virtual machine contains a storage resource management service program;

存储资源管理服务程序,用于从空闲的I/O存储资源中取出用户虚拟机申请的相应数量的I/O存储资源分配给用户虚拟机。The storage resource management service program is used to take out a corresponding amount of I/O storage resources requested by the user virtual machine from idle I/O storage resources and allocate them to the user virtual machine.

存储资源管理服务程序,还用于将该资源热插拔至用户虚拟机中,并通知用户虚拟机。The storage resource management service program is also used to hot-swap the resource into the user virtual machine and notify the user virtual machine.

本发明提供了一种在虚拟化环境中I/O设备重构的系统,所述虚拟化环境为Xen虚拟化环境,包括用户虚拟机和特权虚拟机,The present invention provides a system for reconfiguring I/O devices in a virtualized environment, the virtualized environment is a Xen virtualized environment, including a user virtual machine and a privileged virtual machine,

用户虚拟机,用于检测到用户的I/O空闲存储资源大于临界值时,则用户虚拟机卸载特定数量的I/O空闲存储资源,并向特权虚拟机发出卸载I/O存储资源请求,其中包含需要卸载的I/O存储资源的特定数量;The user virtual machine is used to detect that the user's I/O idle storage resources are greater than a critical value, then the user virtual machine unloads a certain amount of I/O idle storage resources, and sends a request for unloading I/O storage resources to the privileged virtual machine, which contains the specific amount of I/O storage resources that need to be offloaded;

特权虚拟机,用于将特定数量的I/O空闲存储资源回收。A privileged virtual machine is used to reclaim a specific amount of I/O idle storage resources.

用户虚拟机,还用于在卸载特定数量的I/O空闲存储资源后,修改用户虚拟机的根文件系统和I/O设备的相应信息。The user virtual machine is further configured to modify the corresponding information of the root file system and the I/O device of the user virtual machine after unloading a certain amount of I/O idle storage resources.

特权虚拟机,还用于从用户虚拟机中热拔出特定数量的I/O空闲存储资源,并将其重新添加入空闲的I/O存储资源中。The privileged virtual machine is also used to hot-plug a specific amount of I/O idle storage resources from the user virtual machine, and re-add them to the idle I/O storage resources.

用户虚拟机中包含存储资源使用状况监测服务程序;The user virtual machine contains a storage resource usage monitoring service program;

存储资源使用状况监测服务程序,用于检测到用户的I/O空闲存储资源的数量,并在检测到用户的I/O空闲存储资源大于临界值时,卸载特定数量的I/O空闲存储资源并向特权虚拟机发出卸载I/O存储资源请求。The storage resource usage monitoring service program is used to detect the number of user's I/O idle storage resources, and unload a specific amount of I/O idle storage resources when it detects that the user's I/O idle storage resources are greater than a critical value And send an offload I/O storage resource request to the privileged virtual machine.

存储资源使用状况监测服务程序,还用于在卸载特定数量的I/O空闲存储资源后,修改用户虚拟机的根文件系统和I/O设备的相应信息。The storage resource usage monitoring service program is also used to modify the root file system of the user virtual machine and the corresponding information of the I/O device after unloading a certain amount of I/O idle storage resources.

特权虚拟机中包含存储资源管理服务程序;The privileged virtual machine contains a storage resource management service program;

存储资源管理服务程序,用于将特定数量的I/O空闲存储资源回收。The storage resource management service program is used to reclaim a specific amount of I/O idle storage resources.

存储资源管理服务程序,还用于从用户虚拟机中热拔出特定数量的I/O空闲存储资源,并将其重新添加入空闲的I/O存储资源中。The storage resource management service program is also used to hot-plug a certain amount of idle I/O storage resources from the user virtual machine, and re-add them to the idle I/O storage resources.

本发明使得在对用户透明的情况下,达到存储资源的分配随着用户的需求而变化,既能满足用户的需求,又不会造成存储资源的浪费情况的出现。同时,由于对用户透明,用户无需具有专业的计算机知识;并且整个虚拟I/O设备的重构过程自动完成,反应速度快,无需系统管理员,减少了系统管理员的工作量,提高了服务质量,降低了系统服务成本。The invention realizes that the allocation of storage resources changes with the needs of users under the condition of being transparent to users, which can meet the needs of users without causing waste of storage resources. At the same time, because it is transparent to the user, the user does not need to have professional computer knowledge; and the reconstruction process of the entire virtual I/O device is automatically completed, the response speed is fast, and the system administrator is not required, which reduces the workload of the system administrator and improves service. quality, reducing system service costs.

附图说明Description of drawings

图1是现有的Xen中I/O虚拟化的体系结构;Fig. 1 is the architecture of I/O virtualization in the existing Xen;

图2是本发明的虚拟I/O设备重构系统的结构示意图;Fig. 2 is a schematic structural diagram of the virtual I/O device reconstruction system of the present invention;

图3是本发明的虚拟I/O设备重构方法的实施例。Fig. 3 is an embodiment of the virtual I/O device reconfiguration method of the present invention.

具体实施方式Detailed ways

本发明提出了一种虚拟I/O设备重构的方法,包括:The present invention proposes a method for virtual I/O device reconstruction, including:

步骤1)、用户虚拟机(用户虚拟机就是运行在VMM之上的虚拟机,比如VM1是一个用户虚拟机,前端设备驱动程序运行在用户虚拟机中,用户应用程序通过前端设备驱动程序对设备进行操作)中的存储资源使用状况监测服务程序监测到用户的空闲存储资源小于某个临界值(比如1G),这时它会自动向VM0中的存储资源管理服务程序发出资源申请;Step 1), user virtual machine (user virtual machine is exactly the virtual machine running on the VMM, such as VM1 is a user virtual machine, and the front-end device driver runs in the user virtual machine, and the user application program passes the front-end device driver to the device. Operation) in the storage resource usage monitoring service program detects that the user's idle storage resource is less than a certain critical value (such as 1G), then it will automatically send a resource request to the storage resource management service program in VM0;

步骤2)、VM0中的存储资源管理服务程序接到用户虚拟机发出的资源申请后,从空闲的存储资源中取出用户虚拟机请求的数量的资源,然后将其热插入给用户虚拟机中,并发送通知,通告用户虚拟机中的存储资源使用状况监测服务程序新的I/O存储资源的插入;Step 2), after the storage resource management service program in the VM0 receives the resource application sent by the user virtual machine, it takes out resources of the amount requested by the user virtual machine from idle storage resources, and then hot inserts them into the user virtual machine, And send a notification to notify the storage resource utilization status monitoring service program in the user virtual machine of the insertion of a new I/O storage resource;

步骤3)、用户虚拟机中的存储资源使用状况监测服务程序接到通知后,对新插入的I/O存储资源进行初始化,部署文件系统,然后安装到用户虚拟机的根文件系统中,供用户使用。Step 3), after receiving the notification, the storage resource usage monitoring service program in the user virtual machine initializes the newly inserted I/O storage resource, deploys the file system, and then installs it in the root file system of the user virtual machine for user use.

在上述的步骤1)中,用户的空闲I/O存储资源的固定值可以根据系统特点和需求的不同修改,以达到I/O资源的高效使用。In the above step 1), the fixed value of the user's idle I/O storage resources can be modified according to the characteristics and requirements of the system, so as to achieve efficient use of I/O resources.

同时,存储资源使用状况监测服务程序可以根据用户虚拟机中的空闲I/O存储资源消耗速度来决定申请的新的存储资源的数量。如果空闲I/O资源的消耗速度很快,比如用户在大量下载电影,那么其I/O资源会消耗很快,这时根据I/O资源的消耗速度,存储资源使用状况监测服务程序就可以得出结论:用户正处在I/O存储资源的突发消耗高峰,其有很大的可能在短时间内还需要大量的存储空间,这时就会一次新分配给用户较多的存储资源,比如5G。At the same time, the storage resource usage monitoring service program can determine the quantity of new storage resources to apply for according to the idle I/O storage resource consumption speed in the user virtual machine. If the consumption of idle I/O resources is very fast, such as when a user is downloading a large number of movies, then the I/O resources will be consumed very quickly. At this time, according to the consumption speed of I/O resources, the storage resource usage monitoring service program can It is concluded that the user is in the peak of sudden consumption of I/O storage resources, and it is very likely that a large amount of storage space will be needed in a short period of time. At this time, more storage resources will be allocated to the user at a time. , such as 5G.

而如果空闲存储资源的消耗速度比较慢,比如用户正在编写word文档,而这时空闲存储资源在用户的某次保存操作后低于临界值,这时存储资源使用状况监测服务程序会监测到此情况的发生,同时它会发现,用户存储资源的消耗速度很慢,存储资源使用状况监测服务程序因此可以得出结论:用户不处在存储资源的消耗高峰期,其有很大的可能在短时间内不需要大量的存储资源,这时就会一次新分配给用户较少的存储资源,比如1G。通过这种机制,既可以保证用户的需求得到满足,又减少了资源分配的次数,降低了系统的运行负担。And if the consumption of idle storage resources is relatively slow, such as when the user is writing a word document, and the idle storage resources are lower than the critical value after a certain save operation by the user, then the storage resource usage monitoring service program will monitor this. At the same time, it will find that the user’s consumption of storage resources is very slow, so the storage resource usage monitoring service program can draw a conclusion: the user is not in the peak period of storage resource consumption, and it is very likely that There is no need for a large amount of storage resources in a short period of time, and at this time, a small amount of storage resources, such as 1G, will be allocated to the user at a time. Through this mechanism, it can not only ensure that the needs of users are met, but also reduce the number of resource allocations and reduce the operating burden of the system.

类似的过程,当用户虚拟机中的空闲存储资源过多时:Similar process, when there are too many free storage resources in the user virtual machine:

步骤1)、用户虚拟机中的存储资源使用状况监测服务程序监测到用户的空闲存储资源大于某个临界值,这时它会自动卸载部分存储资源,然后向VM0中的存储资源管理服务程序发出资源卸载申请;Step 1), the storage resource usage monitoring service program in the user's virtual machine detects that the user's idle storage resource is greater than a certain critical value, at this time it will automatically unload some storage resources, and then send a message to the storage resource management service program in VM0 Resource unloading application;

步骤2)、VM0中的存储资源管理服务程序接到用户虚拟机发出的资源申请后,将被用户虚拟机卸载的存储资源回收。In step 2), the storage resource management service program in VMO reclaims the storage resource unloaded by the user virtual machine after receiving the resource application from the user virtual machine.

通过存储资源的自动插入和回收,可以实现在满足用户需求的前提下,避免了存储资源的大量浪费。Through the automatic insertion and recycling of storage resources, it is possible to avoid a large amount of waste of storage resources on the premise of meeting user needs.

在典型的Xen虚拟化环境中,特权虚拟机VM0中运行存储资源管理服务程序,用于管理空闲的I/O存储资源,并且接收和处理用户虚拟机发送的资源申请和卸载请求,下面对其简称为server程序。用户虚拟机中运行存储资源使用状况监测服务程序,用于监测用户虚拟机中的I/O存储资源使用情况,并据此作出资源申请或者卸载的决定,并发送申请给VM0中运行的server程序,下面对其简称为monitor程序。In a typical Xen virtualization environment, the storage resource management service program runs in the privileged virtual machine VM0, which is used to manage idle I/O storage resources, and receive and process resource application and unload requests sent by user virtual machines, as follows It is called server program for short. The storage resource usage monitoring service program running in the user virtual machine is used to monitor the usage of I/O storage resources in the user virtual machine, make a resource application or uninstall decision based on this, and send the application to the server program running in VM0 , hereinafter referred to as the monitor program.

本发明提供的在虚拟化环境中I/O设备重构系统如图2所示,包括特权虚拟机VM0和用户虚拟机VM1,VM0中的server(服务器)程序和VM1中的moniter(监控程序)之间进行通信,可以实现I/O资源的申请请求及应答,I/O资源卸载请求和应答,以及I/O资源的热插拔。The I/O device reconfiguration system provided by the present invention is as shown in Figure 2 in the virtualization environment, including privileged virtual machine VM0 and user virtual machine VM1, server (server) program in VM0 and moniter (monitoring program) in VM1 The communication between them can realize the application request and response of I/O resources, the unloading request and response of I/O resources, and the hot swap of I/O resources.

图3给出了一个实施例。假设此时用户虚拟机VM1正在运行,其空闲存储资源为1.5G,系统设置的空闲资源临界值为不小于1G,同时不大于5G。虚拟I/O设备的重构过程如下:Figure 3 shows an example. Assuming that the user virtual machine VM1 is running at this time, its idle storage resource is 1.5G, and the threshold value of the idle resource set by the system is not less than 1G and not greater than 5G. The reconstruction process of the virtual I/O device is as follows:

步骤201,用户在某个时刻发现了一个好的电影下载站点,其中多个电影都是用户想要下载的,其总的大小约为9G。随后用户开始下载电影,空闲存储资源随之迅速减少。In step 201, the user finds a good movie download site at a certain moment, in which multiple movies are what the user wants to download, and the total size is about 9G. Users then start downloading movies, and the free storage resource dwindles rapidly.

步骤202,当空闲存储资源小于1G时,VM1中运行的monitor程序发现了空闲资源的不足,同时因为空闲存储资源在短时间内迅速减少,判断后面用户需要大量存储资源的可能性很大。因此,monitor程序向VM0中运行的server程序发出了容量为10G的存储资源的分配申请。Step 202, when the free storage resources are less than 1G, the monitor program running in VM1 finds the lack of free resources, and because the free storage resources decrease rapidly in a short period of time, it is judged that there is a high possibility that the user will need a large amount of storage resources. Therefore, the monitor program sends an application for allocation of storage resources with a capacity of 10G to the server program running in VM0.

步骤203,VM0中运行的server程序接到VM1中运行的monitor程序发出的存储资源申请后,检查空闲的存储资源,发现空闲资源的容量大于10G,可以满足用户虚拟机VM1的需求。Step 203, after the server program running in VM0 receives the storage resource application from the monitor program running in VM1, it checks the idle storage resources and finds that the capacity of the idle resources is greater than 10G, which can meet the needs of the user virtual machine VM1.

步骤204,Server程序从空闲存储资源中取出10G容量的资源,热插入到用户虚拟机VM1中。然后,向VM1中运行的monitor程序发出资源已分配的应答。In step 204, the server program takes resources with a capacity of 10G from idle storage resources and hot inserts them into the user virtual machine VM1. Then, send a response that the resources have been allocated to the monitor program running in VM1.

步骤205,用户虚拟机VM1中运行的monitor程序接收到资源已分配的应答后,检查新插入的I/O资源的信息。In step 205, the monitor program running in the user virtual machine VM1 checks the information of the newly inserted I/O resource after receiving the response that the resource has been allocated.

步骤206,随后,monitor程序对新插入的I/O存储资源进行初始化,并在其上部署文件系统。Step 206, subsequently, the monitor program initializes the newly inserted I/O storage resource, and deploys a file system on it.

步骤207,然后,monitor程序将新插入的I/O存储资源安装到用户虚拟机的根文件系统中,用户就可以使用新的存储资源了。这时,空闲的存储资源变为10G加上现在用户虚拟机剩余的存储空间。需要注意的是,在设备重构的同时,用户虚拟机VM1仍然在下载电影,并不需要暂停用户的操作。假设重构完成时用户虚拟机中原来的空闲存储资源还有800M,那么现在用户虚拟机中总的空闲存储资源就变为10.8G,完全可以满足用户9G的电影下载需求。Step 207, then, the monitor program installs the newly inserted I/O storage resource into the root file system of the user's virtual machine, and the user can use the new storage resource. At this time, the free storage resource becomes 10G plus the remaining storage space of the current user virtual machine. It should be noted that while the device is being reconfigured, the user virtual machine VM1 is still downloading the movie, and there is no need to suspend the user's operation. Assuming that the original free storage resources in the user virtual machine still have 800M when the reconstruction is completed, the total free storage resources in the user virtual machine now become 10.8G, which can fully meet the user's 9G movie download demand.

步骤208,当用户下载完大小为9G的电影后,用户虚拟机VM1中空闲的存储资源为2.5G。Step 208, after the user finishes downloading the movie with a size of 9G, the idle storage resource in the user virtual machine VM1 is 2.5G.

步骤209,当用户欣赏完下载的电源后,他将下载的电影删除,此时用户虚拟机VM1中的空闲存储资源增加为11.5G。Step 209, after the user enjoys the downloaded movie, he deletes the downloaded movie, and at this time, the free storage resource in the user's virtual machine VM1 increases to 11.5G.

步骤210,VM1中运行的monitor程序监测到这一变化,启动资源卸载过程。Step 210, the monitor program running in VM1 detects this change, and starts the resource unloading process.

步骤211,首先monitor程序将新插入的10G存储资源从用户虚拟机VM1中的根文件系统中卸载。这时VM1中的空闲存储资源变为1.5G。Step 211, first, the monitor program unloads the newly inserted 10G storage resource from the root file system in the user virtual machine VM1. At this time, the free storage resource in VM1 becomes 1.5G.

步骤212,然后,monitor程序将卸载的存储资源从用户虚拟机VM1中的剥离,修改VM1的文件系统和I/O设备的相应信息(此处的相应信息是指:文件系统中和设备属性中与要卸载的存储资源相关的那部分信息)。Step 212, then, the monitor program strips the unloaded storage resource from the user virtual machine VM1, and modifies the corresponding information of the file system and I/O device of VM1 (the corresponding information here refers to: in the file system and in the device attribute the portion of the information that pertains to the storage resource being unmounted).

步骤213,最后,monitor程序向VM0中运行的server程序发出虚拟I/O设备资源卸载通知。Step 213, finally, the monitor program sends a virtual I/O device resource unloading notification to the server program running in VMO.

步骤214,VM0中运行的server程序接收到用户虚拟机VM1中运行的monitor程序发出的虚拟I/O资源卸载通知和其相关信息后,从VM1中热拔出对应的虚拟I/O存储资源,并把其重新添加入空闲的存储资源中。Step 214, after the server program running in VM0 receives the virtual I/O resource offload notification and related information sent by the monitor program running in the user virtual machine VM1, it hot-plugs the corresponding virtual I/O storage resource from VM1, And add it back to the free storage resource.

在整个过程中,用户虚拟机中运行的monitor程序根据用户虚拟机中空闲I/O存储资源的变化作出资源的申请和卸载决定,并与VM0中运行的server程序共同配合,通过对虚拟I/O设备的热插拔,来动态改变虚拟I/O设备的容量,从而做到既能实时满足用户的需求,同时又能使得I/O存储资源得到高效使用,同时又不增加系统管理员的工作量和系统运行成本。During the whole process, the monitor program running in the user virtual machine makes resource application and unloading decisions according to the changes of idle I/O storage resources in the user virtual machine, and cooperates with the server program running in VM0 to pass the virtual I/O The hot swapping of O devices can dynamically change the capacity of virtual I/O devices, so as to meet the needs of users in real time, and at the same time enable efficient use of I/O storage resources without increasing the workload of system administrators. workload and system operating costs.

本发明对用户透明,用户并不需要参与资源的申请和分配的过程;用户会发现,当存储资源不足时,系统会自动的为他多分配存储资源;而当用户虚拟机的空闲存储资源过多时,系统会自动卸载部分存储资源;而用户在享受这一服务的同时,并不需要高深的计算机专业的知识;根据用户对存储资源的使用状况自动作出存储资源的调整,这样既能满足用户的需求,又避免了存储资源的大量浪费的情况的出现;整个存储资源的插入和回收过程自动完成,对用户的需求变化反应迅速,给用户以高质量的服务;可以自动完成,减少了系统管理员的工作负担,降低了系统的服务成本。The present invention is transparent to the user, and the user does not need to participate in the process of resource application and allocation; the user will find that when the storage resources are insufficient, the system will automatically allocate more storage resources for him; For a long time, the system will automatically unload some storage resources; while users enjoy this service, they do not need advanced computer professional knowledge; automatically adjust storage resources according to the user's usage of storage resources, which can satisfy users. requirements, and avoid the occurrence of a large amount of waste of storage resources; the insertion and recovery process of the entire storage resource is automatically completed, responding quickly to changes in user needs, and providing users with high-quality services; it can be completed automatically, reducing system The workload of administrators reduces the service cost of the system.

本领域的技术人员在不脱离权利要求书确定的本发明的精神和范围的条件下,还可以对以上内容进行各种各样的修改。因此本发明的范围并不仅限于以上的说明,而是由权利要求书的范围来确定的。Various modifications can be made to the above contents by those skilled in the art without departing from the spirit and scope of the present invention defined by the claims. Therefore, the scope of the present invention is not limited to the above description, but is determined by the scope of the claims.

Claims (26)

  1. One kind when the idle storage resources of I/O during less than critical value in virtualized environment the method for I/O equipment reconstruction, described virtualized environment is the Xen virtualized environment, it is characterized in that, comprising:
    Step 1, user virtual machine detect user's the idle storage resources of I/O less than critical value, then send the request of application I/O storage resources to franchise virtual machine, wherein comprise the quantity of application I/O storage resources;
    Step 2, franchise virtual machine are taken out the corresponding number of I/O storage resources of user virtual machine application and are distributed to user virtual machine from the I/O storage resources of free time;
    Step 3, user virtual machine is carried out initialization to corresponding number of I/O storage resources, and the deployment file system is installed to then in the root file system of user virtual machine and uses for the user.
  2. 2. as claimed in claim 1 in virtualized environment the method for I/O equipment reconstruction, it is characterized in that in the step 1, user virtual machine is according to the spending rate decision of its idle I/O storage resources quantity to franchise virtual machine application I/O storage resources.
  3. 3. as claimed in claim 1 in virtualized environment the method for I/O equipment reconstruction, it is characterized in that, in the step 1, storage resources behaviour in service Monitoring Service program is installed in user virtual machine, be used to detect the quantity of user's the idle storage resources of I/O, and send the request of application I/O storage resources to franchise virtual machine during less than critical value at the idle storage resources of the I/O that detects the user;
    In the step 3, storage resources behaviour in service Monitoring Service program also is used for corresponding number of I/O storage resources is carried out initialization, and the deployment file system is installed to then in the root file system of user virtual machine and uses for the user.
  4. 4. as claimed in claim 1 in virtualized environment the method for I/O equipment reconstruction, it is characterized in that in the step 2, franchise virtual machine inserts corresponding number of I/O storage resources heat in the user virtual machine, and the notice user virtual machine.
  5. 5. as claimed in claim 1 in virtualized environment the method for I/O equipment reconstruction, it is characterized in that, in the step 2, the Storage Resource Management (SRM) service routine is installed in franchise virtual machine, and the corresponding number of I/O storage resources that is used for taking out from the I/O storage resources of free time the user virtual machine application is distributed to user virtual machine.
  6. 6. as claimed in claim 5 in virtualized environment the method for I/O equipment reconstruction, it is characterized in that in the step 2, the Storage Resource Management (SRM) service routine also is used for this resource hot plug to user virtual machine, and the notice user virtual machine.
  7. One kind when the idle storage resources of I/O during greater than critical value in virtualized environment the method for I/O equipment reconstruction, described virtualized environment is the Xen virtualized environment, it is characterized in that, comprising:
    Step 1, user virtual machine detects user's the idle storage resources of I/O greater than critical value, then user virtual machine unloads the idle storage resources of I/O of specific quantity, and sends the request of unloading I/O storage resources to franchise virtual machine, wherein comprises the specific quantity of the I/O storage resources of needs unloading;
    Step 2, franchise virtual machine reclaims the idle storage resources of the I/O of specific quantity.
  8. 8. as claimed in claim 7 in virtualized environment the method for I/O equipment reconstruction, it is characterized in that, in the step 1, user virtual machine is revised the root file system of user virtual machine and the corresponding information of I/O equipment behind the idle storage resources of the I/O of unloading specific quantity.
  9. 9. as claimed in claim 7 in virtualized environment the method for I/O equipment reconstruction, it is characterized in that, in the step 2, the hot drawing from user virtual machine of franchise virtual machine goes out the idle storage resources of I/O of specific quantity, and it is added in the idle I/O storage resources again.
  10. 10. as claimed in claim 7 in virtualized environment the method for I/O equipment reconstruction, it is characterized in that, in the step 1, storage resources behaviour in service Monitoring Service program is installed in user virtual machine, be used to detect the quantity of user's the idle storage resources of I/O, and at the idle storage resources of the I/O that detects the user during greater than critical value, the idle storage resources of the I/O of unloading specific quantity also sends the request of unloading I/O storage resources to franchise virtual machine.
  11. 11. as claimed in claim 10 in virtualized environment the method for I/O equipment reconstruction, it is characterized in that, in the step 1, storage resources behaviour in service Monitoring Service program, also be used for behind the idle storage resources of the I/O of unloading specific quantity, revising the root file system of user virtual machine and the corresponding information of I/O equipment.
  12. 12. as claimed in claim 7 in virtualized environment the method for I/O equipment reconstruction, it is characterized in that, in the step 2, the Storage Resource Management (SRM) service routine is installed in franchise virtual machine, be used for the idle storage resources of the I/O of specific quantity is reclaimed.
  13. 13. as claimed in claim 12 in virtualized environment the method for I/O equipment reconstruction, it is characterized in that, in the step 2, the Storage Resource Management (SRM) service routine, also be used for going out the idle storage resources of I/O of specific quantity, and it is added in the idle I/O storage resources again from the user virtual machine hot drawing.
  14. 14. one kind when the idle storage resources of I/O during less than critical value in virtualized environment the system of I/O equipment reconstruction, described virtualized environment is the Xen virtualized environment, comprises user virtual machine and franchise virtual machine, it is characterized in that,
    User virtual machine, the idle storage resources of I/O that is used to detect the user are sent the request of application I/O storage resources to franchise virtual machine during less than critical value, wherein comprise the quantity of application I/O storage resources;
    The privilege virtual machine, the corresponding number of I/O storage resources that is used for taking out from the I/O storage resources of free time the user virtual machine application is distributed to user virtual machine;
    User virtual machine also is used for corresponding number of I/O storage resources is carried out initialization, and the deployment file system is installed to then in the root file system of user virtual machine and uses for the user.
  15. 15. as claimed in claim 14 in virtualized environment the system of I/O equipment reconstruction, it is characterized in that user virtual machine also is used for according to the spending rate decision of its idle I/O storage resources quantity to franchise virtual machine application I/O storage resources.
  16. 16. as claimed in claim 14 in virtualized environment the system of I/O equipment reconstruction, it is characterized in that, comprise storage resources behaviour in service Monitoring Service program in the user virtual machine;
    Storage resources behaviour in service Monitoring Service program is used to detect the quantity of user's the idle storage resources of I/O, and sends application I/O storage resources request to franchise virtual machine at the idle storage resources of the I/O that detects the user during less than critical value;
    Storage resources behaviour in service Monitoring Service program also is used for corresponding number of I/O storage resources is carried out initialization, and the deployment file system is installed to then in the root file system of user virtual machine and uses for the user.
  17. 17. as claimed in claim 14 in virtualized environment the system of I/O equipment reconstruction, it is characterized in that franchise virtual machine also is used for corresponding number of I/O storage resources heat is inserted user virtual machine, and the notice user virtual machine.
  18. 18. as claimed in claim 14 in virtualized environment the system of I/O equipment reconstruction, it is characterized in that, comprise the Storage Resource Management (SRM) service routine in the franchise virtual machine;
    The Storage Resource Management (SRM) service routine, the corresponding number of I/O storage resources that is used for taking out from the I/O storage resources of free time the user virtual machine application is distributed to user virtual machine.
  19. 19. as claimed in claim 18 in virtualized environment the system of I/O equipment reconstruction, it is characterized in that the Storage Resource Management (SRM) service routine also is used for this resource hot plug to user virtual machine, and the notice user virtual machine.
  20. 20. one kind when the idle storage resources of I/O during greater than critical value in virtualized environment the system of I/O equipment reconstruction, described virtualized environment is the Xen virtualized environment, comprises user virtual machine and franchise virtual machine, it is characterized in that,
    User virtual machine, the idle storage resources of I/O that is used to detect the user is during greater than critical value, then user virtual machine unloads the idle storage resources of I/O of specific quantity, and sends the request of unloading I/O storage resources to franchise virtual machine, wherein comprises the specific quantity of the I/O storage resources of needs unloading;
    The privilege virtual machine is used for the idle storage resources of the I/O of specific quantity is reclaimed.
  21. 21. as claimed in claim 20 in virtualized environment the system of I/O equipment reconstruction, it is characterized in that, user virtual machine also is used for revising the root file system of user virtual machine and the corresponding information of I/O equipment behind the idle storage resources of the I/O of unloading specific quantity.
  22. 22. as claimed in claim 20 in virtualized environment the system of I/O equipment reconstruction, it is characterized in that, the privilege virtual machine also is used for going out from the user virtual machine hot drawing the idle storage resources of I/O of specific quantity, and it is added in the idle I/O storage resources again.
  23. 23. as claimed in claim 20 in virtualized environment the system of I/O equipment reconstruction, it is characterized in that, comprise storage resources behaviour in service Monitoring Service program in the user virtual machine;
    Storage resources behaviour in service Monitoring Service program, be used to detect the quantity of user's the idle storage resources of I/O, and at the idle storage resources of the I/O that detects the user during greater than critical value, the idle storage resources of the I/O of unloading specific quantity also sends the request of unloading I/O storage resources to franchise virtual machine.
  24. 24. as claimed in claim 23 in virtualized environment the system of I/O equipment reconstruction, it is characterized in that, storage resources behaviour in service Monitoring Service program, also be used for behind the idle storage resources of the I/O of unloading specific quantity, revising the root file system of user virtual machine and the corresponding information of I/O equipment.
  25. 25. as claimed in claim 20 in virtualized environment the system of I/O equipment reconstruction, it is characterized in that, comprise the Storage Resource Management (SRM) service routine in the franchise virtual machine;
    The Storage Resource Management (SRM) service routine is used for the idle storage resources of the I/O of specific quantity is reclaimed.
  26. 26. as claimed in claim 25 in virtualized environment the system of I/O equipment reconstruction, it is characterized in that, the Storage Resource Management (SRM) service routine also is used for going out from the user virtual machine hot drawing the idle storage resources of I/O of specific quantity, and it is added in the idle I/O storage resources again.
CN2008102397392A 2008-12-16 2008-12-16 I/O equipment reconstruction method and system in virtualization surroundings Active CN101430670B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008102397392A CN101430670B (en) 2008-12-16 2008-12-16 I/O equipment reconstruction method and system in virtualization surroundings

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008102397392A CN101430670B (en) 2008-12-16 2008-12-16 I/O equipment reconstruction method and system in virtualization surroundings

Publications (2)

Publication Number Publication Date
CN101430670A CN101430670A (en) 2009-05-13
CN101430670B true CN101430670B (en) 2010-06-23

Family

ID=40646076

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008102397392A Active CN101430670B (en) 2008-12-16 2008-12-16 I/O equipment reconstruction method and system in virtualization surroundings

Country Status (1)

Country Link
CN (1) CN101430670B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10310880B2 (en) 2014-11-25 2019-06-04 Red Hat, Inc. Hot-swapping storage pool backend functional modules

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101639814B (en) * 2009-08-31 2011-11-16 中国科学院计算技术研究所 Input-output system facing to multi-core platform and networking operation system and method thereof
CN101697147B (en) * 2009-09-29 2011-05-25 江俊逢 A kind of reconfigurable I/O chip
CN102541743B (en) * 2010-12-17 2015-12-16 伊姆西公司 For the method, apparatus and system of storage administration
CN102394903B (en) * 2011-07-14 2015-08-26 上海红神信息技术有限公司 A kind of active reconstruction calculating system constructing system
CN102902638B (en) * 2011-07-26 2015-04-22 北大方正集团有限公司 Hardware equipment control method and device
CN103095834B (en) * 2013-01-16 2015-09-16 中国科学院计算技术研究所 The online moving method of a kind of virtual machine across Visualized data centre
CN105279010B (en) * 2015-10-20 2018-09-21 华为技术有限公司 The hot replacement method of equipment based on virtual machine and device
CN107168793A (en) * 2017-05-10 2017-09-15 郑州云海信息技术有限公司 A kind of dynamic current method of virtual memory space
CN113010457B (en) * 2021-03-24 2024-07-05 北京百度网讯科技有限公司 Resource management method and device and mobile terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1162786A (en) * 1996-01-31 1997-10-22 株式会社东芝 Resource management method and apparatus for multitasking facility information processing system
WO2008017001A2 (en) * 2006-08-02 2008-02-07 Moka5, Inc. Sharing live appliances
CN101124551A (en) * 2004-06-30 2008-02-13 国际商业机器公司 Autonomically tuning the virtual memory subsystem of a computer operating system
US7398337B2 (en) * 2005-02-25 2008-07-08 International Business Machines Corporation Association of host translations that are associated to an access control level on a PCI bridge that supports virtualization

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1162786A (en) * 1996-01-31 1997-10-22 株式会社东芝 Resource management method and apparatus for multitasking facility information processing system
CN101124551A (en) * 2004-06-30 2008-02-13 国际商业机器公司 Autonomically tuning the virtual memory subsystem of a computer operating system
US7398337B2 (en) * 2005-02-25 2008-07-08 International Business Machines Corporation Association of host translations that are associated to an access control level on a PCI bridge that supports virtualization
WO2008017001A2 (en) * 2006-08-02 2008-02-07 Moka5, Inc. Sharing live appliances

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10310880B2 (en) 2014-11-25 2019-06-04 Red Hat, Inc. Hot-swapping storage pool backend functional modules
US11347532B2 (en) 2014-11-25 2022-05-31 Red Hat, Inc. Hot-swapping storage pool backend functional modules

Also Published As

Publication number Publication date
CN101430670A (en) 2009-05-13

Similar Documents

Publication Publication Date Title
CN101430670B (en) I/O equipment reconstruction method and system in virtualization surroundings
US11181970B2 (en) System and method for performing distributed power management without power cycling hosts
US10162658B2 (en) Virtual processor allocation techniques
EP2021939B1 (en) Converting machines to virtual machines
US8832687B2 (en) Managing quotas in a distributed virtualization environment
US9317314B2 (en) Techniques for migrating a virtual machine using shared storage
CN113312142B (en) Virtualized processing system, method, device and equipment
JP5510556B2 (en) Method and system for managing virtual machine storage space and physical hosts
US8280431B2 (en) Apparatus for end-user transparent utilization of computational, storage, and network capacity of mobile devices, and associated methods
US8381002B2 (en) Transparently increasing power savings in a power management environment
US9176764B1 (en) Managing memory in virtualized environments
CN117480494A (en) Coordinated container scheduling to improve resource allocation in virtual computing environments
US8661448B2 (en) Logical partition load manager and balancer
CN103176845B (en) A virtual machine deployment method, system and device
KR20210095690A (en) Resource management method and apparatus, electronic device and recording medium
US10474484B2 (en) Offline management of virtualization software installed on a host computer
CN110098946A (en) Virtualize the dispositions method and device of network element device
KR20070100367A (en) Methods, devices, and systems for dynamically reallocating memory from one virtual machine to another
CN101765225A (en) Virtual cluster management system and cluster node
US20110145555A1 (en) Controlling Power Management Policies on a Per Partition Basis in a Virtualized Environment
US20210232419A1 (en) Canary process for graceful workload eviction
CN106815067A (en) The online moving method of virtual machine, device with I/O virtualizations
US11057263B2 (en) Methods and subsystems that efficiently distribute VM images in distributed computing systems
CN115309504A (en) A cloud platform virtual machine memory shrinking method, device and storage medium
CN117280325A (en) System and method for dynamically partitioning computers at runtime

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
ASS Succession or assignment of patent right

Owner name: HUAWEI TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: INSTITUTE OF COMPUTING TECHNOLOGY, CHINESE ACADEMY OF SCIENCES

Effective date: 20130530

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 100080 HAIDIAN, BEIJING TO: 518129 SHENZHEN, GUANGDONG PROVINCE

TR01 Transfer of patent right

Effective date of registration: 20130530

Address after: 518129 Bantian HUAWEI headquarters office building, Longgang District, Shenzhen

Patentee after: Huawei Technologies Co., Ltd.

Address before: 100080 Haidian District, Zhongguancun Academy of Sciences, South Road, No. 6, No.

Patentee before: Institute of Computing Technology, Chinese Academy of Sciences