From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755238Ab2IKFfB (ORCPT ); Tue, 11 Sep 2012 01:35:01 -0400 Received: from LGEMRELSE6Q.lge.com ([156.147.1.121]:56858 "EHLO LGEMRELSE6Q.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753211Ab2IKFe7 (ORCPT ); Tue, 11 Sep 2012 01:34:59 -0400 X-AuditID: 9c930179-b7cc4ae00000134d-5c-504ecd811029 Date: Tue, 11 Sep 2012 14:36:57 +0900 From: Minchan Kim To: Tim Chen Cc: Andrew Morton , Mel Gorman , Johannes Weiner , KAMEZAWA Hiroyuki , Andrea Arcangeli , David Rientjes , Michal Hocko , Xiao Guangrong , Paul Gortmaker , Matthew Wilcox , "Kirill A. Shutemov" , Andi Kleen , linux-mm@kvack.org, linux-kernel , Alex Shi , Fengguang Wu Subject: Re: [PATCH 0/3 v2] mm: Batch page reclamation under shink_page_list Message-ID: <20120911053657.GC14494@bbox> References: <1347293960.9977.70.camel@schen9-DESK> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1347293960.9977.70.camel@schen9-DESK> User-Agent: Mutt/1.5.21 (2010-09-15) X-Brightmail-Tracker: AAAAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Tim, On Mon, Sep 10, 2012 at 09:19:20AM -0700, Tim Chen wrote: > This is the second version of the patch series. Thanks to Matthew Wilcox > for many valuable suggestions on improving the patches. > > 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. I try to batch the operations on pages sharing the same lock > to reduce lock contentions. The first patch batch the operations protected by > tree lock while the second and third patch batch the operations protected by > the i_mmap_mutex. > > I 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. > > Tim > > Signed-off-by: Tim Chen If you send next versions, please use git-format-patch --thread style. Quote from man " If given --thread, git-format-patch will generate In-Reply-To and References headers to make the second and subsequent patch mails appear as replies to the first mail; this also generates a Message-Id header to reference. " It helps making your all patches in this series thread type in mailbox so reviewers can find all patches related to a subject easily. Thanks. -- Kind regards, Minchan Kim