login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
January
»
14
Re: [patch 05/19] split LRU lists into anon & file sets
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
KOSAKI Motohiro <kosaki.motohiro@...>
To: Rik van Riel <riel@...>
Cc: <kosaki.motohiro@...>, <linux-kernel@...>, <linux-mm@...>, Lee Schermerhorn <Lee.Schermerhorn@...>
Subject:
Re: [patch 05/19] split LRU lists into anon & file sets
Date: Monday, January 14, 2008 - 7:57 pm
Hi
quoted text
> > Why drop (total_swap_pages == 0 && PageAnon(page)) condition? > > in embedded sysmtem, > > CONFIG_NORECLAIM is OFF (because almost embedded cpu is 32bit) and > > that anon move to inactive list is meaningless because it doesn't have swap. > > That was a mistake, kind of. Since all swap backed pages are on their > own LRU lists, we should not scan those lists at all any more if we are > out of swap space. > > The patch that fixes get_scan_ratio() adds that test. > > Having said that, with the nr_swap_pages==0 test in get_scan_ratio(), > we no longer need to test for that condition in shrink_active_list().
Oh I see! thank you for your kindful lecture. your implementation is very cute.
quoted text
> > below code is more good, may be. > > but I don't understand yet why ignore page_referenced() result at anon page ;-) > > On modern systems, swapping out anonymous pages is a relatively rare > event. All anonymous pages start out as active and referenced, so > testing for that condition does (1) not add any information and (2) > mean we need to scan ALL of the anonymous pages, in order to find one > candidate to swap out (since they are all referenced). > > Simply deactivating a few pages and checking whether they were referenced > again while on the (smaller) inactive_anon_list means we can find candidates > to page out with a lot less CPU time used.
thanks, I understand, may be. - kosaki --
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 05/19] split LRU lists into anon & file sets
, Rik van Riel
, (Tue Jan 8, 4:59 pm)
Re: [patch 05/19] split LRU lists into anon & file sets
, KOSAKI Motohiro
, (Tue Jan 29, 11:25 pm)
Re: [patch 05/19] split LRU lists into anon & file sets
, KOSAKI Motohiro
, (Wed Jan 30, 4:57 am)
Re: [patch 05/19] split LRU lists into anon & file sets
, Rik van Riel
, (Wed Feb 6, 8:35 pm)
Re: [patch 05/19] split LRU lists into anon & file sets
, KOSAKI Motohiro
, (Wed Feb 6, 9:20 pm)
Re: [patch 05/19] split LRU lists into anon & file sets
, Rik van Riel
, (Wed Feb 6, 9:36 pm)
Re: [patch 05/19] split LRU lists into anon & file sets
, Lee Schermerhorn
, (Wed Jan 30, 10:29 am)
Re: [patch 05/19] split LRU lists into anon & file sets
, KOSAKI Motohiro
, (Wed Jan 30, 9:17 pm)
Re: [patch 05/19] split LRU lists into anon & file sets
, Rik van Riel
, (Thu Jan 31, 6:48 am)
Re: [patch 05/19] split LRU lists into anon & file sets
, KOSAKI Motohiro
, (Thu Jan 31, 6:59 am)
Re: [patch 05/19] split LRU lists into anon & file sets
, KOSAKI Motohiro
, (Fri Jan 11, 3:35 am)
Re: [patch 05/19] split LRU lists into anon & file sets
, Rik van Riel
, (Fri Jan 11, 11:46 am)
Re: [patch 05/19] split LRU lists into anon & file sets
, KOSAKI Motohiro
, (Mon Jan 14, 7:57 pm)
Re: [patch 05/19] split LRU lists into anon & file sets
, KOSAKI Motohiro
, (Fri Jan 11, 2:24 am)
Re: [patch 05/19] split LRU lists into anon & file sets
, Lee Schermerhorn
, (Fri Jan 11, 11:50 am)
Re: [patch 05/19] split LRU lists into anon & file sets
, Rik van Riel
, (Fri Jan 11, 12:06 pm)
Re: [patch 05/19] split LRU lists into anon & file sets
, Rik van Riel
, (Fri Jan 11, 11:42 am)
Re: [patch 05/19] split LRU lists into anon & file sets
, Lee Schermerhorn
, (Fri Jan 11, 11:59 am)
Re: [patch 05/19] split LRU lists into anon & file sets
, Rik van Riel
, (Fri Jan 11, 12:15 pm)
Re: [patch 05/19] split LRU lists into anon & file sets
, Lee Schermerhorn
, (Fri Jan 11, 3:51 pm)
Re: [patch 05/19] split LRU lists into anon & file sets
, KOSAKI Motohiro
, (Thu Jan 10, 11:59 pm)
Re: [patch 05/19] split LRU lists into anon & file sets
, Rik van Riel
, (Fri Jan 11, 11:37 am)
Re: [patch 05/19] split LRU lists into anon & file sets
, KAMEZAWA Hiroyuki
, (Wed Jan 9, 10:28 pm)
Re: [patch 05/19] split LRU lists into anon & file sets
, Rik van Riel
, (Wed Jan 9, 10:37 pm)
Re: [patch 05/19] split LRU lists into anon & file sets
, KAMEZAWA Hiroyuki
, (Wed Jan 9, 12:41 am)
Re: [patch 05/19] split LRU lists into anon & file sets
, Balbir Singh
, (Wed Jan 9, 10:21 pm)
Re: [patch 05/19] split LRU lists into anon & file sets
, KAMEZAWA Hiroyuki
, (Wed Jan 9, 10:36 pm)
Re: [patch 05/19] split LRU lists into anon & file sets
, Balbir Singh
, (Wed Jan 9, 11:26 pm)
Re: [patch 05/19] split LRU lists into anon & file sets
, KAMEZAWA Hiroyuki
, (Thu Jan 10, 12:23 am)
Re: [patch 05/19] split LRU lists into anon & file sets
, Christoph Lameter
, (Tue Jan 8, 6:22 pm)
Re: [patch 05/19] split LRU lists into anon & file sets
, Rik van Riel
, (Tue Jan 8, 6:36 pm)
Re: [patch 05/19] split LRU lists into anon & file sets
, Christoph Lameter
, (Tue Jan 8, 6:42 pm)
Re: [patch 05/19] split LRU lists into anon & file sets
, Rik van Riel
, (Tue Jan 8, 10:45 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
hooanon05
[PATCH 67/67] merge aufs
Greg Kroah-Hartman
[PATCH 008/196] Chinese: add translation of volatile-considered-harmful.txt
monstr
[PATCH 33/52] [microblaze] bug headers files
Oliver Pinter
Re: x86: 4kstacks default
git
:
linux-netdev
:
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 15/37] dccp: Set per-connection CCIDs via socket options
David Miller
[GIT]: Networking
Natalie Protasevich
[BUG] New Kernel Bugs
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
6 users
and
871 guests
online.
Online users
zeekec
Lukediygd
popupdisplaysn
francisyim08d
ocroexjqw
damienclarkijh
Syndicate