cancel
Showing results for 
Search instead for 
Did you mean: 

Cifs vs Nfs speed

HairyMcbiker
All Star
Posts: 6,792
Thanks: 266
Fixes: 21
Registered: ‎16-02-2009

Cifs vs Nfs speed

So with my new graphics card disliking Linux, I am dual booting w7 & Mint.
My "Server" has onboard gib nic. Connected to the same pc using Mint, I get ~90Mb/s across the wire. rebooting into M$ and from a Cifs share it was 20-30Mb/s. (same shares via nfs & cifs)
Any ideas on why or is Cifs just SLOW.
7 REPLIES 7
VileReynard
Hero
Posts: 12,616
Thanks: 582
Fixes: 20
Registered: ‎01-09-2007

Re: Cifs vs Nfs speed

Mint is Linux.
Why not try CIFS on Linux it may be OS related. Cheesy

"In The Beginning Was The Word, And The Word Was Aardvark."

w23
Pro
Posts: 6,347
Thanks: 96
Fixes: 4
Registered: ‎08-01-2008

Re: Cifs vs Nfs speed

I know absolutely nothing about CIFS but a quick Google search threw this my way.
Call me 'w23'
At any given moment in the universe many things happen. Coincidence is a matter of how close these events are in space, time and relationship.
Opinions expressed in forum posts are those of the poster, others may have different views.
HairyMcbiker
All Star
Posts: 6,792
Thanks: 266
Fixes: 21
Registered: ‎16-02-2009

Re: Cifs vs Nfs speed

Well I have called it CIFS since I was a M$ specialist, hard to stop doing so. '-)
Just tried and YEP it is CIFS (or SMB) that is SLOW, to this PC running Mint <40Mb/s, copying using NFS 95Mb/s.
Getting a FREE NFS client on M$ is as bad. I have enabled client for Unix, but you need to run a cmd prompt as Admin to map a drive, and it stays mapped even though it is not accessible after a reboot.
Ahh well will just have to suck it and see how I get on.
VileReynard
Hero
Posts: 12,616
Thanks: 582
Fixes: 20
Registered: ‎01-09-2007

Re: Cifs vs Nfs speed

The package description for nfs-kernel-server says:-
Quote
The NFS kernel server is currently the recommended NFS server for use
with Linux, featuring features such as NFSv3 and NFSv4, Kerberos
support via GSS, and much more. It is also significantly faster and
usually more reliable than the user-space NFS servers (from the
unfs3 and nfs-user-server packages). However, it is more difficult to
debug than the user-space servers, and has a slightly different
feature set.
This package contains the user-space support needed to use the
NFS kernel server. Most administrators wishing to set up an NFS server
would want to install this package.

"In The Beginning Was The Word, And The Word Was Aardvark."

CX
Grafter
Posts: 750
Thanks: 4
Registered: ‎16-09-2010

Re: Cifs vs Nfs speed

What version of Samba is on the server? Can you post your smb.conf file?
What performance do you get from the CIFS/SMB share on a Linux client? (i.e. is this a Linux vs Windows performance issue, such as antivirus scanning files, or really an NFS vs SMB issue)
HairyMcbiker
All Star
Posts: 6,792
Thanks: 266
Fixes: 21
Registered: ‎16-02-2009

Re: Cifs vs Nfs speed

The SMB version is the lastest from the Mint repo's. The speed is the same, see above, I re-did the test under Mint. 40 vs 95Mb/s.
Version: 2:4.1.6+dfsg-1ubuntu2.14.04.7
VileReynard
Hero
Posts: 12,616
Thanks: 582
Fixes: 20
Registered: ‎01-09-2007

Re: Cifs vs Nfs speed

I'm currently transferring 250GB over a CIFS share via a particularly slow wireless connection to a Windows 8.1 PC.
It manages around 1MB/sec, so I may be some time... Grin
It seems particularly slow on bunches of small files - I suspect its asking Linux if it has read authority on each file & it performs especially badly at this.
I can't just do a restore, since the files are held on a external disk formatted to use LVM.
Windows can't handle LVM disk.

"In The Beginning Was The Word, And The Word Was Aardvark."