Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 29 Oct 2001 18:51:41 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 29 Oct 2001 18:51:33 -0500 Received: from samba.sourceforge.net ([198.186.203.85]:28425 "HELO lists.samba.org") by vger.kernel.org with SMTP id ; Mon, 29 Oct 2001 18:51:16 -0500 From: Paul Mackerras MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15325.60263.576568.255244@cargo.ozlabs.ibm.com> Date: Tue, 30 Oct 2001 10:51:03 +1100 (EST) To: Benjamin LaHaise Cc: Linus Torvalds , linux-kernel@vger.kernel.org Subject: Re: please revert bogus patch to vmscan.c In-Reply-To: <20011029180837.F25434@redhat.com> In-Reply-To: <20011029180837.F25434@redhat.com> X-Mailer: VM 6.75 under Emacs 20.7.2 Reply-To: paulus@samba.org Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Benjamin LaHaise writes: > The following: > > @@ -50,7 +50,6 @@ > > /* Don't look at this pte if it's been accessed recently. */ > if (ptep_test_and_clear_young(page_table)) { > - flush_tlb_page(vma, address); > mark_page_accessed(page); > return 0; > } > > is completely bogus. Without the tlb flush, the system may never update > the accessed bit on a page that is heavily being used. On PPC, the page wouldn't even need to be being heavily used. Most PPCs have an MMU hash table that we use as a level-2 cache for the TLB. With this change, we won't see the accessed bit being set again for any page unless there is so much memory in use that we start evicting PTEs from the hash table, and that is very rare in practice. So I'm with Ben on this one. Paul. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/