[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20080826082756.232C.KOSAKI.MOTOHIRO@jp.fujitsu.com>
Date: Tue, 26 Aug 2008 08:31:02 +0900
From: KOSAKI Motohiro <kosaki.motohiro@...fujitsu.com>
To: Mike Travis <travis@....com>
Cc: kosaki.motohiro@...fujitsu.com, David Miller <davem@...emloft.net>,
akpm@...ux-foundation.org, linux-kernel@...r.kernel.org,
linux-mm@...ck.org, cl@...ux-foundation.org,
tokunaga.keiich@...fujitsu.com
Subject: Re: [RFC][PATCH 2/2] quicklist shouldn't be proportional to # of CPUs
Hi Mike,
> >>> + num_cpus_per_node = cpus_weight_nr(node_to_cpumask(node));
>
> I think the more correct usage would be:
>
> {
> node_to_cpumask_ptr(v, node);
> num_cpus_per_node = cpus_weight_nr(*v);
> max /= num_cpus_per_node;
>
> return max(max, min_pages);
> }
>
> which should load 'v' with a pointer to the node_to_cpumask_map[node] entry
> [and avoid using stack space for the cpumask_t variable for those arch's
> that define a node_to_cpumask_map (or similar).] Otherwise a local cpumask_t
> variable '_v' is created to which 'v' is pointing to and thus can be used
> directly as an arg to the cpu_xxx ops.
Thank you for your attension.
please see my latest patch (http://marc.info/?l=linux-mm&m=121966459713193&w=2)
it do that.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists