Sponsored Content
Full Discussion: how inode works
Operating Systems Solaris how inode works Post 302277245 by bakunin on Thursday 15th of January 2009 06:57:24 PM
Old 01-15-2009
Jim is absolutely correct, just to explain where all these "rules of thumb" come from:

For every file you need exactly one inode, which contains the information the filesystem has about the file. In this data structure, for instance, the information which "ls" displays is stored. It doesn't matter how big or small the file is, even if it contains nothing at all it still needs an i-node. Links, btw., are just inodes, which point to another inode. So links also need one inode.

That means: the number of inodes you need depends on the size of the disk and your estimation about how big the average file (in fs blocks) in it is going to be. Jim has already mentioned databases, because they have usually a few very big files. A multi-terabyte Oracle database might consist of, say, a hundred files, thats all. On the other side of the spectrum are log directories of tools which produce many very small logfiles. Most filesystems are somewhere in between these extremes.

Run a "find" command over the various filesystems on some machines and calculate the average file size and the number of the files to get some empirical data to build on your experience.

If in doubt between two variants, opt for the bigger number of inodes. The space wasted this way is not that much and certainly not as big as the space wasted if the filesystem runs out of inodes.

I hope this helps.

bakunin
 

10 More Discussions You Might Find Interesting

1. AIX

%Inode used full

Hello I have used 100% of inode in a file system can you increase thie number of inode without backup-make the file system again-restore ? thank you (0 Replies)
Discussion started by: pascalbout
0 Replies

2. Shell Programming and Scripting

INode

hi i am nitin... jus a new kid on the block... my query is... does the concept of region invovle sharin of inodes wen the sticky it is set... eg... if two process share two text regions... wat actually happens thank u (1 Reply)
Discussion started by: nitinsharma_ssn
1 Replies

3. Filesystems, Disks and Memory

Inode number

as kernel keeps track of user activities on a file by its INODE number and I node table . what is the structure of Inode table. and where does this Inode table mapped into?user space or kernel space? is the Inode Number is fixed for a file till its deletion? thanks (1 Reply)
Discussion started by: compbug
1 Replies

4. Red Hat

inode no and fd path

hi, can anyone please tell me where i can extract inode numbers and path associated with all file descriptors. i want these informations only. is there any system call or functions to get these things? i hav a RHEL 4. also /proc/pid/fd shows some file descriptor list. is that the proper path to... (1 Reply)
Discussion started by: sanjaykhuntia
1 Replies

5. UNIX for Dummies Questions & Answers

incore inode

Dear Friend , what is incore inode ? and what is difference between incore inode and inode ????? sanjay (1 Reply)
Discussion started by: sanjaygoyan
1 Replies

6. Solaris

about inode

how can i see inode table information of a perticler inode.anybody knows pls tell me. Than.Q (3 Replies)
Discussion started by: nag.mi2000
3 Replies

7. AIX

FS inode 58%

Hi Guys, I have this filesystem got big with inode: /dev/hd4 3670016 183664 95% 63705 58% /var I don't know why the system doesn't give alerts on this FS although it's 95% and why the inode is 58%. Any comments will be highly appreciated. Thanks, itik (1 Reply)
Discussion started by: itik
1 Replies

8. UNIX for Dummies Questions & Answers

inode filename

can someone please tell me why is the filename not inlcuded in the inode of the file? (2 Replies)
Discussion started by: wowman
2 Replies

9. Solaris

inode in solaris

Dear, How can i check inode information in my Solaris box? With Regards, Mjoshi (4 Replies)
Discussion started by: mjoshi87
4 Replies

10. Solaris

Specify the inode of a file?

Is there any way to create a file on Solaris 10 (ZFS preferably, but UFS would be helpful as well) with a specific inode number? I need to create a file with a large inode, greater than a 32bit integer. I am trying to test a piece of software which may be incorrectly truncating large inodes down... (16 Replies)
Discussion started by: unblockable
16 Replies
space(4)							   File Formats 							  space(4)

NAME
space - disk space requirement file DESCRIPTION
space is an ASCII file that gives information about disk space requirements for the target environment. The space file defines space needed beyond what is used by objects defined in the prototype(4) file; for example, files which will be installed with the installf(1M) command. The space file should define the maximum amount of additional space that a package will require. The generic format of a line in this file is: pathname blocks inodes Definitions for the fields are as follows: pathname Specify a directory name which may or may not be the mount point for a filesystem. Names that do not begin with a slash ('/') indicate relocatable directories. blocks Define the number of disk blocks required for installation of the files and directory entries contained in the pathname (using a 512-byte block size). inodes Define the number of inodes required for installation of the files and directory entries contained in the pathname. EXAMPLES
Example 1 A sample file. # extra space required by config data which is # dynamically loaded onto the system data 500 1 SEE ALSO
installf(1M), prototype(4) Application Packaging Developer's Guide SunOS 5.11 7 Feb 1997 space(4)
All times are GMT -4. The time now is 11:29 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy