From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Tue, 3 Apr 2007 22:09:36 +0200 From: Andi Kleen Subject: Re: missing madvise functionality Message-ID: <20070403200936.GA25541@one.firstfloor.org> References: <46128051.9000609@redhat.com> <46128CC2.9090809@redhat.com> <20070403172841.GB23689@one.firstfloor.org> <20070403125903.3e8577f4.akpm@linux-foundation.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070403125903.3e8577f4.akpm@linux-foundation.org> Sender: owner-linux-mm@kvack.org Return-Path: To: Andrew Morton Cc: Andi Kleen , Ulrich Drepper , Rik van Riel , Linux Kernel , Jakub Jelinek , linux-mm@kvack.org, Hugh Dickins List-ID: > It might, a bit. Both mmap() and mprotect() currently take mmap_sem() for > writing. If we're careful, we could probably arrange for MADV_ULRICH to > take it for reading, which will help a little bit, hopefully. The cache line bounces would be still there. Not sure that would help MySQL all that much. Besides if the down_write is the real problem one could convert the code for all cases over to optimistic locking assuming most calls don't merge. -Andi -- 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