From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vc0-f179.google.com (mail-vc0-f179.google.com [209.85.220.179]) by kanga.kvack.org (Postfix) with ESMTP id A6C146B0031 for ; Tue, 1 Apr 2014 12:21:41 -0400 (EDT) Received: by mail-vc0-f179.google.com with SMTP id ij19so9864620vcb.24 for ; Tue, 01 Apr 2014 09:21:41 -0700 (PDT) Received: from mail-vc0-x230.google.com (mail-vc0-x230.google.com [2607:f8b0:400c:c03::230]) by mx.google.com with ESMTPS id vd8si3745018vdc.34.2014.04.01.09.21.40 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 01 Apr 2014 09:21:40 -0700 (PDT) Received: by mail-vc0-f176.google.com with SMTP id lc6so9795533vcb.7 for ; Tue, 01 Apr 2014 09:21:40 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <533AE518.1090705@redhat.com> References: <20140331113442.0d628362@annuminas.surriel.com> <533AE518.1090705@redhat.com> Date: Tue, 1 Apr 2014 09:21:40 -0700 Message-ID: Subject: Re: [PATCH] x86,mm: delay TLB flush after clearing accessed bit From: Linus Torvalds Content-Type: text/plain; charset=UTF-8 Sender: owner-linux-mm@kvack.org List-ID: To: Rik van Riel Cc: Linux Kernel Mailing List , linux-mm , shli@kernel.org, Andrew Morton , Ingo Molnar , Hugh Dickins , Mel Gorman On Tue, Apr 1, 2014 at 9:11 AM, Rik van Riel wrote: > > Memory pressure is not necessarily caused by the same process > whose accessed bit we just cleared. Memory pressure may not > even be caused by any process's virtual memory at all, but it > could be caused by the page cache. If we have that much memory pressure on the page cache without having any memory pressure on the actual VM space, then the swap-out activity will never be an issue anyway. IOW, I think all these scenarios are made-up. I'd much rather go for simpler implementation, and make things more complex only in the presence of numbers. Of which we have none. Linus -- 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