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

improve Lustre single thread read performances

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • Lustre 2.14.0
    • None
    • 9223372036854775807

    Description

      There are several efforts here and there which try to improve the performances of single
      thread read performances.

      this ticket is opened to track a simple enough patch to improve the performances as much
      as possible.

      Here is whole history:

      Currently, for sequential read IO, We grow up window
      size very quickly, and once we cached @max_readahead_per_file
      pages. For following command:

      dd if=/mnt/lustre/file of=/dev/null bs=1M

      We will do something like following:
      ...
      64M bytes cached.
      fast io for 16M bytes
      readahead extra 16M to fill up window.
      fast io for 16M bytes
      readahead extra 16M to fill up window.
      ....

      In this way, we could only use fast IO for 16M bytes and
      then fall through non-fast IO mode. this is also reason
      that why increasing @max_readahead_per_file don't give us
      performances up, since this value only changes how much
      memory we cached in memory, during my testing whatever
      I changed the value, i could only get 2GB/s for single thread
      read.

      Actually, we could do this better, if we have used
      more than 16M bytes readahead pages, submit another readahead
      requests in the background. and ideally, we could always
      use fast IO..I did a quick test with fake-IO on my limited
      PC server:

      Without patch VS Patched:
      ~2.0GB/S vs ~3.0 GB/s

      So we could gain at least 50% performance up, i supposed
      We could get more maybe more than 4GB/S with patch.

      Attachments

        Issue Links

          Activity

            [LU-12043] improve Lustre single thread read performances

            Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/35216/
            Subject: LU-12043 llite: don't miss every first stride page
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 29d8eb5ee7dff422294c9ee3d0f34f1370cec800

            gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/35216/ Subject: LU-12043 llite: don't miss every first stride page Project: fs/lustre-release Branch: master Current Patch Set: Commit: 29d8eb5ee7dff422294c9ee3d0f34f1370cec800

            Minh Diep (mdiep@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/35559
            Subject: LU-12043 llite,readahead: don't always use max RPC size
            Project: fs/lustre-release
            Branch: b2_12
            Current Patch Set: 1
            Commit: eccd7b3873e5395fc4087dec6b09acb91cadc1ef

            gerrit Gerrit Updater added a comment - Minh Diep (mdiep@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/35559 Subject: LU-12043 llite,readahead: don't always use max RPC size Project: fs/lustre-release Branch: b2_12 Current Patch Set: 1 Commit: eccd7b3873e5395fc4087dec6b09acb91cadc1ef

            Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/35215/
            Subject: LU-12043 llite: make sure readahead cover current read
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 8fbef5ee761920faa3c84f142f56934d6266a409

            gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/35215/ Subject: LU-12043 llite: make sure readahead cover current read Project: fs/lustre-release Branch: master Current Patch Set: Commit: 8fbef5ee761920faa3c84f142f56934d6266a409

            Wang Shilong (wshilong@ddn.com) uploaded a new patch: https://review.whamcloud.com/35438
            Subject: LU-12043 llite: extend readahead locks for striped file
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 6b87ba4e55e44ad538bc047c279c856804b7144a

            gerrit Gerrit Updater added a comment - Wang Shilong (wshilong@ddn.com) uploaded a new patch: https://review.whamcloud.com/35438 Subject: LU-12043 llite: extend readahead locks for striped file Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 6b87ba4e55e44ad538bc047c279c856804b7144a

            Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/34095/
            Subject: LU-12043 llite: improve single-thread read performance
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: c2791674260b120c596885c0356f33852cd7a685

            gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/34095/ Subject: LU-12043 llite: improve single-thread read performance Project: fs/lustre-release Branch: master Current Patch Set: Commit: c2791674260b120c596885c0356f33852cd7a685

            Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/35033/
            Subject: LU-12043 llite,readahead: don't always use max RPC size
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 7864a6854c3dfe3319dcf6809e728eed9a37b9b4

            gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/35033/ Subject: LU-12043 llite,readahead: don't always use max RPC size Project: fs/lustre-release Branch: master Current Patch Set: Commit: 7864a6854c3dfe3319dcf6809e728eed9a37b9b4

            Wang Shilong (wshilong@ddn.com) uploaded a new patch: https://review.whamcloud.com/35217
            Subject: LU-12043 llite: fix bad performance with readahead disabled
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: bb00859c21a79ce0d071e82519fe1f9aba94bce8

            gerrit Gerrit Updater added a comment - Wang Shilong (wshilong@ddn.com) uploaded a new patch: https://review.whamcloud.com/35217 Subject: LU-12043 llite: fix bad performance with readahead disabled Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: bb00859c21a79ce0d071e82519fe1f9aba94bce8

            Wang Shilong (wshilong@ddn.com) uploaded a new patch: https://review.whamcloud.com/35216
            Subject: LU-12043 llite: don't miss every first stride off page
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: b81b34e2ca6188b7f579cdb53e12e3fed621527f

            gerrit Gerrit Updater added a comment - Wang Shilong (wshilong@ddn.com) uploaded a new patch: https://review.whamcloud.com/35216 Subject: LU-12043 llite: don't miss every first stride off page Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: b81b34e2ca6188b7f579cdb53e12e3fed621527f

            Wang Shilong (wshilong@ddn.com) uploaded a new patch: https://review.whamcloud.com/35215
            Subject: LU-12043 llite: make sure readahead cover current read
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 45c5046afe1ab8ff9fab71ff2b21b695651d7a73

            gerrit Gerrit Updater added a comment - Wang Shilong (wshilong@ddn.com) uploaded a new patch: https://review.whamcloud.com/35215 Subject: LU-12043 llite: make sure readahead cover current read Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 45c5046afe1ab8ff9fab71ff2b21b695651d7a73

            Wang Shilong (wshilong@ddn.com) uploaded a new patch: https://review.whamcloud.com/35033
            Subject: LU-12043 llite,readahead: don't use max RPC size always
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: eb9b7202da4b65d3d38edb53014b026bf8b2cfed

            gerrit Gerrit Updater added a comment - Wang Shilong (wshilong@ddn.com) uploaded a new patch: https://review.whamcloud.com/35033 Subject: LU-12043 llite,readahead: don't use max RPC size always Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: eb9b7202da4b65d3d38edb53014b026bf8b2cfed

            Andreas Dilger (adilger@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/34849
            Subject: LU-12043 llite: move readahead tunables to sysfs
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 9645f28c52be54e5f59516fdea2669cbd43d7061

            gerrit Gerrit Updater added a comment - Andreas Dilger (adilger@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/34849 Subject: LU-12043 llite: move readahead tunables to sysfs Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 9645f28c52be54e5f59516fdea2669cbd43d7061

            People

              wshilong Wang Shilong (Inactive)
              wshilong Wang Shilong (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: