mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Marco Shaw <marco.shaw@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: inodes: df -i vs /proc/sys/fs/inode-nr
Date: Mon, 30 May 2011 10:13:52 -0300	[thread overview]
Message-ID: <BANLkTim2Fc44BvYDkFqWMdphjeoJZf6cAQ@mail.gmail.com> (raw)

(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

                 reply	other threads:[~2011-05-30 13:13 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BANLkTim2Fc44BvYDkFqWMdphjeoJZf6cAQ@mail.gmail.com \
    --to=marco.shaw@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®