summaryrefslogtreecommitdiffstats
path: root/mm/slab.c
diff options
context:
space:
mode:
authorLucas Stach2017-12-15 00:32:55 +0100
committerLinus Torvalds2017-12-15 01:00:48 +0100
commitc24ad77d962c31af92f2b731dad2104cbf3fbb03 (patch)
tree4a2121e76b9561c1cdd85d58c41192c570b284b0 /mm/slab.c
parentmm/memory.c: mark wp_huge_pmd() inline to prevent build failure (diff)
downloadkernel-qcow2-linux-c24ad77d962c31af92f2b731dad2104cbf3fbb03.tar.gz
kernel-qcow2-linux-c24ad77d962c31af92f2b731dad2104cbf3fbb03.tar.xz
kernel-qcow2-linux-c24ad77d962c31af92f2b731dad2104cbf3fbb03.zip
mm/page_alloc.c: avoid excessive IRQ disabled times in free_unref_page_list()
Since commit 9cca35d42eb6 ("mm, page_alloc: enable/disable IRQs once when freeing a list of pages") we see excessive IRQ disabled times of up to 25ms on an embedded ARM system (tracing overhead included). This is due to graphics buffers being freed back to the system via release_pages(). Graphics buffers can be huge, so it's not hard to hit cases where the list of pages to free has 2048 entries. Disabling IRQs while freeing all those pages is clearly not a good idea. Introduce a batch limit, which allows IRQ servicing once every few pages. The batch count is the same as used in other parts of the MM subsystem when dealing with IRQ disabled regions. Link: http://lkml.kernel.org/r/20171207170314.4419-1-l.stach@pengutronix.de Fixes: 9cca35d42eb6 ("mm, page_alloc: enable/disable IRQs once when freeing a list of pages") Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Acked-by: Mel Gorman <mgorman@techsingularity.net> Cc: Michal Hocko <mhocko@suse.com> Cc: Vlastimil Babka <vbabka@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/slab.c')
0 files changed, 0 insertions, 0 deletions