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

osd-zfs: ZAP objects use 4K blocks for both indirect and leaf blocks

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • Lustre 2.7.0
    • Lustre 2.7.0
    • 3
    • 15006

    Description

      For example, on a MDS an oi.xx directory:
      Object lvl iblk dblk dsize lsize %full type
      44 4 4K 4K 1.06M 4.04M 99.71 ZFS directory

      The code in __osd_zap_create():
      oid = zap_create_flags(uos->os, 0, flags | ZAP_FLAG_HASH64, DMU_OT_DIRECTORY_CONTENTS, 12, 12, DMU_OT_SA, DN_MAX_BONUSLEN, tx);

      This seemed inefficient. In fact the default leaf block size for fat ZAP is 16K:
      int fzap_default_block_shift = 14; /* 16k blocksize */

      I changed the block sizes to 16K indirect and 128K leaf, and saw a 10% increase in mds-survey creation rates.

      Attachments

        Activity

          People

            isaac Isaac Huang (Inactive)
            isaac Isaac Huang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: