Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Inode info needed

  • 02-04-2009 01:42PM
    #1
    Closed Accounts Posts: 198 ✭✭


    Hi,

    I have a linux 2.6 kernel - sysctl -a is showing:

    fs.inode-state = 277423 0

    The two values from From the Kernel docs:
    inode-state contains two actual numbers and five dummy values. The numbers are nr_inodes and nr_free_inodes (in order of appearance).
    
    nr_inodes
    Denotes the number of inodes the system has allocated. This number will grow and shrink dynamically.
    
    nr_free_inodes
    Represents the number of free inodes. Ie. The number of inuse inodes is (nr_inodes - nr_free_inodes).
    

    df -ih shows me that IUse% of 1%....

    I am a bit confused about the difference in the figures - is this normal?
    Thanks.


Comments

  • Registered Users, Registered Users 2 Posts: 354 ✭✭AndrewMc


    I've been trying to figure this out. From what I can tell, the inode-state numbers refer to the kernel's in-memory list of inodes. For every open file (including, it seems, stdin, stdout and network sockets) it holds in memory the contents of the file's inode. This in-memory list grows as necessary, and when an entry is no longer required, it is cleared and can be reused.

    The figures about inodes returned by df refer to the number of inodes available/used on each filesystem individually. From what I've seen, low usage (<10%) is pretty normal.


Advertisement