Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Why is lsof so slow?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Uncle Jeff  
View profile  
 More options Jan 24 2001, 9:50 pm
Newsgroups: comp.unix.solaris
From: Uncle Jeff <jeff.ho...@federated.ca>
Date: Thu, 25 Jan 2001 02:39:46 GMT
Local: Wed, Jan 24 2001 9:39 pm
Subject: Why is lsof so slow?
Hi all. We're having a problem with the lsof utility. We've installed
the latest package from sunfreeware, v4.49. Here's the output of
a 'uname -a':
 SunOS solaris 5.8 Generic sun4u sparc SUNW,Ultra-5_10

Now, on out linux boxes & our hp-ux box, a command like the following:

$ lsof +d /tmp/wrk

Responds back in a manner of seconds. We use this to check whether a
particular process has finished so we can make sure the temp files are
cleaned up properly:

$ temp-proc
$ while $(lsof +d /tmp/wrk | grep "temp-proc"); do sleep 1; done
$ rm -f temp-proc*
$ [continue on...]

And this works A-OK on the other systems. On our sun box the lsof hangs
around. I once timed it at about 50 minutes before came back. Of course
by that time the temp-proc was _long_ finished, but the lsof kept
everything else waiting.

And yes, before you say RTFM, I have. There are sections in the FAQ
explaining about how slow lsof can be, especially with the +d option.
But, _this_ slow?

Is there anything anybody can suggest?

--
 ( >- THKS  %^>
 /~\  Uncle Jeff (get rid of JUNK to email)
|  \) Jeff.HowieJ...@JUNKfederated.ca
 \_|_ Linux, the choice of a GNU generation

--
 ( >- THKS  %^>
 /~\  Uncle Jeff (get rid of JUNK to email)
|  \) Jeff.HowieJ...@JUNKfederated.ca
 \_|_ Linux, the choice of a GNU generation

Sent via Deja.com
http://www.deja.com/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.