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/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

            Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/34755/
            Subject: LU-12043 llite, readahead: fix to call ll_ras_enter() properly
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 500edcada7e4101a21a28078611597fdb50b4791

            gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/34755/ Subject: LU-12043 llite, readahead: fix to call ll_ras_enter() properly Project: fs/lustre-release Branch: master Current Patch Set: Commit: 500edcada7e4101a21a28078611597fdb50b4791

            Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/34602/
            Subject: LU-12043 llite: switch to use ll_fsname directly
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 506b68a359045cd8c78e5385eab6d4e01f2fdb83

            gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/34602/ Subject: LU-12043 llite: switch to use ll_fsname directly Project: fs/lustre-release Branch: master Current Patch Set: Commit: 506b68a359045cd8c78e5385eab6d4e01f2fdb83

            Wang Shilong (wshilong@ddn.com) uploaded a new patch: https://review.whamcloud.com/34755
            Subject: LU-12043 llite, readahead: fix to call ll_ras_enter() properly
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 6e270c46b44aebbfacf7786c8c21736bc2bcecbf

            gerrit Gerrit Updater added a comment - Wang Shilong (wshilong@ddn.com) uploaded a new patch: https://review.whamcloud.com/34755 Subject: LU-12043 llite, readahead: fix to call ll_ras_enter() properly Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 6e270c46b44aebbfacf7786c8c21736bc2bcecbf

            Wang Shilong (wshilong@ddn.com) uploaded a new patch: https://review.whamcloud.com/34602
            Subject: LU-12043 llite: switch to use ll_fsname directly
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: f21f5d21e4ec0a0c4a3e232c6e2606cab8893142

            gerrit Gerrit Updater added a comment - Wang Shilong (wshilong@ddn.com) uploaded a new patch: https://review.whamcloud.com/34602 Subject: LU-12043 llite: switch to use ll_fsname directly Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: f21f5d21e4ec0a0c4a3e232c6e2606cab8893142

            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: