Whamcloud - gitweb
LU-6544 mkfs: Improve MDT inode size calculation 43/15643/9
authorEmoly Liu <emoly.liu@intel.com>
Wed, 29 Jul 2015 08:15:45 +0000 (16:15 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 3 Aug 2015 02:03:12 +0000 (02:03 +0000)
commit71b3cc3315114b2101bc32707fa66740279fff54
tree8752395f64aed49b82eadee087cb27c05b39ef99
parentaf46754e1e9c3e66928e13b2301890cfa94ac059
LU-6544 mkfs: Improve MDT inode size calculation

This patch reduces mkfs.lustre "--stripe-count-hint" limits when
calculating MDT inode size, so that there is a proper amount of
space reserved for different kinds of EAs and ACL in the inode.

This would allow files with N stripes to fit the lov, lma, link
EAs into the inode rather than storing it in an external xattr
block, which reduces performance and significantly increases the
space used per file on the MDT.

Also, this patch adds conf-sanity.sh test_87 to verfiy this
calculation with different stripe count.

Signed-off-by: Emoly Liu <emoly.liu@intel.com>
Change-Id: Idfdd9a064f0ac07c383a3af79c61c1ff973fb3f7
Reviewed-on: http://review.whamcloud.com/15643
Tested-by: Jenkins
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/conf-sanity.sh
lustre/utils/mount_utils_ldiskfs.c