- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Delay when executing commands
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
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
тАО05-03-2010 07:05 AM
тАО05-03-2010 07:05 AM
Whenever some of the users runs commands on it it delays the execution of said command for like 5 seconds. Any subsequent executions within reasonable amounts of time are executed normally.
Logged in as root I don't have the exact same problem, but I do get the same delay whenever I misspell a command, the "command: not found" dialog will take quite a few seconds to appear instead of doing so immediately.
What might be wrong? I figured it might have something to do with the path, but I tried doing du -s on every path in the $PATH and there was no delay what so ever.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2010 07:14 AM
тАО05-03-2010 07:14 AM
Re: Delay when executing commands
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2010 07:18 AM
тАО05-03-2010 07:18 AM
Re: Delay when executing commands
1. check if there is any hung NFS mount, kill it if there is
2. if "find" command is still running
3. if there are many small files, but many many of them, "ls" will let you feel delay, it this is true, one mya want reorganize the file system through fsadm.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2010 07:24 AM
тАО05-03-2010 07:24 AM
Re: Delay when executing commands
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2010 07:34 AM
тАО05-03-2010 07:34 AM
Re: Delay when executing commands
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2010 03:17 PM
тАО05-03-2010 03:17 PM
Solution> Logged in as root I don't have the exact same problem, but I do get the same delay whenever I misspell a command, the "command: not found" dialog will take quite a few seconds to appear instead of doing so immediately.
That pretty well identifies the problem. You very likely have one or more NFS mountpoints in $PATH -- not a good idea at all. As you have seen, this is causing a problem for everyone including root. The reason root is fast is that the NFS mounts are at the end of root's $PATH, while the users have probably customized their .profile to push the NFS paths to the front of the $PATH list.
When an NFS server fails or runs very slowly, it will affect every computer and every user that has these paths in their $PATH. That's why you never want NFS mounts in $PATH. It is far more reliable to use aliases for the few commands that are found on NFS servers. If the NFS server is broken, it will not affect local operations.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-04-2010 11:39 PM
тАО05-04-2010 11:39 PM
Re: Delay when executing commands
Seems the users paths are pointing into their homes and said homes are automounted over nfs.
To keep on asking for help though, what might have screwed up the performance on the automounts? These path-settings are old, but the problem is new, suddenly the NFS-mounts are just alot slower than they used to be.
The NFS-server is also HP-UC 11.11.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-05-2010 02:10 AM
тАО05-05-2010 02:10 AM
Re: Delay when executing commands
timex - time a command; report process data and system activity . . .
# timex
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-05-2010 06:14 AM
тАО05-05-2010 06:14 AM
Re: Delay when executing commands
You need to troubleshoot each NFS server to find the slow one(s). Was the server recently patched? Is the server running in half-duplex on the network? Does the server have DNS delays? I am assuming that most of the NFS servers are OK and only certain servers are causing the delays.
I would probably look at changing /etc/PATH to never include NFS mounts. To do so can cripple the system when network or NFS server issues occur. Never allow root to have an NFS mount in $PATH. You don't want problems on other machines to cripple the ability to administer the local machine.
Bill Hassell, sysadmin