| To: | Jan Engelhardt <jengelh@xxxxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: Inodes disappearing |
| From: | Eric Sandeen <sandeen@xxxxxxxxxxx> |
| Date: | Fri, 09 Feb 2007 09:07:42 -0600 |
| Cc: | xfs@xxxxxxxxxxx |
| In-reply-to: | <Pine.LNX.4.61.0702091345360.31955@yvahk01.tjqt.qr> |
| References: | <Pine.LNX.4.61.0702091345360.31955@yvahk01.tjqt.qr> |
| Sender: | xfs-bounce@xxxxxxxxxxx |
| User-agent: | Thunderbird 1.5.0.9 (Macintosh/20061207) |
Jan Engelhardt wrote:
Hello list, xfs dynamically allocates inodes, up to a maximum percentage of disk space specified at mkfs time, changeable by growfs. By default this is 25%, and from output below that's what you have. So the total inodes number from df is given by taking 25% of your data space, and calculating how many inodes would fit into that space. Since your filesystems are roughly the same size, that means you started out with roughly the same amount of space available for inodes in each. dm-0 has 256-byte inodes, hda3 has 512-byte inodes, which means for a given amount of space, you -can- fit more (256-byte) inodes into the filesystem on dm-0. However, dm-0 is completely full, and there is very little space left for at all. If you look at xfs_statvfs(); you'll see all these calculations that go into your answers above. inodes which -could- be created based on free space: fakeinos = statp->f_bfree << sbp->sb_inopblog; total inodes is min of (current + possible) and max inode nr: statp->f_files =
MIN(sbp->sb_icount + fakeinos, (__uint64_t)XFS_MAXINUMBER);... which is then limited by the configured max percentage: if (mp->m_maxicount)
....
statp->f_files = min_t(typeof(statp->f_files),
statp->f_files,
mp->m_maxicount);your free blocks is low, so you start with a low number for "fakeinos" and your final result reflects that. You've used most of your potential inode space for data. -Eric
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Inodes disappearing, Jan Engelhardt |
|---|---|
| Next by Date: | XFS update for 2.6.21, Timothy Shimmin |
| Previous by Thread: | Inodes disappearing, Jan Engelhardt |
| Next by Thread: | XFS update for 2.6.21, Timothy Shimmin |
| Indexes: | [Date] [Thread] [Top] [All Lists] |