Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965407AbbGVOMh (ORCPT ); Wed, 22 Jul 2015 10:12:37 -0400 Received: from mail.windriver.com ([147.11.1.11]:45754 "EHLO mail.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933561AbbGVOMf (ORCPT ); Wed, 22 Jul 2015 10:12:35 -0400 Message-ID: <55AFA44C.2060906@windriver.com> Date: Wed, 22 Jul 2015 10:10:20 -0400 From: Paul Gortmaker User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Eric B Munson CC: Chris Metcalf , Andrew Morton , Michal Hocko , Vlastimil Babka , LKML , , linux-arch , , "linux-next@vger.kernel.org" Subject: Re: [PATCH V3 4/5] mm: mmap: Add mmap flag to request VM_LOCKONFAULT References: <1436288623-13007-1-git-send-email-emunson@akamai.com> <1436288623-13007-5-git-send-email-emunson@akamai.com> <55AD5CB9.4090400@ezchip.com> <20150721153722.GB5411@akamai.com> In-Reply-To: <20150721153722.GB5411@akamai.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [128.224.56.57] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1654 Lines: 42 On 2015-07-21 11:37 AM, Eric B Munson wrote: > On Mon, 20 Jul 2015, Chris Metcalf wrote: > >> On 07/18/2015 03:11 PM, Paul Gortmaker wrote: >>> On Tue, Jul 7, 2015 at 1:03 PM, Eric B Munson wrote: >>>>> The cost of faulting in all memory to be locked can be very high when >>>>> working with large mappings. If only portions of the mapping will be >>>>> used this can incur a high penalty for locking. >>>>> >>>>> Now that we have the new VMA flag for the locked but not present state, >>>>> expose it as an mmap option like MAP_LOCKED -> VM_LOCKED. >>> An automatic bisection on arch/tile leads to this commit: >>> >>> 5a5656f2c9b61c74c15f9ef3fa2e6513b6c237bb is the first bad commit >>> commit 5a5656f2c9b61c74c15f9ef3fa2e6513b6c237bb >>> Author: Eric B Munson >>> Date: Thu Jul 16 10:09:22 2015 +1000 >>> >>> mm: mmap: add mmap flag to request VM_LOCKONFAULT >> >> Eric, I'm happy to help with figuring out the tile issues. > > Thanks for the offer, I think I have is sorted in V4 (which I am > checking one last time before I post). Not quite sorted yet. Seems parisc fails on v4. It updated the number of syscalls but did not update syscall_table.S causing: arch/parisc/kernel/syscall_table.S:444: Error: size of syscall table does not fit value of __NR_Linux_syscalls http://kisskb.ellerman.id.au/kisskb/buildresult/12468884/ Paul. -- > Eric > -- 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/