- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- What can cause a simple "ls" command hung?
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
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
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-04-2012 07:50 AM
09-04-2012 07:50 AM
What can cause a simple "ls" command hung?
Dear experts,
I ran into an issue lately when our programmers were doing performance testing. Basically this is a oracle database server and they were putting hundreds of users generating reports and query on it. I was watching glance closely. CPU and Memory usage was around 60%, enough swap, system table wasn't full. It went on for a couple of hours and all the sudden, the server seem to stuck. I typed in ls command , hit return , no response. I tried several other commands such as kcusage, no response, ssh from other servers no response. I could still use the existing glance session and look at CPU, memory, disk etc and everything seems to be normal. later when programmers terminated the test, the "ls" command I typed in finally returned without any warning. I checked system log , there was no warning or error...
my question is, if kcusage shows the kernel parameters are set high enough, and it has plenty of free cpu/mem/swap, no disk bottleneck, what could cause this kind of issue?
Thanks.
Alex
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2012 08:10 AM
09-04-2012 08:10 AM
Re: What can cause a simple "ls" command hung?
It sounds like the root file system hit 100%. Make sure that nobody is writing anything to root.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2012 08:20 AM
09-04-2012 08:20 AM
Re: What can cause a simple "ls" command hung?
no file system full during that time.
Thanks.
Alex
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2012 08:28 AM
09-04-2012 08:28 AM
Re: What can cause a simple "ls" command hung?
Interestingly when the root file system hits 100% full, most other function stop working, logging, responding. Take a lab system if you have one and see what happens.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2012 10:13 AM
09-04-2012 10:13 AM
Re: What can cause a simple "ls" command hung?
With that said... I do remember having a similar experience with a Sybase IQ server that behaved just like the root file system full. I believe a database patch and some changes to database memory and kernel memory setting were recommended. Have you checked with your application vendor?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2012 03:17 PM
09-04-2012 03:17 PM
Re: What can cause a simple "ls" command hung?
I assume that ls wasn't used on NFS filesystem?
It seems like something was causing the hang because it was so busy?
Where to you keep your shell history file, locally?
What HP-UX version are you on?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2012 07:26 AM
09-05-2012 07:26 AM
Re: What can cause a simple "ls" command hung?
no NFS. It's 11.31 running Oracle 11.2.
By extracting mwa history data, we found during tha time, a lot of the processes were blocked with "stop reason" = VM
Could anyone explain how come that happened? we have plenty of free memory (>10G) though.
| | Sec | Alive | | Process | User | | Interest | Stop |
Date | Time |/Intvl| Intvl | PID | Name | Name |Pri | Reason | Reason |
09/01/2012|20:45:00| 59.9| 59.90| 8003|postmaster |sfmdb | 130| C | VM|-D
09/01/2012|20:45:00| 59.9| 59.90| 25195|oracleCW |oracle | 130| C | VM|(LOCAL=NO
09/01/2012|20:45:00| 59.9| 59.90| 8884|sh |root | 130| C | VM|/usr/sbin
09/01/2012|20:45:00| 59.9| 59.90| 10497|oracleCW |oracle | 130| C | VM|(LOCAL=NO
09/01/2012|20:45:00| 59.9| 59.90| 17889|oracleCW |oracle | 130| C | VM|(LOCAL=NO
09/01/2012|20:45:00| 59.9| 59.90| 25498|oracleCW |oracle | 130| C | VM|(LOCAL=NO
09/01/2012|20:45:00| 59.9| 59.90| 17991|oracleCW |oracle | 130| C | VM|(LOCAL=NO
09/01/2012|20:45:00| 59.9| 59.90| 11118|oracleCW |oracle | 130| C | VM|(LOCAL=NO
09/01/2012|20:45:00| 59.9| 59.90| 26011|oracleCW |oracle | 130| C | VM|(LOCAL=NO
09/01/2012|20:45:00| 59.9| 59.90| 18403|oracleCW |oracle | 130| C | VM|(LOCAL=NO
09/01/2012|20:45:00| 59.9| 59.90| 9098|sh |oracle | 130| C | VM|
09/01/2012|20:45:00| 59.9| 59.90| 26460|oracleCW |oracle | 130| C | VM|(LOCAL=NO
09/01/2012|20:45:00| 59.9| 59.90| 11685|oracleCW |oracle | 130| C | VM|(LOCAL=NO
09/01/2012|20:45:00| 59.9| 59.90| 4352|oracleCW |oracle | 130| C | VM|(LOCAL=NO
09/01/2012|20:45:00| 59.9| 59.90| 19172|oracleCW |oracle | 130| C | VM|(LOCAL=NO
09/01/2012|20:46:00| 59.6| 59.60| 3434|vxpal |root | 130| C | VM|-a
09/01/2012|20:46:00| 59.6| 59.60| 1726|inetd |root | 130| C | VM|-l
09/01/2012|20:46:00| 59.6| 59.60| 1540|sshd |root | 130| C | VM|
09/01/2012|20:46:00| 59.6| 59.60| 2260|cimserver |root | 130| C | VM|
09/01/2012|20:46:00| 59.6| 59.60| 3109|cron |root | 130| C | VM|
09/01/2012|20:46:00| 59.6| 59.60| 2271|cimprovagt |root | 130| C | VM|0
09/01/2012|20:46:00| 59.6| 59.60| 12958|sh |oracle | 130| C | VM|
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2012 07:34 AM
09-05-2012 07:34 AM
Re: What can cause a simple "ls" command hung?
sorry , it has NFS..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2012 10:50 AM - edited 09-05-2012 11:01 AM
09-05-2012 10:50 AM - edited 09-05-2012 11:01 AM
Re: What can cause a simple "ls" command hung?
>we have plenty of free memory (>10G) though.
Are you sure you had the memory when it hung? Your output indicates you didn't.
Also, did you have swap in/out stats during this period?
It's probably too late now but what does "swapinfo -tam" show?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2012 10:53 AM
09-05-2012 10:53 AM
Re: What can cause a simple "ls" command hung?
@Alex6126 wrote:sorry , it has NFS..
Does this mean you were sitting in an NFS mounted filesystem when you issued the ls command that hung? Assuming you were not, do you know if all NFS filesystems are responding to requests? Even if you were sitting in a local directory, I've seen symbolic links, PATH variables, etc. cause an ls to hang if any of the NFS filesystems are not responding.
If you have an HP support contract you could open a case with the Response Center and get a copy of the tusc utility. That would show you which system call the ls command hung executing. That usually gives you a good idea where the underlying problem resides, or at least gives you a nudge in the right direction.
Dave
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]