Dmitry Morozovsky
2011-Jul-31 22:43 UTC
stable/8 nfsd: is it normal to have one worker regardless of -n setting?
Dear colleagues. just noticed that contemporary nfsd does not fork children in accordance to -n setting: stable/8: root@beaver:/usr/local/tb/scripts# pid nfs 1745 ?? Is 0:00.02 nfsd: master (nfsd) 1746 ?? S 0:03.29 nfsd: server (nfsd) root@beaver:/usr/local/tb/scripts# grep nfs_server_flags /etc/rc.conf nfs_server_flags="-u -t -n 4" stable/7: marck@kucha:~> pid nfs 654 ?? Is 0:00.01 nfsd: master (nfsd) 655 ?? I 0:05.64 nfsd: server (nfsd) 656 ?? I 0:00.00 nfsd: server (nfsd) 657 ?? I 0:00.00 nfsd: server (nfsd) 658 ?? I 0:00.00 nfsd: server (nfsd) marck@kucha:~> grep nfs_server_flags /etc/rc.conf marck@kucha:~> grep nfs_server_flags /etc/defaults/rc.conf nfs_server_flags="-u -t -n 4" # Flags to nfsd (if enabled). is it normal/expected? Thanks! -- Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] [ FreeBSD committer: marck@FreeBSD.org ] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------
Dan Nelson
2011-Aug-01 03:16 UTC
stable/8 nfsd: is it normal to have one worker regardless of -n setting?
In the last episode (Aug 01), Dmitry Morozovsky said:> just noticed that contemporary nfsd does not fork children in accordance > to -n setting: > > stable/8: > > root@beaver:/usr/local/tb/scripts# pid nfs > 1745 ?? Is 0:00.02 nfsd: master (nfsd) > 1746 ?? S 0:03.29 nfsd: server (nfsd) > root@beaver:/usr/local/tb/scripts# grep nfs_server_flags /etc/rc.conf > nfs_server_flags="-u -t -n 4"They are threads now: # ps axw | grep nfsd 1373 ?? Is 0:00.02 nfsd: master (nfsd) 1374 ?? S 5:47.14 nfsd: server (nfsd) # ps axwH | grep nfsd 1373 ?? Is 0:00.02 nfsd: master (nfsd) 1374 ?? S 1:25.79 nfsd: server (nfsd) 1374 ?? S 1:26.65 nfsd: server (nfsd) 1374 ?? S 1:27.67 nfsd: server (nfsd) 1374 ?? S 1:27.04 nfsd: server (nfsd) -- Dan Nelson dnelson@allantgroup.com
Dmitry Morozovsky
2011-Aug-01 07:22 UTC
stable/8 nfsd: is it normal to have one worker regardless of -n setting?
On Sun, 31 Jul 2011, Dan Nelson wrote:> In the last episode (Aug 01), Dmitry Morozovsky said: > > just noticed that contemporary nfsd does not fork children in accordance > > to -n setting: > > > > stable/8: > > > > root@beaver:/usr/local/tb/scripts# pid nfs > > 1745 ?? Is 0:00.02 nfsd: master (nfsd) > > 1746 ?? S 0:03.29 nfsd: server (nfsd) > > root@beaver:/usr/local/tb/scripts# grep nfs_server_flags /etc/rc.conf > > nfs_server_flags="-u -t -n 4" > > They are threads now: > > # ps axw | grep nfsd > 1373 ?? Is 0:00.02 nfsd: master (nfsd) > 1374 ?? S 5:47.14 nfsd: server (nfsd) > # ps axwH | grep nfsd > 1373 ?? Is 0:00.02 nfsd: master (nfsd) > 1374 ?? S 1:25.79 nfsd: server (nfsd) > 1374 ?? S 1:26.65 nfsd: server (nfsd) > 1374 ?? S 1:27.67 nfsd: server (nfsd) > 1374 ?? S 1:27.04 nfsd: server (nfsd)Ah, yeah, how dumb is me, heh. Thank you for the pointer, and sorry for the noise. -- Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] [ FreeBSD committer: marck@FreeBSD.org ] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------