Bonjour,
Mon problème est que le transfert de fichiers samba est très long (environ 800 ko/s) et je ne comprend pas pourquoi.
Il s’agit de transfert depuis un disque dur externe usb vers un poste windows7 en utilisant samba.
Tests réalisés :
samba linux (disque dur externe) -> win7 : 700 ko/s
ftp linux (disque dur externe) -> win7 : 8 mo/s
afp/netatalk : 8 Mo/s
rsync linux (disque dur externe) -> /dev/null : 30 mo/s
rsync linux (disque dur externe) -> ~ (carte micro sd interne, où est installé linux) : 4.4 mo/s
Voici ma config :
$ uname -a
Linux houston 3.0.76+ #5 PREEMPT Thu Jun 13 10:32:41 EEST 2013 armv7l GNU/Linux
$ sudo smbd -V
Version 3.6.6
$ sudo /bin/dmesg | grep usb
[ 0.110000] usbcore: registered new interface driver usbfs
[ 0.110000] usbcore: registered new interface driver hub
[ 0.120000] usbcore: registered new device driver usb
[ 0.140000] [usb_manager]: CONFIG_USB_SW_SUN5I_USB0_OTG
[ 0.150000] [sw_hcd0]: usb host driver initialize........
[ 0.150000] [sw_hcd0]: [sw_hcd_host0]: open_usb_clock
[ 0.160000] [sw_hcd0]: platform is usb host
[ 0.210000] [sw_hcd0]: sw_usb_host0_disable start
[ 0.220000] [sw_hcd0]: sw_usb_host0_disable end
[ 0.910000] usbcore: registered new interface driver usb-storage
[ 0.930000] usbcore: registered new interface driver ums-alauda
[ 0.940000] usbcore: registered new interface driver ums-cypress
[ 0.950000] usbcore: registered new interface driver ums-datafab
[ 0.960000] usbcore: registered new interface driver ums_eneub6250
[ 0.980000] usbcore: registered new interface driver ums-freecom
[ 0.990000] usbcore: registered new interface driver ums-isd200
[ 1.000000] usbcore: registered new interface driver ums-jumpshot
[ 1.010000] usbcore: registered new interface driver ums-karma
[ 1.020000] usbcore: registered new interface driver ums-onetouch
[ 1.030000] usbcore: registered new interface driver ums-realtek
[ 1.040000] usbcore: registered new interface driver ums-sddr09
[ 1.050000] usbcore: registered new interface driver ums-sddr55
[ 1.060000] usbcore: registered new interface driver ums-usbat
[ 1.300000] usbcore: registered new interface driver uvcvideo
[ 1.640000] usbcore: registered new interface driver usbhid
[ 1.650000] usbhid: USB HID core driver
[ 2.200000] [sw_udc]: sw_usb_device_enable start
[ 2.200000] [sw_udc]: usb_vbase = 0xf1c13000
[ 2.240000] [sw_udc]: open_usb_clock
[ 2.280000] [sw_udc]: sw_usb_device_enable end
[ 14.450000] usb 2-1: new high speed USB device number 2 using sw-ehci
[ 14.610000] scsi0 : usb-storage 2-1:1.0
smb.conf :
[global]
workgroup = MARS
server string = %h
wins support = yes
dns proxy = yes
name resolve order = lmhosts wins host bcast
netbios name = houston
os level = 33
preferred master = yes
interfaces = 127.0.0.0/8 eth0
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
map to guest = bad user
domain logons = yes
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536
usershare allow guests = yes
[SdCard]
delete veto files = yes
veto files = /._*/.DS_Strore/.Apple*/.TemporaryItems/Temporary Items/Network Trash Folder/
comment = "SD Card"
path = /home/user/sdCardFullAccess
guest ok = yes
writable = yes
browsable = yes
[Photo]
delete veto files = yes
veto files = /._*/.DS_Store/.Apple*/.TemporaryItems/Temporary Items/Network Trash Folder/
comment = "Photo"
path = /hd/photo
guest ok = yes
writable = yes
browseable = yes
┌nmon─13g──────[H for help]───Hostname=houston──────Refresh= 2secs ───12:30.04───────────────────────────────────────────────────────────────────────────────────────┐
│ Verbose Mode ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── │
│ Code Resource Stats Now Warn Danger │
│ OK -> CPU %busy 0.5% >80% >90% │
│ OK -> Top Disk %busy 0.0% >40% >60% │
│ │
│ │
│ CPU Utilisation ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── │
│ +-------------------------------------------------+ │
│CPU User% Sys% Wait% Idle|0 |25 |50 |75 100| │
│ 1 0.0 0.5 0.0 99.5| > | │
│ +-------------------------------------------------+ │
│ Memory Stats ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── │
│ RAM High Low Swap │
│ Total MB 323.5 0.0 323.5 0.0 │
│ Free MB 4.0 0.0 4.0 0.0 │
│ Free Percent 1.2% 0.0% 1.2% 0.0% │
│ MB MB MB │
│ Cached= 256.7 Active= 87.1 │
│ Buffers= 16.9 Swapcached= 0.0 Inactive = 214.4 │
│ Dirty = 0.0 Writeback = 0.0 Mapped = 16.2 │
│ Slab = 13.8 Commit_AS = 197.5 PageTables= 1.2 │
│ Kernel Stats ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── │
│ RunQueue 1 Load Average CPU use since boot time │
│ ContextSwitch 156.6 1 mins 1.08 Uptime Days= 0 Hours=12 Mins=15 │
│ Forks 0.0 5 mins 1.07 Idle Days= 0 Hours=10 Mins=15 │
│ Interrupts 812.3 15 mins 1.11 Average CPU use= 16.39% │
│ Network I/O ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── │
│I/F Name Recv=KB/s Trans=KB/s packin packout insize outsize Peak->Recv Trans │
│ lo 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 │
│ eth0 5.2 794.9 53.7 622.1 100.1 1308.4 6.2 947.3 │
│ tunl0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 │
│ Disk %Busy Map ────Key: #=80% X=60% O=40% o=30% +=20% -=10% .=5% _=0%──────────────────────────────────────────────────────────────────────────────── │
│ Disk No. 1 2 3 4 5 6 │
│Disks=5 0123456789012345678901234567890123456789012345678901234567890123 │
│hdisk0 to 63 _____ │
│ Disk I/O ──/proc/diskstats────mostly in KB/s─────Warning:contains duplicates───────────────────────────────────────────────────────────────────────── │
│DiskName Busy Read WriteKB|0 |25 |50 |75 100| │
│mmcblk0 0% 0.0 0.0| > | │
│mcblk0p1 0% 0.0 0.0|> | │
│mcblk0p2 0% 0.0 0.0| > | │
│sda 0% 756.6 0.0| > | │
│sda1 0% 756.6 0.0| > | │
│Totals Read-MB/s=1.5 Writes-MB/s=0.0 Transfers/sec=23.6 │
│──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Si quelqu’un à une idée …