A storage device, such as a disk drive or a storage array, may handle read and allocation requests from a host computing device to which the storage device provides service. For a read request, the storage device may retrieve data stored in the storage device and transmit the data to the host computing device. For an allocation request, the storage device may store data received from the host computing device.
Some examples of the present application are described with respect to the following figures:
For a write request, a storage device may store data received from a host computing device. The storage device may allocate a particular portion of storage space as indicated by the allocation request to store data in the allocation request. However, when the allocation request goes through a data deduplication operation or a data compression operation, the amount of data in the allocation request may be reduced as duplicates are removed. Thus, the storage device has over-allocated storage space for the write request. The storage device may deallocate the extra storage space. Thus, an efficiency associated with allocating storage space for an allocation request may be reduced.
Examples described herein provide a storage device to allocate storage space using a reservation table and an allocation table. For example, a storage device may receive an allocation request from a host computing device. The storage device may reserve a portion of storage space via a reservation table based on the allocation request. The storage device may determine a type of the allocation request. When the type of the allocation request corresponds to a non-space-optimized allocation request, the storage device may commit the reserved storage space. When the type of the allocation request corresponds to a space-optimized allocation request, the storage device may release the portion of storage space via the reservation table. The storage device may allocate a portion of storage space as indicated by the space-optimized allocation request. In this manner, examples described herein may increase an efficiency associated with allocating storage space for an allocation request.
Referring now to the figures,
Controller 102 may be a central processing unit (CPU), a semiconductor-based microcontroller, and/or other hardware devices suitable for retrieval and execution of instructions stored in computer-readable storage medium 104. Controller 102 may fetch, decode, and execute instructions to control a process of allocating storage space for an allocation request. As an alternative or in addition to retrieving and executing instructions, controller 102 may include at least one electronic circuit that includes electronic components to perform the process of allocating space for an allocation request.
Computer-readable storage medium 104 may be any electronic, magnetic, optical, or other physical storage device that contains or stores executable instructions and/or data. Thus, computer-readable storage medium 104 may be, for example, Random Access Memory (RAM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic disc, etc. In some examples, computer-readable storage medium 204 may be a non-transitory storage medium, where the term “non-transitory” does not encompass transitory propagating signals.
During operation, a host computing device 106 may transmit an allocation request 108 to storage device 100 for storage. Host computing device 106, for example, may be a laptop computer, a smartphone, a tablet computer, a server computer, a desktop computer, or any electronic device suitable to generate data for storage. Allocation request 108 may be a command or an instruction from host computing device 106 to store data. Allocation request 108 may include a particular amount of data to be stored in storage device 100. In some examples, allocation request 108 may correspond to a write request.
In response to receiving allocation request 108, controller 102 may reserve a first portion of storage space in computer-readable storage medium 104 using a reservation table 110. The first portion of storage space may match an initial allocation size of allocation request 108. The initial allocation size may indicate an amount or data in allocation request 108 for storage. Reservation table 110 may be a data structure to indicate the availability of storage space in storage medium. An example of reservation table 110 is described in more detail with reference to
Controller 102 may determine a type of allocation request 108 via a data deduplication operation or a data compression operation. The type of allocation request 108 may include a space-optimized allocation request and a non-space-optimized allocation request. For example, controller 102 may perform a data deduplication operation on allocation request 108. During the data deduplication operation, controller 102 may remove duplicate data chunks (i.e., data chunks already stored in computer-readable storage medium 104) from allocation request 108. Controller 102 may determine a computed allocation size of allocation request 108 via the data deduplication operation. The computed allocation size may indicate the actual amount of data in allocation request 108 for storage after allocation request 108 has been processed by a data deduplication operation or a data compression operation.
When the computed allocation size matches the initial allocation size, allocation request 108 may be a non-space-optimized allocation request since controller 102 is not able to compress or deduplicate the data in allocation request 108 for storage. For example, when any data chunk of the data in allocation request 108 is not a redundant copy of another data chunk stored in computer-readable storage medium 104, controller 102 may not be able to reduce the amount of data in allocation request 108 for storage. When the computed allocation size is less than the initial allocation size, allocation request 108 may be a space-optimized allocation request since controller 102 is able to compress or deduplicate the data in allocation request 108 for storage.
When allocation request 108 is a non-space-optimized allocation request, controller 102 may commit the reserved first portion of storage space in reservation table 110 by allocating the first portion of storage space via an allocation table 112. Allocation table 112 may be a data structure containing allocation information of storage space in computer-readable storage medium 104. An example of allocation table 112 is described in more detail with reference to
When allocation request 108 is a space-optimized allocation request, controller 102 may allocate a second portion of storage space via allocation table 112. The second portion of storage space may match the computed allocation size and may be less than the first portion of storage space. Further, controller 102 may release the reserved first portion of storage space via reservation table 110. For example, controller 102 may release the reserved first portion of storage space by changing the reservation status of the first portion of storage space from reserved to available. Thus, the first portion of storage space may become available for reservation for other allocation requests. In some examples, controller may release the reserved first portion of storage space after the second portion of storage space is allocated.
In some examples, controller 102 may allocate the second portion of storage space independent of a prior corresponding reservation in reservation table 110. That is, controller 102 may allocate the second portion of storage space without reserving the second portion of storage space prior to the allocation of the second portion of storage space. The second portion of storage space may be marked as reserved in reservation table 110 after the second portion of storage space is allocated.
In some examples, when allocation request 108 is a space-optimized allocation request, controller 102 may reserve the second portion of storage space after releasing the first portion of storage space. Controller 102 may commit the reserved second portion of storage space based on the computed allocation size.
Thus, by using reservation table 110 and allocation table 112, controller 102 may secure enough storage space to satisfy an allocation request, such as allocation request 108, and avoid over-allocating storage space for the allocation request. An efficiency associated with allocating storage space for an allocation request may be increased.
Allocation request reception instructions 206 may receive an allocation request, such as allocation request 108 in
Allocation size determination instructions 212 may determine a computed allocation size of the allocation request based on a data deduplication operation or a data compression operation. When the computed allocation size matches the initial allocation size, storage space allocation instructions 214 may commit the portion of storage space reserved in the reservation table by allocating the portion of storage space in an allocation table. When the computed allocation size mismatches the initial allocation size, for example, the computed allocation size is less than the initial allocation size, storage space allocation instructions 214 may release the portion of storage space reserved via the reservation table and allocate another portion of storage space in the allocation table that matches the computed allocation size.
Row 302 may indicate a reservation status of Block 1, row 304 may indicate a reservation status of Block 2, and row 306 may indicate a reservation status of Block 3. As shown in
As shown in
Method 400 further includes determining a computed allocation size based on the allocation request, at 406. For example, referring to
When the computed allocation size is less than the initial allocation size, method 400 further includes allocating a second portion of storage space via the allocation table, wherein the second portion is less than the first portion, at 410. For example, referring to
Method 500 also includes reserving storage space, at 504. For example, referring to
When the allocation request is a non-space-optimized allocation request, method 500 further includes committing the storage space reservation, at 508. For example, referring to
When the allocation request is a space-optimized allocation request, method 500 further includes allocating storage space based on a computed allocation size, at 510. For example, referring to
According to the foregoing, examples disclosed herein provide a storage device to allocate storage space for an allocation request via a reservation table and an allocation table. Based on an initial allocation size of an allocation request, a storage device may reserve a first portion of storage space via a reservation table. The storage device may determine a type of the allocation request. When the allocation request is a non-space-optimized allocation request, the storage device may commit the storage space reservation by allocating the first portion of storage space via an allocation table. When the allocation request is a space-optimized allocation request, the storage device may release the storage space reservation and allocate a second portion of storage space that is less than the first portion of storage space. The second portion of storage space indicate an actual allocation size of the allocation request determined via a data deduplication operation or a data compression operation. Thus, over-allocation of storage space may be avoided and an efficiency associated with allocating storage space for an allocation request may be increased.
The use of “comprising”, “including” or “having” are synonymous and variations thereof herein are meant to be inclusive or open-ended and do not exclude additional unrecited elements or method steps.
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/US2014/057463 | 9/25/2014 | WO | 00 |
Publishing Document | Publishing Date | Country | Kind |
---|---|---|---|
WO2016/048325 | 3/31/2016 | WO | A |
Number | Name | Date | Kind |
---|---|---|---|
6175900 | Forin et al. | Jan 2001 | B1 |
6473775 | Kusters et al. | Oct 2002 | B1 |
7290013 | Doucette et al. | Oct 2007 | B2 |
8166136 | Tanimura | Apr 2012 | B2 |
9483356 | Lord | Nov 2016 | B2 |
20050180430 | Kawaguchi | Aug 2005 | A1 |
20080183777 | Xi et al. | Jul 2008 | A1 |
20080195719 | Wu | Aug 2008 | A1 |
20100169454 | Tanimura | Jul 2010 | A1 |
20100287216 | Ylonen | Nov 2010 | A1 |
20110167033 | Strelitz | Jul 2011 | A1 |
20110167034 | Knight | Jul 2011 | A1 |
20120233438 | Bak et al. | Sep 2012 | A1 |
20130080481 | Zhou et al. | Mar 2013 | A1 |
20130290276 | Chambliss et al. | Oct 2013 | A1 |
20140258671 | Lord | Sep 2014 | A1 |
20150089132 | Madhusudana | Mar 2015 | A1 |
20170046352 | Lord | Feb 2017 | A1 |
Number | Date | Country |
---|---|---|
1619585 | Jan 2006 | EP |
Entry |
---|
Bonwick, J., “Space Maps,” (Web Page), Oracle, Sep. 13, 2007, 4 pages, available at https://blogs.oracle.com/bonwick/en/entry/space_maps. |
International Search Report & Written Opinion received in PCT Application No. PCT/US2014/057463, dated May 29, 2015, 12 pages. |
Number | Date | Country | |
---|---|---|---|
20170308315 A1 | Oct 2017 | US |