From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pd0-f178.google.com (mail-pd0-f178.google.com [209.85.192.178]) by kanga.kvack.org (Postfix) with ESMTP id 6200D6B0039 for ; Mon, 7 Oct 2013 22:51:20 -0400 (EDT) Received: by mail-pd0-f178.google.com with SMTP id w10so8002086pde.37 for ; Mon, 07 Oct 2013 19:51:20 -0700 (PDT) Received: by mail-qe0-f44.google.com with SMTP id 6so3289755qeb.3 for ; Mon, 07 Oct 2013 19:51:17 -0700 (PDT) Message-ID: <52537326.7000505@gmail.com> Date: Mon, 07 Oct 2013 22:51:18 -0400 From: KOSAKI Motohiro MIME-Version: 1.0 Subject: Re: [PATCH 05/14] vrange: Add new vrange(2) system call References: <1380761503-14509-6-git-send-email-john.stultz@linaro.org> <52533C12.9090007@zytor.com> <5253404D.2030503@linaro.org> <52534331.2060402@zytor.com> <52534692.7010400@linaro.org> <525347BE.7040606@zytor.com> <525349AE.1070904@linaro.org> <52534AEC.5040403@zytor.com> <20131008001306.GD25780@bbox> <52535EE1.3060700@zytor.com> <20131008020847.GH25780@bbox> In-Reply-To: <20131008020847.GH25780@bbox> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Minchan Kim Cc: "H. Peter Anvin" , John Stultz , LKML , Andrew Morton , Android Kernel Team , Robert Love , Mel Gorman , Hugh Dickins , Dave Hansen , Rik van Riel , Dmitry Adamushko , Dave Chinner , Neil Brown , Andrea Righi , Andrea Arcangeli , "Aneesh Kumar K.V" , Mike Hommey , Taras Glek , Dhaval Giani , Jan Kara , KOSAKI Motohiro , Michel Lespinasse , Rob Clark , "linux-mm@kvack.org" > Maybe, int madvise5(addr, length, MADV_DONTNEED|MADV_LAZY|MADV_SIGBUS, > &purged, &ret); > > Another reason to make it hard is that madvise(2) is tight coupled with > with vmas split/merge. It needs mmap_sem's write-side lock and it hurt > anon-vrange test performance much heavily and userland might want to > make volatile range with small unit like "page size" so it's undesireable > to make it with vma. Then, we should filter out to avoid vma split/merge > in implementation if only MADV_LAZY case? Doable but it could make code > complicated and lost consistency with other variant of madvise. I haven't seen your performance test result. Could please point out URLs? -- 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