Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-15100

Add ability to tune definition of loose sequential read

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Minor
    • None
    • None
    • 9223372036854775807

    Description

      Loose sequential read is the Lustre term for reads which do not read all pages and are not strided, but do proceed in a semi-random fashion forward or backward through the file.  Basically, they jump forward or backward a small random amount between each read.  This is a fairly common pattern in database queries, for example, which have a certain hit rate on a large table and so pull a certain % of pages, mostly randomly.

      The definition of this in Lustre has been limited to "within 8 pages of previous access" for a very long time.  This is a tiny range, and it should be larger - and it should be tunable.  This tiny range means that an application which reads page 5, then page 18, then page 27, then page 50, etc, is considered entirely random, which is very bad for performance.  Making the limit on 'loose forward read' larger will allow readahead to recognize these cases, and perform readahead.  (The cost of reading 1 MiB is only slightly higher than the cost of reading 1 page, so if we get even a few hits per MiB, it's worth reading in the data.  So it makes sense to pull in all the data for these "loose sequential" reads.)

      Patch forthcoming.

      Attachments

        Issue Links

          Activity

            People

              paf0186 Patrick Farrell (Inactive)
              paf0186 Patrick Farrell (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated: