AVForums.com is the UK's biggest & best home consumer electronics discussion resource New to AVForums.com? Start by reading our introduction here.


Go Back   AVForums.com > Computers > Operating Systems and Software > Linux

Reply
 
LinkBack Thread Tools Display Modes
Old 10-05-2008, 9:39 PM   #1 (permalink)
Senior Member
 
graham.myers's Avatar
Join Date: Mar 2003
Location: Leeds
Posts: 1,620
iTrader: (26)
Thanks: Gave 44, Got 78
nfs is considerably slower than samba :(

I've currenlty got my linux box serving as my nas and the shares are offered via samba. I've had no problems so far streaming non hidef stuff using twonky and reading/writing the files to the samba shares.

however in preperation of delivery of my popcorn hour a100 they suggest I should be using nfs over smb as the speed is 33mbs compared to 25 for samba and this extra oomf is required for hidef streaming.

So I set up my /etc/exports and off I went

/data/bt 192.168.1.0/255.255.255.0(rw)
/data/video 192.168.1.0/255.255.255.0(rw)
/data/itunes 192.168.1.0/255.255.255.0(rw)
/data/music 192.168.1.0/255.255.255.0(rw)
/data/photos 192.168.1.0/255.255.255.0(rw)
/data/software 192.168.1.0/255.255.255.0(rw)

seemed OK, but I read that you shouldnt really have the same directories offered by samba and nfsd so I stopped samba and did all the shares in nfs.

I installed services for unix on my xp home (tweaking the msi file so it would install) and xp pro desktops.

I'm now seeing a severe drop in performance. A CD rip using dbpoweramp configured for ultra secure rips used to take 30 mins not they're over an hour

An ISO rip of a dvd now takes six hours intead of a couple.

I am currently running a benchmark using iozone but havent got the output yet. I've looked in /proc/net/snmp and I do see ReamsFails increasing but not my huge amounts.

The windows clients have thier wsize and rsize set to 32k. I am not using jumbo frames as I'm going across 200mb homplugs.

The NFSSRV_MAXBLKSIZE is set to RPCSVC_MAXPAYLOAD but I cant find this defined anywhere.

NFSSRV_MAXBLKSIZE_V2 is set to 8k

I am using nfs v4

heeeeeeelllllllppppppp
__________________
My Cinema
My Collection
XBox Live Gamer Tag: Glum, PSN Tag: UK_Glum
F@H AVTeam tag: Glum

Last edited by graham.myers; 11-05-2008 at 9:53 PM.
graham.myers is offline  
Reply With Quote
Old 12-05-2008, 8:18 AM   #2 (permalink)
Senior Member
 
graham.myers's Avatar
Join Date: Mar 2003
Location: Leeds
Posts: 1,620
iTrader: (26)
Thanks: Gave 44, Got 78
Re: nfs is considerably slower than samba :(

A bit more investigation.

If I rip a Cd to local drive it takes 23 minutes. To an smb share an hour and to an nfs share it now takes 1h 1/2

so it looks like I might have messed the network up when enabled nfs somehow. smb used to be a lot quicker than that.

iozone is telling me I'm topping out a 4MB/s write speed which is stupidly slow.

I'm now doing an iozone to c:\ drive see what a local write speed looks like for comparision.

I'll be running iperf on the network too to see if something has gone awry there.

Anybody any ideas what I could have done wrong? All I did was start nfs and edit /etc/export


one thing I did try yesterday was to change the r|wmem_default and max to 256 from 132k in the /proc/sys/net area (and did a reboot) - doesn't seem to have made a difference
__________________
My Cinema
My Collection
XBox Live Gamer Tag: Glum, PSN Tag: UK_Glum
F@H AVTeam tag: Glum

Last edited by graham.myers; 12-05-2008 at 8:42 AM.
graham.myers is offline  
Reply With Quote
Old 12-05-2008, 11:32 AM   #3 (permalink)
Member
 
scotty38's Avatar
Join Date: Oct 2004
Posts: 413
iTrader: (2)
Thanks: Gave 26, Got 23
Re: nfs is considerably slower than samba :(

When you say you've enabled nfs do you mean you've done a "chkconfig nfs on"?

I connect to my NFS shares on my NAS but I don't need nfs as netfs is already running and it seems to work ok for me.

if you issue chkconfig --list are both of them running?

Just wondering is this is anything to do with it...

Of course if none of this is relevant then please just ignore me
__________________

scotty38 is offline  
Reply With Quote
Old 12-05-2008, 12:06 PM   #4 (permalink)
Senior Member
 
graham.myers's Avatar
Join Date: Mar 2003
Location: Leeds
Posts: 1,620
iTrader: (26)
Thanks: Gave 44, Got 78
Re: nfs is considerably slower than samba :(

You might be onto something there. Yes netfs is running.

Does that nfs then? I shouldnt have both running - one or the other. That could be the problem - both competing.

I'll turn off nfs and leave netfs running and see what happens. Presumably if netfs also does the smb stuff too I dont need the smb process running?

thanks for that

[edit] just shutdown the smb daemon for the test share I had for iozone and I cant connect even with netfs running. I had to start smb to access the share
[edit again] Now stopped nfs and cant get access to the shares. Do you still configure netfs with /etc/exports?

[and thrice edit] It seems netfs is the client side nfs not the server. I need to run nfs for the server side of things by the look of it.
__________________
My Cinema
My Collection
XBox Live Gamer Tag: Glum, PSN Tag: UK_Glum
F@H AVTeam tag: Glum

Last edited by graham.myers; 12-05-2008 at 12:17 PM.
graham.myers is offline  
Reply With Quote
Old 12-05-2008, 3:40 PM   #5 (permalink)
Member
 
scotty38's Avatar
Join Date: Oct 2004
Posts: 413
iTrader: (2)
Thanks: Gave 26, Got 23
Re: nfs is considerably slower than samba :(

Ah ok.... I should have read your post more clearly - I told you to ignore me...
__________________

scotty38 is offline  
Reply With Quote
Old 12-05-2008, 10:16 PM   #6 (permalink)
Senior Member
 
graham.myers's Avatar
Join Date: Mar 2003
Location: Leeds
Posts: 1,620
iTrader: (26)
Thanks: Gave 44, Got 78
Re: nfs is considerably slower than samba :(

well I still havent sussed it completely but it looks like the homeplugs are playing a major part.

I powered off everything in the house and tested the speeds and got upto 65mbs across the homeplugs. It was down as low as 40mbs before I started tinkering. A laptop plugged into the same hub as the server is getting 90+ mbs.

so 65mbs is 8MB/s so I was getting approx 1/2 the bandwith for my copies to the smb/nfs shares

I just think the network is busy for the amount of data I am trying to push down the wire simultaneously.

Even at the full 100mbs I can only push 12.5 MB/s. I am running quite a bit around the wires and maybe the slow down has just crept up on me. I've streaming from my home cinema, two pcs writing cd/dvd rips (one with 2 drives). I have wifi security cameras grabbing 5fps x 3. A roku box on wifi. etc etc etc.

I did try and restrict the wifi cameras by putting them on a differnet ssid which help other wifi use, but at the end of hte day they all end up at the same netgear router. I suspect the router cant cope with that much traffic simultaneously.

Think I'm going to have to go gigabit using external wiring up the side of the house.

Strangly if I rip the file locally and then copy the 4gb file to the nfs share its much much quicker. This is what I'm going to do until I install gigabit.

I'm suspecting noise on the network coupled with short write packets is playing havoc. If i could tune that it may help but I think that it maybe a dead horse and gigabit will solve my probs.
__________________
My Cinema
My Collection
XBox Live Gamer Tag: Glum, PSN Tag: UK_Glum
F@H AVTeam tag: Glum
graham.myers is offline  
Reply With Quote
Old 13-05-2008, 9:11 AM   #7 (permalink)
Member
 
scotty38's Avatar
Join Date: Oct 2004
Posts: 413
iTrader: (2)
Thanks: Gave 26, Got 23
Re: nfs is considerably slower than samba :(

Blimey, no wonder the national grid dips when you switch that lot on!

Have you considered Token-Ring?
__________________

scotty38 is offline  
Reply With Quote
Old 14-05-2008, 11:26 PM   #8 (permalink)
RRB
Member
Join Date: Feb 2006
Location: Edinburgh
Posts: 291
iTrader: (6)
Thanks: Gave 17, Got 23
Re: nfs is considerably slower than samba :(

You can always try another NFS client on the windows boxes and see how that performs also. Worth a shot.
RRB is offline  
Reply With Quote
Old 15-05-2008, 9:09 AM   #9 (permalink)
Senior Member
 
graham.myers's Avatar
Join Date: Mar 2003
Location: Leeds
Posts: 1,620
iTrader: (26)
Thanks: Gave 44, Got 78
Re: nfs is considerably slower than samba :(

Could do. I've gone back to smb at the moment and it does appear faster.

what I am going to do is shuffle around the switches I have. I am going to put the gigbait hub in the cinema room and hang the homeplugs, dsl router and cinema router off that. Perhaps that will do a better job switching things around than the 100mbs dsl router I am currently using.
__________________
My Cinema
My Collection
XBox Live Gamer Tag: Glum, PSN Tag: UK_Glum
F@H AVTeam tag: Glum

Last edited by graham.myers; 15-05-2008 at 9:16 AM.
graham.myers is offline  
Reply With Quote

Bookmarks

Tags
considerably, nfs, samba, slower


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba de Amigo - discussion thread Tejstar Wii Games 16 27-09-2008 12:43 PM
4308 and SAMBA based file sharing HELP _SeLecT_ Denon Owners' Forum 5 24-04-2008 2:23 PM
YDL, PS3 and Samba richdgrant PS3 Linux 3 27-04-2007 2:47 PM
FS: Samba De Amigo Dreamcast Taz Archive : Completed Business and Expired Threads 7 13-01-2004 1:53 PM
Dreamcast help with Samba De Amigo X-Man Other Gaming Chat 7 30-12-2003 8:59 AM


All times are GMT +1. The time now is 9:19 PM.

AV ForumsOptimised for Firefox.
RSS Feed
AVForums.com is owned and operated by M2N Limited.
Copyright © 2000-2008 M2N E. & O. E.
Global Gold
Web Hosting