- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- differences betwenn sar -v and bdf -i ( inode )
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp
Knowledge Base
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2003 03:43 AM
05-26-2003 03:43 AM
differences betwenn sar -v and bdf -i ( inode )
I was wondering what exactly is the differences between sar -v and bdf -i concerning the inodes.
As far as I've understood sar -v shows up the value for the inode-cache in the memory and bdf shows the actual number of the HFS.
Does the inode-cache limit the number of simultanious opened files ?
Example :
I've got on one workstation 100% usage of the inode-cache but bdf -i shows up 90% of free inodes. Is this a problem ?
Marc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2003 03:48 AM
05-26-2003 03:48 AM
Re: differences betwenn sar -v and bdf -i ( inode )
as far as i know the output from
sar -v
for the inode is, as you stated, a cache.
So if it is 100% it's only a good, thing, inode are cached dinamically.
This does not prevent the system from opening new files.
The problem can arise if you kernel parameter nfile gets to the maximum.
Also: bdf -i show every kind of inode, not only HFS.
HTH,
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2003 04:39 AM
05-26-2003 04:39 AM
Re: differences betwenn sar -v and bdf -i ( inode )
Regarding "...bdf shows the actual number of the HFS...
'bdf -i' option reports the number of used and free inodes in file system space available on the specified file system.
Regarding "...As far as I've understood sar -v shows up the value for the inode-cache in the memory..."
sar reports on total or cumulative system wide activity and sar -v displays the inode table usage. The size of the inode table can be increased with the kernel parameter 'ninode'.
Regarding "...Does the inode-cache limit the number of simultaneous opened files..."
Yes, it is a factor. Inodes are hard links to both directories and files and when the max is reached no more open files or new directories will be allowed.
Regarding "...I've got on one workstation 100% usage of the inode-cache but bdf -i shows up 90% of free inodes. Is this a problem...
Probably increase the kernel parameter 'ninode' but attached the 'sar -v' report for review.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2003 04:53 PM
05-26-2003 04:53 PM
Re: differences betwenn sar -v and bdf -i ( inode )
For sar, the ninode parameter is the size of a cache in the kernel's memory area which holds shortcuts to currently opened and recently opened files. It could be better described as a file-location cache. As mentioned, the ninode cache applies to HFS filesystems only (/stand is usually the only HFS filesystem) and keeps a cache of where current and old files are located. When a file is first opened, the ninode cache is searched and if the file location is there, no directory search needs to be done, saving a *lot* of potential disk activity.
However, sar -v (and Glance) cannot measure the re-useability of the entries, that is, which entries are closed files and can be reassigned. So, sar -v reports 100% (or almost 100%) occupancy after a few hours (or days). It's best to ignore sar's report and base the size of ninode on the number of HFS filesystems. (hint: mount -p) If there is only one (/stand) then tell SAM to dump it's (very obsolete) formula and fix the value at 1000, then ignore the sar -v report for ninode.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2003 05:24 PM
05-26-2003 05:24 PM
Re: differences betwenn sar -v and bdf -i ( inode )
sar -v shows the The current-size and maximum-size of the inode table (inode cache. This can be changed by changing the ninode kernel parameter.
bdf -i reports the number of used and free inodes for hfs and vxfs filesystem. The total number of inodes allocated to the hfs filesytem is fixed and cannot be changed. We need to recreate the filesystem to change the inodes. But the vxfs filesystem allocated the inodes dynamically.
The kernel parameter which affects the number of simultaneous files open is nfile.
Thanks,