Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932951AbbGUPh0 (ORCPT ); Tue, 21 Jul 2015 11:37:26 -0400 Received: from a23-79-238-175.deploy.static.akamaitechnologies.com ([23.79.238.175]:49387 "EHLO prod-mail-xrelay07.akamai.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1755500AbbGUPhX (ORCPT ); Tue, 21 Jul 2015 11:37:23 -0400 Date: Tue, 21 Jul 2015 11:37:22 -0400 From: Eric B Munson To: Chris Metcalf Cc: Paul Gortmaker , Andrew Morton , Michal Hocko , Vlastimil Babka , LKML , linux-mm@kvack.org, linux-arch , linux-api@vger.kernel.org, "linux-next@vger.kernel.org" Subject: Re: [PATCH V3 4/5] mm: mmap: Add mmap flag to request VM_LOCKONFAULT Message-ID: <20150721153722.GB5411@akamai.com> References: <1436288623-13007-1-git-send-email-emunson@akamai.com> <1436288623-13007-5-git-send-email-emunson@akamai.com> <55AD5CB9.4090400@ezchip.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="dTy3Mrz/UPE2dbVg" Content-Disposition: inline In-Reply-To: <55AD5CB9.4090400@ezchip.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2372 Lines: 60 --dTy3Mrz/UPE2dbVg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 >=20 > 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). Eric --dTy3Mrz/UPE2dbVg Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJVrmcyAAoJELbVsDOpoOa9/LIQAKfvC7x2JgwcyjeVb/emAnku OEKpBeDUe7W6lglYkz0zJKjDqQsPMqsEeQUqa/3D1zJJ/j5LStZ1VcSnWQf3vOL9 wzAE3TNSbBLN/guepYkUKLK09+/YAtrjbj0Kv4lMhcHXtHmcsdgEdrvz5guX2/jB y0GXHGESyx+uNlrDgiqfrJM2mor7/gXdwQ9IXwB9uNTrEMUDo1Q+rAZdNDidmjZX Ko+3GWUg1y5XewuU4PGOUkd49yWnlNCke55/vC9/ZD5uhpwo8LdKwMHxDlq9trAU 3qE3smKPEwImQtO8yI6hutkYCyj9Cz+2bQrBlWbxZjK+7uhTbiOzdWZyEt1p5b2B 1c3oi5R5h5lS1TEnNkvCmuBaA4M0vM3w5LVO1CzOlEM7h9zduOQXmmvOJqr6N0Al eLG4/UPMnSbfjYh0ckDxhzbJS/2Kzgaa8itR/CAvGJfYapojorGO6cZTR45qzPga qJDmfXhMRy7oIkdzXIU4yHmbzsGWjT3AcG3HUEWBQLXcgbI2CsdUz/ctQlJ0kv/g Dyle+YYk0CEoNP5H8Ikc113x0TIHEeHJhKlh1G2XzxehF0IA3+7sMqRXbyGS4I7E Gtw6pmAKbcFVDwDnn0moP3DYTzq2OyfhCmeQlJySlwpMK/OxjUUmq6iN3plfzpkD Sksvg4KZsIFEzrhsm0Ow =5+W3 -----END PGP SIGNATURE----- --dTy3Mrz/UPE2dbVg-- -- 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/