Re: [PATCH v10 12/35] shrinker: add node awareness

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 6 Jun 2013 13:26:59 +1000 Dave Chinner <david@xxxxxxxxxxxxx> wrote:

> On Wed, Jun 05, 2013 at 04:08:10PM -0700, Andrew Morton wrote:
> > On Mon,  3 Jun 2013 23:29:41 +0400 Glauber Costa <glommer@xxxxxxxxxx> wrote:
> > 
> > > From: Dave Chinner <dchinner@xxxxxxxxxx>
> > > 
> > > Pass the node of the current zone being reclaimed to shrink_slab(),
> > > allowing the shrinker control nodemask to be set appropriately for
> > > node aware shrinkers.
> > 
> > Again, some musings on node hotplug would be interesting.
> > 
> > > --- a/drivers/staging/android/ashmem.c
> > > +++ b/drivers/staging/android/ashmem.c
> > > @@ -692,6 +692,9 @@ static long ashmem_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
> > >  				.gfp_mask = GFP_KERNEL,
> > >  				.nr_to_scan = 0,
> > >  			};
> > > +
> > > +			nodes_setall(sc.nodes_to_scan);
> > 
> > hm, is there some way to do this within the initializer? ie:
> > 
> > 				.nodes_to_scan = magic_goes_here(),
> 
> Nothing obvious - it's essentially a memset call, so I'm not sure
> how that could be put in the initialiser...

I was thinking something like

		.nodes_to_scan = node_online_map,

which would solve both problems.  But node_online_map is nowhere near
the appropriate type, ho-hum.

We could newly accumulate such a thing in register_one_node(), but I
don't see a need.


--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux