- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Is it possible to show what file a process i w...
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
Forums
Discussions
Discussions
Discussions
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
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
09-06-2006 04:13 AM
09-06-2006 04:13 AM
Is it possible to show what file a process i waiting for?
It's showing state "D" in ps auxw
lsof shows all open files/socket
But how can I tell which one it is hanging for?
The only suggestion I have is using a debugger.
Can this information be collected from the kernel using some tool?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2006 04:14 AM
09-06-2006 04:14 AM
Re: Is it possible to show what file a process i waiting for?
The best utility for this is lsof.
It has a number of options to show what resouces are associated with a process.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2006 04:19 AM
09-06-2006 04:19 AM
Re: Is it possible to show what file a process i waiting for?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2006 05:05 AM
09-06-2006 05:05 AM
Re: Is it possible to show what file a process i waiting for?
I might have to re-read the man page or read the source...
When it comes to strace/ltrace, I don't know when this happens (not reproducable) and I cant run this process with strace all the time.
And when it have hung it stays hung!
/JanN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2006 05:11 AM
09-06-2006 05:11 AM
Re: Is it possible to show what file a process i waiting for?
This is one of the places where you can find the software:
http://freshmeat.net/projects/lsof/
Regards,
Jaime.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2006 07:36 AM
09-06-2006 07:36 AM
Re: Is it possible to show what file a process i waiting for?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2006 09:48 PM
09-06-2006 09:48 PM
Re: Is it possible to show what file a process i waiting for?
lsof will show files but if your process is waiting on hardware then you'll just have to wait.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2006 04:03 AM
09-11-2006 04:03 AM
Re: Is it possible to show what file a process i waiting for?
Ivan: I can attach strace on the fly - but then I've already missed the interesting system call that hung the process.
Steven et.al.: I already have lsof and know it is a handy tool. But I can't seem to find the answer to my question with it.
Tom: You're explaining it well - but I already knew that.
Questions are:
1. Can lsof (or any other tool) tell me (on the already hung process) what system call or file descriptor it is waiting for?
2. I cant use gdb since I can't signal the process. (Uninteruptable sleep) So I take it the only possible way is to poke into process or kernel memory somehow to find out. How can this be done?
Or is this a dead end? Must I either "crash" the whole system and look through the system dump or trouble shoot from another direction?
/JanN