From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030263AbXBTQqg (ORCPT ); Tue, 20 Feb 2007 11:46:36 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030241AbXBTQqg (ORCPT ); Tue, 20 Feb 2007 11:46:36 -0500 Received: from mx1.redhat.com ([66.187.233.31]:55524 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030269AbXBTQqf (ORCPT ); Tue, 20 Feb 2007 11:46:35 -0500 Message-ID: <45DB25E1.7030504@redhat.com> Date: Tue, 20 Feb 2007 11:46:25 -0500 From: Rik van Riel User-Agent: Thunderbird 1.5.0.7 (X11/20061004) MIME-Version: 1.0 To: Christoph Lameter CC: linux-kernel , linux-mm Subject: Re: [PATCH] free swap space when (re)activating page References: <45D63445.5070005@redhat.com> <45DAF794.2000209@redhat.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Christoph Lameter wrote: > On Tue, 20 Feb 2007, Rik van Riel wrote: > >>> It was the portion that modifies shrink_active_list. Why operate >>> on the pagevec there? The pagevec only contains the leftovers to be released >>> from scanning over the temporary inactive list. >> Why? Because the pages that were not referenced will be >> going onto the inactive list and are now a candidate for >> swapping out. I don't see why we would want to reclaim >> the swap space for pages that area about to be swapped >> out again. > > Sounds sane. Then drop that piece. Again, you were only operating on the > pages left over in the pagevec after the move of the pages to the > inactive list. If you really wanted to do something there then the > processing should have covered all pages that go to the inactive list. Nono, I try to remove the swap space occupied by pages that go back onto the active list. Regardless of whether they were already there, or whether they started out on the inactive list. Stripping the swap space of the pages that are going to the inactive list makes less sense IMHO, because those pages are candidates for swapping out - meaning those should keep the space. -- All Rights Reversed