* [PATCH] - Move cpu_vm_mask to be closer to mmu_context_t in struct mm
@ 2004-01-29 22:14 Jack Steiner
0 siblings, 0 replies; only message in thread
From: Jack Steiner @ 2004-01-29 22:14 UTC (permalink / raw)
To: akpm, linux-kernel; +Cc: linux-ia64
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 @@
#ifdef CONFIG_HUGETLB_PAGE
int used_hugetlb;
#endif
+ cpumask_t cpu_vm_mask;
+
/* Architecture-specific MM context */
mm_context_t context;
--
Thanks
Jack Steiner (steiner@sgi.com) 651-683-5302
Principal Engineer SGI - Silicon Graphics, Inc.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-01-29 22:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-29 22:14 [PATCH] - Move cpu_vm_mask to be closer to mmu_context_t in struct mm Jack Steiner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox