lkml.org 
[lkml]   [2010]   [Jan]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 2/7] Export unusable free space index via /proc/pagetypeinfo
    On Wed, Jan 06, 2010 at 11:10:48AM -0600, Adam Litke wrote:
    > On Wed, 2010-01-06 at 16:26 +0000, Mel Gorman wrote:
    > > +/*
    > > + * Return an index indicating how much of the available free memory is
    > > + * unusable for an allocation of the requested size.
    > > + */
    > > +int unusable_free_index(struct zone *zone,
    > > + unsigned int order,
    > > + struct config_page_info *info)
    > > +{
    > > + /* No free memory is interpreted as all free memory is unusable */
    > > + if (info->free_pages == 0)
    > > + return 100;
    >
    > Should the above be 1000?
    >

    Yes. Fortunately, the value is not actually used by any of the code.
    It's for consumption by people or tools.

    Thanks

    --
    Mel Gorman
    Part-time Phd Student Linux Technology Center
    University of Limerick IBM Dublin Software Lab


    \
     
     \ /
      Last update: 2010-01-06 18:33    [W:0.021 / U:60.592 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site