# US 2018/0322062 A1 · Optimized record lookups

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

- Number: US 2018/0322062 A1
- Document ID: US20180322062A1
- Status: Published application
- Kind: A1
- Application number: 15/586,947
- Filed: 2017-05-04
- Published: 2018-11-08
- Earliest claimed: 2017-05-04
- Assignees: Hewlett Packard Enterprise Development LP
- Applicants: Hewlett Packard Enterprise Development LP
- Inventors: Glenn Watkins; Peter Madany; John M. Czerkowicz
- Web page: https://patentgrep.com/patent/US20180322062A1

## CPC

- G06F 12/0864: using pseudo-associative means, e.g. set-associative or hashing
- G06F 12/0804: with main memory updating (G06F12/0806 takes precedence)
- G06F 16/137: {Hash-based (content-based indexing of textual data G06F16/31)}
- G06F 2212/60: Details of cache memory
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

In some examples, a method can involve generating data object records representing data objects in storage and storing, on a device, a lookup index including a plurality of index buckets, each index bucket being associated with a set of storage units on the device and including a respective index filter for each respective one of the set of storage units, the set of storage units containing a respective portion of the data object records, wherein each respective index filter includes at least one lookup entry for each data object record in the respective one of the set of storage units. The method can also involve receiving a data object request, and performing a lookup operation including identifying an index bucket for the data object and determining whether any of the set of storage units associated with the index bucket contains a data object record corresponding to the data object.

## Claims

### Claim 1

A method comprising:
generating data object records representing data objects in a storage;
storing, at a storage devices, a lookup index comprising a plurality of index buckets, each index bucket being associated with a set of storage units on the storage device and comprising a respective index filter for each respective one of the set of storage units, the set of storage units containing a respective portion of the data object records, wherein each respective index filter comprises at least one lookup entry for each data object record in the respective one of the set of storage units;
receiving an input-output request associated with a data object; and
in response to the input-output request, performing a lookup operation for the data object on the lookup index, the lookup operation comprising:
identifying an index bucket in the lookup index for the data object; and
based on each respective index filter associated with the index bucket identified in the lookup index for the data object, determining whether any of the set of storage units associated with the index bucket contains a data object record corresponding to the data object.

### Claim 2 (depends on 1)

The method of claim 1, wherein the storage device comprises a solid-state drive (SSD) and the storage is associated with a second storage device comprising at least one of a solid-state drive, a hard-disk drive, or a redundant array of independent disks, and wherein the set of storage units comprises SSD pages.

### Claim 3 (depends on 1)

The method of claim 1, wherein the respective index filter comprises a cuckoo filter, wherein the data object records comprise object signatures corresponding to the data objects, and wherein the at least one lookup entry comprises at least a partial object signature associated with a corresponding data object record in the respective one of the set of storage units.

### Claim 4 (depends on 3)

The method of claim 3, wherein the object signatures and the at least the partial object signature are generated by applying one or more hash functions to the data objects, and wherein identifying the index bucket in the lookup index for the data object comprises:
hashing at least part of the data object to yield a hash value; and
using at least part of the hash value to identify an index bucket in the lookup index.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
storing, at a memory device, a copy of the respective index filter of each respective one of the set of storage units to yield a plurality of cached index filters, the plurality of cached index filters containing respective lookup entries associated with data object records contained in the set of storage units; and
wherein determining whether any of the set of storage units contains the data object record comprises determining whether the respective lookup entries match one or more hash values generated for the data object.

### Claim 6 (depends on 5)

The method of claim 5, wherein the input-output request comprises a read operation, and wherein identifying the index bucket for the data object is based on the one or more hash values generated for the data object, the method further comprising:
prior to determining whether any of the set of storage units associated with the index bucket contains the data object record, searching a staging area associated with the index bucket for the data object record, wherein the staging area comprises a queue of data object records selectable for copying to one of the set of storage units associated with the index bucket; and
when the searching fails to locate the data object record in the staging area, determining whether any of the set of storage units associated with the index bucket contains the data object record.

### Claim 7 (depends on 6)

The method of claim 6, further comprising:
based on the one or more hash values generated for the data object, identifying a particular storage unit in the index bucket having a threshold probability of containing the data object record associated with the data object;
in response to identifying the particular storage unit in the index bucket, reading the particular storage unit and checking a corresponding slot in the particular storage unit to determine whether the data object record is contained in the particular storage unit; and
retrieving the data object record from the particular storage unit when the data object record is determined to be in the particular storage unit.

### Claim 8 (depends on 5)

The method of claim 5, further comprising:
when the respective lookup entries do not match the one or more hash values generated for the data object, determining that the data object is a new data object and the data object record does not exist in any of the set of storage units;
in response to determining that the data object is the new data object, writing the data object to the storage;
updating the data object record associated with the data object to include an indication of an address on the storage associated with the data object; and
sending the data object record to a staging area associated with the index bucket.

### Claim 9 (depends on 8)

The method of claim 8, further comprising:
determining that the number of specific data object records in the staging area has reached the threshold number; and
in response to determining that the number of specific data object records in the staging area has reached the threshold number, copying the number of data object records in the staging area to a same storage unit in the index bucket.

### Claim 10

A system comprising:
one or more processors;
a computer-readable storage medium storing a lookup index, the lookup index comprising:
a plurality of index buckets associated with storage units on the computer-readable storage medium, wherein each index bucket comprises a respective set of the storage units;
a plurality of data object records representing data objects on a storage device, the plurality of data object records being stored in the storage units, each storage unit storing a respective portion of the plurality of data object records, the respective portion corresponding to a particular index bucket associated with the storage unit;
a plurality of index filters stored in the storage units, each storage unit storing a respective index filter from the plurality of index filters, the respective index filter comprising at least one lookup entry corresponding to each of the respective portion of the plurality of data object records in the storage unit; and
computer-readable instructions which, when executed by the one or more processors, cause the system to:
in response to one or more input-output requests associated with a data object, identify a corresponding index bucket from the plurality of index buckets for the data object;
query the respective index filter in each of the respective set of storage units associated with the corresponding index bucket for a data object record associated with the data object; and
determine whether any of the set of storage units associated with the corresponding index bucket contains the data object record.

### Claim 11 (depends on 10)

The system of claim 10, wherein the computer-readable storage medium comprises a solid-state drive (SSD) and the storage device comprises at least one of a solid-state drive, a hard disk drive, or a redundant disk or independent arrays, and wherein the storage units comprise SSD pages.

### Claim 12 (depends on 10)

The system of claim 10, wherein the plurality of index filters comprises cuckoo filters, wherein identifying the corresponding index bucket for the data object comprises:
hashing at least part of the data object to yield one or more hash values; and
identifying the corresponding index bucket based on the one or more hash values.

### Claim 13 (depends on 10)

The system of claim 10, further comprising a second computer-readable storage medium storing the plurality of index filters, wherein determining whether any of the set of storage units associated with the corresponding index bucket contains the data object record comprises:
applying one or more hash functions to the data object to yield one or more hash values associated with the data object; and
searching the one or more hash values within filter entries in at least a portion of the plurality of index filters, the portion of the plurality of index filters corresponding to index filters associated with the respective set of storage units in the corresponding index bucket.

### Claim 14 (depends on 13)

The system of claim 13, wherein the one or more input-output requests comprise one or more read operations, the system further comprising additional computer-readable instructions which, when executed by the one or more processors, cause the system to:
when the one or more hash values match at least one of the filter entries:
determine that a storage unit associated with the particular index filter has at least a threshold probability of containing the data object record;
based on the storage unit having at least the threshold probability of containing the data object record, perform a read of the storage unit to search for the data object record; and
retrieve the data object record from the storage unit when the data object record is located in the storage unit.

### Claim 15 (depends on 13)

The system of claim 13, further comprising additional computer-readable instructions which, when executed by the one or more processors, cause the system to:
when the one or more hash values do not match at least one of the filter entries or the data object record is not located in the storage unit after the read, determine that the data object is a new data object and the storage units do not contain the data object record.

### Claim 16 (depends on 15)

The system of claim 15, further comprising additional computer-readable instructions which, when executed by the one or more processors, cause the system to:
in response to determine that the data object is the new data object, writing the new data object to the storage device;
update the data object record associated with the new data object to indicate an address on the storage device associated with the new data object; and
send the data object record to a staging area associated with the corresponding index bucket, wherein the staging area stores specific data object records queued for copying to one of the set of storage units.

### Claim 17

A non-transitory computer-readable storage medium comprising:
storage units storing data object records representing data objects in a storage; and
a lookup index comprising a plurality of index buckets, each index bucket being associated with a set of the storage units and comprising a respective index filter for each respective one of the set of storage units, the set of storage units containing a respective portion of the data object records, wherein each respective index filter comprises at least one lookup entry for each data object record in the respective one of the set of storage units;
computer-readable instructions stored thereon which, when executed by one or more processors, cause the one or more processors to:
receive an input-output request associated with a data object; and
in response to the input-output request, perform a lookup operation for the data object on the lookup index, the lookup operation comprising:
identifying an index bucket in the lookup index for the data object; and
based on each respective index filter associated with the index bucket identified in the lookup index for the data object, determining whether any of the set of storage units associated with the index bucket contains a data object record corresponding to the data object.

### Claim 18 (depends on 17)

The non-transitory computer-readable storage medium of claim 17, wherein the respective index filter comprises a cuckoo filter, and wherein identifying the index bucket for the data object is based on one or more hash values associated with the data object, the non-transitory computer-readable storage medium storing additional instructions which, when executed by the one or more processors, cause the one or more processors to:
prior to determining whether any of the set of storage units associated with the index bucket contains the data object record, search a staging area associated with the index bucket for the data object record, wherein the staging area comprises a queue of data object records selectable for copying to one of the set of storage units in the index bucket; and
when the search fails to locate the data object record in the staging area, determine whether any of the set of storage units associated with the index bucket contains the data object record by searching for the one or more hash values within filter entries in each respective index filter associated with the set of storage units associated with the index bucket.

### Claim 19 (depends on 17)

The non-transitory computer-readable storage medium of claim 17, wherein determining whether any of the set of storage units associated with the index bucket contains the data object record comprises:
when the one or more hash values match at least one of the filter entries:
determine that a particular storage unit associated with the index filter has at least a threshold probability of containing the data object record;
based on the storage unit having at least the threshold probability of containing the data object record, perform a read of the particular storage unit and check a corresponding slot in the particular storage unit for the data object record; and
retrieve the data object record from the particular storage unit when the data object record is located in the particular storage unit.

### Claim 20 (depends on 19)

The non-transitory computer-readable storage medium of claim 19, wherein determining whether any of the set of storage units associated with the index bucket contains the data object record further comprises:
when the one or more hash values does not match at least one of the filter entries:
determine that the data object is a new data object and the set of storage units do not contain the data object record associated with the new data object;
write the new data object to the storage;
update the data object record to include an indication of an address of the new data object; and
send the data object record to the staging area associated with the corresponding index bucket.

### Claim 21

A non-transitory computer-readable storage medium comprising:
computer-readable instructions stored thereon which, when executed by one or more processors, cause the one or more processors to:
identify a plurality of dirty object records corresponding to an index bucket in a lookup index, the index bucket being associated with a set of storage units on a storage, the plurality of dirty object records being queued for copying to one or more of the set of storage units;
for each respective storage unit from the set of storage units:
determine a first respective number of the plurality of dirty object records that can be added to the respective storage unit, the first respective number being based on at least one of a number of available object record slots in the respective storage unit and a number of new object records in the plurality of dirty object records; and
determine, from the plurality of dirty object records, a second respective number of object records associated with the respective storage unit;
based on the first respective number of the plurality of dirty object records that can be added to the respective storage unit and the second respective number of object records associated with the respective storage unit, select a particular storage unit from the set of storage units for the plurality of dirty object records;
identify which dirty object records from the plurality of dirty object records to copy to the particular storage unit based on the number of new object records in the plurality of dirty object records and the second respective number of object records associated with the particular storage unit; and
update the particular storage unit based on the dirty object records identified.

### Claim 22 (depends on 21)

The non-transitory computer-readable storage medium of claim 21, wherein updating the particular storage unit comprises writing an updated version of the particular storage unit to the storage, and wherein selecting the particular storage unit from the set of storage units comprises:
ranking each of the set of storage units based on a corresponding total of the first respective number of the plurality of dirty object records that can be added to the respective storage unit and the second respective number of object records associated with the respective storage unit; and
identifying a highest ranked storage unit from the set of storage units, the highest ranked storage unit having a highest corresponding total.

### Claim 23 (depends on 21)

The non-transitory computer-readable storage medium of claim 21, storing additional computer-readable instructions which, when executed by the one or more processors, cause the one or more processors to:
for each object record from the second respective number of object records associated with the particular storage unit:
locate an existing version of the object record in the particular storage unit;
determine whether to remove or update the object record from the particular storage unit;
when determining to remove the object record, mark the object record for removal; and
when determining to update the object record, overwrite the existing version of the object record with an updated version of the object record.

### Claim 24 (depends on 21)

The non-transitory computer-readable storage medium of claim 21, wherein the index bucket comprises a respective index filter for each respective one of the set of storage units, the non-transitory computer-readable storage medium storing additional computer-readable instructions which, when executed by the one or more processors, cause the one or more processors to:
for each object record from the number of new object records in the plurality of dirty object records:
add an object record entry in the respective index filter associated with the particular storage unit; and
copy the object record to a first location in the particular storage unit that corresponds to a second location of the object record entry in the respective index filter.

### Claim 25 (depends on 24)

The non-transitory computer-readable storage medium of claim 24, storing additional computer-readable instructions which, when executed by the one or more processors, cause the one or more processors to:
when the respective index filter is full:
store one or more remaining object records from the number of new object records in a dirty staging area; and
cache an updated version of the respective index filter in memory.
