From: akpm@linux-foundation.org
To: mm-commits@vger.kernel.org
Cc: richard@rsk.demon.co.uk, riel@redhat.com
Subject: + mm-remove-alignment-padding-from-anon_vma-on-some-64-bit-builds.patch added to -mm tree
Date: Thu, 23 Sep 2010 16:24:39 -0700 [thread overview]
Message-ID: <201009232324.o8NNOdaM025506@imap1.linux-foundation.org> (raw)
The patch titled
mm: remove alignment padding from anon_vma on (some) 64 bit builds
has been added to the -mm tree. Its filename is
mm-remove-alignment-padding-from-anon_vma-on-some-64-bit-builds.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find
out what to do about this
The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/
------------------------------------------------------
Subject: mm: remove alignment padding from anon_vma on (some) 64 bit builds
From: Richard Kennedy <richard@rsk.demon.co.uk>
Reorder structure anon_vma to remove alignment padding on 64 builds when
(CONFIG_KSM || CONFIG_MIGRATION).
This will shrink the size of the anon_vma structure from 40 to 32 bytes
& allow more objects per slab in its kmem_cache.
Under slub the objects in the anon_vma kmem_cache will then be 40 bytes
with 102 objects per slab. (On v2.6.36 without this patch,the size is 48
bytes and 85 objects/slab.)
Signed-off-by: Richard Kennedy <richard@rsk.demon.co.uk>
Reviewed-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
include/linux/rmap.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff -puN include/linux/rmap.h~mm-remove-alignment-padding-from-anon_vma-on-some-64-bit-builds include/linux/rmap.h
--- a/include/linux/rmap.h~mm-remove-alignment-padding-from-anon_vma-on-some-64-bit-builds
+++ a/include/linux/rmap.h
@@ -25,8 +25,8 @@
* pointing to this anon_vma once its vma list is empty.
*/
struct anon_vma {
- spinlock_t lock; /* Serialize access to vma list */
struct anon_vma *root; /* Root of this anon_vma tree */
+ spinlock_t lock; /* Serialize access to vma list */
#if defined(CONFIG_KSM) || defined(CONFIG_MIGRATION)
/*
_
Patches currently in -mm which might be from richard@rsk.demon.co.uk are
linux-next.patch
timer_list-remove-alignment-padding-on-64-bit-when-config_timer_stats.patch
mm-remove-alignment-padding-from-anon_vma-on-some-64-bit-builds.patch
reply other threads:[~2010-09-23 23: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=201009232324.o8NNOdaM025506@imap1.linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mm-commits@vger.kernel.org \
--cc=richard@rsk.demon.co.uk \
--cc=riel@redhat.com \
/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