LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 02-13-2019, 11:57 PM   #1
Yuc
Member
 
Registered: Nov 2018
Posts: 36

Rep: Reputation: Disabled
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
 
Old 02-14-2019, 12:05 AM   #2
Yuc
Member
 
Registered: Nov 2018
Posts: 36

Original Poster
Rep: Reputation: Disabled
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?
Attached Thumbnails
Click image for larger version

Name:	Capture214.PNG
Views:	5
Size:	149.4 KB
ID:	29794  
 
Old 02-14-2019, 01:15 AM   #3
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 12,606

Rep: Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939
see man mke2fs (or something similar) to see how a filesystem can be created.
 
1 members found this post helpful.
Old 02-14-2019, 01:31 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 17,781

Rep: Reputation: 2820Reputation: 2820Reputation: 2820Reputation: 2820Reputation: 2820Reputation: 2820Reputation: 2820Reputation: 2820Reputation: 2820Reputation: 2820Reputation: 2820
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.
 
1 members found this post helpful.
Old 02-14-2019, 01:57 AM   #5
Yuc
Member
 
Registered: Nov 2018
Posts: 36

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
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.
 
Old 02-14-2019, 02:07 AM   #6
Yuc
Member
 
Registered: Nov 2018
Posts: 36

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
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.
 
Old 02-14-2019, 02:48 AM   #7
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 12,606

Rep: Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939
man is manual, this is a linux/unix command to print the manual page of tools (and others).
 
1 members found this post helpful.
Old 02-14-2019, 02:57 AM   #8
Yuc
Member
 
Registered: Nov 2018
Posts: 36

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
man is manual, this is a linux/unix command to print the manual page of tools (and others).
Ah,I see. Thank you.
 
Old 02-14-2019, 04:44 AM   #9
ehartman
Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 529

Rep: Reputation: 252Reputation: 252Reputation: 252
Quote:
Originally Posted by Yuc View Post
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).

Last edited by ehartman; 02-14-2019 at 04:45 AM.
 
1 members found this post helpful.
Old 02-14-2019, 08:09 AM   #10
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19.1 MATE
Posts: 7,906
Blog Entries: 5

Rep: Reputation: 2822Reputation: 2822Reputation: 2822Reputation: 2822Reputation: 2822Reputation: 2822Reputation: 2822Reputation: 2822Reputation: 2822Reputation: 2822Reputation: 2822
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.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Neither specifying inode ratio nor inode quantity seems to have an effect on mkfs.ext2 Bogomips_ Linux - Software 4 01-24-2017 07:24 PM
questions abt inode.inode gurus plz have a look aceone Red Hat 7 05-22-2011 12:11 PM
Can you write a script to display file name, Inode, and size of any file? JaxsunApex Linux - Newbie 3 01-30-2007 08:39 AM
Create a script to display file name, Inode, and size of any file. Has to be a script JaxsunApex Linux - Newbie 7 01-29-2007 08:15 PM
NewsForge: The Facts Behind the "Get the Facts" Ad Campaign XavierP Linux - News 1 07-03-2005 11:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration