- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: check with a script open file(s) of a filesyst...
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-23-2011 06:29 AM
09-23-2011 06:29 AM
Re: check with a script open file(s) of a filesystem
hello,
interesting behaviour between HPUX 11.23 and HPUX 11.31 :
fuser show different result, when it is used in a pipe:
test:
mkdir /tmp/fuser_dir
HPUX 11.31:
fuser -f /tmp/fuser_dir 2>/dev/null | wc -l
result: 0
info about /usr/sbin/fuser :
what /usr/sbin/fuser
/usr/sbin/fuser:
fuser.c $Date: 2010/01/12 19:01:40 $Revision: r11.31/1 PATCH_11.31 (PHCO_40769)
$Revision: @(#) fuser R11.31_BL2010_0112_2 PATCH_11.31 PHCO_40769
HPUX 11.23:
fuser -f /tmp/fuser_dir 2>/dev/null | wc -l
result: 1 # <------ wrong
what /usr/sbin/fuser
/usr/sbin/fuser:
$Revision: B11.23.0409LR
workaround for 11.23:
fuser -f /tmp/fuser_dir 2>/dev/null | grep -v "^$" | wc -l
ok ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2011 06:33 AM
09-23-2011 06:33 AM
Re: check with a script open file(s) of a filesystem
@support_billa wrote:test : filesystem is read only
fuser : 0.1 sec
lsof : 74 sec
It would be nice to know what options you used when you ran 'lsof'.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2011 06:43 AM
09-23-2011 06:43 AM
Re: check with a script open file(s) of a filesystem
# time lsof /tmp : 0.03u 4.76s 0:05.22 91.7% # time fuser -c /tmp : 0.00u 0.02s 0:00.02 100.0% # time lsof /tmp/* : 0.02u 4.59s 0:04.72 97.6% # time fuser /tmp/* : 0.02u 0.67s 0:00.70 98.5% # time lsof /usr/lib/* : 0.05u 4.74s 0:05.54 86.4% # time fuser /usr/lib/* : 0.01u 0.22s 0:00.25 92.0% #
I think I've just proven myself wrong on the speed :)
The output of lsof however is still way more usable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2011 07:27 AM
09-23-2011 07:27 AM
Re: check with a script open file(s) of a filesystem
hello,
@ It would be nice to know what options you used when you ran 'lsof'.
i tested "lsof" without options : 1:32 min
"lsof" with "-s +D" : 1:20 min
regards
- « Previous
-
- 1
- 2
- Next »