• Welcome to Overclockers Forums! Join us to reply in threads, receive reduced ads, and to customize your site experience!

gvfs SLOOOOOWWW (nautlius and smb)

Overclockers is supported by our readers. When you click a link to make a purchase, we may earn a commission. Learn More.

Stratus_ss

Overclockix Snake Charming Senior, Alt OS Content
Joined
Jan 24, 2006
Location
South Dakota
Has anyone else noticed that GVFS and a file browser (thunar, nautilus, PCMan... whatever from lxde) all use gvfs and are all ULTRA slow?

I noticed this today when my dad came over to pull stuff off my server. Normally I just use rsync/ssh, but I have the samba shares available for easy browsing.

Anyways, Windows <--> Linux gets 45MB/s (ish), Linux <--> Linux via cifs mount is 60MB/s (ish), Linux <---> Linux via a file browser and gvfs is 2-5 MB/s???? WTF?

I have spent the last several hours chasing my tail on this. I have tried the following distros:

CentOS
Arch (up to date)
Ubuntu 12.04
Mint 13
Mint 15


All have the exact same problem, using a file browser and consequently GVFS gives **** poor performance

Anyone have any help here?
 
I guess I should fill out some more information

Samba Server:
Code:
Distributor ID:	CentOS
Description:	CentOS release 6.4 (Final)
Release:	6.4
Codename:	Final

Free Ram:
Code:
[stratus@stratus-server ~]$ free -m
             total       used       free     shared    buffers     cached
Mem:         64290      32754      31536          0        370        776
-/+ buffers/cache:      31607      32682
Swap:         2047          0       2047

Disks:
Code:
[stratus@stratus-server ~]$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg_stratusserver-root
                       44G  8.3G   33G  21% /
tmpfs                  32G  224K   32G   1% /dev/shm
/dev/sda1             194M  117M   68M  64% /boot
/dev/mapper/vg_stratusserver-home
                      284G  168G  102G  63% /home
/dev/mapper/vg_stratusserver-var
                      130G   26G   98G  21% /var
TB1.5                 3.5T     0  3.5T   0% /TB1.5
TB1.5/backups         3.8T  398G  3.5T  11% /storage/backups
TB1.5/important       3.5T   40G  3.5T   2% /storage/important
TB1.5/vms             3.5T     0  3.5T   0% /storage/vms
TB1.5/vz              3.6T  176G  3.5T   5% /vz

CPU Info:

Code:
processor	: 15
vendor_id	: AuthenticAMD
cpu family	: 16
model		: 9
model name	: AMD Opteron(tm) Processor 6128
stepping	: 1
cpu MHz		: 800.000
cache size	: 512 KB
physical id	: 1
siblings	: 8
core id		: 3
cpu cores	: 8
apicid		: 39
initial apicid	: 23
fpu		: yes
fpu_exception	: yes
cpuid level	: 5
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nonstop_tsc extd_apicid amd_dcm pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt nodeid_msr npt lbrv svm_lock nrip_save pausefilter
bogomips	: 4000.04
TLB size	: 1024 4K pages
clflush size	: 64
cache_alignment	: 64
address sizes	: 48 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate

Samba Conf:

Code:
[global]
    workgroup = STRATUS.LOCAL
    security = domain
    netbios name = stratus-server
    passdb backend = ldapsam:ldap://ds.stratus.local
    passwd program = /usr/sbin/smbldap-passwd %u
    ldap admin dn = cn=Directory Manager
    ldap suffix = dc=stratus,dc=local
    ldap user suffix = ou=People
    ldap machine suffix = ou=Computers
    ldap group suffix = ou=Groups
    ldap ssl = start tls
    log level = 5
    log file = /var/log/samba/%m.log
    local master = yes
    enable privileges = yes
    unix password sync = yes
    ldap password sync = yes
    pam password change = yes
    idmap backend = ldap:ldap://ds.stratus.local
    username map = /etc/samba/smbusers

    domain logons = yes
    template shell = /bin/false
    
    load printers = no
    printing = bsd
    printcap name = /dev/null
    disable spoolss = yes
    passwd program = /usr/bin/passwd '%u'

use sendfile = yes

[Pictures]
    browsable = yes
    writable = no
    path = /storage/important/Pictures
    force user = stratus
    valid users = @samba-read
    write list = @samba-write
    guest ok = no
    available = yes
    create mask = 0775
    directory mask = 0775

[Videos]
    browsable = yes
    writable = no
    path = /storage/important/Videos
    force user = stratus
    valid users = @samba-read
    write list = @samba-write
    guest ok = no
    available = yes
    create mask = 0775
    directory mask = 0775

[backups]
    browsable = yes
    writable = no
    path = /storage/backups
    #force user = stratus
    valid users = @samba-read
    write list = @samba-write
    guest ok = yes
    available = yes
    create mask = 0775
    directory mask = 0775

Clients are:
Code:
Centos 6.4
Ubuntu 12.04.02
Mint 13
Mint 13
Mint 15
Windows 7

All computers are 64 bit
 
I have also produced this same thing on my laptop

Laptop:

Code:
Distributor ID:	LinuxMint
Description:	Linux Mint 13 Maya
Release:	13
Codename:	maya

Ram:

Code:
stratus@stratus-laptop ~ $ free -m
             total       used       free     shared    buffers     cached
Mem:         11994       4113       7881          0        159       2282
-/+ buffers/cache:       1671      10323
Swap:         1907          0       1907

CPU:
Code:
processor	: 7
vendor_id	: GenuineIntel
cpu family	: 6
model		: 42
model name	: Intel(R) Core(TM) i7-2630QM CPU @ 2.00GHz
stepping	: 7
microcode	: 0x6
cpu MHz		: 800.000
cache size	: 6144 KB
physical id	: 0
siblings	: 8
core id		: 3
cpu cores	: 4
apicid		: 7
initial apicid	: 7
fpu		: yes
fpu_exception	: yes
cpuid level	: 13
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer xsave avx lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid
bogomips	: 3990.92
clflush size	: 64
cache_alignment	: 64
address sizes	: 36 bits physical, 48 bits virtual
power management:

If I go to a computer (any linux computer) and use the file browser... I top out at sharing around 3-4MB/s. If I do
Code:
mount -t cifs //stratus-laptop-wire/Steam /mnt

and then do the file copy I get 20-22MB/s (laptop hard drive being the limiting factor here).

I dont get it
 
Just tested my setup:

NFS: 98MB/Sec
smbclient: 79MB/Sec
gnome file browser: 27MB/Sec

So I do see a similar case, though not by the same margin. All cases were video files that were not cached on the server side. Receiver had a SSD, over gigabit. Server was Ubuntu server 12.04.3 LTS and client was Ubuntu 13.04. Dualstack IPv6, forced to connect IPv4 for the tests. Samba has a relatively simple config (no domain, but does have a printer share via cups, and audit logging enabled).

Relevant samba performance config:
Code:
	socket options = SO_KEEPALIVE TCP_NODELAY IPTOS_LOWDELAY IPTOS_THROUGHPUT 
	use sendfile = Yes
	write cache size = 262144
	large readwrite = no
	read raw = yes
	write raw = yes
 
Thanks for the test. At least it confirms my issue.

Your number are better, however partly probably due to the SSD

In my case I was going from a RaidZ of 1.5TB drives to a mechanical 7200 RPM drive
 
Back