Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Samba extremly poor performance [OSX related]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
robak
Apprentice
Apprentice


Joined: 14 Jan 2004
Posts: 209
Location: Germany

PostPosted: Sun Jan 11, 2015 3:08 pm    Post subject: Samba extremly poor performance [OSX related] Reply with quote

Hi folks

I have a problem with my fileserver running samba since my last kernel update.

I updated from 3.8.7 to 3.17.2 simply by installing the kernel and running 'make oldconfig'. So far everything works fine except the read performance via samba when I mount my shares on OSX 10.9. Copying over SSH or FTP runs great with a speed of about 60MB/s, via samba I get only 300KB/s with stalls every once in a while. I just don't know where to look to locate the problem.

My network configuration is: Fileserver <-> GBit Switch <-> OSX Client
Installed software:
Gentoo-sources-3.17.2
Samba-3.6.24 USE="acl aio client netapi pam readline server smbclient winbind -addns -ads -avahi -caps -cluster -cups -debug -dmapi -doc -examples -fam -ldap -ldb -quota (-selinux) -smbsharemodes -swat -syslog"


thanks in advance for any help
_________________
run this in your gentoo-bash:
"grep -R -i -A2 -B2 'on fire' /usr/src/linux/*"


Last edited by robak on Wed Jan 28, 2015 8:35 am; edited 1 time in total
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sun Jan 11, 2015 3:15 pm    Post subject: Reply with quote

Why not NFS between two *nix machines?
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
robak
Apprentice
Apprentice


Joined: 14 Jan 2004
Posts: 209
Location: Germany

PostPosted: Sun Jan 11, 2015 3:35 pm    Post subject: Reply with quote

Because I also use Windose.
_________________
run this in your gentoo-bash:
"grep -R -i -A2 -B2 'on fire' /usr/src/linux/*"
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sun Jan 11, 2015 3:56 pm    Post subject: Reply with quote

robak wrote:
Because I also use Windose.

How is this relevant?
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
robak
Apprentice
Apprentice


Joined: 14 Jan 2004
Posts: 209
Location: Germany

PostPosted: Sun Jan 11, 2015 4:09 pm    Post subject: Reply with quote

As far as I know Samba is the only possibility to acces files from a Linux server from the Windows Explorer.
_________________
run this in your gentoo-bash:
"grep -R -i -A2 -B2 'on fire' /usr/src/linux/*"
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sun Jan 11, 2015 4:11 pm    Post subject: Reply with quote

So keep your Samba sharing and add NFS sharing.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
robak
Apprentice
Apprentice


Joined: 14 Jan 2004
Posts: 209
Location: Germany

PostPosted: Sun Jan 11, 2015 4:17 pm    Post subject: Reply with quote

Well, thats an option but doesn't resolve the poor performance with samba. And thats why I opened this thread ;)
_________________
run this in your gentoo-bash:
"grep -R -i -A2 -B2 'on fire' /usr/src/linux/*"
Back to top
View user's profile Send private message
robak
Apprentice
Apprentice


Joined: 14 Jan 2004
Posts: 209
Location: Germany

PostPosted: Sun Jan 11, 2015 6:30 pm    Post subject: Reply with quote

It must be some kernel option. I just booted my old 3.8.7 kernel and samba works as normal.
_________________
run this in your gentoo-bash:
"grep -R -i -A2 -B2 'on fire' /usr/src/linux/*"
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sun Jan 11, 2015 6:35 pm    Post subject: Reply with quote

I tried Samba long time ago and NFS outperformed it back then. It has been about 12 years now Windows free here, so can't comment on current CIFS/Samba stuff.
Yet, it seems you are following Murphy's Garage Law - everything within reach can become a hammer. How about using a hammer to hit the nail instead of that adjustable wrench.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
robak
Apprentice
Apprentice


Joined: 14 Jan 2004
Posts: 209
Location: Germany

PostPosted: Wed Jan 28, 2015 8:29 am    Post subject: Reply with quote

I think I found the problem.
It's not the Gentoo server, it's the SMB2 implementation on my OSX client. Googling for 'osx smb2 issue' shows that Apple's implementation is the cause of all problems. Once again: 'Damn you Apple!'
Though the suggested fix to use cifs://IP instead of smb://IP to force a SMBv1 connection doesn't work on my mashine.
_________________
run this in your gentoo-bash:
"grep -R -i -A2 -B2 'on fire' /usr/src/linux/*"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum