LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-05-2009, 10:33 AM   #1
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Rep: Reputation: 100Reputation: 100
Can't increase number of nfsd threads on Slack64 13.0


Hi !

I modified /etc/rc.d/rc.nfsd in order to get this line :

echo " /usr/sbin/rpc.nfsd 24"

Restarted service, even rebooted, but "cat /proc/net/rpc/nfsd" shows me only the standard 8 threads :

th 8 0 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000

Any solution ?
 
Old 11-05-2009, 11:30 AM   #2
disturbed1
Senior Member
 
Registered: Mar 2005
Location: USA
Distribution: Slackware
Posts: 1,133
Blog Entries: 6

Rep: Reputation: 224Reputation: 224Reputation: 224
You only modified the echo part. Echo is a command that echoes the text that comes after it.

To modify the number of servers -
PHP Code:
# Start 8 nfsd servers by default (an old Sun standard):
  
if [ -/usr/sbin/rpc.nfsd ]; then
    
echo "  /usr/sbin/rpc.nfsd 24"
    
/usr/sbin/rpc.nfsd 24
  fi 
You can also pass -U for --no-udp.
man rpc.nfsd
rpc.nfsd -h
 
Old 11-05-2009, 11:40 AM   #3
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Original Poster
Rep: Reputation: 100Reputation: 100
OMG i'm such a noob !!!
I hope no one will read this thread ;^)
Thank you !
 
Old 11-05-2009, 11:47 AM   #4
disturbed1
Senior Member
 
Registered: Mar 2005
Location: USA
Distribution: Slackware
Posts: 1,133
Blog Entries: 6

Rep: Reputation: 224Reputation: 224Reputation: 224


24 seems like a lot of threads. You may have to tune some sysctl parameters. Mainly /proc/sys/vm/min_free_kbytes . You'll see is dmesg complaints about dirty pages. I'll assume you already tuned net.ipv4.tcp$ considering with 24threads you're looking for performance.

p, li { white-space: pre-wrap; } <-- what the?

Last edited by disturbed1; 11-05-2009 at 11:48 AM. Reason: fix white-space: pre-wrap
 
Old 11-05-2009, 12:14 PM   #5
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Original Poster
Rep: Reputation: 100Reputation: 100
I tuned approx. nothing !
I read that 4 to 8 thread by cpu is a good approach, so as i have a triple core...
This server may have ~100 clients. It's a pxe/nfs server.

I'm currently playing with rsize and wsize, tcp and udp settings.
 
Old 11-05-2009, 12:54 PM   #6
disturbed1
Senior Member
 
Registered: Mar 2005
Location: USA
Distribution: Slackware
Posts: 1,133
Blog Entries: 6

Rep: Reputation: 224Reputation: 224Reputation: 224
You might get better performance not using UDP, or at least I do.
TCP tuning tips -
http://www.enterprisenetworkingplane...le.php/3485486
http://fasterdata.es.net/TCP-tuning/linux.html
 
Old 11-05-2009, 12:56 PM   #7
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Original Poster
Rep: Reputation: 100Reputation: 100
This is what i get with 16 hosts up, and dmesg shows no dirty pages (yet).

root@64-server:~# cat /proc/net/rpc/nfsd
rc 0 0 8650190
fh 2 0 0 0 0
io 3733010276 0
th 24 0 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
ra 48 7768667 0 0 0 0 0 0 0 0 0 107539
net 8650189 8457617 192566 25
rpc 8650190 0 0 0 0
proc2 18 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
proc3 22 48 408936 0 140028 125377 63481 7876260 0 0 0 0 0 0 0 0 0 5389 30071 281 100 24 0
proc4 2 0 0
proc4ops 40 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

If you have some nfs tips, i'm all eyes ;^)
TY.
 
  


Reply



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
How to increase number of threads per process? Vaish Linux - Distributions 8 02-25-2010 01:21 AM
some threads are become unnoticed because of large number of continious threads deepak_cucek LQ Suggestions & Feedback 9 08-20-2009 11:21 PM
don't have nfsd mount point in /proc/fs/nfsd...can't start NFS as a result alirezan1 Linux - Newbie 1 11-19-2008 07:57 AM
Root-NFS: Unable to get nfsd port number from server Eileen Linux - Networking 2 04-11-2006 10:18 PM
How to increase number of record locks? Fillys6 Linux - Software 2 02-03-2006 09:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:19 PM.

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