Re: [ofa-general] Re: [ewg] [Patch mthca backport] Don't use kmalloc > 128k

2009-07-30 Thread Doug Ledford
On Jul 27, 2009, at 1:10 PM, Roland Dreier wrote: And I don't think the upstream kernel has that limit on kmalloc size either (at least with SLUB, not sure about SLAB). This patch was actually written as an emulation of the upstream SLUB behavior, which is exactly the same thing: on large alloc

Re: [ofa-general] Re: [ewg] [Patch mthca backport] Don't use kmalloc > 128k

2009-07-27 Thread Roland Dreier
> > And I don't think the upstream kernel has that limit on kmalloc size > > either (at least with SLUB, not sure about SLAB). > > This patch was actually written as an emulation of the upstream SLUB > behavior, which is exactly the same thing: on large allocations > forward to __g_f_p().

Re: [ofa-general] Re: [ewg] [Patch mthca backport] Don't use kmalloc > 128k

2009-07-27 Thread Doug Ledford
On Jul 23, 2009, at 3:06 PM, Roland Dreier wrote: This will fix the 2^20 bits limit on our bitmaps once and for all. Not really... since getting > 128KB of contiguous memory is likely to fail anyway. That depends. If you mean at bootup when you are first loading the module, no. You only n

Re: [ofa-general] Re: [ewg] [Patch mthca backport] Don't use kmalloc > 128k

2009-07-23 Thread Roland Dreier
> This will fix the 2^20 bits limit on our bitmaps once and for all. Not really... since getting > 128KB of contiguous memory is likely to fail anyway. And I don't think the upstream kernel has that limit on kmalloc size either (at least with SLUB, not sure about SLAB). Really the long-term fi

Re: [ewg] [Patch mthca backport] Don't use kmalloc > 128k

2009-07-23 Thread Doug Ledford
On Jul 23, 2009, at 4:20 AM, Jack Morgenstein wrote: On Thursday 16 July 2009 21:08, Doug Ledford wrote: On rhel4 and rhel5 machines, the kmalloc implementation does not automatically forward kmalloc requests > 128kb to __get_free_pages. Please include this patch in all rhel4 and rhel5 backport

Re: [ewg] [Patch mthca backport] Don't use kmalloc > 128k

2009-07-23 Thread Jack Morgenstein
On Thursday 16 July 2009 21:08, Doug Ledford wrote: > On rhel4 and rhel5 machines, the kmalloc implementation does not > automatically forward kmalloc requests > 128kb to __get_free_pages. > Please include this patch in all rhel4 and rhel5 backport directories > so that we do the right thing

[ewg] [Patch mthca backport] Don't use kmalloc > 128k

2009-07-16 Thread Doug Ledford
On rhel4 and rhel5 machines, the kmalloc implementation does not automatically forward kmalloc requests > 128kb to __get_free_pages. Please include this patch in all rhel4 and rhel5 backport directories so that we do the right thing in the mthca driver on rhel in regards to kmalloc request