[lkml]   [2005]   [Mar]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] Prefaulting
    On Fri, 11 Mar 2005, Andrew Morton wrote:

    > > Results that show the impact of this patch are available at
    > >
    > There are a lot of numbers there. Was there an executive summary?

    You are right there is none for prefaulting. What all of these patches
    (prezero,atomic pte, prefault) have in common is that they improve
    performance for large number crunching applications but there is barely
    any improvement for kernel compiles and/or LMBench. The best I can do is
    insure that they do no harm. These issues are likely to become more
    pressing as memory sizes and appplication sizes grow.

    > >From a quick peek it seems that the patch makes negligible difference for a
    > kernel compilation when prefaulting 1-2 pages and slows the workload down
    > quite a lot when prefaulting up to 16 pages.

    Yes. Prefaulting up to 16 pages slows the kernel compile down by
    5% due to overallocating pages.

    > And for the uniprocessor "200 Megabyte allocation without prezeroing.
    > Single thread." workload it appears that the prefault patch slowed it down
    > by 4x.

    You likely compared the prezeroing performance with the prefaulting
    performance. Prezeroing yields a fourfold improvement gain:

    Mb Rep Thr CLine User System Wall flt/cpu/s fault/wsec
    200 3 1 1 0.00s 0.02s 0.00s3756674.275 3712403.061
    200 3 1 1 0.00s 0.03s 0.00s3488295.668 3501888.597
    200 3 1 1 0.00s 0.03s 0.00s3407159.305 3420844.913

    You need to compare the performance without any patches to the performance
    with the prefault patch. There is even a slight performance win in the
    uniprocessor case:

    w/o any patch:

    Mb Rep Thr CLine User System Wall flt/cpu/s fault/wsec
    200 3 1 1 0.01s 0.15s 0.01s846860.493 848882.424
    200 3 1 1 0.01s 0.16s 0.01s827724.160 830841.482
    200 3 1 1 0.00s 0.16s 0.01s827724.160 827364.176

    w/prefault patch

    200 MB allocation

    Mb Rep Thr CLine User System Wall flt/cpu/s fault/wsec
    200 3 1 1 0.02s 0.48s 0.05s860119.275 859918.989
    200 3 1 1 0.02s 0.46s 0.04s886129.730 886551.621
    200 3 1 1 0.01s 0.47s 0.04s887920.166 886855.775

    > Am I misreading the results? If not, it's a bit disappointing.

    Yes. The prefault patch actually improves UP performance of the
    Microbenchmark slightly.
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 14:11    [W:0.023 / U:2.548 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site