lkml.org 
[lkml]   [2015]   [May]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: [PATCH v2 00/10] evacuate struct page from the block layer, introduce __pfn_t
    From
    On Fri, May 8, 2015 at 8:02 PM, Rik van Riel <riel@redhat.com> wrote:
    >
    > The TLB performance bonus of accessing the large files with
    > large pages may make it worthwhile to solve that hard problem.

    Very few people can actually measure that TLB advantage on systems
    with good TLB's.

    It's largely a myth, fed by some truly crappy TLB fill systems
    (particularly sw-filled TLB's on some early RISC CPU's, but even
    "modern" CPU's sometimes have glass jaws here because they cant'
    prefetch TLB entries or do concurrent page table walks etc).

    There are *very* few loads that actually have the kinds of access
    patterns where TLB accesses dominate - or are even noticeable -
    compared to the normal memory access costs.

    That is doubly true with file-backed storage. The main reason you get
    TLB costs to be noticeable is with very sparse access patterns, where
    you hit as many TLB entries as you hit pages. That simply doesn't
    happen with file mappings.

    Really. The whole thing about TLB advantages of hugepages is this
    almost entirely made-up stupid myth. You almost have to make up the
    benchmark for it (_that_ part is easy) to even see it.

    Linus


    \
     
     \ /
      Last update: 2015-05-09 06:21    [W:2.374 / U:0.080 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site