LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Can't increase number of nfsd threads on Slack64 13.0 (https://www.linuxquestions.org/questions/slackware-14/cant-increase-number-of-nfsd-threads-on-slack64-13-0-a-767083/)

Linux.tar.gz 11-05-2009 10:33 AM

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 ?

disturbed1 11-05-2009 11:30 AM

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

Linux.tar.gz 11-05-2009 11:40 AM

OMG i'm such a noob !!!
I hope no one will read this thread ;^)
Thank you !

disturbed1 11-05-2009 11:47 AM

:doh:

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?

Linux.tar.gz 11-05-2009 12:14 PM

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.

disturbed1 11-05-2009 12:54 PM

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

Linux.tar.gz 11-05-2009 12:56 PM

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.


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