Common Misconfigured HP-UX Resources (April 2006)

128,000 inodes would be in the cache. The first 1000 inodes would have been reused when readi
in the last 1000 inodes. If you use the find command again, it would have to recache all 129,00
inodes.
However, if the command only traversed through 127,000 inodes, then all of the inodes would
be in the
ng
0
find
cache for the second find command, which would then run much faster.
sstat
3087 inodes current 128002 peak 128000 maximum
255019 inodes alloced 251932 freed
W
vxfsstat / p inodes
128002 peak 128000 maximum
251935 freed
A
128,001.
as booted. Again, it is normal for the “current” and “peak” counts to be greater than the
che
) threads runs to scan the free lists to see if any inodes
, the daemon thread begins to free the inodes back to the
ernel allocator and
the rate at which the inodes are freed varies depending on the JFS version as shown in the following
JFS 3.3 JFS 3.5/JFS 4.1/JFS
5.1
As an example, consider an HP-UX 11i v1 system using JFS 3.5. Prior to a find command, the
vxf command shows the current number of inodes to be 3087:
# vxfsstat / | grep inodes
it traverses enough files: hen you enter the find command, the inode cache will fill up if
# find / -name testfile
| gre#
128001 inodes current
379936 inodes alloced
s currently in the cache jumped to fter entering the find command, note that the number of inode
The “peak” value of 128,002 represents the highest value that the “inodes current” has been since
the system w
“maximum” value by a few inodes.
Shrinking the JFS Inode Ca
Periodically, one of the JFS daemon (vxfsd
have been inactive for a period of time. If so
kernel memory allocator so the memory can be used in future kernel allocations.
The length of time an inode can stay on the free list before it is freed back to the k
table:
Minimum time on free list
before being freed
(seconds)
500 1800
Maximum inodes to
per second
free
50 10 - 25
For example, JFS 3.3 will take approximately 2000 seconds or 33 minutes to free up 100,000
odes.
te to free using the vxfsstat command:
Th ree_timelag, which you can also display with vxfsstat on
S 3.5:
in
With JFS 3.5 and above, you can see the minimum time on the free list before the inode is a
candida
# vxfsstat -i / | grep "sec free"
1800 sec free age
is value is also considered the if
JF
20