public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: Could NFS daemons be started via inetd?
@ 2001-08-22 13:41 Jesse Pollard
  2001-08-25 14:13 ` VDA
  0 siblings, 1 reply; 5+ messages in thread
From: Jesse Pollard @ 2001-08-22 13:41 UTC (permalink / raw)
  To: VDA, linux-kernel

VDA <VDA@port.imtp.ilyichevsk.odessa.ua>:
> Hi,
> 
> I am setting up NFS on my Linux box.
> When I start server daemons from init scripts or by hand,
> everything is working fine.
> 
> I tried to arrange these daemons to be run by inetd
> but after I issue an NFS mount command inetd starts spawning
> tons on rpc.mountd daemons. Log is filled with:
> rpc.mountd[179]: connect from 127.0.0.1
> rpc.mountd[180]: connect from 127.0.0.1
> ...
> and load average goes up (went up to 40)
> I repeatedly killall'ed rpc.mountd and eventually inetd
> noticed failing service and disabled it.
> 
> Does anybody tried this? If you do, I am very interested in your
> inetd.conf and/or NFS part of startup script. Mine is:
....

Simple answer - no.

The reason it can't is in two parts:

1. these daemons create their own socket rather than recieving one
   from inetd.
2. The daemons must connect to rpcbind or portmap. Usually this daemon
   is not running at the time inetd is started.

The nfs daemon actually starts multiple daemons (it forks up to n servers
for "optimum" client support). Each server daemon may be servicing a
different client (or even the same client, different request). I have
seen performance improvements (NOT on a Linux server...) of one server
for each mount on each client (up to 18-25 servers).

These daemons must run all the time or performance will be REALLY bad. Each
connection may request ~ 8K bytes of data. 

-------------------------------------------------------------------------
Jesse I Pollard, II
Email: pollard@navo.hpc.mil

Any opinions expressed are solely my own.

^ permalink raw reply	[flat|nested] 5+ messages in thread
* Could NFS daemons be started via inetd?
@ 2001-08-21 13:29 VDA
  0 siblings, 0 replies; 5+ messages in thread
From: VDA @ 2001-08-21 13:29 UTC (permalink / raw)
  To: linux-kernel

Hi,

I am setting up NFS on my Linux box.
When I start server daemons from init scripts or by hand,
everything is working fine.

I tried to arrange these daemons to be run by inetd
but after I issue an NFS mount command inetd starts spawning
tons on rpc.mountd daemons. Log is filled with:
rpc.mountd[179]: connect from 127.0.0.1
rpc.mountd[180]: connect from 127.0.0.1
...
and load average goes up (went up to 40)
I repeatedly killall'ed rpc.mountd and eventually inetd
noticed failing service and disabled it.

Does anybody tried this? If you do, I am very interested in your
inetd.conf and/or NFS part of startup script. Mine is:

inetd.conf
----------
...
# NFS daemons (FIXME: not working)
rquotad/1-2     dgram   rpc/udp wait    root    /usr/sbin/tcpd  /usr/sbin/rpc.rquotad
nfs/2-3         dgram   rpc/udp wait    root    /usr/sbin/tcpd  /usr/sbin/rpc.nfsd
mountd/1-3      dgram   rpc/udp wait    root    /usr/sbin/tcpd  /usr/sbin/rpc.mountd
nlockmgr/1-4    dgram   rpc/udp wait    root    /usr/sbin/tcpd  /usr/sbin/rpc.lockd
rstatd/1-3      dgram   rpc/udp wait    root    /usr/sbin/tcpd  /usr/sbin/rpc.rstatd
...

init script
-----------
...
echo "* Starting NFS services:"
echo "  DEBUG: modprobe nfsd"
modprobe nfsd
echo "  DEBUG: exportfs -r - I will convert /etc/exports to /var/lib/nfs/* conv"
/usr/sbin/exportfs -r         # Does /etc/exports -> /var/lib/nfs/* conv
echo "  DEBUG: rpc.rquotad - needed?"
/usr/sbin/rpc.rquotad
echo "  DEBUG: rpc.nfsd 1 - 1 server started"
/usr/sbin/rpc.nfsd 1
echo "  DEBUG: rpc.mountd - listen to mount requests"
/usr/sbin/rpc.mountd
# With newer kernels, this starts by itself, but this won't hurt:
#echo "  DEBUG: rpc.lockd"
#/usr/sbin/rpc.lockd
echo "  DEBUG: rpc.statd - lock recovery after crash/reboot?"
/usr/sbin/rpc.statd
...

kernel: 2.4.5

Please CC me. I'm not on the list.



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2001-08-25 22:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-08-22 13:41 Could NFS daemons be started via inetd? Jesse Pollard
2001-08-25 14:13 ` VDA
2001-08-25 15:55   ` Lehmann 
2001-08-25 21:56   ` Jesse Pollard
  -- strict thread matches above, loose matches on Subject: below --
2001-08-21 13:29 VDA

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox