Re: [Q] Default SLAB allocator

2012-10-19 Thread Eric Dumazet
On Fri, 2012-10-19 at 09:03 +0900, JoonSoo Kim wrote: > Hello, Eric. > Thank you very much for a kind comment about my question. > I have one more question related to network subsystem. > Please let me know what I misunderstand. > > 2012/10/14 Eric Dumazet : > > In latest kernels, skb->head no

Re: [Q] Default SLAB allocator

2012-10-19 Thread Eric Dumazet
On Fri, 2012-10-19 at 09:03 +0900, JoonSoo Kim wrote: Hello, Eric. Thank you very much for a kind comment about my question. I have one more question related to network subsystem. Please let me know what I misunderstand. 2012/10/14 Eric Dumazet eric.duma...@gmail.com: In latest kernels,

Re: [Q] Default SLAB allocator

2012-10-18 Thread JoonSoo Kim
Hello, Eric. Thank you very much for a kind comment about my question. I have one more question related to network subsystem. Please let me know what I misunderstand. 2012/10/14 Eric Dumazet : > In latest kernels, skb->head no longer use kmalloc()/kfree(), so SLAB vs > SLUB is less a concern for

Re: [Q] Default SLAB allocator

2012-10-18 Thread JoonSoo Kim
Hello, Eric. Thank you very much for a kind comment about my question. I have one more question related to network subsystem. Please let me know what I misunderstand. 2012/10/14 Eric Dumazet eric.duma...@gmail.com: In latest kernels, skb-head no longer use kmalloc()/kfree(), so SLAB vs SLUB is

Re: [Q] Default SLAB allocator

2012-10-17 Thread Shentino
On Wed, Oct 17, 2012 at 1:33 PM, Tim Bird wrote: > On 10/17/2012 12:20 PM, Shentino wrote: >> Potentially stupid question >> >> But is SLAB the one where all objects per cache have a fixed size and >> thus you don't have any bookkeeping overhead for the actual >> allocations? >> >> I remember

Re: [Q] Default SLAB allocator

2012-10-17 Thread Ezequiel Garcia
On Wed, Oct 17, 2012 at 5:58 PM, Tim Bird wrote: > On 10/17/2012 12:13 PM, Eric Dumazet wrote: >> On Wed, 2012-10-17 at 11:45 -0700, Tim Bird wrote: >> >>> 8G is a small web server? The RAM budget for Linux on one of >>> Sony's cameras was 10M. We're not merely not in the same ballpark - >>>

Re: [Q] Default SLAB allocator

2012-10-17 Thread Tim Bird
On 10/17/2012 12:13 PM, Eric Dumazet wrote: > On Wed, 2012-10-17 at 11:45 -0700, Tim Bird wrote: > >> 8G is a small web server? The RAM budget for Linux on one of >> Sony's cameras was 10M. We're not merely not in the same ballpark - >> you're in a ballpark and I'm trimming bonsai trees... :-)

Re: [Q] Default SLAB allocator

2012-10-17 Thread Tim Bird
On 10/17/2012 12:20 PM, Shentino wrote: > Potentially stupid question > > But is SLAB the one where all objects per cache have a fixed size and > thus you don't have any bookkeeping overhead for the actual > allocations? > > I remember something about one of the allocation mechanisms being >

Re: [Q] Default SLAB allocator

2012-10-17 Thread Shentino
On Wed, Oct 17, 2012 at 12:13 PM, Eric Dumazet wrote: > On Wed, 2012-10-17 at 11:45 -0700, Tim Bird wrote: > >> 8G is a small web server? The RAM budget for Linux on one of >> Sony's cameras was 10M. We're not merely not in the same ballpark - >> you're in a ballpark and I'm trimming bonsai

Re: [Q] Default SLAB allocator

2012-10-17 Thread Eric Dumazet
On Wed, 2012-10-17 at 11:45 -0700, Tim Bird wrote: > 8G is a small web server? The RAM budget for Linux on one of > Sony's cameras was 10M. We're not merely not in the same ballpark - > you're in a ballpark and I'm trimming bonsai trees... :-) > Even laptops in 2012 have +4GB of ram. (Maybe

Re: [Q] Default SLAB allocator

2012-10-17 Thread Tim Bird
On 10/16/2012 12:16 PM, Eric Dumazet wrote: > On Tue, 2012-10-16 at 15:27 -0300, Ezequiel Garcia wrote: > >> Yes, we have some numbers: >> >> http://elinux.org/Kernel_dynamic_memory_analysis#Kmalloc_objects >> >> Are they too informal? I can add some details... >> >> They've been measured on a

Re: [Q] Default SLAB allocator

2012-10-17 Thread Tim Bird
On 10/16/2012 12:16 PM, Eric Dumazet wrote: On Tue, 2012-10-16 at 15:27 -0300, Ezequiel Garcia wrote: Yes, we have some numbers: http://elinux.org/Kernel_dynamic_memory_analysis#Kmalloc_objects Are they too informal? I can add some details... They've been measured on a **very** minimal

Re: [Q] Default SLAB allocator

2012-10-17 Thread Eric Dumazet
On Wed, 2012-10-17 at 11:45 -0700, Tim Bird wrote: 8G is a small web server? The RAM budget for Linux on one of Sony's cameras was 10M. We're not merely not in the same ballpark - you're in a ballpark and I'm trimming bonsai trees... :-) Even laptops in 2012 have +4GB of ram. (Maybe not

Re: [Q] Default SLAB allocator

2012-10-17 Thread Shentino
On Wed, Oct 17, 2012 at 12:13 PM, Eric Dumazet eric.duma...@gmail.com wrote: On Wed, 2012-10-17 at 11:45 -0700, Tim Bird wrote: 8G is a small web server? The RAM budget for Linux on one of Sony's cameras was 10M. We're not merely not in the same ballpark - you're in a ballpark and I'm

Re: [Q] Default SLAB allocator

2012-10-17 Thread Tim Bird
On 10/17/2012 12:20 PM, Shentino wrote: Potentially stupid question But is SLAB the one where all objects per cache have a fixed size and thus you don't have any bookkeeping overhead for the actual allocations? I remember something about one of the allocation mechanisms being designed

Re: [Q] Default SLAB allocator

2012-10-17 Thread Tim Bird
On 10/17/2012 12:13 PM, Eric Dumazet wrote: On Wed, 2012-10-17 at 11:45 -0700, Tim Bird wrote: 8G is a small web server? The RAM budget for Linux on one of Sony's cameras was 10M. We're not merely not in the same ballpark - you're in a ballpark and I'm trimming bonsai trees... :-) Even

Re: [Q] Default SLAB allocator

2012-10-17 Thread Ezequiel Garcia
On Wed, Oct 17, 2012 at 5:58 PM, Tim Bird tim.b...@am.sony.com wrote: On 10/17/2012 12:13 PM, Eric Dumazet wrote: On Wed, 2012-10-17 at 11:45 -0700, Tim Bird wrote: 8G is a small web server? The RAM budget for Linux on one of Sony's cameras was 10M. We're not merely not in the same ballpark

Re: [Q] Default SLAB allocator

2012-10-17 Thread Shentino
On Wed, Oct 17, 2012 at 1:33 PM, Tim Bird tim.b...@am.sony.com wrote: On 10/17/2012 12:20 PM, Shentino wrote: Potentially stupid question But is SLAB the one where all objects per cache have a fixed size and thus you don't have any bookkeeping overhead for the actual allocations? I

Re: [Q] Default SLAB allocator

2012-10-16 Thread Eric Dumazet
On Tue, 2012-10-16 at 15:27 -0300, Ezequiel Garcia wrote: > Yes, we have some numbers: > > http://elinux.org/Kernel_dynamic_memory_analysis#Kmalloc_objects > > Are they too informal? I can add some details... > > They've been measured on a **very** minimal setup, almost every option > is

Re: [Q] Default SLAB allocator

2012-10-16 Thread Christoph Lameter
On Thu, 11 Oct 2012, Ezequiel Garcia wrote: > * Is SLAB a proper choice? or is it just historical an never been > re-evaluated? > * Does the average embedded guy knows which allocator to choose > and what's the impact on his platform? My current ideas on this subject matter is to get to a

Re: [Q] Default SLAB allocator

2012-10-16 Thread Christoph Lameter
On Tue, 16 Oct 2012, Ezequiel Garcia wrote: > It might be worth reminding that very small systems can use SLOB > allocator, which does not suffer from this kind of fragmentation. Well, I have never seen non experimental systems that use SLOB. Others have claimed they exist. -- To unsubscribe

Re: [Q] Default SLAB allocator

2012-10-16 Thread Christoph Lameter
On Mon, 15 Oct 2012, David Rientjes wrote: > This type of workload that really exhibits the problem with remote freeing > would suggest that the design of slub itself is the problem here. There is a tradeoff here between spatial data locality and temporal locality. Slub always frees to the queue

Re: [Q] Default SLAB allocator

2012-10-16 Thread Ezequiel Garcia
On Tue, Oct 16, 2012 at 3:44 PM, Tim Bird wrote: > On 10/16/2012 11:27 AM, Ezequiel Garcia wrote: >> On Tue, Oct 16, 2012 at 3:07 PM, Tim Bird wrote: >>> On 10/16/2012 05:56 AM, Eric Dumazet wrote: On Tue, 2012-10-16 at 09:35 -0300, Ezequiel Garcia wrote: > Now, returning to the

Re: [Q] Default SLAB allocator

2012-10-16 Thread Tim Bird
On 10/16/2012 11:27 AM, Ezequiel Garcia wrote: > On Tue, Oct 16, 2012 at 3:07 PM, Tim Bird wrote: >> On 10/16/2012 05:56 AM, Eric Dumazet wrote: >>> On Tue, 2012-10-16 at 09:35 -0300, Ezequiel Garcia wrote: >>> Now, returning to the fragmentation. The problem with SLAB is that its

Re: [Q] Default SLAB allocator

2012-10-16 Thread Ezequiel Garcia
On Tue, Oct 16, 2012 at 3:07 PM, Tim Bird wrote: > On 10/16/2012 05:56 AM, Eric Dumazet wrote: >> On Tue, 2012-10-16 at 09:35 -0300, Ezequiel Garcia wrote: >> >>> Now, returning to the fragmentation. The problem with SLAB is that >>> its smaller cache available for kmalloced objects is 32 bytes;

Re: [Q] Default SLAB allocator

2012-10-16 Thread Ezequiel Garcia
On Tue, Oct 16, 2012 at 3:07 PM, Tim Bird wrote: > On 10/16/2012 05:56 AM, Eric Dumazet wrote: >> On Tue, 2012-10-16 at 09:35 -0300, Ezequiel Garcia wrote: >> >>> Now, returning to the fragmentation. The problem with SLAB is that >>> its smaller cache available for kmalloced objects is 32 bytes;

Re: [Q] Default SLAB allocator

2012-10-16 Thread Tim Bird
On 10/16/2012 05:56 AM, Eric Dumazet wrote: > On Tue, 2012-10-16 at 09:35 -0300, Ezequiel Garcia wrote: > >> Now, returning to the fragmentation. The problem with SLAB is that >> its smaller cache available for kmalloced objects is 32 bytes; >> while SLUB allows 8, 16, 24 ... >> >> Perhaps adding

Re: [Q] Default SLAB allocator

2012-10-16 Thread Eric Dumazet
On Tue, 2012-10-16 at 09:35 -0300, Ezequiel Garcia wrote: > Now, returning to the fragmentation. The problem with SLAB is that > its smaller cache available for kmalloced objects is 32 bytes; > while SLUB allows 8, 16, 24 ... > > Perhaps adding smaller caches to SLAB might make sense? > Is there

Re: [Q] Default SLAB allocator

2012-10-16 Thread Ezequiel Garcia
David, On Mon, Oct 15, 2012 at 9:46 PM, David Rientjes wrote: > On Sat, 13 Oct 2012, Ezequiel Garcia wrote: > >> But SLAB suffers from a lot more internal fragmentation than SLUB, >> which I guess is a known fact. So memory-constrained devices >> would waste more memory by using SLAB. > > Even

Re: [Q] Default SLAB allocator

2012-10-16 Thread Eric Dumazet
On Tue, 2012-10-16 at 10:28 +0900, JoonSoo Kim wrote: > Hello, Eric. > > 2012/10/14 Eric Dumazet : > > SLUB was really bad in the common workload you describe (allocations > > done by one cpu, freeing done by other cpus), because all kfree() hit > > the slow path and cpus contend in __slab_free()

Re: [Q] Default SLAB allocator

2012-10-16 Thread Eric Dumazet
On Tue, 2012-10-16 at 10:28 +0900, JoonSoo Kim wrote: Hello, Eric. 2012/10/14 Eric Dumazet eric.duma...@gmail.com: SLUB was really bad in the common workload you describe (allocations done by one cpu, freeing done by other cpus), because all kfree() hit the slow path and cpus contend in

Re: [Q] Default SLAB allocator

2012-10-16 Thread Ezequiel Garcia
David, On Mon, Oct 15, 2012 at 9:46 PM, David Rientjes rient...@google.com wrote: On Sat, 13 Oct 2012, Ezequiel Garcia wrote: But SLAB suffers from a lot more internal fragmentation than SLUB, which I guess is a known fact. So memory-constrained devices would waste more memory by using SLAB.

Re: [Q] Default SLAB allocator

2012-10-16 Thread Eric Dumazet
On Tue, 2012-10-16 at 09:35 -0300, Ezequiel Garcia wrote: Now, returning to the fragmentation. The problem with SLAB is that its smaller cache available for kmalloced objects is 32 bytes; while SLUB allows 8, 16, 24 ... Perhaps adding smaller caches to SLAB might make sense? Is there any

Re: [Q] Default SLAB allocator

2012-10-16 Thread Tim Bird
On 10/16/2012 05:56 AM, Eric Dumazet wrote: On Tue, 2012-10-16 at 09:35 -0300, Ezequiel Garcia wrote: Now, returning to the fragmentation. The problem with SLAB is that its smaller cache available for kmalloced objects is 32 bytes; while SLUB allows 8, 16, 24 ... Perhaps adding smaller

Re: [Q] Default SLAB allocator

2012-10-16 Thread Ezequiel Garcia
On Tue, Oct 16, 2012 at 3:07 PM, Tim Bird tim.b...@am.sony.com wrote: On 10/16/2012 05:56 AM, Eric Dumazet wrote: On Tue, 2012-10-16 at 09:35 -0300, Ezequiel Garcia wrote: Now, returning to the fragmentation. The problem with SLAB is that its smaller cache available for kmalloced objects is

Re: [Q] Default SLAB allocator

2012-10-16 Thread Ezequiel Garcia
On Tue, Oct 16, 2012 at 3:07 PM, Tim Bird tim.b...@am.sony.com wrote: On 10/16/2012 05:56 AM, Eric Dumazet wrote: On Tue, 2012-10-16 at 09:35 -0300, Ezequiel Garcia wrote: Now, returning to the fragmentation. The problem with SLAB is that its smaller cache available for kmalloced objects is

Re: [Q] Default SLAB allocator

2012-10-16 Thread Tim Bird
On 10/16/2012 11:27 AM, Ezequiel Garcia wrote: On Tue, Oct 16, 2012 at 3:07 PM, Tim Bird tim.b...@am.sony.com wrote: On 10/16/2012 05:56 AM, Eric Dumazet wrote: On Tue, 2012-10-16 at 09:35 -0300, Ezequiel Garcia wrote: Now, returning to the fragmentation. The problem with SLAB is that its

Re: [Q] Default SLAB allocator

2012-10-16 Thread Ezequiel Garcia
On Tue, Oct 16, 2012 at 3:44 PM, Tim Bird tim.b...@am.sony.com wrote: On 10/16/2012 11:27 AM, Ezequiel Garcia wrote: On Tue, Oct 16, 2012 at 3:07 PM, Tim Bird tim.b...@am.sony.com wrote: On 10/16/2012 05:56 AM, Eric Dumazet wrote: On Tue, 2012-10-16 at 09:35 -0300, Ezequiel Garcia wrote:

Re: [Q] Default SLAB allocator

2012-10-16 Thread Christoph Lameter
On Mon, 15 Oct 2012, David Rientjes wrote: This type of workload that really exhibits the problem with remote freeing would suggest that the design of slub itself is the problem here. There is a tradeoff here between spatial data locality and temporal locality. Slub always frees to the queue

Re: [Q] Default SLAB allocator

2012-10-16 Thread Christoph Lameter
On Tue, 16 Oct 2012, Ezequiel Garcia wrote: It might be worth reminding that very small systems can use SLOB allocator, which does not suffer from this kind of fragmentation. Well, I have never seen non experimental systems that use SLOB. Others have claimed they exist. -- To unsubscribe

Re: [Q] Default SLAB allocator

2012-10-16 Thread Christoph Lameter
On Thu, 11 Oct 2012, Ezequiel Garcia wrote: * Is SLAB a proper choice? or is it just historical an never been re-evaluated? * Does the average embedded guy knows which allocator to choose and what's the impact on his platform? My current ideas on this subject matter is to get to a point

Re: [Q] Default SLAB allocator

2012-10-16 Thread Eric Dumazet
On Tue, 2012-10-16 at 15:27 -0300, Ezequiel Garcia wrote: Yes, we have some numbers: http://elinux.org/Kernel_dynamic_memory_analysis#Kmalloc_objects Are they too informal? I can add some details... They've been measured on a **very** minimal setup, almost every option is stripped out,

Re: [Q] Default SLAB allocator

2012-10-15 Thread JoonSoo Kim
Hello, Eric. 2012/10/14 Eric Dumazet : > SLUB was really bad in the common workload you describe (allocations > done by one cpu, freeing done by other cpus), because all kfree() hit > the slow path and cpus contend in __slab_free() in the loop guarded by > cmpxchg_double_slab(). SLAB has a cache

Re: [Q] Default SLAB allocator

2012-10-15 Thread David Rientjes
On Sat, 13 Oct 2012, Ezequiel Garcia wrote: > But SLAB suffers from a lot more internal fragmentation than SLUB, > which I guess is a known fact. So memory-constrained devices > would waste more memory by using SLAB. Even with slub's per-cpu partial lists? -- To unsubscribe from this list: send

Re: [Q] Default SLAB allocator

2012-10-15 Thread David Rientjes
On Sat, 13 Oct 2012, David Rientjes wrote: > This was in August when preparing for LinuxCon, I tested netperf TCP_RR on > two 64GB machines (one client, one server), four nodes each, with thread > counts in multiples of the number of cores. SLUB does a comparable job, > but once we have the

Re: [Q] Default SLAB allocator

2012-10-15 Thread David Rientjes
On Sat, 13 Oct 2012, David Rientjes wrote: This was in August when preparing for LinuxCon, I tested netperf TCP_RR on two 64GB machines (one client, one server), four nodes each, with thread counts in multiples of the number of cores. SLUB does a comparable job, but once we have the the

Re: [Q] Default SLAB allocator

2012-10-15 Thread David Rientjes
On Sat, 13 Oct 2012, Ezequiel Garcia wrote: But SLAB suffers from a lot more internal fragmentation than SLUB, which I guess is a known fact. So memory-constrained devices would waste more memory by using SLAB. Even with slub's per-cpu partial lists? -- To unsubscribe from this list: send the

Re: [Q] Default SLAB allocator

2012-10-15 Thread JoonSoo Kim
Hello, Eric. 2012/10/14 Eric Dumazet eric.duma...@gmail.com: SLUB was really bad in the common workload you describe (allocations done by one cpu, freeing done by other cpus), because all kfree() hit the slow path and cpus contend in __slab_free() in the loop guarded by cmpxchg_double_slab().

Re: [Q] Default SLAB allocator

2012-10-13 Thread Eric Dumazet
On Sat, 2012-10-13 at 02:51 -0700, David Rientjes wrote: > On Thu, 11 Oct 2012, Andi Kleen wrote: > > > When did you last test? Our regressions had disappeared a few kernels > > ago. > > > > This was in August when preparing for LinuxCon, I tested netperf TCP_RR on > two 64GB machines (one

Re: [Q] Default SLAB allocator

2012-10-13 Thread Ezequiel Garcia
Hi David, On Sat, Oct 13, 2012 at 6:54 AM, David Rientjes wrote: > On Fri, 12 Oct 2012, Ezequiel Garcia wrote: > >> >> SLUB is a non-starter for us and incurs a >10% performance degradation in >> >> netperf TCP_RR. >> > >> >> Where are you seeing that? >> > > In my benchmarking results. > >>

Re: [Q] Default SLAB allocator

2012-10-13 Thread David Rientjes
On Fri, 12 Oct 2012, Ezequiel Garcia wrote: > >> SLUB is a non-starter for us and incurs a >10% performance degradation in > >> netperf TCP_RR. > > > > Where are you seeing that? > In my benchmarking results. > Notice that many defconfigs are for embedded devices, > and many of them say "use

Re: [Q] Default SLAB allocator

2012-10-13 Thread David Rientjes
On Thu, 11 Oct 2012, Andi Kleen wrote: > When did you last test? Our regressions had disappeared a few kernels > ago. > This was in August when preparing for LinuxCon, I tested netperf TCP_RR on two 64GB machines (one client, one server), four nodes each, with thread counts in multiples of

Re: [Q] Default SLAB allocator

2012-10-13 Thread David Rientjes
On Thu, 11 Oct 2012, Andi Kleen wrote: When did you last test? Our regressions had disappeared a few kernels ago. This was in August when preparing for LinuxCon, I tested netperf TCP_RR on two 64GB machines (one client, one server), four nodes each, with thread counts in multiples of the

Re: [Q] Default SLAB allocator

2012-10-13 Thread David Rientjes
On Fri, 12 Oct 2012, Ezequiel Garcia wrote: SLUB is a non-starter for us and incurs a 10% performance degradation in netperf TCP_RR. Where are you seeing that? In my benchmarking results. Notice that many defconfigs are for embedded devices, and many of them say use SLAB; I wonder

Re: [Q] Default SLAB allocator

2012-10-13 Thread Ezequiel Garcia
Hi David, On Sat, Oct 13, 2012 at 6:54 AM, David Rientjes rient...@google.com wrote: On Fri, 12 Oct 2012, Ezequiel Garcia wrote: SLUB is a non-starter for us and incurs a 10% performance degradation in netperf TCP_RR. Where are you seeing that? In my benchmarking results. Notice

Re: [Q] Default SLAB allocator

2012-10-13 Thread Eric Dumazet
On Sat, 2012-10-13 at 02:51 -0700, David Rientjes wrote: On Thu, 11 Oct 2012, Andi Kleen wrote: When did you last test? Our regressions had disappeared a few kernels ago. This was in August when preparing for LinuxCon, I tested netperf TCP_RR on two 64GB machines (one client, one

Re: [Q] Default SLAB allocator

2012-10-12 Thread Ezequiel Garcia
Hi, On Thu, Oct 11, 2012 at 8:10 PM, Andi Kleen wrote: > David Rientjes writes: > >> On Thu, 11 Oct 2012, Andi Kleen wrote: >> >>> > While I've always thought SLUB was the default and recommended allocator, >>> > I'm surprise to find that it's not always the case: >>> >>> iirc the main

Re: [Q] Default SLAB allocator

2012-10-12 Thread Ezequiel Garcia
Hi, On Thu, Oct 11, 2012 at 8:10 PM, Andi Kleen a...@firstfloor.org wrote: David Rientjes rient...@google.com writes: On Thu, 11 Oct 2012, Andi Kleen wrote: While I've always thought SLUB was the default and recommended allocator, I'm surprise to find that it's not always the case: iirc

Re: [Q] Default SLAB allocator

2012-10-11 Thread Andi Kleen
David Rientjes writes: > On Thu, 11 Oct 2012, Andi Kleen wrote: > >> > While I've always thought SLUB was the default and recommended allocator, >> > I'm surprise to find that it's not always the case: >> >> iirc the main performance reasons for slab over slub have mostly >> disappeared, so in

Re: [Q] Default SLAB allocator

2012-10-11 Thread David Rientjes
On Thu, 11 Oct 2012, Andi Kleen wrote: > > While I've always thought SLUB was the default and recommended allocator, > > I'm surprise to find that it's not always the case: > > iirc the main performance reasons for slab over slub have mostly > disappeared, so in theory slab could be finally

Re: [Q] Default SLAB allocator

2012-10-11 Thread Andi Kleen
Ezequiel Garcia writes: > Hello, > > While I've always thought SLUB was the default and recommended allocator, > I'm surprise to find that it's not always the case: iirc the main performance reasons for slab over slub have mostly disappeared, so in theory slab could be finally deprecated now.

Re: [Q] Default SLAB allocator

2012-10-11 Thread Andi Kleen
Ezequiel Garcia elezegar...@gmail.com writes: Hello, While I've always thought SLUB was the default and recommended allocator, I'm surprise to find that it's not always the case: iirc the main performance reasons for slab over slub have mostly disappeared, so in theory slab could be finally

Re: [Q] Default SLAB allocator

2012-10-11 Thread David Rientjes
On Thu, 11 Oct 2012, Andi Kleen wrote: While I've always thought SLUB was the default and recommended allocator, I'm surprise to find that it's not always the case: iirc the main performance reasons for slab over slub have mostly disappeared, so in theory slab could be finally deprecated

Re: [Q] Default SLAB allocator

2012-10-11 Thread Andi Kleen
David Rientjes rient...@google.com writes: On Thu, 11 Oct 2012, Andi Kleen wrote: While I've always thought SLUB was the default and recommended allocator, I'm surprise to find that it's not always the case: iirc the main performance reasons for slab over slub have mostly disappeared,