login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
August
»
21
Re: [RFC][PATCH 2/2] quicklist shouldn't be proportional to # of CPUs
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
KOSAKI Motohiro <kosaki.motohiro@...>
To: Andrew Morton <akpm@...>
Cc: David Miller <davem@...>, <linux-kernel@...>, <linux-mm@...>, <cl@...>, <tokunaga.keiich@...>
Subject:
Re: [RFC][PATCH 2/2] quicklist shouldn't be proportional to # of CPUs
Date: Thursday, August 21, 2008 - 3:31 am
>> IA64 seems to be one of the few platforms to define this as a macro
quoted text
>> evaluating to the node-to-cpumask array entry, so it's clear what >> platform Motohiro-san did build testing on :-) > > Seems to compile OK on x86_32, x86_64, ia64 and powerpc for some reason. > > This seems to fix things on sparc64: > > --- a/mm/quicklist.c~mm-quicklist-shouldnt-be-proportional-to-number-of-cpus-fix > +++ a/mm/quicklist.c > @@ -28,7 +28,7 @@ static unsigned long max_pages(unsigned > unsigned long node_free_pages, max; > int node = numa_node_id(); > struct zone *zones = NODE_DATA(node)->node_zones; > - int num_cpus_per_node; > + cpumask_t node_cpumask; > > node_free_pages = > #ifdef CONFIG_ZONE_DMA > @@ -41,8 +41,8 @@ static unsigned long max_pages(unsigned > > max = node_free_pages / FRACTION_OF_NODE_MEM; > > - num_cpus_per_node = cpus_weight_nr(node_to_cpumask(node)); > - max /= num_cpus_per_node; > + node_cpumask = node_to_cpumask(node); > + max /= cpus_weight_nr(node_cpumask); > > return max(max, min_pages); > }
Thank you!! --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[RFC][PATCH 0/2] Quicklist is slighly problematic.
, KOSAKI Motohiro
, (Wed Aug 20, 7:05 am)
Re: [RFC][PATCH 0/2] Quicklist is slighly problematic.
, Andrew Morton
, (Wed Aug 20, 2:31 pm)
Re: [RFC][PATCH 0/2] Quicklist is slighly problematic.
, Robin Holt
, (Wed Aug 20, 10:42 pm)
Re: [RFC][PATCH 0/2] Quicklist is slighly problematic.
, Christoph Lameter
, (Thu Aug 21, 9:07 am)
Re: [RFC][PATCH 0/2] Quicklist is slighly problematic.
, Robin Holt
, (Thu Aug 21, 9:14 am)
Re: [RFC][PATCH 0/2] Quicklist is slighly problematic.
, Christoph Lameter
, (Thu Aug 21, 9:18 am)
Re: [RFC][PATCH 0/2] Quicklist is slighly problematic.
, Robin Holt
, (Thu Aug 21, 9:45 am)
Re: [RFC][PATCH 0/2] Quicklist is slighly problematic.
, Christoph Lameter
, (Wed Aug 20, 10:10 am)
Re: [RFC][PATCH 0/2] Quicklist is slighly problematic.
, Robin Holt
, (Wed Aug 20, 10:13 pm)
Re: [RFC][PATCH 0/2] Quicklist is slighly problematic.
, David Miller
, (Wed Aug 20, 11:08 pm)
Re: [RFC][PATCH 0/2] Quicklist is slighly problematic.
, Christoph Lameter
, (Thu Aug 21, 9:10 am)
Re: [RFC][PATCH 0/2] Quicklist is slighly problematic.
, Robin Holt
, (Wed Aug 20, 10:16 pm)
Re: [RFC][PATCH 0/2] Quicklist is slighly problematic.
, KOSAKI Motohiro
, (Wed Aug 20, 10:49 am)
Re: [RFC][PATCH 0/2] Quicklist is slighly problematic.
, Christoph Lameter
, (Wed Aug 20, 11:26 am)
[RFC][PATCH 2/2] quicklist shouldn't be proportional to # of...
, KOSAKI Motohiro
, (Wed Aug 20, 7:08 am)
Re: [RFC][PATCH 2/2] quicklist shouldn't be proportional to ...
, Andrew Morton
, (Thu Aug 21, 2:46 am)
Re: [RFC][PATCH 2/2] quicklist shouldn't be proportional to ...
, David Miller
, (Thu Aug 21, 3:13 am)
Re: [RFC][PATCH 2/2] quicklist shouldn't be proportional to ...
, Mike Travis
, (Mon Aug 25, 2:40 pm)
Re: [RFC][PATCH 2/2] quicklist shouldn't be proportional to ...
, KOSAKI Motohiro
, (Mon Aug 25, 7:31 pm)
Re: [RFC][PATCH 2/2] quicklist shouldn't be proportional to ...
, Andrew Morton
, (Thu Aug 21, 3:27 am)
Re: [RFC][PATCH 2/2] quicklist shouldn't be proportional to ...
, Peter Zijlstra
, (Thu Aug 21, 5:32 am)
Re: [RFC][PATCH 2/2] quicklist shouldn't be proportional to ...
, Mike Travis
, (Mon Aug 25, 2:44 pm)
Re: [RFC][PATCH 2/2] quicklist shouldn't be proportional to ...
, KOSAKI Motohiro
, (Thu Aug 21, 6:04 am)
Re: [RFC][PATCH 2/2] quicklist shouldn't be proportional to ...
, Mike Travis
, (Mon Aug 25, 2:48 pm)
Re: [RFC][PATCH 2/2] quicklist shouldn't be proportional to ...
, KOSAKI Motohiro
, (Mon Aug 25, 7:33 pm)
Re: [RFC][PATCH 2/2] quicklist shouldn't be proportional to ...
, Mike Travis
, (Tue Aug 26, 4:35 pm)
Re: [RFC][PATCH 2/2] quicklist shouldn't be proportional to ...
, KOSAKI Motohiro
, (Thu Aug 21, 6:22 am)
Re: [RFC][PATCH 2/2] quicklist shouldn't be proportional to ...
, KOSAKI Motohiro
, (Thu Aug 21, 8:02 am)
Re: [RFC][PATCH 2/2] quicklist shouldn't be proportional to ...
, David Miller
, (Thu Aug 21, 6:09 am)
Re: [RFC][PATCH 2/2] quicklist shouldn't be proportional to ...
, KOSAKI Motohiro
, (Thu Aug 21, 6:13 am)
Re: [RFC][PATCH 2/2] quicklist shouldn't be proportional to ...
, David Miller
, (Thu Aug 21, 6:26 am)
Re: [RFC][PATCH 2/2] quicklist shouldn't be proportional to ...
, KOSAKI Motohiro
, (Thu Aug 21, 3:31 am)
Re: [RFC][PATCH 2/2] quicklist shouldn't be proportional to ...
, KOSAKI Motohiro
, (Thu Aug 21, 3:18 am)
Re: [RFC][PATCH 2/2] quicklist shouldn't be proportional to ...
, Christoph Lameter
, (Wed Aug 20, 11:27 am)
[RFC][PATCH 1/2] Show quicklist at meminfo
, KOSAKI Motohiro
, (Wed Aug 20, 7:07 am)
Re: [RFC][PATCH 1/2] Show quicklist at meminfo
, Andrew Morton
, (Wed Aug 20, 2:35 pm)
Re: [RFC][PATCH 1/2] Show quicklist at meminfo
, KOSAKI Motohiro
, (Thu Aug 21, 3:36 am)
Re: [RFC][PATCH 1/2] Show quicklist at meminfo
, KOSAKI Motohiro
, (Thu Aug 21, 9:05 pm)
Re: [RFC][PATCH 1/2] Show quicklist at meminfo
, Andrew Morton
, (Fri Aug 22, 12:28 am)
Re: [RFC][PATCH 1/2] Show quicklist at meminfo
, KOSAKI Motohiro
, (Sat Aug 23, 4:24 am)
Re: [RFC][PATCH 1/2] Show quicklist at meminfo
, Andrew Morton
, (Sun Aug 24, 1:29 am)
Re: [RFC][PATCH 1/2] Show quicklist at meminfo
, Robin Holt
, (Fri Aug 22, 9:23 am)
Re: [RFC][PATCH 1/2] Show quicklist at meminfo
, Christoph Lameter
, (Fri Aug 22, 9:56 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
Re: Announce: Linux-next (Or Andrew's dream :-))
Greg KH
[patch 26/73] NET: Correct two mistaken skb_reset_mac_header() conversions.
Greg Kroah-Hartman
[PATCH 007/196] Chinese: add translation of stable_kernel_rules.txt
Alan Cox
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
git
:
linux-netdev
:
Alexey Dobriyan
Re: [GIT]: Networking
Gerrit Renker
[PATCH 03/37] dccp: List management for new feature negotiation
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Andrew Morton
Re: [BUG] New Kernel Bugs
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
2 users
and
1124 guests
online.
Online users
strcmp
zeekec
Syndicate