login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
December
»
14
Re: [PATCH 2/3] Refactor zone_reclaim (v2)
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Balbir Singh
Subject:
Re: [PATCH 2/3] Refactor zone_reclaim (v2)
Date: Tuesday, December 14, 2010 - 4:45 am
* MinChan Kim <minchan.kim@gmail.com> [2010-12-14 19:01:26]:
quoted text
> Hi Balbir, > > On Fri, Dec 10, 2010 at 11:31 PM, Balbir Singh > <balbir@linux.vnet.ibm.com> wrote: > > Move reusable functionality outside of zone_reclaim. > > Make zone_reclaim_unmapped_pages modular > > > > Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com> > > --- > > mm/vmscan.c | 35 +++++++++++++++++++++++------------ > > 1 files changed, 23 insertions(+), 12 deletions(-) > > > > diff --git a/mm/vmscan.c b/mm/vmscan.c > > index e841cae..4e2ad05 100644 > > --- a/mm/vmscan.c > > +++ b/mm/vmscan.c > > @@ -2815,6 +2815,27 @@ static long zone_pagecache_reclaimable(struct zone *zone) > > } > > > > /* > > + * Helper function to reclaim unmapped pages, we might add something > > + * similar to this for slab cache as well. Currently this function > > + * is shared with __zone_reclaim() > > + */ > > +static inline void > > +zone_reclaim_unmapped_pages(struct zone *zone, struct scan_control *sc, > > + unsigned long nr_pages) > > +{ > > + int priority; > > + /* > > + * Free memory by calling shrink zone with increasing > > + * priorities until we have enough memory freed. > > + */ > > + priority = ZONE_RECLAIM_PRIORITY; > > + do { > > + shrink_zone(priority, zone, sc); > > + priority--; > > + } while (priority >= 0 && sc->nr_reclaimed < nr_pages); > > +} > > As I said previous version, zone_reclaim_unmapped_pages doesn't have > any functions related to reclaim unmapped pages.
The scan control point has the right arguments for implementing reclaim of unmapped pages.
quoted text
> The function name is rather strange. > It would be better to add scan_control setup in function inner to > reclaim only unmapped pages. > > -- > Kind regards, > Minchan Kim
-- Three Cheers, Balbir --
unsubscribe notice
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/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 0/3] Provide unmapped page cache control (v2)
, Balbir Singh
, (Fri Dec 10, 7:29 am)
[PATCH 1/3] Move zone_reclaim() outside of CONFIG_NUMA (v2)
, Balbir Singh
, (Fri Dec 10, 7:30 am)
[PATCH 2/3] Refactor zone_reclaim (v2)
, Balbir Singh
, (Fri Dec 10, 7:31 am)
[PATCH 3/3] Provide control over unmapped pages (v2)
, Balbir Singh
, (Fri Dec 10, 7:32 am)
Re: [PATCH 2/3] Refactor zone_reclaim (v2)
, Minchan Kim
, (Tue Dec 14, 3:01 am)
Re: [PATCH 3/3] Provide control over unmapped pages (v2)
, Minchan Kim
, (Tue Dec 14, 4:02 am)
Re: [PATCH 2/3] Refactor zone_reclaim (v2)
, Balbir Singh
, (Tue Dec 14, 4:45 am)
Re: [PATCH 2/3] Refactor zone_reclaim (v2)
, Minchan Kim
, (Tue Dec 14, 3:38 pm)
Re: [PATCH 2/3] Refactor zone_reclaim (v2)
, Balbir Singh
, (Tue Dec 14, 11:45 pm)
Re: [PATCH 2/3] Refactor zone_reclaim (v2)
, Balbir Singh
, (Tue Dec 21, 11:10 pm)
Re: [PATCH 3/3] Provide control over unmapped pages (v2)
, Balbir Singh
, (Thu Dec 23, 1:33 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
Og dreams of kernels
Jens Axboe
[PATCH 31/33] Fusion: sg chaining support
Arnd Bergmann
Re: finding your own dead "CONFIG_" variables
Mark Brown
[PATCH 2/2] Subject: natsemi: Allow users to disable workaround for DspCfg reset
Tony Breeds
[LGUEST] Look in object dir for .config
git
:
Brian Downing
Re: Git in a Nutshell guide
John Benes
Re: master has some toys
Matthias Lederhofer
[PATCH 4/7] introduce GIT_WORK_TREE to specify the work tree
Alexander Sulfrian
[RFC/PATCH] RE: git calls SSH_ASKPASS even if DISPLAY is not set
Junio C Hamano
Re: Rss produced by git is not valid xml?
git-commits-head
:
Linux Kernel Mailing List
iSeries: fix section mismatch in iseries_veth
Linux Kernel Mailing List
ixbge: remove TX lock and redo TX accounting.
Linux Kernel Mailing List
ixgbe: fix several counter register errata
Linux Kernel Mailing List
b43: fix build with CONFIG_SSB_PCIHOST=n
Linux Kernel Mailing List
9p: block-based virtio client
linux-netdev
:
Michael Breuer
Re: [PATCH] af_packet: Don't use skb after dev_queue_xmit()
Michael Breuer
Re: [PATCH] af_packet: Don't use skb after dev_queue_xmit()
David Daney
[PATCH 5/7] Staging: Octeon Ethernet: Convert to NAPI.
Wolfgang Grandegger
[PATCH net-next v4 1/3] can: mscan: fix improper return if dlc < 8 in start_xmi...
Amit Kumar Salecha
[PATCHv3 NEXT 2/2] NET: Add Qlogic ethernet driver for CNA devices
openbsd-misc
:
Theo de Raadt
Re: Old IPSEC bug
Tomáš Bodžár
Problem with vpnc connection - check group password !
Insan Praja SW
Mandoc Compiling Error
Carl Roberso
Re: Cannot change MTU of carp interface?
Richard Daemon
Re: booting openbsd on eee without cd-rom
Colocation donated by:
Syndicate