[clug] NFS slow cp/rm for many small files

Duncan Roe duncan_roe at acslink.net.au
Sat Oct 28 23:51:00 GMT 2006


Hi Steve,

Did the previous suggestions resolve your problem?

If you still have it, try adding rsize=1024,wsize=1024 to the mount commands
(fstab lines) at each end. This reduces from 8096 the size of udp packets - we
have to use it at work with vmware linux guests.

Cheers ... Duncan.

On Thu, Oct 26, 2006 at 12:56:18PM +1000, Steve Granger wrote:
> Hi
>
> I'm having problems copying/deleting large numbers of small files on an
> nfs partition in that it's taking an extremely long time to do so.
>
> E.g.
> steveg at steve-ubuntu:~/tmp$ du -sm  linux-2.6.17-gentoo-r8
> 346     linux-2.6.17-gentoo-r8
>
> steveg at steve-ubuntu:~/tmp$ time cp -r linux-2.6.17-gentoo-r8 linux
>
> real    30m52.234s
> user    0m0.888s
> sys     0m14.809s
>
<SNIP>


More information about the linux mailing list