Bug 5508 - reading speed of file written by Samba
Summary: reading speed of file written by Samba
Status: RESOLVED INVALID
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: File Services (show other bugs)
Version: 3.0.26a
Hardware: x64 FreeBSD
: P3 major
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-01 03:12 UTC by litvinov.dm
Modified: 2008-06-02 23:28 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description litvinov.dm 2008-06-01 03:12:48 UTC
at copying of two identical files on a computer with freebsd (samba3.026a, vsftpd)  on protolam - Samba and FTP, and subsequent their reading from a cantilever in nul, speed of file of written down Samba in 2 times less, a hard disk is empty, checked up on different hard disks and two computers - FreeBSD7 and FreeBSD6.3
Comment 1 Volker Lendecke 2008-06-01 03:42:48 UTC
What client are you using? Please try smbclient from 3.2.0rc1, we've improved reading speed significantly in that client prog.

Volker
Comment 2 litvinov.dm 2008-06-02 09:38:38 UTC
(In reply to comment #1)
> What client are you using? Please try smbclient from 3.2.0rc1, we've improved
> reading speed significantly in that client prog.
> 
> Volker
> 
I do not use smbclient, I read files straight from a FreeBSD cantilever to /dev/null on computer which Samba server
Comment 3 Volker Lendecke 2008-06-02 11:35:34 UTC
Reading speed off a samba share very much depends on the exact client behaviour. That's why I said that we have done much work to get the smbclient utility fast.

I am marking this bug as invalid because I assume that the FreeBSD client that you are using is using is using non-optimal requests like sequential 4k reads or so. If smbclient from 3.2.0rc1 is also slow, please re-open this bug with a sniff and a server-side debug level 10 log.

Thanks,

Volker
Comment 4 litvinov.dm 2008-06-02 15:06:56 UTC
you did not understand me, my problem not in the read rate from a samba resource, but in  that if I write down a file by samba, after he is read slower what if would be written down on FTP or another way? difference in the read rate to 2 times....
P.S. I use translator from Russian, if something is not quite clear - will make attempt translate....
Comment 5 Volker Lendecke 2008-06-02 23:28:01 UTC
Wait a second -- you write a file via Samba the speed reading it from disk after that is 50% slower than if you wrote it via ftp or direct? That is even more weird.

The only explanation would be that the client you are using is writing with a very weird write pattern that causes FreeBSD to heavily fragment the file. There is also not much that Samba as a server can do here. To work around this, you might want to look at the preallocate vfs module.

Volker