Try
mkdir empty_dir
rsync -a --delete empty_dir/ yourdirectorytodelete/
I think it works faster in most cases as its using all cpu's. rm is single threaded. Its destructivly syncing an empty directory with your directory. It may not work faster in specific cases, but its worth trying.
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: http://www.mongodb.org/about/support/.
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/343960d0-0430-467c-ba3b-62e206a24d21%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Check your nfs protocol version, version 4 which is the latest is known to have some performance issues. The article below is an interesting read, and may be relevant.
http://archive09.linux.com/feature/138453
You can also avoid using nfs by setting up an rsync server on the destination, and using rsync's own protocol.
http://flipthatbit.net/2011/06/stupid-rsync-smart-touch/
Its not cut and dry, but in your circumstances some of the recomendations may be helpfull. I would not run rsync over nfs myself and i have always had performance issues with it in the past. I tend to use bzip2 and scp, but there are some alternatives
http://moo.nac.uci.edu/~hjm/HOWTO_move_data.html
Another alternative is btsync from bittorrent, especialy if there are multiple destinations. Also have a look at "murder" from twitter, another block distribution xfer protocol. Murder is a bittorrent like protocol that has heavy multithreading and multisource capabilities. Note the name comes from the name for a group of crowes, which are called a "murder of crowes".
We are moving into the need to do daily 200G xfers to distribute some read only search indexes we use, so we have been looking at various schemes for achieving that.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/818f0230-5dbd-4dfc-9152-170e9d239bf5%40googlegroups.com.