[SOLVED] What facts affect the size of the inode list when configuring a file system?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
What facts affect the size of the inode list when configuring a file system?
Hi,I'm reading the book,<the degsin of the unix operating system>,in chapter 2 the author says that : 'The inode list is a list of inodes that follows the super block in the file system.
Administrators specify the size of the Mode list when configuring a file system. '
I am not understand how the Administrators configuring the size of the inode list. what facts will affect the size of it? Does the size will be dead(will not be changed any more) once be setted up?
Last edited by Yuc; 02-14-2019 at 12:02 AM.
Reason: spelling mistake
Hi,I'm reading the book,<the degsin of the unix operating system>,in chapter 2 the author says that : 'The inode list is a list of inodes that follows the super block in the file system.
Administrators specify the size of the Mode list when configuring a file system. '
I am not understand how the Administrators configuring the size of the inode list. what facts will affect the size of it? Does the size will be dead(will not be changed any more) once be setted up?
The admin can specify inodes, but the defaults are calculated for most use cases based on filesystem size. Let it default.
And yes, the number of inodes is fixed.
The admin can specify inodes, but the defaults are calculated for most use cases based on filesystem size. Let it default.
And yes, the number of inodes is fixed.
OK,I see.I'm just worried about if there are no sufficient inodes for using or if there are more inodes than actually needed that results in wasting some disk storage spaces.
The admin can specify inodes, but the defaults are calculated for most use cases based on filesystem size. Let it default.
And yes, the number of inodes is fixed.
And another quesion is what does the 'man' means in linux or unix? I dont think it reffers to man which opposes to woman.
Thank you.
OK,I see.I'm just worried about if there are no sufficient inodes for using or if there are more inodes than actually needed that results in wasting some disk storage spaces.
I-nodes are not all that large (often 256 bytes) and as creating extra I-nodes is a no-no the various mkfs utilities tend to make excessive amounts of them rather than having too little:
Code:
-i bytes-per-inode
Specify the bytes/inode ratio. mke2fs creates an inode for every
bytes-per-inode bytes of space on the disk.
The larger the bytes-per-inode ratio, the fewer inodes will be created.
This value generally shouldn't be smaller than the blocksize of the
filesystem, since in that case more inodes would be made than can ever
be used. Be warned that it is not possible to expand the number of
inodes on a filesystem after it is created, so be careful deciding
the correct value for this parameter.
The default, for ext? fs'es, is defined in /etc/mke2fs.conf (which can be configured by your distro, but often is something like 8192 or 16384, which, with a blocksize of 4K, means 1 I-node for every 2 or 4 diskblocks, so assumes a very low average size of your files).
There may be niche cases, with very distinctive sizes of files across the filesystem (e.g. a huge number of very small files or a small number of very large files), where you might want to define the number of inodes for performance purposes, but in general the default value on filesystem creation is perfectly fine.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.