Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1263195
| From | Andrew Morton <akpm@linux-foundation.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] mm: slab: Only move management objects off-slab for sizes larger than KMALLOC_MIN_SIZE |
| Date | 2015-11-05 14:30 +0100 |
| Message-ID | <qrsM1-7f5-7@gated-at.bofh.it> (permalink) |
| References | <qrkv8-1Mj-9@gated-at.bofh.it> <qrrmW-69O-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, 5 Nov 2015 11:50:35 +0000 Catalin Marinas <catalin.marinas@arm.com> wrote:
> Commit 8fc9cf420b36 ("slab: make more slab management structure off the
> slab") enables off-slab management objects for sizes starting with
> PAGE_SIZE >> 5. This means 128 bytes for a 4KB page configuration.
> However, on systems with a KMALLOC_MIN_SIZE of 128 (arm64 in 4.4), such
> optimisation does not make sense since the slab management allocation
> would take 128 bytes anyway (even though freelist_size is 32) with the
> additional overhead of another allocation.
>
> This patch introduces an OFF_SLAB_MIN_SIZE macro which takes
> KMALLOC_MIN_SIZE into account. It also solves a slab bug on arm64 where
> the first kmalloc_cache to be initialised after slab_early_init = 0,
> "kmalloc-128", fails to allocate off-slab management objects from the
> same "kmalloc-128" cache.
That all seems to be quite minor stuff.
> Fixes: 8fc9cf420b36 ("slab: make more slab management structure off the slab")
> Cc: <stable@vger.kernel.org> # 3.15+
Yet you believe the fix should be backported.
So, the usual refrain: when fixing a bug, please describe the end-user
visible effects of that bug.
--
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/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [PATCH] arm64: Increase the max granular size Catalin Marinas <catalin.marinas@arm.com> - 2015-11-03 13:10 +0100
Re: [PATCH] arm64: Increase the max granular size Catalin Marinas <catalin.marinas@arm.com> - 2015-11-03 15:40 +0100
Re: [PATCH] arm64: Increase the max granular size Geert Uytterhoeven <geert@linux-m68k.org> - 2015-11-03 16:00 +0100
Re: [PATCH] arm64: Increase the max granular size Catalin Marinas <catalin.marinas@arm.com> - 2015-11-03 20:00 +0100
Re: [PATCH] arm64: Increase the max granular size Christoph Lameter <cl@linux.com> - 2015-11-04 00:40 +0100
Re: [PATCH] arm64: Increase the max granular size Catalin Marinas <catalin.marinas@arm.com> - 2015-11-04 13:40 +0100
Re: [PATCH] arm64: Increase the max granular size Christoph Lameter <cl@linux.com> - 2015-11-04 15:00 +0100
Re: [PATCH] arm64: Increase the max granular size Catalin Marinas <catalin.marinas@arm.com> - 2015-11-04 16:00 +0100
Re: [PATCH] arm64: Increase the max granular size Christoph Lameter <cl@linux.com> - 2015-11-04 16:30 +0100
Re: [PATCH] arm64: Increase the max granular size Catalin Marinas <catalin.marinas@arm.com> - 2015-11-04 16:40 +0100
Re: [PATCH] arm64: Increase the max granular size Joonsoo Kim <iamjoonsoo.kim@lge.com> - 2015-11-05 05:40 +0100
[PATCH] mm: slab: Only move management objects off-slab for sizes larger than KMALLOC_MIN_SIZE Catalin Marinas <catalin.marinas@arm.com> - 2015-11-05 13:00 +0100
Re: [PATCH] mm: slab: Only move management objects off-slab for sizes larger than KMALLOC_MIN_SIZE Andrew Morton <akpm@linux-foundation.org> - 2015-11-05 14:30 +0100
Re: [PATCH] mm: slab: Only move management objects off-slab for sizes larger than KMALLOC_MIN_SIZE Catalin Marinas <catalin.marinas@arm.com> - 2015-11-05 17:10 +0100
Re: [PATCH] mm: slab: Only move management objects off-slab for sizes larger than KMALLOC_MIN_SIZE Geert Uytterhoeven <geert@linux-m68k.org> - 2015-11-06 14:10 +0100
Re: [PATCH] mm: slab: Only move management objects off-slab for sizes larger than KMALLOC_MIN_SIZE Christoph Lameter <cl@linux.com> - 2015-11-05 18:40 +0100
csiph-web