Hottest Free Downloads - DownloadPipe.com Over 197,000 downloads! Bookmark Now!
DownloadPipe.com - New Downloads Every Minute
 SEARCH:
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

[PATCH] NUMA: broken per cpu pageset counters

 
   Linux (Home) -> Kernel RSS
Next:  ethtool git repo created  
Author Message
Magnus Damm

External


Since: Sep 06, 2005
Posts: 22



(Msg. 1) Posted: Tue Oct 25, 2005 1:30 pm
Post subject: [PATCH] NUMA: broken per cpu pageset counters
Archived from groups: linux>kernel (more info?)

The NUMA counters in struct per_cpu_pageset (linux/mmzone.h) are never cleared
today. This works ok for CPU 0 on NUMA machines because boot_pageset[] is
already zero, but for other CPU:s this results in uninitialized counters.

Signed-off-by: Magnus Damm <magnus.DeleteThis@valinux.co.jp>
---

Tested on dual x86_64 hardware with 2.6.14-rc5-git5.

/proc/zoneinfo:
.....
numa_hit: 15064664480448666958
numa_miss: 15061573751478353360
numa_foreign: 15082960697523852788
interleave_hit: 15083101074612482007
local_node: 15084090651888212814
other_node: 5860683432910092144
.....

--- linux-2.6.14-rc5-git5/mm/page_alloc.c 2005-10-24 15:37:48.000000000 +0900
+++ linux-2.6.14-rc5-git5-setup_pageset_zero_fix/mm/page_alloc.c 2005-10-25 19:48:06.000000000 +0900
@@ -1750,6 +1750,8 @@ inline void setup_pageset(struct per_cpu
{
struct per_cpu_pages *pcp;

+ memset(p, 0, sizeof(*p));
+
pcp = &p->pcp[0]; /* hot */
pcp->count = 0;
pcp->low = 2 * batch;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo.DeleteThis@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to top
Login to vote
Display posts from previous:   
Related Topics:
[PATCH] (1/43) Kconfig fix (alpha NUMA) - NUMA is broken on alpha; marked as such Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk> ---- diff -urN RC13-rc6-git13-disable-DI/arch/alpha/Kconfig RC13-rc6-git13-alpha-NUMA/arch/alpha/Kconfig ---..

[PATCH] i386 boottime for_each_cpu broken - for_each_cpu walks through all processors in cpu_possible_map, which is defined as cpu_callout_map on i386 and isn't initialised until all processors have been booted. This breaks things which do for_each_cpu iterations early during boot. So, define..

[PATCH] (12/22) broken constraints on mulu.l - too permissive constraint on mulu.l - the first argument should not be an a-register. Fixed by replacing "g" with "dm"; with older gcc we got lucky and it had never attempted mulu.l %a0, %d1:%d0. These days it does, with predictable...

idle task's task_t allocation on NUMA machines - Hi, Currently, the task_t structure of the idle task is always allocated on CPU0, hence on node 0: while booting, for each CPU, CPU 0 calls fork_idle(), hence copy_process(), hence dup_task_struct(), hence alloc_task_struct(), hence kmem_cache_alloc(),....

[PATCH] hid-core.c, 2.6.13-rc4. (Was: [PATCH] Wireless Sec.. - Hello, I stand corrected. The WSL driver is _not_ needed as it actually is possible to use libusb. However, you need this little patch to hid-core.c: diff -urN linux-2.6.13-rc4.orig/drivers/usb/input/hid-core.c..
       Linux (Home) -> Kernel All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows Forums
 Game Forums
  Linux Forums
 Mac Forums
 PDA Forums
 Mobile Forums
  Top  |  Store  |  RSS Feeds RSS  |  Data Feeds  |  Advertise  |  Submit  |  Bookmark  |  Newsletter  |  Contact