]> git.baikalelectronics.ru Git - kernel.git/commit
percpu: skip chunks if the alloc does not fit in the contig hint
authorDennis Zhou (Facebook) <dennisszhou@gmail.com>
Mon, 24 Jul 2017 23:02:14 +0000 (19:02 -0400)
committerTejun Heo <tj@kernel.org>
Wed, 26 Jul 2017 21:41:05 +0000 (17:41 -0400)
commitfe2b4cd7063dd92b2ac83bed7585c29fb206d0cd
treefe1bee3a86577ecf25907f3586ae36cb338e0dcd
parent434630d28acd8da3a68c1364496672a4c9ecf96d
percpu: skip chunks if the alloc does not fit in the contig hint

This patch adds chunk->contig_bits_start to keep track of the contig
hint's offset and the check to skip the chunk if it does not fit. If
the chunk's contig hint starting offset cannot satisfy an allocation,
the allocator assumes there is enough memory pressure in this chunk to
either use a different chunk or create a new one. This accepts a less
tight packing for a smoother latency curve.

Signed-off-by: Dennis Zhou <dennisszhou@gmail.com>
Reviewed-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
mm/percpu-internal.h
mm/percpu.c