Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

pfiles in Solaris suspends files for a short period while examining them, however, lsof does not. How does lsof work that allows it to retrieve information while not suspending files?

share|improve this question
up vote 1 down vote accepted

Well, lsof read the kernel volatile memory, while pfiles directly read directly from the application interface, thus causing it to suspend for a short period of time.

For that reason, lsof does not truly provide an accurate system picture of the system, but it's better then the option of freezing the process while inspecting it.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.