From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yw0-f200.google.com (mail-yw0-f200.google.com [209.85.161.200]) by kanga.kvack.org (Postfix) with ESMTP id 5B1966B0005 for ; Wed, 22 Jun 2016 16:46:38 -0400 (EDT) Received: by mail-yw0-f200.google.com with SMTP id v77so131479499ywg.1 for ; Wed, 22 Jun 2016 13:46:38 -0700 (PDT) Received: from mail-vk0-x231.google.com (mail-vk0-x231.google.com. [2607:f8b0:400c:c05::231]) by mx.google.com with ESMTPS id m33si1196590uam.120.2016.06.22.13.46.37 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Jun 2016 13:46:37 -0700 (PDT) Received: by mail-vk0-x231.google.com with SMTP id u64so78468338vkf.3 for ; Wed, 22 Jun 2016 13:46:37 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20160622194425.GB2045@uranus.lan> References: <4A8E6E6D-6CF7-4964-A62E-467AE287D415@linaro.org> <576AA67E.50009@codeaurora.org> <20160622191843.GA2045@uranus.lan> <20160622194425.GB2045@uranus.lan> From: Andy Lutomirski Date: Wed, 22 Jun 2016 13:46:18 -0700 Message-ID: Subject: Re: JITs and 52-bit VA Content-Type: text/plain; charset=UTF-8 Sender: owner-linux-mm@kvack.org List-ID: To: Cyrill Gorcunov Cc: Christopher Covington , Maxim Kuvyrkov , Linaro Dev Mailman List , Arnd Bergmann , Mark Brown , "linux-mm@kvack.org" , Dmitry Safonov On Wed, Jun 22, 2016 at 12:44 PM, Cyrill Gorcunov wrote: > On Wed, Jun 22, 2016 at 12:20:13PM -0700, Andy Lutomirski wrote: >> >> >> >> As an example, a 32-bit x86 program really could have something mapped >> >> above the 32-bit boundary. It just wouldn't be useful, but the kernel >> >> should still understand that it's *user* memory. >> >> >> >> So you'd have PR_SET_MMAP_LIMIT and PR_GET_MMAP_LIMIT or similar instead. >> > >> > +1. Also it might be (not sure though, just guessing) suitable to do such >> > thing via memory cgroup controller, instead of carrying this limit per >> > each process (or task structure/vma or mm). >> >> I think we'll want this per mm. After all, a high-VA-limit-aware bash >> should be able run high-VA-unaware programs without fiddling with >> cgroups. > > Wait. You mean to have some flag in mm struct and consider > its value on mmap call? Exactly. --Andy -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org