Poor performance for mounted SMB (windows) shares.

Bug #504737 reported by AndreK
This bug report is a duplicate of:  Bug #810606: Slow cifs in 11.04. Edit Remove
58
This bug affects 11 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

When accessing this share from nautilus by typing "SMB://server/share" :
copy a 2GB file: Speed: 50MB/s (38sec to get a 2GB file).

then I mount it using mount -t CIFS //server/share -o ...
copy a 2GB file: Speed: 22,3MB/s (1minute 25sec per 2GB)

mounted partition is very slow compared to the "nautilus" does it ...

This applies to any share/file on my network.

I do not know what package it is in, but here is what I have installed:
libsmbclient
libwbclient0
nautilus-share
python-smbc
samba-common
samba-common-bin
smbclient
winbind

Revision history for this message
AndreK (andre-k) wrote :

As comparsion. a plain installed XP64 gives 50MB/s, while Win7 gives 100MB/s !
yes, it's 1Gbit network, and the numbers are actual calculated speed by copying 2GB while using stopwatch.

I assume the big difference is due to different driver, but the one in Linux is hard to excuse..
The controller is:
03:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8056 PCI-E Gigabit Ethernet Controller (rev 12)

shrini (shrini)
affects: ubuntu → samba (Ubuntu)
Revision history for this message
Thierry Carrez (ttx) wrote :

Works fast with gvfs / libsmbclient and slow with kernel/cifs, reassigning to kernel.

affects: samba (Ubuntu) → linux (Ubuntu)
Revision history for this message
Peter Antoniac (pan1nx) wrote :

Tested it in Kubuntu also. Same behavior. The samba/cifs are slower than sftp even. There must be something wrong with the smb/cifs... Or it might be related to wifi and 802.11n nm reporting 0 kbps (is actually 160M).

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Peter Holko (peter-holko) wrote :

I am encountering the same problem with the Marvell 88E8056 controller in 10.04. Transfer rate is 50MB/sec with Nautilus but only 25MB/sec using cp and mount -t cifs.

Revision history for this message
Edward (edward-911) wrote :

I am encounter the same problem with the Ubuntu Lucid desktop accessing Ubuntu Lucid server with samba share. When i connect the samba share with Nautilus the file transfer achieve 40MB/s but when mount samba share with autofs, the file transfer speed only 9 MB/s and when mount with fstab, the file transfer speed is just about 12 Mb/s. All this activities was done with full Gigabit network equipment, gigbit network card on both Desktop and Server, gigibit switch and also cat6 cable to rule out equipment inconsistency.

Revision history for this message
Andrey Nauman (andrey-nauman) wrote :

I can confirm.
Nautilus speed ~6MB/sec,
cifs mount (via fstab) speed is limited to 2MB/sec.

Same remote share.

Why is that? Please fix!!

Revision history for this message
pinus (pinus) wrote :

It is still slow in Ubuntu 12.04. Using smbclient is 3-times faster than using Nautilus!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.