From: Anton Blanchard <anton@samba.org>
To: Christoph Lameter <christoph@lameter.com>
Cc: akpm@osdl.org, manfred@colorfullife.com, linux-kernel@vger.kernel.org
Subject: Re: slab not freeing with current -git
Date: Wed, 6 Jul 2005 11:04:50 +1000 [thread overview]
Message-ID: <20050706010450.GO12786@krispykreme> (raw)
In-Reply-To: <Pine.LNX.4.62.0507051700360.5130@graphe.net>
> That is the issue. It should fall back to kmalloc. One piece of the
> patchset dropped out between Andrew and Linus.
That helped, but I still had lots of free memory in the request_queue
slab. Giving kmem_cache_alloc_node the same treatment fixed it, although
I wonder if we just shouldnt be passing in -1.
Anton
Index: foobar2/mm/slab.c
===================================================================
--- foobar2.orig/mm/slab.c 2005-07-06 10:47:47.950435997 +1000
+++ foobar2/mm/slab.c 2005-07-06 10:59:59.945684235 +1000
@@ -2372,6 +2372,9 @@
struct slab *slabp;
kmem_bufctl_t next;
+ if (nodeid == -1)
+ return kmem_cache_alloc(cachep, flags);
+
for (loop = 0;;loop++) {
struct list_head *q;
@@ -2443,6 +2446,9 @@
{
kmem_cache_t *cachep;
+ if (node == -1)
+ return kmalloc(size, flags);
+
cachep = kmem_find_general_cachep(size, flags);
if (unlikely(cachep == NULL))
return NULL;
next prev parent reply other threads:[~2005-07-06 1:06 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-05 22:45 Anton Blanchard
2005-07-05 22:51 ` Christoph Lameter
2005-07-05 22:59 ` Anton Blanchard
2005-07-05 23:33 ` Christoph Lameter
2005-07-05 23:55 ` Anton Blanchard
2005-07-06 0:05 ` Christoph Lameter
2005-07-06 1:04 ` Anton Blanchard [this message]
2005-07-06 1:27 ` Christoph Lameter
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=20050706010450.GO12786@krispykreme \
--to=anton@samba.org \
--cc=akpm@osdl.org \
--cc=christoph@lameter.com \
--cc=linux-kernel@vger.kernel.org \
--cc=manfred@colorfullife.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
all inboxes | Powered by JetHome®