From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 28 Sep 2000 16:52:16 +0200 From: Andrea Arcangeli Subject: Re: [patch] vmfixes-2.4.0-test9-B2 - fixing deadlocks Message-ID: <20000928165216.J17518@athlon.random> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: ; from riel@conectiva.com.br on Thu, Sep 28, 2000 at 08:16:32AM -0300 Sender: owner-linux-mm@kvack.org Return-Path: To: Rik van Riel Cc: Christoph Rohland , "Stephen C. Tweedie" , Ingo Molnar , Linus Torvalds , Roger Larsson , MM mailing list , linux-kernel@vger.kernel.org List-ID: On Thu, Sep 28, 2000 at 08:16:32AM -0300, Rik van Riel wrote: > Andrea, I have the strong impression that your idea of > memory balancing is based on the idea that the OS should > out-smart the application instead of looking at the usage > pattern of the pages in memory. Not sure what you mean with out-smart. My only point is that the OS actually can only swapout such shm. If that SHM is not supposed to be swapped out and if the OS I/O cache have more aging then the shm cache, then the OS should tell the DBMS that it's time to shrink some shm page by freeing it. > of the pages in question, instead of making presumptions > based on what kind of cache the page is in. For the mapped pages we never make presumptions. We always check the accessed bit and that's the most reliable info to know if the page is been accessed recently (set from the cpu accesse through the pte not only during page faults or cache hits). With the current design pages mapped multiple times will be overaged a bit but this can't be fixed until we make a page->pte reverse lookup... Andrea -- 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.eu.org/Linux-MM/