login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
October
»
2
Re: [Patch / 002](memory hotplug) Callback function to create kmem_cache_node.
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Christoph Lameter <clameter@...>
To: Yasunori Goto <y-goto@...>
Cc: Andrew Morton <akpm@...>, Linux Kernel ML <linux-kernel@...>, linux-mm <linux-mm@...>
Subject:
Re: [Patch / 002](memory hotplug) Callback function to create kmem_cache_node.
Date: Tuesday, October 2, 2007 - 2:29 pm
On Tue, 2 Oct 2007, Yasunori Goto wrote:
quoted text
> Do you mean that just nr_slabs should be checked like followings? > I'm not sure this is enough. > > : > if (s->node[nid]) { > n = get_node(s, nid); > if (!atomic_read(&n->nr_slabs)) { > s->node[nid] = NULL; > kmem_cache_free(kmalloc_caches, n); > } > } > : > :
That would work. But it would be better to shrink the cache first. The first 2 slabs on a node may be empty and the shrinking will remove those. If you do not shrink then the code may falsely assume that there are objects on the node. -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[Patch / 000](memory hotplug) Fix NULL pointer access of kme...
, Yasunori Goto
, (Mon Oct 1, 5:30 am)
Re: [Patch 000/002](memory hotplug) Fix NULL pointer access ...
, Yasunori Goto
, (Mon Oct 1, 5:38 am)
[Patch / 001](memory hotplug) fix some defects of memory not...
, Yasunori Goto
, (Mon Oct 1, 5:33 am)
[Patch / 002](memory hotplug) Callback function to create km...
, Yasunori Goto
, (Mon Oct 1, 5:34 am)
Re: [Patch / 002](memory hotplug) Callback function to creat...
, Christoph Lameter
, (Mon Oct 1, 4:34 pm)
Re: [Patch / 002](memory hotplug) Callback function to creat...
, Yasunori Goto
, (Mon Oct 1, 10:20 pm)
Re: [Patch / 002](memory hotplug) Callback function to creat...
, Christoph Lameter
, (Tue Oct 2, 2:29 pm)
Re: [Patch / 002](memory hotplug) Callback function to creat...
, Yasunori Goto
, (Wed Oct 3, 10:59 am)
Re: [Patch / 002](memory hotplug) Callback function to creat...
, Christoph Lameter
, (Wed Oct 3, 2:00 pm)
Re: [Patch / 002](memory hotplug) Callback function to creat...
, Yasunori Goto
, (Wed Oct 3, 10:00 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Tarkan Erimer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
David Woodhouse
[PATCH 1/3] firmware: allow firmware files to be built into kernel image
Linus Torvalds
Linux 2.6.21
Parag Warudkar
BUG: soft lockup - CPU#1 stuck for 15s! [swapper:0]
git
:
linux-netdev
:
David Miller
[GIT]: Networking
Rick Jones
Re: Network latency regressions from 2.6.22 to 2.6.29
Gerrit Renker
[PATCH 18/37] dccp: Support for Mandatory options
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
1 user
and
744 guests
online.
Online users
Adikajtaz
Syndicate