summaryrefslogtreecommitdiff
path: root/include/soc/mediatek
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2009-07-03 17:44:03 +0400
committerMinda Chen <minda.chen@starfivetech.com>2023-11-06 14:24:39 +0300
commit379707129bda8b72d247e550d35bd7becb8a8993 (patch)
treeffd9c4eb11ccc393ecddbbdcca3094b50390f63c /include/soc/mediatek
parentac283e9bce158344a6128c8422e5ca3b8937e837 (diff)
downloadlinux-379707129bda8b72d247e550d35bd7becb8a8993.tar.xz
mm: Allow only SLUB on PREEMPT_RT
Memory allocators may disable interrupts or preemption as part of the allocation and freeing process. For PREEMPT_RT it is important that these sections remain deterministic and short and therefore don't depend on the size of the memory to allocate/ free or the inner state of the algorithm. Until v3.12-RT the SLAB allocator was an option but involved several changes to meet all the requirements. The SLUB design fits better with PREEMPT_RT model and so the SLAB patches were dropped in the 3.12-RT patchset. Comparing the two allocator, SLUB outperformed SLAB in both throughput (time needed to allocate and free memory) and the maximal latency of the system measured with cyclictest during hackbench. SLOB was never evaluated since it was unlikely that it preforms better than SLAB. During a quick test, the kernel crashed with SLOB enabled during boot. Disable SLAB and SLOB on PREEMPT_RT. [bigeasy: commit description.] Signed-off-by: Ingo Molnar <mingo@kernel.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Acked-by: Vlastimil Babka <vbabka@suse.cz> Link: https://lore.kernel.org/r/20211015210336.gen3tib33ig5q2md@linutronix.de
Diffstat (limited to 'include/soc/mediatek')
0 files changed, 0 insertions, 0 deletions