Using history of unaligned writes to cache data and avoid read-modify-writes in a non-volatile storage device
First Claim
1. A method, comprising:
- receiving, at a storage device, a plurality of input/output (I/O) requests from a host, the plurality of I/O requests including read requests and write requests to be performed in a plurality of regions in a logical address space of the host; and
performing one or more operations for each region of the plurality of regions in the logical address space of the host, including;
determining whether the region, comprising a respective region of the plurality of regions in the logical address space of the host, has a history of unaligned write requests to the region in the logical address space of the host during a predetermined time period, wherein unaligned write requests are write requests not aligned with predefined page boundaries; and
in accordance with a determination that the region has a history of unaligned write requests to the region in the logical address space of the host during the predetermined time period;
determining one or more sub-regions of a plurality of sub-regions within the region that are accessed more than a predetermined threshold number of times during the predetermined time period; and
caching, from a storage medium of the storage device to a cache of the storage device, data from the determined one or more sub-regions.
3 Assignments
0 Petitions
Accused Products
Abstract
Systems, methods and/or devices are used to enable using history of unaligned writes to cache data and avoid read-modify-writes in a non-volatile storage device. In one aspect, the method includes (1) receiving a plurality of input/output (I/O) requests including read requests and write requests to be performed in a plurality of regions in a logical address space of a host, and (2) performing one or more operations for each region of the plurality of regions in the logical address space of the host, including (a) determining whether the region has a history of unaligned write requests during a predetermined time period, and (b) if so: (i) determining one or more sub-regions within the region that are accessed more than a predetermined threshold number of times during the predetermined time period, and (ii) caching data from the determined one or more sub-regions.
-
Citations
22 Claims
-
1. A method, comprising:
-
receiving, at a storage device, a plurality of input/output (I/O) requests from a host, the plurality of I/O requests including read requests and write requests to be performed in a plurality of regions in a logical address space of the host; and performing one or more operations for each region of the plurality of regions in the logical address space of the host, including; determining whether the region, comprising a respective region of the plurality of regions in the logical address space of the host, has a history of unaligned write requests to the region in the logical address space of the host during a predetermined time period, wherein unaligned write requests are write requests not aligned with predefined page boundaries; and in accordance with a determination that the region has a history of unaligned write requests to the region in the logical address space of the host during the predetermined time period; determining one or more sub-regions of a plurality of sub-regions within the region that are accessed more than a predetermined threshold number of times during the predetermined time period; and caching, from a storage medium of the storage device to a cache of the storage device, data from the determined one or more sub-regions. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
-
-
12. A storage device, comprising:
-
one or more processors; and memory storing one or more programs, which when executed by the one or more processors cause the storage device to; receive, at the storage device, a plurality of input/output (I/O) requests from a host, the plurality of I/O requests including read requests and write requests to be performed in a plurality of regions in a logical address space of the host; and perform one or more operations for each region of the plurality of regions in the logical address space of the host, including; determining whether the region, comprising a respective region of the plurality of regions in the logical address space of the host, has a history of unaligned write requests to the region in the logical address space of the host during a predetermined time period, wherein unaligned write requests are write requests not aligned with predefined page boundaries; and in accordance with a determination that the region has a history of unaligned write requests to the region in the logical address space of the host during the predetermined time period; determining one or more sub-regions of a plurality of sub-regions within the region that are accessed more than a predetermined threshold number of times during the predetermined time period; and caching, from a storage medium of the storage device to a cache of the storage device, data from the determined one or more sub-regions. - View Dependent Claims (13, 14, 15, 16)
-
-
17. A storage system, comprising:
-
a storage medium; one or more processors; and memory storing one or more programs, which when executed by the one or more processors cause the storage system to; receive, at a storage device, a plurality of input/output (I/O) requests from a host, the plurality of I/O requests including read requests and write requests to be performed in a plurality of regions in a logical address space of the host; and perform one or more operations for each region of the plurality of regions in the logical address space of the host, including; determining whether the region, comprising a respective region of the plurality of regions in the logical address space of the host, has a history of unaligned write requests to the region in the logical address space of the host during a predetermined time period, wherein unaligned write requests are write requests not aligned with predefined page boundaries; and in accordance with a determination that the region has a history of unaligned write requests to the region in the logical address space of the host during the predetermined time period; determining one or more sub-regions of a plurality of sub-regions within the region that are accessed more than a predetermined threshold number of times during the predetermined time period; and caching, from a storage medium of the storage device to a cache of the storage device, data from the determined one or more sub-regions.
-
-
18. A non-transitory computer readable storage medium, storing one or more programs configured for execution by one or more processors of a storage device, the one or more programs including instructions for:
-
receiving, at the storage device, a plurality of input/output (I/O) requests from a host, the plurality of I/O requests including read requests and write requests to be performed in a plurality of regions in a logical address space of the host; and performing one or more operations for each region of the plurality of regions in the logical address space of the host, including; determining whether the region, comprising a respective region of the plurality of regions in the logical address space of the host, has a history of unaligned write requests to the region in the logical address space of the host during a predetermined time period, wherein unaligned write requests are write requests not aligned with predefined page boundaries; and in accordance with a determination that the region has a history of unaligned write requests to the region in the logical address space of the host during the predetermined time period; determining one or more sub-regions of a plurality of sub-regions within the region that are accessed more than a predetermined threshold number of times during the predetermined time period; and caching, from a storage medium of the storage device to a cache of the storage device, data from the determined one or more sub-regions. - View Dependent Claims (19, 20, 21, 22)
-
Specification