samba file copy lag

Ashok Shrestha ashok.shrestha at gmail.com
Wed Sep 13 09:00:36 PDT 2006


Hi,

I have a freebsd machine which has an Samba share mounted (using
mount_smbfs) - mounted to /mnt/windowsserver/c-drive. Additionally, I
have a Samba share that shares that mount point.

So here's the issue.

If I copy a file from a Windows machine (my desktop, for instance) to
\\bsdserver\windowsserver\ -- it's fast.  (note: that's not a smb
mounted point; it's still the bsd machine). [I'll label this point A
to B.]

If I'm on the bsd machine, and I copy a file from the bsd machine to
the mount_smbfs mount, it's fast.  (Like, copy a file from
/mnt/windowsserver/ to /mnt/windowsserver/c-drive). [Point B to C]

But if I try to copy a file directly from my desktop Windows machine
to \\bsdserver\windowsserver\c-drive, it's significantly slow. [Point
A to C]

In brief, copying from point A to B is fast; copying from B to C is
fast; but copying from A to C is significantly slow. E.g., copying a
70 MB file from A to B is takes 10 secs; copying the same file from B
to C takes about 10 secs; but copying from A to C takes around 6
minutes.


The bsd machine's cpu util is like 1%. And I am using two nic cards in
the bsd server: one for A-B, and the other for B-C.

Any suggesstions?


Specs:
Freebsd 6.1-RELEASE amd64
Samba 3.0.21b,1


Mount command:
mount_smbfs -c1 -N -W LAN //user at windowsserver/c-drive
/mnt/windowsserver/c-drive


-- 
Ashok Shrestha


More information about the freebsd-hackers mailing list