- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- lsof display is very slow
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
тАО05-09-2005 09:15 PM
тАО05-09-2005 09:15 PM
lsof display is very slow
We have 5 rp5470 running with 11i.
cpu 4G,memory 8gb
Execute lsof command with one machine,display is very slow. it will begin to display it in about one minute.
lsof version is 4.74.
compiled with local machine.
copy binary to another machine,it is OK.
waiting time is not caused.
what's problems ? kernel ? patch ?
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2005 09:30 PM
тАО05-09-2005 09:30 PM
Re: lsof display is very slow
Try the -n option.
# lsof -n
---
-n This option inhibits the conversion of network numbers to host names for network files. Inhibiting conversion may make lsof run faster. It is also useful when host name lookup is not working properly.
---
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2005 09:31 PM
тАО05-09-2005 09:31 PM
Re: lsof display is very slow
Can you try running lsof with -n switch?
-n
This option inhibits the conversion of network numbers to host names for network files. Inhibiting conversion may make lsof run faster. It is also useful when host name lookup is not working properly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2005 09:32 PM
тАО05-09-2005 09:32 PM
Re: lsof display is very slow
did u take the binary 4.74, i.e. lsof_4.74.gz from here:
http://ftp.cerias.purdue.edu/pub/tools/unix/sysutils/lsof/binaries/hpux/B.11.11/
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2005 10:35 PM
тАО05-09-2005 10:35 PM
Re: lsof display is very slow
Thanks for your answers.
lsof is compiled with a real machine.
it became about ten seconds earlier with -n option.
but it is still slow.
Kind Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2005 10:43 PM
тАО05-09-2005 10:43 PM
Re: lsof display is very slow
What does nslookup 127.0.0.1 return?
Are you running lsof as root?
can you post your /etc/resolv.conf and /etc/nsswitch.conf files?
live free or die
harry d brown jr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2005 11:11 PM
тАО05-09-2005 11:11 PM
Re: lsof display is very slow
Does it hang when you run it on a single file only?
# lsof /etc/utmp
You may want to try running lsof with the following option to try to isolate the problem.
-P no port names
-l list UID numbers
-C no kernel name cache
-b avoid kernel blocks
-M portMap registration
Failing all that you can try using tusc to determine why it hangs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-10-2005 04:24 PM
тАО05-10-2005 04:24 PM
Re: lsof display is very slow
-----------------------
# nslookup 127.0.0.1
Using /etc/hosts on: HOSTNAME
looking up FILES
Name: localhost
Address: 127.0.0.1
Aliases: loopback
-----------------------
# cat nsswitch.conf
#
# /etc/nsswitch.files:
#
# @(#)B.11.11_LR
#
# An example file that could be copied over to /etc/nsswitch.conf; it
# does not use any name services.
#
passwd: files
group: files
hosts: files
services: files
networks: files
protocols: files
rpc: files
publickey: files
netgroup: files
automount: files
aliases: files
------------------------
resolv.conf file is not set.
The result was the same for the file of one.
perhaps, because the VM free memory(200M) is considerably little, I think that this is a
cause.
Kind Regards
Y.J
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2005 02:01 AM
тАО05-16-2005 02:01 AM