Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
07-13-2004, 12:41 PM
|
#1
|
|
Senior Member
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334
Rep:
|
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?
|
|
|
|
10-24-2004, 03:54 PM
|
#2
|
|
Member
Registered: Jul 2004
Distribution: Red Hat 9, Mandrake 9.2
Posts: 211
Rep:
|
@BrianK
How can u start 28 instance or nfs ?
-Akshat
|
|
|
|
10-24-2004, 07:40 PM
|
#3
|
|
Senior Member
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334
Original Poster
Rep:
|
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
|
|
|
|
10-24-2004, 11:20 PM
|
#4
|
|
Member
Registered: Jul 2004
Distribution: Red Hat 9, Mandrake 9.2
Posts: 211
Rep:
|
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
|
|
|
|
10-25-2004, 09:12 AM
|
#5
|
|
Senior Member
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028
Rep:
|
|
|
|
|
10-25-2004, 02:08 PM
|
#6
|
|
Senior Member
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334
Original Poster
Rep:
|
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.
|
|
|
|
10-26-2004, 05:23 AM
|
#7
|
|
Member
Registered: Sep 2004
Posts: 312
Rep:
|
Thank you very much BrianK for such usefull info!
jack
Last edited by emailssent; 10-26-2004 at 05:27 AM.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 12:57 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|