Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1408180 > unrolled thread

Re: [PATCH 1/7] mm: Cleanup - Reorganize the shrink_page_list code into smaller functions

Started byTim Chen <tim.c.chen@linux.intel.com>
First post2016-05-27 18:50 +0200
Last post2016-05-30 10:50 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH 1/7] mm: Cleanup - Reorganize the shrink_page_list code  into smaller functions Tim Chen <tim.c.chen@linux.intel.com> - 2016-05-27 18:50 +0200
    Re: [PATCH 1/7] mm: Cleanup - Reorganize the shrink_page_list code  into smaller functions Michal Hocko <mhocko@kernel.org> - 2016-05-30 10:50 +0200

#1408180 — Re: [PATCH 1/7] mm: Cleanup - Reorganize the shrink_page_list code into smaller functions

FromTim Chen <tim.c.chen@linux.intel.com>
Date2016-05-27 18:50 +0200
SubjectRe: [PATCH 1/7] mm: Cleanup - Reorganize the shrink_page_list code into smaller functions
Message-ID<rDt7r-5Rp-1@gated-at.bofh.it>
On Tue, 2016-05-03 at 14:01 -0700, Tim Chen wrote:
> This patch prepares the code for being able to batch the anonymous
> pages
> to be swapped out.  It reorganizes shrink_page_list function with
> 2 new functions: handle_pgout and pg_finish.
> 
> The paging operation in shrink_page_list is consolidated into
> handle_pgout function.
> 
> After we have scanned a page shrink_page_list and completed any
> paging,
> the final disposition and clean up of the page is conslidated into
> pg_finish.  The designated disposition of the page from page scanning
> in shrink_page_list is marked with one of the designation in
> pg_result.
> 
> This is a clean up patch and there is no change in functionality or
> logic of the code.

Hi Michal,

We've talked about doing the clean up of shrink_page_list code
before attempting to do batching on the swap out path as those
set of patches I've previously posted are quit intrusive.  Wonder
if you have a chance to look at this patch and has any comments?

Thanks.

Tim

[toc] | [next] | [standalone]


#1408871

FromMichal Hocko <mhocko@kernel.org>
Date2016-05-30 10:50 +0200
Message-ID<rEr3A-1OX-11@gated-at.bofh.it>
In reply to#1408180
On Fri 27-05-16 09:40:27, Tim Chen wrote:
> On Tue, 2016-05-03 at 14:01 -0700, Tim Chen wrote:
> > This patch prepares the code for being able to batch the anonymous
> > pages
> > to be swapped out.  It reorganizes shrink_page_list function with
> > 2 new functions: handle_pgout and pg_finish.
> > 
> > The paging operation in shrink_page_list is consolidated into
> > handle_pgout function.
> > 
> > After we have scanned a page shrink_page_list and completed any
> > paging,
> > the final disposition and clean up of the page is conslidated into
> > pg_finish.  The designated disposition of the page from page scanning
> > in shrink_page_list is marked with one of the designation in
> > pg_result.
> > 
> > This is a clean up patch and there is no change in functionality or
> > logic of the code.
> 
> Hi Michal,
> 
> We've talked about doing the clean up of shrink_page_list code
> before attempting to do batching on the swap out path as those
> set of patches I've previously posted are quit intrusive.  Wonder
> if you have a chance to look at this patch and has any comments?

I have noticed your
http://lkml.kernel.org/r/1463779979.22178.142.camel@linux.intel.com but
still haven't found time to look at it. Sorry about that. There is
rather a lot on my pile...

-- 
Michal Hocko
SUSE Labs

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web