From: Manfred Spraul <manfred@colorfullife.com>
To: Andrew Morton <akpm@digeo.com>
Cc: linux-arch@vger.kernel.org
Subject: [PATCH] Allow arch override for kmem_bufctl_t
Date: Sat, 15 May 2004 14:13:56 +0200 [thread overview]
Message-ID: <40A60984.1070202@colorfullife.com> (raw)
Hi Andrew,
The slab allocator keeps track of the free objects in a slab with a
linked list of integers (typedef'ed to kmem_bufctl_t). Right now
unsigned int is used for kmem_bufctl_t, i.e. 4 bytes per-object overhead.
The attached patch allows an arch override for this type: Theoretically,
unsigned short is sufficient for kmem_bufctl_t and this would reduce the
per-object overhead to 2 bytes. But some archs cannot operate on 16-bit
values efficiently, thus it's not possible to switch everyone to ushort.
The patch switches i386, the port maintainers should switch their arch
if there are no problems with 16-bit quantities. All accesses to
kmem_bufctl_t are under a per-cache spinlock and not in the hottest path.
Could you apply it to -mm?
--
Manfred
next reply other threads:[~2004-05-15 12:14 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-15 12:13 Manfred Spraul [this message]
2004-05-15 12:24 ` [PATCH] Allow arch override for kmem_bufctl_t Manfred Spraul
2004-05-17 9:09 ` Andi Kleen
2004-05-17 9:11 ` Geert Uytterhoeven
2004-05-17 11:28 ` Ralf Baechle
2004-05-17 11:39 ` Ivan Kokshaysky
2004-05-17 12:39 ` Andi Kleen
2004-05-17 18:22 ` David Mosberger
2004-05-17 21:16 ` David S. Miller
2004-05-17 21:25 ` Matthew Wilcox
2004-05-18 5:04 ` Manfred Spraul
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=40A60984.1070202@colorfullife.com \
--to=manfred@colorfullife.com \
--cc=akpm@digeo.com \
--cc=linux-arch@vger.kernel.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