[PATCH] - Move cpu_vm_mask to be closer to mmu_context_t in struct mm

From: Jack Steiner <steiner_at_sgi.com>
Date: 2004-01-30 09:14:44
The cpu_vm_mask use to be close to the mmu_context_t field
in the mm struct. Recently some large members were
added between "cpu_vm_mask" and "context". I suspect that
was an oversight. 

Here is a patch that puts the fields close together. This
makes it likely that both fields are in the same cache line. 
Since both fields are likely to be updated at the same 
time, this may improve performance.

--- linux.base/./include/linux/sched.h	Mon Jan 26 17:06:13 2004
+++ linux/./include/linux/sched.h	Thu Jan 29 13:28:15 2004
@@ -206,7 +206,6 @@
 	unsigned long arg_start, arg_end, env_start, env_end;
 	unsigned long rss, total_vm, locked_vm;
 	unsigned long def_flags;
-	cpumask_t cpu_vm_mask;
 	unsigned long saved_auxv[40]; /* for /proc/PID/auxv */
@@ -214,6 +213,8 @@
 	int used_hugetlb;
+	cpumask_t cpu_vm_mask;
 	/* Architecture-specific MM context */
 	mm_context_t context;

Jack Steiner (steiner@sgi.com)          651-683-5302
Principal Engineer                      SGI - Silicon Graphics, Inc.

To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Thu Jan 29 17:20:53 2004

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:22 EST