- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- lsof takes long time ,
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2011 06:26 AM
тАО03-12-2011 06:26 AM
lsof takes long time ,
I am using lsof for monitoring purposes.
once its executed , it takes about 2 min , whether Its on / , /var , a tiny sub Dir, or even a file .
is it normal ?
how can I reduce the load of lsof. it takes 99% of a core for 2 min !!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2011 06:52 AM
тАО03-12-2011 06:52 AM
Re: lsof takes long time ,
What is it that you are monitoring?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2011 07:04 AM
тАО03-12-2011 07:04 AM
Re: lsof takes long time ,
If you are just running 'lsof' without any arguments, then it could take a while because it is looking at all processes.
Adding some options to narrow the scope of what lsof is looking at/for could help you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2011 07:11 AM
тАО03-12-2011 07:11 AM
Re: lsof takes long time ,
Right, either to look at specific PIDs or to exclude others.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2011 07:17 AM - last edited on тАО07-13-2011 03:09 PM by Kevin_Paul
тАО03-12-2011 07:17 AM - last edited on тАО07-13-2011 03:09 PM by Kevin_Paul
Re: lsof takes long time ,
Could be getting confused, but I thought I read somewhere that lsof was effected by the same problem that fuser had recently... se this thread:
http://h30499.www3.hp.com/t5/System-Administration/fuser-uses-too-much-CPU/m-p/4606069#M376266
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2011 07:27 AM
тАО03-12-2011 07:27 AM
Re: lsof takes long time ,
It depends. (The memory leak was in dld.sl) That was for PA only. If you could get lsof to skip looking at memory regions, that might help. Looking for mapped files requires looking at memory regions.