- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: "mv" commands runs too 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-14-2001 08:07 PM
тАО05-14-2001 08:07 PM
"mv" commands runs too slow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2001 09:56 PM
тАО05-14-2001 09:56 PM
Re: "mv" commands runs too slow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2001 10:17 PM
тАО05-14-2001 10:17 PM
Re: "mv" commands runs too slow
I think the HW is sufficient for such a simple action,but the performance is really unbearable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2001 10:22 PM
тАО05-14-2001 10:22 PM
Re: "mv" commands runs too slow
are you really MOVING the files i.e. to another disk?
if you 'move' the files on the same disk they are simply renamed which is done a lot faster.
regards,
Thierry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2001 11:35 PM
тАО05-14-2001 11:35 PM
Re: "mv" commands runs too slow
How are you doing the move with "mv", if so try a copy then remove.
Also run sar and look at CPU / Disk and Swap whilst it is going on.
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2001 12:25 AM
тАО05-15-2001 12:25 AM
Re: "mv" commands runs too slow
I can't quite catch your idea. The CPU and swap usage are low, and why shall i make a copy and then remove them?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2001 01:17 AM
тАО05-15-2001 01:17 AM
Re: "mv" commands runs too slow
#sar -v 5 5
and your maxusers kernel parameter.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2001 02:22 AM
тАО05-15-2001 02:22 AM
Re: "mv" commands runs too slow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2001 03:01 AM
тАО05-15-2001 03:01 AM
Re: "mv" commands runs too slow
A move command copies the file and removes the old so if doing a mv on many files :-
cp
rm
cp
rm etc for x times
whereas a copy of all first and go back and remove all=
cp all
rm all
far less jumping from dir to dir so therefire quicker.
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2001 04:04 AM
тАО05-15-2001 04:04 AM
Re: "mv" commands runs too slow
I feel that mv is always faster than copy.
Only reason, mv would be slow if you are
moving files across filesystem.
Just an additional info, the inode number
changes only when a file is moved across file
system.
It remains unchanged, if it is within the same
filesystem.
One can verify by using ls -il command on that file.
mv uses rename() system call, if it fails, uses
copy routine(basicailly reads from a file and writes in another file).
This is what I feel, hope it helps.
Thanks and Regards
Deepak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2001 06:56 AM
тАО05-15-2001 06:56 AM
Re: "mv" commands runs too slow
cd /old_dir
tar cvf - . | (cd /new_dir; tar xvf -)
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2001 05:54 PM
тАО05-15-2001 05:54 PM
Re: "mv" commands runs too slow
$ cd /source_dir
$ find . | cpio -pudlmv /destination_dir
cpio -p is optimized for disk-to-disk file transfers. Leave off the v option if you don't need the verbose (file by file) listing.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2001 06:34 AM
тАО05-16-2001 06:34 AM
Re: "mv" commands runs too slow
Darrell