lkml.org 
[lkml]   [2011]   [Nov]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: [PATCH v3 1/4] mm: add free_hot_cold_page_list helper
    From
    On Fri, Nov 11, 2011 at 10:39 PM, Konstantin Khlebnikov
    <khlebnikov@openvz.org> wrote:
    > This patch adds helper free_hot_cold_page_list() to free list of 0-order pages.
    > It frees pages directly from the list without temporary page-vector.
    > It also calls trace_mm_pagevec_free() to simulate pagevec_free() behaviour.
    >
    > bloat-o-meter:
    >
    > add/remove: 1/1 grow/shrink: 1/3 up/down: 267/-295 (-28)
    > function                                     old     new   delta
    > free_hot_cold_page_list                        -     264    +264
    > get_page_from_freelist                      2129    2132      +3
    > __pagevec_free                               243     239      -4
    > split_free_page                              380     373      -7
    > release_pages                                606     510     -96
    > free_page_list                               188       -    -188
    >
    > v2: Remove list reinititialization.
    > v3: Always free pages in reverse order.
    >    The most recently added struct page, the most likely to be hot.
    >
    > Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org>
    Reviewed-by: Minchan Kim <minchan.kim@gmail.com>

    --
    Kind regards,
    Minchan Kim
    \
     
     \ /
      Last update: 2011-11-12 00:35    [W:0.022 / U:29.972 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site