public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Brian Gerst <bgerst@didntduck.org>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: Linux kernel mailing list <linux-kernel@vger.kernel.org>
Subject: [PATCH] Better kmalloc effeciency
Date: Mon, 04 Mar 2002 20:58:15 -0500	[thread overview]
Message-ID: <3C842637.5350F969@didntduck.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 348 bytes --]

This patch adds two intermediate general cache sizes, 96 and 192 bytes. 
On my system this saves about 34k.

size-256              63    180    256    5   12    1
size-192              95    120    192    5    6    1
size-128             213    240    128    8    8    1
size-96             1080   1120     96   28   28    1

-- 

						Brian Gerst

[-- Attachment #2: kmalloc-sizes-1 --]
[-- Type: text/plain, Size: 544 bytes --]

diff -urN linux-2.5.6-pre2/mm/slab.c linux/mm/slab.c
--- linux-2.5.6-pre2/mm/slab.c	Mon Feb 11 10:21:49 2002
+++ linux/mm/slab.c	Sun Mar  3 13:59:25 2002
@@ -341,7 +341,9 @@
 	{    32,	NULL, NULL},
 #endif
 	{    64,	NULL, NULL},
+	{    96,	NULL, NULL},
 	{   128,	NULL, NULL},
+	{   192,	NULL, NULL},
 	{   256,	NULL, NULL},
 	{   512,	NULL, NULL},
 	{  1024,	NULL, NULL},
@@ -364,7 +366,9 @@
 	CN("size-32"),
 #endif
 	CN("size-64"),
+	CN("size-96"),
 	CN("size-128"),
+	CN("size-192"),
 	CN("size-256"),
 	CN("size-512"),
 	CN("size-1024"),

                 reply	other threads:[~2002-03-05  1:58 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=3C842637.5350F969@didntduck.org \
    --to=bgerst@didntduck.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.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