From: Andrea Arcangeli <andrea@suse.de>
To: linux-mm@kvack.org
Subject: [PATCH] cacheline align VM_is_OOM to prevent false sharing
Date: Wed, 13 Jun 2007 11:26:30 +0200 [thread overview]
Message-ID: <b24d30f03c4426237f3e.1181726790@v2.random> (raw)
# HG changeset patch
# User Andrea Arcangeli <andrea@suse.de>
# 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.
Signed-off-by: Andrea Arcangeli <andrea@suse.de>
diff --git a/mm/oom_kill.c b/mm/oom_kill.c
--- a/mm/oom_kill.c
+++ b/mm/oom_kill.c
@@ -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 majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
reply other threads:[~2007-06-13 9:26 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b24d30f03c4426237f3e.1181726790@v2.random \
--to=andrea@suse.de \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox