×

Adaptive file readahead technique for multiple read streams

  • US 7,333,993 B2
  • Filed: 11/25/2003
  • Issued: 02/19/2008
  • Est. Priority Date: 11/25/2003
  • Status: Active Grant
First Claim
Patent Images

1. A method for a storage operating system implemented in a storage system to concurrently perform readahead operations for a plurality of different read streams established in one or more files, directories, vdisks or luns stored in the storage system, the method comprising:

  • allocating at least one readset data structure (“

    readset”

    ) for each of the one or more files, directories, vdisks or luns in which the plurality of different read streams is established, wherein the number of readsets allocated for each file, directory, vdisk or lun depends on the size of that file, directory, vdisk or lun;

    receiving a client read request at the storage system, the client read request indicating client-requested data for the storage operating system to retrieve from a file, directory, vdisk or lun stored in the storage system;

    determining whether the received client read request matches any of the plurality of readsets allocated for the file, directory, vdisk or lun containing the client-requested data;

    performing readahead operations in accordance with a set of readahead metadata stored in an associated readset that is determined to match the received client read request, wherein the readahead metadata describes the associated readset; and

    if the received client read request does not match any of the readsets allocated for the file, directory, vdisk or lun containing the client-requested data, then performing the steps;

    identifying the received client read request as being the first read request in a new read stream;

    generating a set of readahead metadata associated with the new read stream;

    selecting for reuse one of the readsets allocated for the file, directory, vdisk or lun containing the client-requested data; and

    storing the generated set of readahead metadata associated with the new read stream in the readset selected for reuse.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×