Skip to contentSkip to conversation

cacheline align VM_is_OOM to prevent false sharing

PATCH New Andrea Arcangeli 1 participant 1 message Jun 13, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cacheline align VM_is_OOM to prevent false sharing

# HG changeset patch
# User Andrea Arcangeli <[email protected]>
# Date 1181724924 -7200
# Node ID b24d30f03c4426237f3e08e28a02635d6047b7dd # Parent 61155bad1fc923ea547852ac9fafed9f8bc7485d cacheline align VM_is_OOM to prevent false sharing

This is better to be cacheline aligned in smp kernels just in case.

mm/oom_kill.c +1 -1
@@ -28,7 +28,7 @@ int sysctl_panic_on_oom;
 int sysctl_panic_on_oom;
 /* #define DEBUG */
 
-unsigned long VM_is_OOM;
+unsigned long VM_is_OOM __cacheline_aligned_in_smp;
 static unsigned long last_tif_memdie_jiffies;
 
 /**

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>