Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 21 Apr 2001 13:43:38 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 21 Apr 2001 13:43:28 -0400 Received: from neon-gw.transmeta.com ([209.10.217.66]:6159 "EHLO neon-gw.transmeta.com") by vger.kernel.org with ESMTP id ; Sat, 21 Apr 2001 13:43:14 -0400 To: linux-kernel@vger.kernel.org From: torvalds@transmeta.com (Linus Torvalds) Subject: Re: try_to_swap_out() deactivating pages w. count > 2 Date: 21 Apr 2001 10:42:57 -0700 Organization: A poorly-installed InterNetNews site Message-ID: <9bsgr1$hcd$1@penguin.transmeta.com> In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org In article , Rik van Riel wrote: > >What I _am_ worried about is the fact that we do this to pages with >a really high page age. These things are in active use and cannot >be swapped out any time soon, yet we do claim swap space for it ... Ehh... And if we didn't do that, then how could they every become less active? We should _absolutely_ do the swap space reclaiming without looking at the page count. If we don't, you will never free those pages, and I have a trivial exploit for you that will basically mlock all pages in memory. try_to_swap_out() _absolutely_ does the right thing. Also note how it will need to allocate the swap space backing store only once. Linus - 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/