Details

    • Technical task
    • Resolution: Fixed
    • Critical
    • Lustre 2.10.0
    • Lustre 2.4.0, Lustre 2.5.0
    • 4278

    Description

      Currently, grant is still inflated if backend block size > page size (that's the case with zfs osd).
      OBD_CONNECT_GRANT_PARAM was added to address this and we need to develop the the code in osc & ofd to implement support for this feature.

      Attachments

        Issue Links

          Activity

            [LU-2049] add support for OBD_CONNECT_GRANT_PARAM

            It looks like everything has landed for this, can this bug be resolved?

            utopiabound Nathaniel Clark added a comment - It looks like everything has landed for this, can this bug be resolved?
            green Oleg Drokin added a comment -

            I filed LU-7803 for a potential interop issue that I am experiencing now.

            green Oleg Drokin added a comment - I filed LU-7803 for a potential interop issue that I am experiencing now.

            Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/7793/
            Subject: LU-2049 grant: add support for OBD_CONNECT_GRANT_PARAM
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: bd1e41672c974b97148b65115185a57ca4b7bbde

            gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/7793/ Subject: LU-2049 grant: add support for OBD_CONNECT_GRANT_PARAM Project: fs/lustre-release Branch: master Current Patch Set: Commit: bd1e41672c974b97148b65115185a57ca4b7bbde

            The main goal of this patch is to reduce the grant over-provisioning for clients that do not understand large blocks on ZFS. It would be useful to run a manual test, or better to write a sanity subtest that compares the grant on the client with the grant on the server to ensure they roughly match rather than being inflated by a factor of (128/4).

            For ZFS OSTs the test should be skipped if this feature is not available on the OSC file:

                    [ "$(facet_fstype ost1)" = "ZFS" ] && $LCTL get_param osc.$FSNAME-OST0000*.import |
                            grep -q "connect_flags:.*grant_param" ||
                            { skip "grant_param not available" && return }
            
            adilger Andreas Dilger added a comment - The main goal of this patch is to reduce the grant over-provisioning for clients that do not understand large blocks on ZFS. It would be useful to run a manual test, or better to write a sanity subtest that compares the grant on the client with the grant on the server to ensure they roughly match rather than being inflated by a factor of (128/4). For ZFS OSTs the test should be skipped if this feature is not available on the OSC file: [ "$(facet_fstype ost1)" = "ZFS" ] && $LCTL get_param osc.$FSNAME-OST0000*.import | grep -q "connect_flags:.*grant_param" || { skip "grant_param not available" && return }

            Patch http://review.whamcloud.com/7793 needs to be refreshed and landed.

            adilger Andreas Dilger added a comment - Patch http://review.whamcloud.com/7793 needs to be refreshed and landed.

            Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/13531/
            Subject: LU-2049 grant: delay grant releasing until commit
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 31b7404f436241436fb0abdec2b6cd678c674d82

            gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/13531/ Subject: LU-2049 grant: delay grant releasing until commit Project: fs/lustre-release Branch: master Current Patch Set: Commit: 31b7404f436241436fb0abdec2b6cd678c674d82

            Jinshan, are you able to refresh this patch?

            adilger Andreas Dilger added a comment - Jinshan, are you able to refresh this patch?

            I will work on this.

            jay Jinshan Xiong (Inactive) added a comment - I will work on this.

            Johann Lombardi (johann.lombardi@intel.com) uploaded a new patch: http://review.whamcloud.com/13531
            Subject: LU-2049 grant: delay grant releasing until commit
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: edcd417f753864279a439ef8e80eff100fde3f72

            gerrit Gerrit Updater added a comment - Johann Lombardi (johann.lombardi@intel.com) uploaded a new patch: http://review.whamcloud.com/13531 Subject: LU-2049 grant: delay grant releasing until commit Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: edcd417f753864279a439ef8e80eff100fde3f72
            sarah Sarah Liu added a comment -

            Here is the for test only patch of patched server with unpatched client:
            http://review.whamcloud.com/#/c/12404/

            sarah Sarah Liu added a comment - Here is the for test only patch of patched server with unpatched client: http://review.whamcloud.com/#/c/12404/
            sarah Sarah Liu added a comment - - edited

            Here is the result for unpatched server(ldiskfs) and patched client, with sanity test_64b and sanityn test_15 enabled:
            I will change the test parameters and test other configurations and keep you updated.

            https://testing.hpdd.intel.com/test_sessions/ec4adf00-58eb-11e4-9a9c-5254006e85c2

            result for unpatched server(zfs) and patched client:
            https://testing.hpdd.intel.com/test_sessions/eba4dd82-59d4-11e4-8dbb-5254006e85c2

            sarah Sarah Liu added a comment - - edited Here is the result for unpatched server(ldiskfs) and patched client, with sanity test_64b and sanityn test_15 enabled: I will change the test parameters and test other configurations and keep you updated. https://testing.hpdd.intel.com/test_sessions/ec4adf00-58eb-11e4-9a9c-5254006e85c2 result for unpatched server(zfs) and patched client: https://testing.hpdd.intel.com/test_sessions/eba4dd82-59d4-11e4-8dbb-5254006e85c2

            People

              utopiabound Nathaniel Clark
              johann Johann Lombardi (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              23 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: