LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-13-2004, 12:41 PM   #1
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Rep: Reputation: 51
How do you determine the number of NFS instances to start?


I've got one file server serving up files to 14 machines that often run two disk-writing processes at a time (Hyper Threaded, so they think they are all dual procs).

Should I start up 28 instances of nfs? That seems like a lot. Is there any disadvantage to starting up too many?
 
Old 10-24-2004, 03:54 PM   #2
LinuxRam
Member
 
Registered: Jul 2004
Distribution: Red Hat 9, Mandrake 9.2
Posts: 211

Rep: Reputation: 30
@BrianK


How can u start 28 instance or nfs ?

-Akshat
 
Old 10-24-2004, 07:40 PM   #3
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Original Poster
Rep: Reputation: 51
Quote:
Originally posted by akshatyadav
@BrianK


How can u start 28 instance or nfs ?

-Akshat
in your nfs startup script, there is a variable you can set that determines the number of servers to be started.. it looks like this:

Code:
# Number of servers to be started by default
[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=22
under redhat (and several other distros), it's in /etc/rc.d.init.d/nfs
 
Old 10-24-2004, 11:20 PM   #4
LinuxRam
Member
 
Registered: Jul 2004
Distribution: Red Hat 9, Mandrake 9.2
Posts: 211

Rep: Reputation: 30
thanx,
-so did u faced any problem while starting 28 instance.

-how u enabled only two disk writing process at a time.

-by default in my distibution 8 instance has been started
so plz tell me what is the benefit of starting more instance

-And suppose two people simultaneously open a same file
and edited some info, then whose saved info will be considered, i think
the person who saved lastly will be considered, could u tell me what
u think.


Akshat
 
Old 10-25-2004, 09:12 AM   #5
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
http://www.tldp.org/HOWTO/NFS-HOWTO/index.html
http://www.phase-one.com.au/articles/nfslock.html

Two good documents about NFS and NFS file locking.
 
Old 10-25-2004, 02:08 PM   #6
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Original Poster
Rep: Reputation: 51
Quote:
Originally posted by akshatyadav
thanx,
-so did u faced any problem while starting 28 instance.
No problems. NFS actually does spawn real threads & it's coded quite well, so each thread requires little to no overhead both in memory footprint and cpu time.
Quote:
-how u enabled only two disk writing process at a time.
Don't know if I understand your question, but I believe you're worried about two people trying to write to the same file at the same time. This should not be an issue as nfs has a system for file locking.
Quote:
-by default in my distibution 8 instance has been started
so plz tell me what is the benefit of starting more instance
The number of instances you start depends on the number of machines that will be read/writing at the same time. 8 is an arbitrary number that was choosen by the nfs lords (the way I understand it anyway) and carries no real significance. At my facility, it is not uncommon for 20+ process to be writing to the server at the same time. If this is the case, I would prefer to have each instance actually able to write as opposed to waiting for an open thread to process the request. It is lso not uncommon for me to top the file server & see most of those threads up at the top under a heavy read/write.
Quote:

-And suppose two people simultaneously open a same file
and edited some info, then whose saved info will be considered, i think
the person who saved lastly will be considered, could u tell me what
u think.
Like ugge posted, nfs contains a system for file locking, so this should not be a concern. The more recent distribs contain versions of nfs that operate in sync mode by default - this gives you one extra level of protection against reading/writing a file that someone else is using, but even in async mode, it's pretty good about locking.
 
Old 10-26-2004, 05:23 AM   #7
emailssent
Member
 
Registered: Sep 2004
Posts: 312

Rep: Reputation: 30
Thank you very much BrianK for such usefull info!


jack

Last edited by emailssent; 10-26-2004 at 05:27 AM.
 
  


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 Port Number on debian Sarge jess1975 Debian 1 11-04-2005 06:59 AM
number of running instances hk_linux Programming 0 01-05-2005 11:47 PM
max number of connects on a NFS Server stellarmarine1 Linux - Networking 3 08-27-2004 01:47 PM
Apache: limiting the number of processes that start up tarballed Linux - Networking 2 09-02-2003 03:33 PM
Why cannot i start serveral X window by startx --:number(in diffrent consoles) whepin Linux - Newbie 2 12-20-2001 06:27 PM


All times are GMT -5. The time now is 11:44 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration