Bug 3583 - smbclient timeout on large file truncate/delete
smbclient timeout on large file truncate/delete
Status: NEW
Product: Samba 3.0
Classification: Unclassified
Component: smbclient
3.0.21a
x86 Linux
: P3 major
: none
Assigned To: Samba Bugzilla Account
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-03-05 11:08 UTC by szymans
Modified: 2008-02-22 13:18 UTC (History)
0 users

See Also:


Attachments
This just increases the timeout for libsmbclient (529 bytes, patch)
2008-02-22 13:03 UTC, Michael Stowe
no flags Details
This just increases the timeout for clientgen.c (486 bytes, patch)
2008-02-22 13:05 UTC, Michael Stowe
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description szymans 2006-03-05 11:08:24 UTC
When smbclient is requested to replace a "largefile" with a "newfile" (smbclient -c 'put newfile largefile') on the samba server that has a slow and busy disk subsystem then smbclient times out with error "Call timed out: server did not respond after 20000 milliseconds opening remote file \largefile".
This happens also when deleting a large file.

The situation is observed on clients connecting to a busy samba server with ext3 disk subsystem and several GB large files, for which open with O_TRUNC flag or delete lasts longer than 20s.

For me this bug breaks automated backup scripts which upload backups using smbclient -  smbclient times out leaving a file with 0 byte length on server.

Expected results: File upload or delete is done correctly.

Steps to reproduce: prepare a large file on a server and heavily load the disk subsystem with writes (~10 threads writing other files). Then try to replace or remove this file with smbclient from another machine. The file size size should be chosen so that unix "rm" command requires at least 20s to remove this file (8GB worked for me).

Tested with samba server 3.0.21a (i386, Fedora Core 3, ext3 on raid5 on ATA disks, Pentium IV, 2GB RAM) and different smbclients: 3.0.21a on i386 Fedora Core 1, 3.0.14a-2 on i386 Fedora Core 4, 2.2.8a on Sparc Solaris 8.
Comment 1 Michael Stowe 2008-02-22 13:03:18 UTC
Created attachment 3144 [details]
This just increases the timeout for libsmbclient
Comment 2 Michael Stowe 2008-02-22 13:05:33 UTC
Created attachment 3145 [details]
This just increases the timeout for clientgen.c
Comment 3 Michael Stowe 2008-02-22 13:18:24 UTC
Patches are for 3.0.28