lkml.org 
[lkml]   [2008]   [Aug]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC][PATCH 2/2] quicklist shouldn't be proportional to # of CPUs
> > +	int node = numa_node_id();
> > + struct zone *zones = NODE_DATA(node)->node_zones;
> > + int num_cpus_on_node;
> > + node_to_cpumask_ptr(cpumask_on_node, node);
> >
> > node_free_pages =
> > #ifdef CONFIG_ZONE_DMA
> > @@ -38,6 +41,10 @@ static unsigned long max_pages(unsigned
> > zone_page_state(&zones[ZONE_NORMAL], NR_FREE_PAGES);
> >
> > max = node_free_pages / FRACTION_OF_NODE_MEM;
> > +
> > + num_cpus_on_node = cpus_weight_nr(*cpumask_on_node);
> > + max /= num_cpus_on_node;
> > +
> > return max(max, min_pages);
>
> Exactly! And (many thanks to them!) the sparc maintainers have
> implemented a similar internal function definition for node_to_cpumask_ptr().

Can I think get your Ack?




\
 
 \ /
  Last update: 2008-08-26 01:37    [W:0.080 / U:0.428 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site