[Samba] Windows 2K outperform Linux/Samba very much?
Jacky Kim
jcy_2008 at 163.com
Wed Jul 7 08:31:48 GMT 2004
Hi, all:
I want to check small files' property(such as date, path, and so on)
frequently. The files are stored in netwrok driver and their sizes
vary from 2KB to 5KB.
I found that Windows 2K outperform Linux/Samba very much after I
campared the bench results. I am very confused about it and who can
explain it?
The computers' configurations are as follows:
1. PC Client
It runs the follow VB program to compute the time when check files' property
Operation System:
Windows 2000 professional
// ...
Set objFSO = CreateObject("Scripting.FileSystemObject")
thistime = thisnow
If objFSO.FileExists(fn) Then
totle = totle & "Check file time " & CStr(thisnow - thistime) + " ms" + vbCrLf
thistime = thisnow
Set objFile = objFSO.GetFile(fn)
totle = totle & "Get object time " & CStr(thisnow - thistime) + " ms" + vbCrLf
thistime = thisnow
temp = DateValue(CStr(objFile.DateLastModified))
totle = totle & "Get date time " & CStr(thisnow - thistime) + " ms" + vbCrLf
End If
2. Linux PC Server:
It provide Linux/Samba shared directory for the client
(1) Operation System
kernel = 2.6.6
file system = xfs
nic = intel pro 100
Samba 2.2.8a (I have tried samba 3.0.4, and the result is likely)
(2) smb.conf
[global]
encrypt passwords = yes
socket options = TCP_NODELAY SO_RCVBUF=4096 SO_SNDBUF=4096
max xmit = 4096
read raw = No
wide links = No
[pub]
path = /pub
guest ok = no
write list = test
create mode = 0664
directory mode = 0775
3. Windows PC Server:
It provide Windows shared directory for the client
Operation System:
Windows 2000 professional
4. Bench results
Windows Linux/Samba
CHECK OBJECT DATE CHECK OBJECT DATE
----- ------ ---- ----- ------ ----
760 10 120 10 0 203
750 10 80 20 0 363
780 10 50 20 761 632
750 10 50 10 0 173
800 0 10 40 0 711
90 0 140 240 212 871
60 40 90 240 212 821
90 0 50 210 30 162
60 50 10 20 220 150
10 30 20 30 30 160
0 50 80 741 50 412
10 40 110 781 10 412
20 0 70 20 781 381
10 0 70 10 791 81
20 20 0 50 21 691
NOTE: the unit is ms.
Best Regards!
Jacky Kim
.
More information about the samba
mailing list