Very bad performance when copying large files from windows to samba-share
Lars.Heineken at gmx.de
Tue Jun 25 13:19:02 GMT 2002
Let me summarize what we have:
-Win98 doing a write request to the last byte of the file to be copied
-My machine creates a tempfile of that size and if that takes too long we get a timeout
-> My questions: What is samba doing if strict allocate is set to "no", is it ignoring the write request ?
Does it pass the write request on to the system, and the kernel creates the tempfile ?
What can I do to check who's fault the creation of the tempfile is ?
On Mon, 24 Jun 2002 22:13:12 +0200
Lars Heineken <Lars.Heineken at gmx.de> wrote:
> ou're right, the machine is filling up a tempfile. During the pause between write-request and writing my machine has heavy disk activity. When I copy a very large file (large than this one) the win-client times out after 60 seconds and a file containing zeros is stored where the copy should be (with exactly the size of the copy). The Samba-Server behaves like "strict allocate" was set to "yes" . But it's turned of.. Maybe Samba isn't recognizing (or minding) the option ?
> On Mon, 24 Jun 2002 12:36:19 -0700
> "MCCALL,DON (HP-USA,ex1)" <don_mccall at hp.com> wrote:
> > Interesting;
> > it's fairly obvious from the trace that your server is doing SOMETHING for
> > the ~45 seconds
> > between the initial smb write request of 0 bytes at offset whatever, and the
> > evenuual reply.
> > I am not familiar with the version of unix you are using (I'm an HPUX guy
> > myself) but I would
> > concentrate at this point on finding some tool like sar, or something that
> > would let you see
> > WHAT's going on ON THE BOX during these 45 seconds of apparent network
> > inactivity. Even something
> > as simple as doing repetitive du's or lls on the directory where the file is
> > being created, and watch
> > for block/file increases during this time would tell you if your os is
> > 'filling up' space for the
> > write...
> > Just a thought,
> > Don
> > -----Original Message-----
> > From: Lars Heineken [mailto:Lars.Heineken at gmx.de]
> > Sent: Monday, June 24, 2002 14:49
> > To: samba-technical at lists.samba.org
> > Cc: don_mccall at hp.com; ulf.bertilsson at adcomdata.no
> > Subject: Re: Very bad performance when copying large files from windows
> > to samba-share
> > .. I stumbled over this option before and these are a few Lines from my
> > smb.conf:
> > # Security mode. Most people will want user level security. See
> > # security_level.txt for details.
> > security = share
> > write raw = no
> > strict allocate = No
> > # Use password server option only with security = server or security =
> > domain
> > # When using security = domain
More information about the samba-technical