Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759093Ab3GZO1u (ORCPT ); Fri, 26 Jul 2013 10:27:50 -0400 Received: from g4t0015.houston.hp.com ([15.201.24.18]:33310 "EHLO g4t0015.houston.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759039Ab3GZO1s (ORCPT ); Fri, 26 Jul 2013 10:27:48 -0400 From: Davidlohr Bueso To: Andrew Morton Cc: Rik van Riel , Michel Lespinasse , Mel Gorman , Michal Hocko , "AneeshKumarK.V" , KAMEZAWA Hiroyuki , Hillf Danton , Hugh Dickins , Joonsoo Kim , David Gibson , Eric B Munson , Anton Blanchard , Konstantin Khlebnikov , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Davidlohr Bueso Subject: [PATCH 0/2] hugepage: optimize page fault path locking Date: Fri, 26 Jul 2013 07:27:23 -0700 Message-Id: <1374848845-1429-1-git-send-email-davidlohr.bueso@hp.com> X-Mailer: git-send-email 1.7.11.7 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1335 Lines: 30 This patchset attempts to reduce the amount of contention we impose on the hugetlb_instantiation_mutex by replacing the global mutex with a table of mutexes, selected based on a hash. The original discussion can be found here: http://lkml.org/lkml/2013/7/12/428 Patch 1: Allows the file region tracking list to be serialized by its own rwsem. This is necessary because the next patch allows concurrent hugepage fault paths, getting rid of the hugetlb_instantiation_mutex - which protects chains of struct file_regionin inode->i_mapping->private_list (VM_MAYSHARE) or vma_resv_map(vma)->regions (!VM_MAYSHARE). Patch 2: From David Gibson, for some reason never made it into the kernel. Further cleanups and enhancements from Anton Blanchard and myself. Details of how the hash key is selected is in the patch. Davidlohr Bueso (2): hugepage: protect file regions with rwsem hugepage: allow parallelization of the hugepage fault path mm/hugetlb.c | 134 ++++++++++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 106 insertions(+), 28 deletions(-) -- 1.7.11.7 -- 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/