mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* inodes: df -i vs /proc/sys/fs/inode-nr
@ 2011-05-30 13:13 Marco Shaw
  0 siblings, 0 replies; only message in thread
From: Marco Shaw @ 2011-05-30 13:13 UTC (permalink / raw)
  To: linux-kernel

(I've tried, but failed to find this answer elsewhere, or at least a
definite answer, without trying to look at the source code.)

Is there anything online that contrasts what "df -i" reports and the
values provided by /proc/sys/fs/inode-nr?  Is there a connection?  I
have a decent grasp on VFS-related "inodes" on disk, but inode-nr
reports "in-memory inodes"(?), and I don't understand what that means.

For a particular system, for example, df -i reports 1% to 4% inode
utilization for different FSs, while /proc/sys/fs/inode-nr reports 70%
(even 100% at some point) used (see Note 1 below).

For example, what happens when the inode-nr reports 100% used on a
system?  I opened a support case with my vendor, and at one point an
engineer indicates that "if inode-nr reports 100% utilization, there
could be all kinds of problems", but then another engineer goes on to
indicate something along the lines that "with kernel 2.6, this is no
longer a problem and the kernel will dynamically adjust the maximum".

So, should I monitor /proc/sys/fs/inode-nr?  Should I only monitoring
it on 2.4.x because it is "meaningless" (or at least not a cause of
concern) on 2.6.x?

Marco

Note 1: inode_used_percent = 100*(inode_alloc - inode_free)/inode_alloc

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-05-30 13:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-30 13:13 inodes: df -i vs /proc/sys/fs/inode-nr Marco Shaw

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®