login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
June
»
21
Re: [Experimental][PATCH] putback_lru_page rework
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: Lee Schermerhorn <Lee.Schermerhorn@...>
Cc: <kosaki.motohiro@...>, KAMEZAWA Hiroyuki <kamezawa.hiroyu@...>, Daisuke Nishimura <nishimura@...>, Andrew Morton <akpm@...>, Rik van Riel <riel@...>, Nick Piggin <npiggin@...>, <linux-mm@...>, <linux-kernel@...>, <kernel-testers@...>
Subject:
Re: [Experimental][PATCH] putback_lru_page rework
Date: Saturday, June 21, 2008 - 4:41 am
> > Before:
quoted text
> > lock_page()(TestSetPageLocked()) > > spin_lock(zone->lock) > > unlock_page() > > spin_unlock(zone->lock) > > Couple of comments: > * I believe that the locks are acquired in the right order--at least as > documented in the comments in mm/rmap.c. > * The unlocking appears out of order because this function attempts to > hold the zone lock across a few pages in the pagevec, but must switch to > a different zone lru lock when it finds a page on a different zone from > the zone whose lock it is holding--like in the pagevec draining > functions, altho' they don't need to lock the page. > > > After: > > spin_lock(zone->lock) > > spin_unlock(zone->lock) > > Right. With your reworked check_move_unevictable_page() [with retry], > we don't need to lock the page here, any more. That means we can revert > all of the changes to pass the mapping back to sys_shmctl() and move the > call to scan_mapping_unevictable_pages() back to shmem_lock() after > clearing the address_space's unevictable flag. We only did that to > avoid sleeping while holding the shmem_inode_info lock and the > shmid_kernel's ipc_perm spinlock. > > Shall I handle that, after we've tested this patch?
Yeah, I'll do it :)
quoted text
> > @@ -2438,7 +2437,7 @@ static void show_page_path(struct page * > > */ > > static void check_move_unevictable_page(struct page *page, struct zone *zone) > > { > > - > > +retry: > > ClearPageUnevictable(page); /* for page_evictable() */ > We can remove this comment ^^^^^^^^^^^^^^^^^^^^^^^^^^ > page_evictable() no longer asserts !PageUnevictable(), right?
Yes. I'll remove it. --
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:
2.6.26-rc5-mm3
, Andrew Morton
, (Thu Jun 12, 1:59 am)
Re: 2.6.26-rc5-mm3: BUG large value for HugePages_Rsvd
, Jon Tollefson
, (Thu Jun 19, 12:27 pm)
[RFC] hugetlb reservations -- MAP_PRIVATE fixes for split vm...
, Andy Whitcroft
, (Mon Jun 23, 1:35 pm)
Re: [RFC] hugetlb reservations -- MAP_PRIVATE fixes for spli...
, Jon Tollefson
, (Wed Jun 25, 5:22 pm)
[PATCH 2/2] hugetlb reservations: fix hugetlb MAP_PRIVATE re...
, Andy Whitcroft
, (Mon Jun 23, 1:35 pm)
Re: [PATCH 2/2] hugetlb reservations: fix hugetlb MAP_PRIVAT...
, Mel Gorman
, (Mon Jun 23, 7:08 pm)
[PATCH 1/2] hugetlb reservations: move region tracking earlier
, Andy Whitcroft
, (Mon Jun 23, 1:35 pm)
Re: [PATCH 1/2] hugetlb reservations: move region tracking e...
, Mel Gorman
, (Mon Jun 23, 7:05 pm)
[RFC] hugetlb reservations -- MAP_PRIVATE fixes for split vmas
, Andy Whitcroft
, (Fri Jun 20, 3:17 pm)
Re: [RFC] hugetlb reservations -- MAP_PRIVATE fixes for spli...
, Jon Tollefson
, (Mon Jun 23, 12:04 pm)
[PATCH 1/2] hugetlb reservations: move region tracking earlier
, Andy Whitcroft
, (Fri Jun 20, 3:17 pm)
[PATCH 2/2] hugetlb reservations: fix hugetlb MAP_PRIVATE re...
, Andy Whitcroft
, (Fri Jun 20, 3:17 pm)
Re: [PATCH 2/2] hugetlb reservations: fix hugetlb MAP_PRIVAT...
, Mel Gorman
, (Mon Jun 23, 4:00 am)
Re: [PATCH 2/2] hugetlb reservations: fix hugetlb MAP_PRIVAT...
, Andy Whitcroft
, (Mon Jun 23, 5:53 am)
Re: [PATCH 2/2] hugetlb reservations: fix hugetlb MAP_PRIVAT...
, Mel Gorman
, (Mon Jun 23, 3:33 am)
Re: 2.6.26-rc5-mm3: BUG large value for HugePages_Rsvd
, Andy Whitcroft
, (Thu Jun 19, 1:16 pm)
Re: 2.6.26-rc5-mm3: BUG large value for HugePages_Rsvd
, Jon Tollefson
, (Thu Jun 19, 11:18 pm)
[BUG][PATCH -mm] avoid BUG() in __stop_machine_run()
, Hidehiro Kawai
, (Thu Jun 19, 2:59 am)
Re: [BUG][PATCH -mm] avoid BUG() in __stop_machine_run()
, Rusty Russell
, (Thu Jun 19, 6:12 am)
Re: [BUG][PATCH -mm] avoid BUG() in __stop_machine_run()
, Jeremy Fitzhardinge
, (Thu Jun 19, 11:51 am)
Re: [BUG][PATCH -mm] avoid BUG() in __stop_machine_run()
, Ingo Molnar
, (Fri Jun 20, 9:21 am)
Re: [BUG][PATCH -mm] avoid BUG() in __stop_machine_run()
, Rusty Russell
, (Sun Jun 22, 11:55 pm)
Re: [BUG][PATCH -mm] avoid BUG() in __stop_machine_run()
, Ingo Molnar
, (Mon Jun 23, 5:01 pm)
[PATCH][RFC] fix kernel BUG at mm/migrate.c:719! in 2.6.26-r...
, Daisuke Nishimura
, (Tue Jun 17, 3:35 am)
Re: [PATCH][RFC] fix kernel BUG at mm/migrate.c:719! in 2.6....
, KAMEZAWA Hiroyuki
, (Tue Jun 17, 9:13 pm)
[PATCH] migration_entry_wait fix.
, KAMEZAWA Hiroyuki
, (Tue Jun 17, 9:54 pm)
Re: [PATCH] migration_entry_wait fix.
, Nick Piggin
, (Wed Jun 18, 1:35 am)
Re: [PATCH] migration_entry_wait fix.
, KAMEZAWA Hiroyuki
, (Wed Jun 18, 2:04 am)
Re: [PATCH] migration_entry_wait fix.
, Nick Piggin
, (Wed Jun 18, 2:42 am)
Re: [PATCH] migration_entry_wait fix.
, KAMEZAWA Hiroyuki
, (Wed Jun 18, 2:52 am)
[PATCH -mm][BUGFIX] migration_entry_wait fix. v2
, KAMEZAWA Hiroyuki
, (Wed Jun 18, 3:29 am)
Re: [PATCH -mm][BUGFIX] migration_entry_wait fix. v2
, Nick Piggin
, (Wed Jun 18, 3:40 am)
Re: [PATCH -mm][BUGFIX] migration_entry_wait fix. v2
, KOSAKI Motohiro
, (Wed Jun 18, 3:26 am)
Re: [PATCH] migration_entry_wait fix.
, KOSAKI Motohiro
, (Wed Jun 18, 1:26 am)
Re: [PATCH][RFC] fix kernel BUG at mm/migrate.c:719! in 2.6....
, Daisuke Nishimura
, (Tue Jun 17, 9:26 pm)
Re: [PATCH][RFC] fix kernel BUG at mm/migrate.c:719! in 2.6....
, Lee Schermerhorn
, (Tue Jun 17, 1:46 pm)
Re: [PATCH][RFC] fix kernel BUG at mm/migrate.c:719! in 2.6....
, Daisuke Nishimura
, (Tue Jun 17, 10:59 pm)
Re: [PATCH][RFC] fix kernel BUG at mm/migrate.c:719! in 2.6....
, Hugh Dickins
, (Tue Jun 17, 2:33 pm)
Re: [PATCH][RFC] fix kernel BUG at mm/migrate.c:719! in 2.6....
, Lee Schermerhorn
, (Tue Jun 17, 3:28 pm)
Re: [PATCH][RFC] fix kernel BUG at mm/migrate.c:719! in 2.6....
, Nick Piggin
, (Wed Jun 18, 1:19 am)
Re: [PATCH][RFC] fix kernel BUG at mm/migrate.c:719! in 2.6....
, KOSAKI Motohiro
, (Tue Jun 17, 11:33 am)
Re: [PATCH][RFC] fix kernel BUG at mm/migrate.c:719! in 2.6....
, Daisuke Nishimura
, (Tue Jun 17, 9:54 pm)
Re: [PATCH][RFC] fix kernel BUG at mm/migrate.c:719! in 2.6....
, Daisuke Nishimura
, (Wed Jun 18, 12:41 am)
[PATCH][-mm] remove redundant page->mapping check
, KOSAKI Motohiro
, (Wed Jun 18, 3:54 am)
Re: [PATCH][RFC] fix kernel BUG at mm/migrate.c:719! in 2.6....
, KAMEZAWA Hiroyuki
, (Wed Jun 18, 12:59 am)
[Bad page] trying to free locked page? (Re: [PATCH][RFC] fix...
, Daisuke Nishimura
, (Tue Jun 17, 3:47 am)
[Experimental][PATCH] putback_lru_page rework
, KAMEZAWA Hiroyuki
, (Wed Jun 18, 5:40 am)
Re: [Experimental][PATCH] putback_lru_page rework
, Lee Schermerhorn
, (Wed Jun 18, 2:21 pm)
Re: [Experimental][PATCH] putback_lru_page rework
, KAMEZAWA Hiroyuki
, (Wed Jun 18, 8:22 pm)
Re: [Experimental][PATCH] putback_lru_page rework
, Lee Schermerhorn
, (Thu Jun 19, 10:45 am)
Re: [Experimental][PATCH] putback_lru_page rework
, KAMEZAWA Hiroyuki
, (Thu Jun 19, 9:13 pm)
Re: [Experimental][PATCH] putback_lru_page rework
, KOSAKI Motohiro
, (Sat Jun 21, 4:39 am)
Re: [Experimental][PATCH] putback_lru_page rework
, Lee Schermerhorn
, (Fri Jun 20, 1:10 pm)
Re: [Experimental][PATCH] putback_lru_page rework
, KOSAKI Motohiro
, (Sat Jun 21, 4:41 am)
Re: [Experimental][PATCH] putback_lru_page rework
, Lee Schermerhorn
, (Fri Jun 20, 4:41 pm)
Re: [Experimental][PATCH] putback_lru_page rework
, KOSAKI Motohiro
, (Sat Jun 21, 4:56 am)
Re: [Experimental][PATCH] putback_lru_page rework
, KAMEZAWA Hiroyuki
, (Sun Jun 22, 8:30 pm)
Re: [Experimental][PATCH] putback_lru_page rework
, KAMEZAWA Hiroyuki
, (Thu Jun 19, 8:47 pm)
Re: Re: [Experimental][PATCH] putback_lru_page rework
,
, (Thu Jun 19, 11:32 am)
Re: Re: [Experimental][PATCH] putback_lru_page rework
, Lee Schermerhorn
, (Fri Jun 20, 12:24 pm)
Re: [Experimental][PATCH] putback_lru_page rework
, Daisuke Nishimura
, (Wed Jun 18, 10:50 am)
Re: [Experimental][PATCH] putback_lru_page rework
, KOSAKI Motohiro
, (Wed Jun 18, 7:36 am)
Re: [Experimental][PATCH] putback_lru_page rework
, KAMEZAWA Hiroyuki
, (Wed Jun 18, 7:55 am)
Re: [Experimental][PATCH] putback_lru_page rework
, Daisuke Nishimura
, (Thu Jun 19, 4:00 am)
Re: [Experimental][PATCH] putback_lru_page rework
, KAMEZAWA Hiroyuki
, (Thu Jun 19, 4:24 am)
Re: [Bad page] trying to free locked page? (Re: [PATCH][RFC]...
, KOSAKI Motohiro
, (Tue Jun 17, 11:34 am)
Re: [Bad page] trying to free locked page? (Re: [PATCH][RFC]...
, Daisuke Nishimura
, (Tue Jun 17, 10:32 pm)
Re: [Bad page] trying to free locked page? (Re: [PATCH][RFC]...
, KOSAKI Motohiro
, (Wed Jun 18, 6:20 am)
Re: [Bad page] trying to free locked page? (Re: [PATCH][RFC]...
, KAMEZAWA Hiroyuki
, (Tue Jun 17, 5:03 am)
Re: [Bad page] trying to free locked page? (Re: [PATCH][RFC]...
, Daisuke Nishimura
, (Tue Jun 17, 5:15 am)
Re: [Bad page] trying to free locked page? (Re: [PATCH][RFC]...
, Lee Schermerhorn
, (Tue Jun 17, 2:29 pm)
Re: [Bad page] trying to free locked page? (Re: [PATCH][RFC]...
, Daisuke Nishimura
, (Tue Jun 17, 10:40 pm)
[PATCH] unevictable mlocked pages: initialize mm member of ...
, Lee Schermerhorn
, (Tue Jun 17, 4:00 pm)
Re: [PATCH] unevictable mlocked pages: initialize mm member...
, KOSAKI Motohiro
, (Tue Jun 17, 11:33 pm)
Re: [Bad page] trying to free locked page? (Re: [PATCH][RFC]...
, KOSAKI Motohiro
, (Tue Jun 17, 5:14 am)
Re: 2.6.26-rc5-mm3
, Byron Bradley
, (Thu Jun 12, 7:32 pm)
Re: 2.6.26-rc5-mm3
, Daniel Walker
, (Wed Jun 18, 1:55 pm)
Re: 2.6.26-rc5-mm3
, Ingo Molnar
, (Thu Jun 19, 5:13 am)
Re: 2.6.26-rc5-mm3
, Daniel Walker
, (Thu Jun 19, 10:39 am)
Re: 2.6.26-rc5-mm3
, Daniel Walker
, (Thu Jun 12, 7:55 pm)
Re: 2.6.26-rc5-mm3
, Byron Bradley
, (Thu Jun 12, 8:04 pm)
[BUG] 2.6.26-rc5-mm3 kernel BUG at mm/filemap.c:575!
, Kamalesh Babulal
, (Thu Jun 12, 4:44 am)
Re: [BUG] 2.6.26-rc5-mm3 kernel BUG at mm/filemap.c:575!
,
, (Fri Jun 13, 12:18 am)
Re: [BUG] 2.6.26-rc5-mm3 kernel BUG at mm/filemap.c:575!
, Andrew Morton
, (Fri Jun 13, 3:16 am)
Re: [BUG] 2.6.26-rc5-mm3 kernel BUG at mm/filemap.c:575!
, Andrew Morton
, (Thu Jun 12, 4:57 am)
Re: [BUG] 2.6.26-rc5-mm3 kernel BUG at mm/filemap.c:575!
, Nick Piggin
, (Thu Jun 12, 7:38 am)
Re: [BUG] 2.6.26-rc5-mm3 kernel BUG at mm/filemap.c:575!
, KAMEZAWA Hiroyuki
, (Thu Jun 12, 8:25 pm)
Re: [BUG] 2.6.26-rc5-mm3 kernel BUG at mm/filemap.c:575!
, KAMEZAWA Hiroyuki
, (Thu Jun 12, 7:20 am)
[PATCH] fix double unlock_page() in 2.6.26-rc5-mm3 kernel BU...
, KAMEZAWA Hiroyuki
, (Thu Jun 12, 9:44 pm)
Re: [PATCH] fix double unlock_page() in 2.6.26-rc5-mm3 kerne...
, Kamalesh Babulal
, (Sat Jun 14, 9:32 am)
Re: [PATCH] fix double unlock_page() in 2.6.26-rc5-mm3 kerne...
,
, (Fri Jun 13, 12:34 am)
Re: [PATCH] fix double unlock_page() in 2.6.26-rc5-mm3 kerne...
, Andrew Morton
, (Thu Jun 12, 10:13 pm)
Re: [PATCH] fix double unlock_page() in 2.6.26-rc5-mm3 kerne...
, Lee Schermerhorn
, (Fri Jun 13, 11:30 am)
Re: [PATCH] fix double unlock_page() in 2.6.26-rc5-mm3 kerne...
, KAMEZAWA Hiroyuki
, (Mon Jun 16, 10:32 pm)
Re: [PATCH] fix double unlock_page() in 2.6.26-rc5-mm3 kerne...
, Lee Schermerhorn
, (Tue Jun 17, 11:26 am)
Re: [PATCH] fix double unlock_page() in 2.6.26-rc5-mm3 kerne...
, Lee Schermerhorn
, (Mon Jun 16, 10:49 am)
Re: [PATCH] fix double unlock_page() in 2.6.26-rc5-mm3 kerne...
, Kamalesh Babulal
, (Sat Jun 14, 11:59 pm)
2.6.26-rc5-mm3: kernel BUG at mm/vmscan.c:510
, Alexey Dobriyan
, (Thu Jun 12, 3:58 am)
Re: 2.6.26-rc5-mm3: kernel BUG at mm/vmscan.c:510
, Andrew Morton
, (Thu Jun 12, 4:22 am)
Re: 2.6.26-rc5-mm3: kernel BUG at mm/vmscan.c:510
, Alexey Dobriyan
, (Thu Jun 12, 4:23 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Srivatsa Vaddagiri
Re: [PATCH, RFC] reimplement flush_workqueue()
Greg KH
[GIT PATCH] driver core patches against 2.6.24
debian developer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Rafael J. Wysocki
2.6.26-rc7-git2: Reported regressions from 2.6.25
linux-netdev
:
Alexey Dobriyan
Re: [GIT]: Networking
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Ilpo Järvinen
Re: [bug] stuck localhost TCP connections, v2.6.26-rc3+
git
:
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
6 users
and
1048 guests
online.
Online users
chris09304
sreejithc
puntmuts
zeekec
kernel Clark
nystoc30
Syndicate