Operating System - HP-UX
1832487 Members
4303 Online
110043 Solutions
New Discussion

lsof count compared to sar-v

 
Vijayakrishna
Occasional Advisor

lsof count compared to sar-v

When user sar -v to see the file table utilization (nfile) I am getting
file-sz
3200/10250

When I use lsof with follwing
for i in `lsof | awk '{print $1}' | sort | uniq` ; do echo $i ; lsof | grep $i | grep '/' | wc -l ; done ,

I am getting the total count of 10934.
How can use lsof to match sar-v?

Thank you
Vijay