Operating System - HP-UX
1825704 Members
3315 Online
109686 Solutions
New Discussion

Lsof line count result & nfile usage difference

 
서재욱
New Member

Lsof line count result & nfile usage difference

I have a question.

why output of (lsof |wc -l) is different with kcusage nfile usage ? (or glance & option t & crashinfo )

Could you explain this reason
1 REPLY 1
Wouter Jagers
Honored Contributor

Re: Lsof line count result & nfile usage difference

Hi,

I can't say I can make it clear for you, but I've wondered the same in the past.

I think some things are reported several times by lsof + some entries are not actually filesystem related.. more enlightenment welcome.

Anyway, a clever person once tought me that the following command approaches the nfile usage quite well. Not exact, but works for me :-)

# lsof +ff | grep " 0x........ " | sort -uk 6,6 | wc -l

Cheers,
Wout
an engineer's aim in a discussion is not to persuade, but to clarify.