From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 13 16:00:36 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CD45D16A412 for ; Wed, 13 Sep 2006 16:00:36 +0000 (UTC) (envelope-from ashok.shrestha@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by mx1.FreeBSD.org (Postfix) with ESMTP id 691C843D49 for ; Wed, 13 Sep 2006 16:00:32 +0000 (GMT) (envelope-from ashok.shrestha@gmail.com) Received: by ug-out-1314.google.com with SMTP id m2so2133161uge for ; Wed, 13 Sep 2006 09:00:31 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:mime-version:content-type:content-transfer-encoding:content-disposition; b=YKSBjxHsD5+iXg+TtrZrxe7FwUvkh35Q+BbdLfE2v0DeV5Sdp2MUtJ3Bq4oXWNV1C4zx4+nUtrwafQaumiA2gRWRnOMo+ynYU2YpPfN0n+VyySkaFavnX6pWuZQlaFG6BWVHwFE1lKe5s9MwV1U5FyDyqn6ylwQnvEgbvlhKDrg= Received: by 10.67.29.12 with SMTP id g12mr4184978ugj; Wed, 13 Sep 2006 09:00:30 -0700 (PDT) Received: by 10.66.251.5 with HTTP; Wed, 13 Sep 2006 09:00:30 -0700 (PDT) Message-ID: <79e2026f0609130900y74070042ya5a99204d0bf1c1@mail.gmail.com> Date: Wed, 13 Sep 2006 12:00:30 -0400 From: "Ashok Shrestha" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: ashok.shrestha@hlsc.com Subject: samba file copy lag X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Sep 2006 16:00:36 -0000 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@windowsserver/c-drive /mnt/windowsserver/c-drive -- Ashok Shrestha