login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
April
»
30
Re: [PATCH] - New round-robin rotor for SLAB allocations
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Andrew Morton
Subject:
Re: [PATCH] - New round-robin rotor for SLAB allocations
Date: Friday, April 30, 2010 - 1:52 pm
On Mon, 26 Apr 2010 16:00:41 -0500 Jack Steiner <steiner@sgi.com> wrote:
quoted text
> We have observed several workloads running on multi-node systems where > memory is assigned unevenly across the nodes in the system. There are > numerous reasons for this but one is the round-robin rotor in > cpuset_mem_spread_node(). > > For example, a simple test that writes a multi-page file will allocate pages > on nodes 0 2 4 6 ... Odd nodes are skipped. (Sometimes it allocates on > odd nodes & skips even nodes). > > An example is shown below. The program "lfile" writes a file consisting of > 10 pages. The program then mmaps the file & uses get_mempolicy(..., > MPOL_F_NODE) to determine the nodes where the file pages were allocated. > The output is shown below: > > # ./lfile > allocated on nodes: 2 4 6 0 1 2 6 0 2 > > > > There is a single rotor that is used for allocating both file pages & slab > pages. Writing the file allocates both a data page & a slab page > (buffer_head). This advances the RR rotor 2 nodes for each page > allocated. > > A quick confirmation seems to confirm this is the cause of the uneven > allocation: > > # echo 0 >/dev/cpuset/memory_spread_slab > # ./lfile > allocated on nodes: 6 7 8 9 0 1 2 3 4 5 > > > This patch introduces a second rotor that is used for slab allocations. > > include/linux/cpuset.h | 6 ++++++ > include/linux/sched.h | 1 + > kernel/cpuset.c | 20 ++++++++++++++++---- > mm/slab.c | 2 +- > 4 files changed, 24 insertions(+), 5 deletions(-)
Why no update to slob and slub? --
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] - New round-robin rotor for SLAB allocations
, Jack Steiner
, (Mon Apr 26, 2:00 pm)
Re: [PATCH] - New round-robin rotor for SLAB allocations
, Christoph Lameter
, (Mon Apr 26, 6:48 pm)
Re: [PATCH] - New round-robin rotor for SLAB allocations
, Andrew Morton
, (Fri Apr 30, 1:52 pm)
Re: [PATCH] - New round-robin rotor for SLAB allocations
, Christoph Lameter
, (Sat May 1, 7:06 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Alexey Dobriyan
Re: [2.6.22.2 review 09/84] Fix rfkill IRQ flags.
Michael Moore
Re: underage models, pre teen models, lolita porn, young preteens, little lolitas
Alex Riesen
Re: [PATCH 4/7] lib: Introduce strnstr()
Thomas Gleixner
[ANNOUNCE] 2.6.31-rc6-rt2
Mathieu Desnoyers
Re: Linux 2.6.25-rc2
git
:
Blaisorblade
git-unpack-objects < pack file in repository doesn't work!
Matthieu Moy
Re: Cloning empty repositories, was Re: What is the idea for bare repositories?
Linus Torvalds
Re: Untracked working tree files
Peter Karlsson
Re: CRLF problems with Git on Win32
Johannes Schindelin
Re: [PATCH 4/4] git-rebase -i: New option to support rebase with merges
linux-netdev
:
Alan Menegotto
Re: Linux networking implementation and packet capture
Andrew Morton
Re: [PATCH] PHYLIB: IRQ event workqueue handling fixes
Timo Teräs
ip xfrm policy semantics
Jarek Poplawski
Re: [PATCH]: Fix queueing return values...
David Miller
Re: [PATCH 1/2] netdev: bfin_mac: enable bfin_mac net dev driver for BF51x
git-commits-head
:
Linux Kernel Mailing List
Blackfin: don't give CPU its own line in traps output
Linux Kernel Mailing List
No need to do lock_super() for exclusion in generic_shutdown_super()
Linux Kernel Mailing List
x86, msr: Export the register-setting MSR functions via /dev/*/msr
Linux Kernel Mailing List
MIPS: SMTC: Fix lockup in smtc_distribute_timer
Linux Kernel Mailing List
powerpc: gamecube/wii: usbgecko bootwrapper console support
openbsd-misc
:
Aaron Mason
Re: Defending OpenBSD Performance
Henning Brauer
Re: Defending OpenBSD Performance
Henning Brauer
Re: Defending OpenBSD Performance
Christiano Farina Haesbaert
Re: Defending OpenBSD Performance
Nick Holland
Re: 1 out of 3 hunks failed--saving rejects to kerberosV/src/lib/krb5/crypto.c.rej
Colocation donated by:
Syndicate