From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752905AbXDUQcR (ORCPT ); Sat, 21 Apr 2007 12:32:17 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752914AbXDUQcR (ORCPT ); Sat, 21 Apr 2007 12:32:17 -0400 Received: from nz-out-0506.google.com ([64.233.162.236]:53959 "EHLO nz-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752893AbXDUQcQ (ORCPT ); Sat, 21 Apr 2007 12:32:16 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Qm5ogtYMmQgP2c7OiHYemSTFB85NlKr0s3HCxnryfnAVXOCZCLVrG9exuMWLGggKMmFQMs4X1wtik0tulMhFBnu2f+Y8TC7iphqZ9OQGgQ0vr7GE1NjuQbqIyvXfWHagU2YOt+QGH501mw4LK7fGP25ykzAFI5+hbOZl5VQmC+0= Message-ID: Date: Sat, 21 Apr 2007 09:32:15 -0700 From: "Ulrich Drepper" To: "Hugh Dickins" Subject: Re: [PATCH] lazy freeing of memory through MADV_FREE 2/2 Cc: "Andrew Morton" , "Rik van Riel" , "Jakub Jelinek" , linux-kernel , linux-mm In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <46247427.6000902@redhat.com> <4627DBF0.1080303@redhat.com> <20070420140316.e0155e7d.akpm@linux-foundation.org> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On 4/21/07, Hugh Dickins wrote: > But the Linux MADV_DONTNEED does throw away > data from a PROT_WRITE,MAP_PRIVATE mapping (or brk or stack) - those > changes are discarded, and a subsequent access will revert to zeroes > or the underlying mapped file. Been like that since before 2.4.0. I didn't say it changed. I just say that there is a hole in the current implementation as it does not allow to implement POSIX_MADV_DONTNEED with anything but a no-op. The POSIX_MADV_DONTNEED behavior is useful and something IMO should be added to allow implementing it.