Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 10 Aug 2002 16:04:09 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 10 Aug 2002 16:04:09 -0400 Received: from ebiederm.dsl.xmission.com ([166.70.28.69]:17003 "EHLO frodo.biederman.org") by vger.kernel.org with ESMTP id ; Sat, 10 Aug 2002 16:04:08 -0400 To: Rik van Riel Cc: Andrew Morton , Linus Torvalds , Daniel Phillips , , , David Mosberger , "David S. Miller" , , , William Lee Irwin III , Subject: Re: large page patch (fwd) (fwd) References: From: ebiederm@xmission.com (Eric W. Biederman) Date: 10 Aug 2002 13:54:47 -0600 In-Reply-To: Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1370 Lines: 24 Rik van Riel writes: > On 10 Aug 2002, Eric W. Biederman wrote: > > Andrew Morton writes: > > > > > > The other worry is the ZONE_NORMAL space consumption of pte_chains. > > > We've halved that, but it will still make high sharing levels > > > unfeasible on the big ia32 machines. > > > There is a second method to address this. Pages can be swapped out > > of the page tables and still remain in the page cache, the virtual > > scan does this all of the time. This should allow for arbitrary > > amounts of sharing. There is some overhead, in faulting the pages > > back in but it is much better than cases that do not work. A simple > > implementation would have a maximum pte_chain length. > > Indeed. We need this same thing for page tables too, otherwise > a high sharing situation can easily "require" more page table > memory than the total amount of physical memory in the system ;) It's exactly the same situation. To remove a pte from the chain you must remove it from the page table as well. Then we just need to free pages with no interesting pte entries. Eric - 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/