# US 2013/0212593 A1 · Controlled Growth in Virtual Disks

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2013/0212593 A1
- Document ID: US20130212593A1
- Status: Published application
- Kind: A1
- Application number: 13/370,628
- Filed: 2012-02-10
- Published: 2013-08-15
- Earliest claimed: 2012-02-10
- Assignees: International Business Machines Corporation
- Inventors: Salman A. Baset; Hai Huang; Chunqiang Tang
- Web page: https://patentgrep.com/patent/US20130212593A1

## CPC

- G06F 9/50: Allocation of resources, e.g. of the central processing unit [CPU]
- G06F 9/45533: {Hypervisors; Virtual machine monitors}
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 9/5077: {Logical partitioning of resources; Management or configuration of virtualized resources (specific details on emulation or internal functioning of virtual machines G06F9/455)}
- G06F 2009/45579: {I/O management, e.g. providing access to device drivers or storage}
- G06F 2209/504: Resource capping
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

A method, an apparatus and an article of manufacture for controlling growth in virtual disk size. The method includes limiting a guest virtual machine file in a hypervisor from allocating a new disk block as allocated space, wherein a virtual disk on a virtual machine is mapped to the guest virtual machine file, and facilitating the virtual disk to reuse a previously allocated and freed disk block for the allocated space to control growth in virtual disk size.

## Claims

### Claim 1

A method for controlling growth in virtual disk size, wherein the method comprises:
limiting a guest virtual machine file in a hypervisor from allocating a new disk block as allocated space, wherein a virtual disk on a virtual machine is mapped to the guest virtual machine file; and
facilitating the virtual disk to reuse a previously allocated and freed disk block for the allocated space to control growth in virtual disk size;
wherein at least one of the steps is carried out by a computer device.

### Claim 2 (depends on 1)

The method of claim 1, wherein facilitating the virtual disk to reuse a previously allocated and freed disk block for the allocated space comprises modifying the guest virtual machine file to sequentially allocate disk blocks and reuse deleted disk blocks.

### Claim 3 (depends on 2)

The method of claim 2, wherein modifying the guest virtual machine file to sequentially allocate disk blocks and reuse deleted disk blocks comprises prioritizing free blocks that were previously used for allocation.

### Claim 4 (depends on 1)

The method of claim 1, wherein facilitating the virtual disk to reuse a previously allocated and freed disk block for the allocated space comprises implementing a virtual disk ballooning driver that causes the guest virtual machine file to reuse a deleted disk block.

### Claim 5 (depends on 4)

The method of claim 4, wherein the virtual disk ballooning driver runs inside of the virtual machine.

### Claim 6 (depends on 4)

The method of claim 4, wherein the virtual disk ballooning driver reserves all unused disk space on the virtual disk.

### Claim 7 (depends on 6)

The method of claim 6, wherein the reserved unused disk space is released when the guest virtual machine file approaches a status of running out of space.

### Claim 8 (depends on 7)

The method of claim 7, further comprising:
checking the virtual disk ballooning driver when a new block is requested and the virtual disk has no free blocks remaining; and
un-reserving the requested new block and providing the new block to the virtual disk if the virtual disk ballooning driver has free blocks.

### Claim 9 (depends on 4)

The method of claim 4, wherein the virtual disk ballooning driver is embodied as a kernel module.

### Claim 10 (depends on 1)

The method of claim 1, wherein controlling growth in virtual disk size better reflects actual disk usage in the guest virtual machine file.

### Claim 11

An article of manufacture comprising a computer readable storage medium having computer readable instructions tangibly embodied thereon which, when implemented, cause a computer to carry out a plurality of method steps comprising:
limiting a guest virtual machine file in a hypervisor from allocating a new disk block as allocated space, wherein a virtual disk on a virtual machine is mapped to the guest virtual machine file; and
facilitating the virtual disk to reuse a previously allocated and freed disk block for the allocated space to control growth in virtual disk size.

### Claim 12 (depends on 11)

The article of manufacture of claim 11, wherein facilitating the virtual disk to reuse a previously allocated and freed disk block for the allocated space comprises modifying the guest virtual machine file to sequentially allocate disk blocks and reuse deleted disk blocks.

### Claim 13 (depends on 12)

The article of manufacture of claim 12, wherein modifying the guest virtual machine file to sequentially allocate disk blocks and reuse deleted disk blocks comprises prioritizing free blocks that were previously used for allocation.

### Claim 14 (depends on 11)

The article of manufacture of claim 11, wherein facilitating the virtual disk to reuse a previously allocated and freed disk block for the allocated space comprises implementing a virtual disk ballooning driver that causes the guest virtual machine file to reuse a deleted disk block.

### Claim 15 (depends on 14)

The article of manufacture of claim 14, wherein the virtual disk ballooning driver reserves all unused disk space on the virtual disk.

### Claim 16 (depends on 15)

The article of manufacture of claim 15, wherein the reserved unused disk space is released when the guest virtual machine file approaches a status of running out of space.

### Claim 17 (depends on 16)

The article of manufacture of claim 16, wherein the computer readable instructions which, when implemented, further cause a computer to carry out a method step comprising:
checking the virtual disk ballooning driver when a new block is requested and the virtual disk has no free blocks remaining; and
un-reserving the requested new block and providing the new block to the virtual disk if the virtual disk ballooning driver has free blocks.

### Claim 18

A system for controlling growth in virtual disk size, comprising:
at least one distinct software module, each distinct software module being embodied on a tangible computer-readable medium;
a memory; and
at least one processor coupled to the memory and operative for:
limiting a guest virtual machine file in a hypervisor from allocating a new disk block as allocated space, wherein a virtual disk on a virtual machine is mapped to the guest virtual machine file; and
facilitating the virtual disk to reuse a previously allocated and freed disk block for the allocated space to control growth in virtual disk size.

### Claim 19 (depends on 18)

The system of claim 18, wherein the at least one processor coupled to the memory operative for facilitating the virtual disk to reuse a previously allocated and freed disk block for the allocated space is further operative for modifying the guest virtual machine file to sequentially allocate disk blocks and reuse deleted disk blocks.

### Claim 20 (depends on 19)

The system of claim 19, wherein the at least one processor coupled to the memory operative for modifying the guest virtual machine file to sequentially allocate disk blocks and reuse deleted disk blocks is further operative for prioritizing free blocks that were previously used for allocation.

### Claim 21 (depends on 18)

The system of claim 18, wherein the at least one processor coupled to the memory operative for facilitating the virtual disk to reuse a previously allocated and freed disk block for the allocated space is further operative for implementing a virtual disk ballooning driver that causes the guest virtual machine file to reuse a deleted disk block.

### Claim 22 (depends on 21)

The system of claim 21, wherein the virtual disk ballooning driver reserves all unused disk space on the virtual disk.

### Claim 23 (depends on 22)

The system of claim 22, wherein the reserved unused disk space is released when the guest virtual machine file approaches a status of running out of space.

### Claim 24 (depends on 23)

The system of claim 23, wherein the at least one processor coupled to the memory is further operative for:
checking the virtual disk ballooning driver when a new block is requested and the virtual disk has no free blocks remaining; and
un-reserving the requested new block and providing the new block to the virtual disk if the virtual disk ballooning driver has free blocks.
