From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx155.postini.com [74.125.245.155]) by kanga.kvack.org (Postfix) with SMTP id 0E5216B0031 for ; Wed, 24 Jul 2013 05:40:41 -0400 (EDT) Received: by mail-bk0-f43.google.com with SMTP id jm2so78687bkc.30 for ; Wed, 24 Jul 2013 02:40:40 -0700 (PDT) Date: Wed, 24 Jul 2013 11:40:36 +0200 From: Jan Glauber Subject: Re: [PATCH] mm: add sys_madvise2 and MADV_NAME to name vmas Message-ID: <20130724094035.GA28894@hal> References: <1372901537-31033-1-git-send-email-ccross@android.com> <20130704202232.GA19287@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org List-ID: To: Colin Cross Cc: Oleg Nesterov , lkml , Kyungmin Park , Christoph Hellwig , John Stultz , Rob Landley , Arnd Bergmann , Andrew Morton , Cyrill Gorcunov , David Rientjes , Davidlohr Bueso , Kees Cook , Al Viro , Hugh Dickins , Mel Gorman , Michel Lespinasse , Rik van Riel , Konstantin Khlebnikov , Peter Zijlstra , Rusty Russell , "Eric W. Biederman" , Srikar Dronamraju , KAMEZAWA Hiroyuki , Michal Hocko , Anton Vorontsov , Pekka Enberg , Shaohua Li , Sasha Levin , KOSAKI Motohiro , Johannes Weiner , Ingo Molnar , "open list:DOCUMENTATION" , "open list:MEMORY MANAGEMENT" , "open list:GENERIC INCLUDE/A..." On Fri, Jul 05, 2013 at 12:40:50PM -0700, Colin Cross wrote: > On Thu, Jul 4, 2013 at 1:22 PM, Oleg Nesterov wrote: > > On 07/03, Colin Cross wrote: > >> > >> The names of named anonymous vmas are shown in /proc/pid/maps > >> as [anon:]. The name of all named vmas are shown in > >> /proc/pid/smaps in a new "Name" field that is only present > >> for named vmas. > > > > And this is the only purpose, yes? > The heuristics used for the thread stack annotation is not working always: https://lkml.org/lkml/2013/6/26/256 Maybe we can get rid of the heuristic if there is an explicit interface to mark vma's? OTOH, a new flag bit instead of a string would be enough to mark the thread stacks correctly. --Jan -- 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