lkml.org 
[lkml]   [2004]   [Oct]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: Hugepages demand paging V1 [1/4]: demand paging core
    On Thu, Oct 21, 2004 at 09:56:27PM -0700, Christoph Lameter wrote:
    > +static void scrub_one_pmd(pmd_t * pmd)
    > +{
    > + struct page *page;
    > +
    > + if (pmd && !pmd_none(*pmd) && !pmd_huge(*pmd)) {
    > + page = pmd_page(*pmd);
    > + pmd_clear(pmd);
    > + dec_page_state(nr_page_table_pages);
    > + page_cache_release(page);
    > + }
    > +}

    It would be nicer to fix the pagetable leak (over the lifetime of a
    process) in the core instead of sprinkling hugetlb with this.


    -- wli
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

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