- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- faster alternative to du
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
тАО04-06-2006 12:54 AM
тАО04-06-2006 12:54 AM
faster alternative to du
Is there any faster alternative to calculate disk spce on LINUX/HPUX than du?
du takes long time to calculate 150 GB space ..
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-06-2006 01:00 AM
тАО04-06-2006 01:00 AM
Re: faster alternative to du
Thread covering a perl alternative:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=227734
seems to provide an answer, but as Procura tested, the answer was still slower.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-06-2006 01:20 PM
тАО04-06-2006 01:20 PM
Re: faster alternative to du
I am not quite ablet ot use the above link...
is there any other thread or any other idea ?
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-06-2006 05:23 PM
тАО04-06-2006 05:23 PM
Re: faster alternative to du
real 0m0.007s
user 0m0.001s
sys 0m0.006s
I hope this any help to you.
Sung
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-06-2006 06:28 PM
тАО04-06-2006 06:28 PM
Re: faster alternative to du
sorry you can't access the thread I mentioned earlier.
I have attached the perl code by Stanimir Hadzhinikolov as perl.txt.
Brian Bergstrands code was:
use File::Find;
my $base = $ARGV[0] || "./";
my $total = 0;
sub addsize {
$total += -s;
}
find(\&addsize, $base);
print "$total\n";
Procura's code was:
timex perl -MFile::Find -le'find(sub{$s+=-s},".");print$s'
The normal reason for the slowdown problem with du is not really the size of the filesystem, but the number of files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-06-2006 06:28 PM
тАО04-06-2006 06:28 PM
Re: faster alternative to du
sorry you can't access the thread I mentioned earlier.
I have attached the perl code by Stanimir Hadzhinikolov as perl.txt.
Brian Bergstrands code was:
use File::Find;
my $base = $ARGV[0] || "./";
my $total = 0;
sub addsize {
$total += -s;
}
find(\&addsize, $base);
print "$total\n";
Procura's code was:
timex perl -MFile::Find -le'find(sub{$s+=-s},".");print$s'
The normal reason for the slowdown problem with du is not really the size of the filesystem, but the number of files.