<div dir="ltr"><div>Now, I am clear.</div><div>Thanks Richard !  </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Mohr Jr, Richard Frank <<a href="mailto:rmohr@utk.edu">rmohr@utk.edu</a>> 于2020年4月1日周三 下午10:59写道:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
> On Apr 1, 2020, at 10:07 AM, Mohr Jr, Richard Frank <<a href="mailto:rmohr@utk.edu" target="_blank">rmohr@utk.edu</a>> wrote:<br>
> <br>
> <br>
> <br>
>> On Apr 1, 2020, at 3:55 AM, 肖正刚 <<a href="mailto:guru.novice@gmail.com" target="_blank">guru.novice@gmail.com</a>> wrote:<br>
>> <br>
>> For  " the recent lustre versions use a 1KB inode size by default and the default format options create 1 inodes for every 2.5 KB of MDT space" :<br>
>> I checked the inode size is 1KB and  in my online systems,  as you said , about 40~41% of mdt disk space consumed by inodes. <br>
>> but from the manual I found the default "inode ratio" is 2K, so where the additional 0.5KB comes from ?<br>
>> <br>
> <br>
> I was basing this on info I found in this email thread:<br>
> <br>
> <a href="http://lists.lustre.org/pipermail/lustre-discuss-lustre.org/2018-February/015302.html" rel="noreferrer" target="_blank">http://lists.lustre.org/pipermail/lustre-discuss-lustre.org/2018-February/015302.html</a><br>
> <br>
> I think the 2K/inode ratio listed in the manual may be incorrect (or perhaps someone can point out my mistake).<br>
<br>
Looking at the lustre source (utils/libmount_utils_ldiskfs.c), the default behavior is determined by this line:<br>
<br>
                bytes_per_inode = inode_size + 1536<br>
<br>
So the default bytes per inode is 1K (inode size) + 1.5K = 2.5K<br>
<br>
—<br>
Rick Mohr<br>
Senior HPC System Administrator<br>
Joint Institute for Computational Sciences<br>
University of Tennessee<br>
<br>
<br>
<br>
<br>
</blockquote></div>