Re: [PATCH] mm: align larger anonymous mappings on THP boundaries

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2022-08-08 at 15:09 -0700, Andrew Morton wrote:
> On Mon, 8 Aug 2022 16:46:58 -0400 Rik van Riel <riel@xxxxxxxxxxx>
> wrote:
> 
> > Align larger anonymous memory mappings on THP boundaries by
> > going through thp_get_unmapped_area if THPs are enabled for
> > the current process.
> > 
> > With this patch, larger anonymous mappings are now THP aligned
> > when checking in /proc/PID/maps, but only when THP is enabled
> > for that process.
> > 
> 
> What are the runtime effects of this change?

The runtime effect is that when a malloc library
allocates an arena that is a multiple of 2MB in size,
the entire arena can be mapped using THPs, resulting in
a lower TLB miss rate.

-- 
All Rights Reversed.

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux