lkml.org 
[lkml]   [2013]   [Mar]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 02/10] mm: vmscan: Obey proportional scanning requirements for kswapd
    On Sun, Mar 17, 2013 at 01:04:08PM +0000, Mel Gorman wrote:
    > Simplistically, the anon and file LRU lists are scanned proportionally
    > depending on the value of vm.swappiness although there are other factors
    > taken into account by get_scan_count(). The patch "mm: vmscan: Limit
    > the number of pages kswapd reclaims" limits the number of pages kswapd
    > reclaims but it breaks this proportional scanning and may evenly shrink
    > anon/file LRUs regardless of vm.swappiness.
    >
    > This patch preserves the proportional scanning and reclaim. It does mean
    > that kswapd will reclaim more than requested but the number of pages will
    > be related to the high watermark.

    Swappiness is about page types, but this implementation compares all
    LRUs against each other, and I'm not convinced that this makes sense
    as there is no guaranteed balance between the inactive and active
    lists. For example, the active file LRU could get knocked out when
    it's almost empty while the inactive file LRU has more easy cache than
    the anon lists combined.

    Would it be better to compare the sum of file pages with the sum of
    anon pages and then knock out the smaller pair?


    \
     
     \ /
      Last update: 2013-03-21 18:01    [W:4.734 / U:1.168 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site