linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [v5][PATCH 0/6] mm: vmscan: Batch page reclamation under shink_page_list
@ 2013-06-03 20:02 Dave Hansen
  2013-06-03 20:02 ` [v5][PATCH 1/6] mm: swap: defer clearing of page_private() for swap cache pages Dave Hansen
                   ` (5 more replies)
  0 siblings, 6 replies; 37+ messages in thread
From: Dave Hansen @ 2013-06-03 20:02 UTC (permalink / raw)
  To: linux-mm; +Cc: linux-kernel, akpm, mgorman, tim.c.chen, minchan, Dave Hansen

These are an update of Tim Chen's earlier work:

	http://lkml.kernel.org/r/1347293960.9977.70.camel@schen9-DESK

I broke the patches up a bit more, and tried to incorporate some
changes based on some feedback from Mel and Andrew.

Changes for v5:
 * fix description in about the costs of moving around the code
   under delete_from_swap_cache() in patch 2.
 * Minor formatting (remove unnecessary newlines), thanks
   Minchan!

Changes for v4:
 * generated on top of linux-next-20130530, plus Mel's vmscan
   fixes:
	http://lkml.kernel.org/r/1369659778-6772-2-git-send-email-mgorman@suse.de
 * added some proper vmscan/swap: prefixes to the subjects

Changes for v3:
 * Add batch draining before congestion_wait()
 * minor merge conflicts with Mel's vmscan work

Changes for v2:
 * use page_mapping() accessor instead of direct access
   to page->mapping (could cause crashes when running in
   to swap cache pages.
 * group the batch function's introduction patch with
   its first use
 * rename a few functions as suggested by Mel
 * Ran some single-threaded tests to look for regressions
   caused by the batching.  If there is overhead, it is only
   in the worst-case scenarios, and then only in hundreths of
   a percent of CPU time.

If you're curious how effective the batching is, I have a quick
and dirty patch to keep some stats:

	https://www.sr71.net/~dave/intel/rmb-stats-only.patch

--

To do page reclamation in shrink_page_list function, there are
two locks taken on a page by page basis.  One is the tree lock
protecting the radix tree of the page mapping and the other is
the mapping->i_mmap_mutex protecting the mapped pages.  This set
deals only with mapping->tree_lock.

Tim managed to get 14% throughput improvement when with a workload
putting heavy pressure of page cache by reading many large mmaped
files simultaneously on a 8 socket Westmere server.

I've been testing these by running large parallel kernel compiles
on systems that are under memory pressure.  During development,
I caught quite a few races on smaller setups, and it's being
quite stable that large (160 logical CPU / 1TB) system.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 37+ messages in thread

end of thread, other threads:[~2013-07-14 23:51 UTC | newest]

Thread overview: 37+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-03 20:02 [v5][PATCH 0/6] mm: vmscan: Batch page reclamation under shink_page_list Dave Hansen
2013-06-03 20:02 ` [v5][PATCH 1/6] mm: swap: defer clearing of page_private() for swap cache pages Dave Hansen
2013-07-14 23:47   ` Wanpeng Li
2013-07-14 23:47   ` Wanpeng Li
2013-06-03 20:02 ` [v5][PATCH 2/6] mm: swap: make 'struct page' and swp_entry_t variants of swapcache_free() Dave Hansen
2013-07-14 23:48   ` Wanpeng Li
2013-07-14 23:48   ` Wanpeng Li
2013-06-03 20:02 ` [v5][PATCH 3/6] mm: vmscan: break up __remove_mapping() Dave Hansen
2013-07-14 23:49   ` Wanpeng Li
2013-07-14 23:49   ` Wanpeng Li
2013-06-03 20:02 ` [v5][PATCH 4/6] mm: vmscan: break out mapping "freepage" code Dave Hansen
2013-07-14 23:49   ` Wanpeng Li
2013-07-14 23:49   ` Wanpeng Li
2013-06-03 20:02 ` [v5][PATCH 5/6] mm: vmscan: batch shrink_page_list() locking operations Dave Hansen
2013-06-04  1:17   ` Hillf Danton
2013-06-04  5:07     ` Minchan Kim
2013-06-04 15:22       ` Dave Hansen
2013-06-05  7:28       ` Hillf Danton
2013-06-05  7:57         ` Minchan Kim
2013-06-05 14:24         ` Dave Hansen
2013-06-04  5:01   ` Minchan Kim
2013-06-04  6:02     ` Minchan Kim
2013-06-04 15:29       ` Dave Hansen
2013-06-04 23:32         ` Minchan Kim
2013-06-04  6:10     ` Dave Hansen
2013-06-04  6:59       ` Minchan Kim
2013-07-14 23:50       ` Wanpeng Li
2013-07-14 23:50       ` Wanpeng Li
2013-06-03 20:02 ` [v5][PATCH 6/6] mm: vmscan: drain batch list during long operations Dave Hansen
2013-06-04  6:05   ` Minchan Kim
2013-06-04 15:24     ` Dave Hansen
2013-06-04 23:23       ` Minchan Kim
2013-06-04 23:31         ` Dave Hansen
2013-06-04 23:36           ` Minchan Kim
2013-06-04 23:37   ` Minchan Kim
2013-07-14 23:51   ` Wanpeng Li
2013-07-14 23:51   ` Wanpeng Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).