From mboxrd@z Thu Jan 1 00:00:00 1970 From: NeilBrown Subject: Re: [PATCH] sunrpc: use better NUMA affinities Date: Sat, 30 Jul 2011 16:06:10 +1000 Message-ID: <20110730160610.0b751ffd@notabene.brown> References: <1311921035.7845.10.camel@edumazet-laptop> <4E3258E1.6020000@fastmail.fm> <20110729103634.GA12050@infradead.org> <5933F48C-49D6-492D-AB7B-B76A3ADDB6C6@fastmail.fm> <1311941491.2843.7.camel@edumazet-HP-Compaq-6005-Pro-SFF-PC> <20110729164836.GL23194@fieldses.org> <20110729165345.GM23194@fieldses.org> <20110730093025.716f3f50@notabene.brown> <20110729234857.GA30941@fieldses.org> <1311998914.2873.27.camel@edumazet-laptop> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: "J. Bruce Fields" , Greg Banks , Christoph Hellwig , "linux-nfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , David Miller , linux-kernel , netdev To: Eric Dumazet Return-path: In-Reply-To: <1311998914.2873.27.camel@edumazet-laptop> Sender: linux-nfs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: netdev.vger.kernel.org On Sat, 30 Jul 2011 06:08:34 +0200 Eric Dumazet wrote: > Le vendredi 29 juillet 2011 =E0 19:48 -0400, J. Bruce Fields a =E9cri= t : > > On Sat, Jul 30, 2011 at 09:30:25AM +1000, NeilBrown wrote: > > >=20 > > > rpc.nfsd 0 > > >=20 > > > will stop all nfsd threads. Follow with > > >=20 > > > exportfs -f > > >=20 > > > and you should be done. I'm not 100% sure about the nfsv4 thread= though - > > > would need to check. > >=20 > > Should be fine. > >=20 >=20 > What are the needed steps to be able to unload nfsd module ? >=20 > So far, I am unable to perform this without using -f option. >=20 >=20 >=20 >=20 Kill all nfsd threads. This can be done with 'kill' or 'rpc.nfsd 0' or echo 0 > /proc/fs/nfsd/threads kill mountd killall rpc.mountd kill idmapd unexport everything. This can be done with 'exportfs -f' and checked by grep . /proc/net/rpc/*/content this should only contain comments unmount the 'nfsd' filesystem umount /proc/fs/nfsd rmmod nfsd (it look me ages to remember idmapd - but=20 lsof /proc/net/rpc/*/* gave it away) NeilBrown -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html