From: Greg Banks Subject: Re: [PATCH] provide sunrpc pool_mode module option Date: Thu, 22 Feb 2007 14:16:30 +1100 Message-ID: <20070222031630.GD27743@sgi.com> References: <20070221145818.GC23394@sgi.com> <17884.65022.790059.307696@notabene.brown> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Cc: Linux NFS Mailing List To: Neil Brown Return-path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] helo=mail.sourceforge.net) by sc8-sf-list2-new.sourceforge.net with esmtp (Exim 4.43) id 1HK4Rq-00089m-Cp for nfs@lists.sourceforge.net; Wed, 21 Feb 2007 19:16:46 -0800 Received: from netops-testserver-4-out.sgi.com ([192.48.171.29] helo=netops-testserver-4.corp.sgi.com) by mail.sourceforge.net with esmtp (Exim 4.44) id 1HK4Rr-0005gT-7N for nfs@lists.sourceforge.net; Wed, 21 Feb 2007 19:16:48 -0800 In-Reply-To: <17884.65022.790059.307696@notabene.brown> List-Id: "Discussion of NFS under Linux development, interoperability, and testing." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: nfs-bounces@lists.sourceforge.net Errors-To: nfs-bounces@lists.sourceforge.net On Thu, Feb 22, 2007 at 01:20:46PM +1100, Neil Brown wrote: > On Thursday February 22, gnb@sgi.com wrote: > > > > Provide a module option "pool_mode" for sunrpc.ko which allows a > > sysadmin to choose the mode for mapping svc_pools to CPUs. Values are: > > > > auto choose a mapping mode heuristically > > global (default, same as the pre-2.6.19 code) a single global pool > > percpu one pool per CPU > > pernode one pool per NUMA node > > > > Note that since 2.6.19 the hardcoded behaviour has been "auto", > > this patch makes the default "global". > > -ENODOC .... Documentation/kernel-parameters.txt should have this > documented as sunrpc.pool_mode My bad, I'll fix it. > It bugs me slightly that you can only set this once. If you want to > try a different option you have to reboot unless sunrpc is a module in > which case you can rmmod and insmod. Indeed. > What would you think of making 'initialised' a count of active > services that gets decremented from svc_destroy? Then you could just > stop all nfsd (and lockd) threads, write a new value to > /sys/module/sunrpc/parameters/pool_mode > and restart the threads. Sounds useful, I'll look into it. V2 patch coming soon. Greg. -- Greg (not Dave) Banks, R&D Software Engineer, SGI Australian Software Group. I don't speak for SGI. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ NFS maillist - NFS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs