Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755330AbbGTUku (ORCPT ); Mon, 20 Jul 2015 16:40:50 -0400 Received: from mail-am1on0090.outbound.protection.outlook.com ([157.56.112.90]:53267 "EHLO emea01-am1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754142AbbGTUkr (ORCPT ); Mon, 20 Jul 2015 16:40:47 -0400 Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none; Subject: Re: [PATCH V3 4/5] mm: mmap: Add mmap flag to request VM_LOCKONFAULT To: Paul Gortmaker , Eric B Munson References: <1436288623-13007-1-git-send-email-emunson@akamai.com> <1436288623-13007-5-git-send-email-emunson@akamai.com> CC: Andrew Morton , Michal Hocko , Vlastimil Babka , LKML , , linux-arch , , "linux-next@vger.kernel.org" From: Chris Metcalf Message-ID: <55AD5CB9.4090400@ezchip.com> Date: Mon, 20 Jul 2015 16:40:25 -0400 User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [12.216.194.146] X-ClientProxiedBy: BY2PR08CA032.namprd08.prod.outlook.com (10.141.248.150) To HE1PR02MB0780.eurprd02.prod.outlook.com (25.161.118.144) X-Microsoft-Exchange-Diagnostics: 1;HE1PR02MB0780;2:PWQzfZFPostuFmvqMUSp/L4+G9fdcPUhR/MLco3WKu8mzue6isSawaZsVlCClRE5;3:d04rmoFaHSiJRQiaRrYSuGxbRzecglfA+3g7C4egQCnTHniDxacvyqLA4GkEaMKc0aoyIDndvSFQ7XRIggp453S9eDn7RNnWQ9oxZBz6JX83SVyXCr4kIBa3uAoBsXSasyo7gTtWe7FFWWcV8pdI9A==;25:fmc8cHvioPHoh3i/bhDkUxRm1eAUFdYwA/MUkUzKHqmpLKVs4qm6Ie/afIcGUJARoqhoHMphmmov1N8fC9vcKINF3X84y9F044TaLKaiAuHybH4XZaruPRcuInj+c214R5P+BoLOFFjjEmo45Ji2GAK0BHwdoRglZbSxDD+12yXb60DZdYh90cw4c3bDBgaN8zKY7g4jpCjUP0S52GIIAPzExMZPVRNZxIu7iMxFDd0trMRZmJtpr+WHftjdUWl/;20:+N/aFgkEPI/7Qtc78mYshYFXqmswku3g9cEYEMsUNN7b2tczgTXcuZbgYV7x+7us6A5HL5jLJvLXQGyirSHvV6UZVECCXaXUM7LLRcpYBlvYmXWR3Ld1VgiKOK7lril47ReFj6iYvMJSKvOBXtfbMd3EzQGrEzFN9yS85w8czqI=;4:/+yx+s5AdJZXAmyg+O6lOPeW+U1nprRS8sykRtFjg05HXe48TlzogQXH5BXOjcbE2E4zSy0Tzq4jwJi8RdN48XEOOcjKKOdTutuxrILaFt2H5+v0khKJhIK6LHQydeXxNvOMYMxhqToQtFpVkTmyFK6g3Zy8ku2U9jGKnwvKHkoKcF5Zb+YQXLqSjQoXOyCUbfYlRm0lEL29cUGi575uR9XBUdBURraWpdFtHxjrNhavZpNa4pKBhLIc7quxkfzfb0gjSPHoVGWla1KPT+IRYHzt9vspDOIBXDuC0M69LxI= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:HE1PR02MB0780; HE1PR02MB0780: X-MS-Exchange-Organization-RulesExecuted X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5005006)(3002001);SRVR:HE1PR02MB0780;BCL:0;PCL:0;RULEID:;SRVR:HE1PR02MB0780; X-Forefront-PRVS: 0643BDA83C X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6009001)(6049001)(24454002)(479174004)(377454003)(87976001)(76176999)(15975445007)(42186005)(54356999)(36756003)(23676002)(77096005)(66066001)(2950100001)(65816999)(65956001)(87266999)(86362001)(47776003)(65806001)(80316001)(19580395003)(19580405001)(50986999)(122386002)(46102003)(77156002)(59896002)(5001960100002)(50466002)(5001920100001)(4001350100001)(33656002)(83506001)(40100003)(92566002)(5001770100001)(189998001)(62966003)(18886065003);DIR:OUT;SFP:1101;SCL:1;SRVR:HE1PR02MB0780;H:[10.7.0.41];FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtIRTFQUjAyTUIwNzgwOzIzOm9KU1N1bTFSSkV2UlliUWlsWnFVQThNRFg5?= =?utf-8?B?OENYeHdkUXVJeklONDVzWnA5Z3ZRZ3RkejNFWFpORjk5YkU1dEpHRnJ3cDI4?= =?utf-8?B?THNRK3FTYWhDOENXQTV4M2ZyaHhJU2tXVlRKYm5YbEsrN01taElVSEZjU2Fk?= =?utf-8?B?ak1JVStXc29pTDZWZ1ZPeGd5ZjFiYjRyY1lLUXQvVzFIWmJCWkdvUUNvSEVP?= =?utf-8?B?R1ZLWWpzc1FzRHZVZVRsN0ozYjVqaFEvQUt5Ylg3T0RlYjdLc1gzVWQ5Qng1?= =?utf-8?B?VHkzN0dsOGhLNmJQVTFLeC9rL01VZWZTNEdkUmszVDhZenMwalViU1JkajEv?= =?utf-8?B?bmV0Vk5ad3MwdHp2QnZnRG9ObG5MMjIrWCtyUG91ems4NVlmMEVQK0JUSGVz?= =?utf-8?B?N0hlaklONHE5S3V5WWJBSlk2OUVhaHFhYjV0UG5zN2p4Z2tEbjBqekNEZlJy?= =?utf-8?B?WFBWZWNOYVM5dU5LbVpqdHowYnp4Smc1RFI0aXowZ0IxcExqNmRxbWxPYTZh?= =?utf-8?B?b1JUR1lqRVZudStaNExkV3VBaVZEaEpUTWQrOGFRYVRwSDlLSHY2YXJ3U1Rl?= =?utf-8?B?QmdSNHgzOVBmZStpQ2NGSXY4ZW01ajF1TEg0V3huTUMxYmRtUGx2b3NNWGg2?= =?utf-8?B?SUlJYnJFMXdFeEtoQ0tTRFByenNEVWw1Z0w0QXF1QXQ5MndKQTVHRW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HhMoiGzpB6iiO/6yCFTjc4jqkPmXCN1oJW5zOupHw/PYiSwdwQfSAt3ov3P83re2lT635nA2ND1c7B0/Dg==;24:zoav9W19/sAIYVk/H/B6AExiaZBSLGDLhveNsCupE8rJ+lBBlOV2LB8ES4OfF5SgPKrRaOHZ1qqlUF79GldCB3izZi6gIqkpcRGz38A7jik=;20:zWeOiI1Xtjpibu+HKb7F1uttslC0X8PkatmC79G37XdcjiJPthN/EZfczcVGVEU+KWs6WIGSRqDXJb6wubxuCg== SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: ezchip.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jul 2015 20:40:41.1004 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR02MB0780 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1158 Lines: 28 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. -- Chris Metcalf, EZChip Semiconductor http://www.ezchip.com -- 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/