From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx141.postini.com [74.125.245.141]) by kanga.kvack.org (Postfix) with SMTP id 2562A6B0033 for ; Mon, 8 Jul 2013 14:10:18 -0400 (EDT) Date: Mon, 8 Jul 2013 20:04:24 +0200 From: Oleg Nesterov Subject: [PATCH 0/1] mm: mempolicy: (Was: add sys_madvise2 and MADV_NAME to name vmas) Message-ID: <20130708180424.GA6490@redhat.com> 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 , Andrew Morton , Hugh Dickins , Linus Torvalds , "Hampson, Steven T" Cc: lkml , Kyungmin Park , Christoph Hellwig , John Stultz , Rob Landley , Arnd Bergmann , Cyrill Gorcunov , David Rientjes , Davidlohr Bueso , Kees Cook , Al Viro , 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 07/05, Colin Cross wrote: > > On Thu, Jul 4, 2013 at 1:22 PM, Oleg Nesterov wrote: > > > > MADV_NAME(START, PAGE_SIZE, "MY_NAME"); > > MADV_NAME(START + PAGE_SIZE, PAGE_SIZE, "MY_NAME"); > > > > The 1st MADV_NAME will split this vma, the 2nd won't merge. Not that I think > > this is buggy, just a bit inconsistent imho. > > My intention is that any vmas that would be merged without names would > be merged if they have the same name. I copied the logic used for > vm_flags, but I'll take another look. Please ignore. Sorry I was wrong, I misread this code. And when I read it now I strongly believe that vma_policy() logic is buggy. The patch cc's stable but I do not understand mempolicy.c and I have no idea how to test it. So this needs the authoritative acks. Oleg. -- 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