LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-26-2004, 07:28 AM   #1
mrjamin
LQ Newbie
 
Registered: Sep 2003
Location: UK
Distribution: FC7
Posts: 27

Rep: Reputation: 15
NFS - why so slow?


Morning all,

Wondered if I could ask some advice, this seems to be the place for it!

Ok, basically - I'm a web developer and a while ago, I set myself up with a RH9 box to run Apache, MySQL and PHP so I could develop (and test) my sites over my network, from my PowerBook. It was a bit of a project as I was (and kinda still am) new to linux. Initially, I set up samba mounts to access my sites over the network. Being a mac user, it seemed a bit stupid to use samba (i.e. designed for filesharing between windows/linux) on 2 machines that weren't windows. So, I looked into nfs, found that OSX (due to its BSD underbelly) has native NFS support. Perfect! So, I set up my exports and it all seems to work great. While there are certainly quite a few noticable benefits straight off (can now stream movies & mp3s without skipping/jumping, accurate time resolution etc), it does seem to be much, much slower.

With Samba, I was able to move stuff over at around 7-8MB/s over a 100Mb switched network which seemed half decent. With NFS? I'm getting around 1MB/s.

This isn't ideal as I seem to be using my linux box for more and more things, which has meant that I need to move several GBs over at times - at 1MB/s, this is rather slow!

After reading some articles, it seemed that adjusting the nfsiod from 4 to 8 on my mac should improve things, which it hasn't

So, any way to improve NFS performance? As far as I can see, both the RH box and my mac are running at full duplex as it is (the mac definatly is, not so sure about the RH box - how would I find out?).

Thanks in advance - be nice, i'm a n00b.

MrJ
 
Old 09-26-2004, 08:00 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
I'm no NFS guur, but the biggie as far as i'm aware is the read and write block size. when you mount the share, set a larger block size for both directions, and hopefully you'll get a decent lift.
e.g. in /etc/fstab
Code:
gonzo:/var/portage      /var/portage    nfs             hard,rsize=8192,wsize=8192
 
Old 09-26-2004, 08:15 AM   #3
mrjamin
LQ Newbie
 
Registered: Sep 2003
Location: UK
Distribution: FC7
Posts: 27

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by acid_kewpie
Code:
gonzo:/var/portage      /var/portage    nfs             hard,rsize=8192,wsize=8192
where 'gonzo' is the server name/ip ':/var/portage' is the export (on the server), '/var/portage' is where it should be mounted on the client?

which /etc/fstab should i be editting here? I'm assuming the one on my mac?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS slow and not always there. Xaque208 Linux - Networking 6 01-09-2005 11:44 AM
NFS mount very slow Toxe Linux - Networking 5 10-25-2004 10:26 AM
fast encrypted NFS but slow regular NFS cazzazullu Linux - Networking 0 10-19-2004 10:08 AM
fseek cross NFS is really slow chiuyaa Linux - Networking 0 06-23-2004 08:14 PM
mounting nfs slow csDraco_ Slackware 7 12-17-2003 12:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration