Help - Search - Members - Calendar
Full Version: Doubts In Nfs
Linuxhelp > Support > Technical Support
kim
Hello,

I am using a home LAN connection where my two PCs are connected by ethernet cable (R8137).

I read you NFS guide and I wanted to make use of that to perform compiling packages in a mounted NFS drive of the other computer via chroot.

I mean I want to compile packages in a mounted NFS drive via a chroot environment. Will the NFS be fast enough to perform such compilation operations.

Or it is not suited for these hard tasks. Please explain

thanks in advance
kim
hughesjr
I would say that on a small LAN with minimal traffic and good 100mb network cards, you could compile items on the NFS drive. (if your Linux kernel is fairly modern ... say 2.4.9 or higher and your NFS supports version 3)

You will want to look HERE for ways to increase NFS performance.

Specific things I have done to increase NFS performance include:

1. Use the following mount options in fstab:
rsize=8192,wsize=8192,nfsvers=3,noauto
----------------------------------
2. In RedHat, the changing of /proc/sys/net/core/rmem_default and /proc/sys/net/core/rmem_max (recommended in the NFS performance how-to above) is automated as follows:

If the file /etc/sysconfig/nfs exists, edit it (if /etc/sysconfig/nfs doesn't exist, created it) and set the following values:

TUNE_QUEUE="yes"
NFSD_QS=262144

.....

for other Linux Distros, this should work in your NFS startup file:

Add this at the begining of the start section:
CODE
old_rmem_default=`cat /proc/sys/net/core/rmem_default`
old_rmem_max=`cat /proc/sys/net/core/rmem_max`
new_rmem_default=262144
new_rmem_max=262144
                                                                               
echo $new_rmem_default > /proc/sys/net/core/rmem_default
echo $new_rmem_max > /proc/sys/net/core/rmem_max


Then add this at the end of the start section:
CODE
echo $old_rmem_default > /proc/sys/net/core/rmem_default
echo $old_rmem_max > /proc/sys/net/core/rmem_max
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.