Sponsored Content
Top Forums UNIX for Advanced & Expert Users How to access inode information Post 302284981 by Corona688 on Friday 6th of February 2009 04:56:11 PM
Old 02-06-2009
inode.c from the linux kernel is not a standalone program. In fact, most individual C files, kernel or not, are not standalone programs. inode.c outside the kernel won't work because kernel code needs to be executed inside the kernel and needs things from other C files to work.

What, precisely, do you think fiddling with inodes will help you do? What do you want howto's on? I'm suspecting there's some confusion on the topic here.

An inode is essentially a unique number given to each file inside a partition. This number is only useful outside the kernel for comparison purposes, i.e. to see if two different filenames are hardlinked.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

file access inode update

When is a file "accessed" according to UNIX? For example: gzipping a file will not change the access time. (1 Reply)
Discussion started by: dangral
1 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. 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

6. 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

7. Programming

C++ application: how to access AIX process and cpu information?

Hi, may be this is an AIX noob question: my current C++ application runs on Linux and is quite memory consuming. Therefore, the application writes a logfile after it has finished containing memory information, CPU information, information on the running other processes besides my application... (0 Replies)
Discussion started by: DarthVader77
0 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. UNIX for Dummies Questions & Answers

How do you find max filesize with inode information ?

How do you find the maximum file size with the following information -: A unix filesystem has 1024 bytes block size with 32-bit address. The i-node has 12 direct and 1 indirect, 1 double indirect, and 1 triple indirect addresses. What is the maximum file size it can access ? What is the... (1 Reply)
Discussion started by: sreyan32
1 Replies
vx_ninode(5)							File Formats Manual						      vx_ninode(5)

NAME
vx_ninode - determine the internal node table size SYNOPSIS
size] VALUE
You must set these tunables to a constant value. Minimum This tunable can be set to (which means default), or to a value equal or greater than Default Based on the available physical memory, by default (when is the internal inode cache size is set according to the following table. In this table the first column is the amount of physical memory in megabytes installed on the system at boot time and the second column is the max- imum number of inodes to be cached. Physical Memory (MB) Maximum Inodes 8 400 16 750 32 1500 64 2500 128 5000 256 16000 512 32000 1024 64000 2048 128000 8192 256000 32768 512000 131072 1024000 VxFS interpolates the value of for the memory that falls between two points and extrapolates from the largest entry if the memory is larger than the largest entry in the table above. Recommended values Systems with low memory size (up to 3 GB per CPU) may not require a large inode cache when file system performance is not critical. HP recommends setting a minimum value for based upon the memory configuration as specified in the following table. In this table the first column represents the available physical memory in gigabytes and the second column is the value of Physical Memory (GB) vx_ninode 1 16384 2 32768 3 65536 >3 131072 DESCRIPTION
The VxFS file system caches the inodes in an inode table. The kernel tunable determines the number of inodes in the inode table to help VxFS in caching. is a dynamic tunable. Who Is Expected to Change This Tunable? Any privileged user can change this value. Note that the default state should be appropriate for most environments. Restrictions on Changing None. The tunable is dynamic; tuning will take effect immediately on the running system. When Should the Value of This Tunable Be Raised? This tunable value should be raised when applications (for example, file servers and web servers) expect the file systems to perform bet- ter. What Are the Side Effects of Raising the Value? Increasing the value of this tunable may consume more memory. When Should the Value of This Tunable Be Lowered? HP recommends changing the value of this tunable according to the table above when the system is under memory pressure. What Are the Side Effects of Lowering the Value? The applications will see performance degradation. What Other Tunable Values Should Be Changed at the Same Time? None. EXAMPLES
Change the value of to WARNINGS
All HP-UX kernel tunable parameters are release specific. This parameter may be removed or its meaning may change in the future releases of HP-UX. Installation of optional kernel software, from HP or other vendors, may cause changes to tunable parameter values. After installation, some tunable parameters may no longer be at the default or recommended values. For information about the effects of installation on tun- able values, consult the documentation for the kernel software being installed. For information about optional kernel software that was factory installed on your system, see at SEE ALSO
kctune(1M), vx_maxlink(5), vxfs_bc_bufhwm(5), vxfs_ifree_timelag(5). Tunable Kernel Parameters vx_ninode(5)
All times are GMT -4. The time now is 05:23 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy