Applications with a large number of memory mappings result in application specific poor performance or stall events

Solution Verified - Updated -

Issue

  • An application that makes use of a very large number of small memory regions begins to slow at scale. When profiling the application via perf, the following codepath is seen to be that which the system is spending the majority of it's time within:
<snip>
 32.92%          <comm>  [kernel.kallsyms]                      [k] find_vma                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
                    |
                    --- find_vma
                       |         
                       |--98.51%-- arch_get_unmapped_area_topdown
                       |          get_unmapped_area_prot
                       |          |         
                       |          |--99.99%-- do_mmap_pgoff
                       |          |          sys_mmap_pgoff
                       |          |          sys_mmap
                       |          |          system_call_fastpath
                       |          |          __GI___mmap64
                       |          |          |         
<snip>

Environment

  • Red Hat Enterprise Linux 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content